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

Idle timer cripples CPU usage

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes