Threaded OpenGL rendering and VSYNC
-
I have a QOpenGLWindow with a worker thread doing the rendering. The QOpenGLContext has been moved to my worker thread with moveToThread() and stays there until the thread finishes. In the worker thread I have a timer that fires to trigger rendering the next frame. Is there a way to tie it to vsync instead of using timers in this scenario? I am hoping to not have to continously move the context between threads.