Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT internal functions are using high CPU when Application is Idle.
Forum Updated to NodeBB v4.3 + New Features

QT internal functions are using high CPU when Application is Idle.

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 279 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VikrantBhatia1909
    wrote on last edited by
    #1

    Hi All,

    I am using an Application with QT. Whenever my application is idle means we are not performing any task on the Application GUI but still is using upto 6% of cpu.

    I used hotspot which internally uses perf utility for cpu profiling and found that QT internal functions are using most of the CPU cycles.

    Does anybody have an idea why it is using that much of CPU in idle conditions?

    Below are the some of screenshot from the profiling tool:
    Screenshot from 2021-07-22 12-11-47.png
    Screenshot from 2021-07-22 12-11-51.png
    Screenshot from 2021-07-22 12-11-01.png
    Screenshot from 2021-07-22 12-10-43.png

    Thanks,
    Vikrant

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @VikrantBhatia1909 said in QT internal functions are using high CPU when Application is Idle.:

      Does anybody have an idea why it is using that much of CPU in idle conditions?

      How should we know without code?
      Debug your code and see where it comes from. Or provide a minimal, compilable example so we can reproduce it here.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      2
      • Kent-DorfmanK Offline
        Kent-DorfmanK Offline
        Kent-Dorfman
        wrote on last edited by
        #3

        If I had to take a WAG, you are doing bitmap image processing in a short period QTimer, such that the event loop is very busy. Animated GIF?

        1 Reply Last reply
        2
        • V Offline
          V Offline
          VikrantBhatia1909
          wrote on last edited by
          #4

          Hi Kent,

          Is their any way where we can increase and decrease the QT internal timer so that its give a buffer in between that?

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved