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

Qt3D heavy CPU load while running with Windows lockscreen

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.7
    • Qt3D
    • None
    • Windows 7, MSVC2013, Qt 5.7 branch (any Qt version is ok for repro)
      Aero/DWM is enabled, NVIDIA Geforce GT 650M w/ Optimus disabled.

      Start any Qt3D application and leave it running. Lock computer and wait few seconds. Log back in and observe CPU load from task manager performance tab. On my machine it goes to 25% i.e. 2 threads 100%.

      Now the reason. We run rendering loop which waits for vsync. My theory is that in lock screen vsync gets disabled and our rendering loop starts to run as fast as it can. I noticed this with my laptop as the fans start running full speed after few minutes into lockscreen.

      You can debug the behavior more easily with disabling vsync manually or if you disable aero (also disables vsync).

      Should we have a backup timer for the loop, should we stop rendering while in lockscreen or leave it as it is?

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

            seanharmer Sean Harmer
            e0150566 Janne Roine
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes