Disable vsync on desktop OpenGL.

Should make this a setting toggle.
This commit is contained in:
Jean-Philip Desjardins 2021-12-15 17:42:57 -05:00
parent 130dcb7d51
commit 0fac36935e

View file

@ -17,6 +17,7 @@ QSurfaceFormat OpenGLWindow::GetSurfaceFormat()
#endif #endif
format.setProfile(QSurfaceFormat::CoreProfile); format.setProfile(QSurfaceFormat::CoreProfile);
format.setSwapBehavior(QSurfaceFormat::DoubleBuffer); format.setSwapBehavior(QSurfaceFormat::DoubleBuffer);
format.setSwapInterval(0);
format.setAlphaBufferSize(0); format.setAlphaBufferSize(0);
return format; return format;
} }