Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.5, 6.6.0 Beta4
-
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.