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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes