Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-14956

Idle timer cripples CPU usage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • Some future release
    • 4.7.0
    • Core: Event loop
    • None
    • Tested on Windows and Mac.

      The Qt docs say that creating a timer with an interval of 0 creates a special-case timer which will only fire when the app enters idle - ie when there are no more events in the queue.
      When we do this we find that the timer fires continually, eating up CPU time. We are careful not to hang any heavy processes off the timer callback, but even if we don't do any work at all in the callback, we still see CPU usage going through the roof.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            w00t Robin Burchell
            daveyb David Bignell
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes