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

MacOS: QOpenGLWindow::frameSwapped() flood when window is obscured

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.5.0
    • 5.4.1
    • GUI: OpenGL
    • None
    • MacOS 10.9.4, Qt. 5.4.1
    • macOS

    Description

      MacOS only bug:

      I have a QOpenGLWindow, where I hooked up frameSwapped() to update() (that's what the documentation suggests). As long as the window is visible, the frameSwapped signal arrives as intended with 60Hz. As soon as the window is fully obscured, however, frameSwapped() will appear with maximum rate (about every 0.2 ms). Triggering update() at this rate results in a huge CPU drain, due to constant flushing of the OpenGL context. Unfortunately, isExposed() does not work, so I cannot determine if my window is actually exposed or not and take precautions accordingly.

      See attached repro project.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            woolfman007 Wolfgang Schneider
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes