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

QOpenGLWindow blocks the UI thread if setSwapInterval(1) (VSync)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.5, 6.6.0 Beta4
    • GUI: OpenGL
    • None

    Description

      Is there a way to synchronize the refresh rate of the OpenGLWindow with the monitor's refresh rate without blocking the UI thread?

      If setSwapInterval(1) is used to enable VSync, it blocks UI thread, causing animations in other widgets to become erratic.

      If setSwapInterval(0) is used to disable VSync, QTimer can be used, but Qt's QTimer only has millisecond precision and cannot accurately match the monitor's refresh rate.

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            liziqi liziqi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes