From 0e16918390701d0d0dd256e492c4f61ed03fb9de Mon Sep 17 00:00:00 2001 From: sguionni Date: Thu, 10 Oct 2024 15:32:22 +0200 Subject: [PATCH] vsync --- lib/ui/qt/src/ui/qt/widget/opengl_widget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/qt/src/ui/qt/widget/opengl_widget.cpp b/lib/ui/qt/src/ui/qt/widget/opengl_widget.cpp index 20bda43b8..ca8531ede 100644 --- a/lib/ui/qt/src/ui/qt/widget/opengl_widget.cpp +++ b/lib/ui/qt/src/ui/qt/widget/opengl_widget.cpp @@ -12,7 +12,7 @@ namespace VTX::UI::QT::Widget format.setProfile( QSurfaceFormat::CoreProfile ); format.setRenderableType( QSurfaceFormat::OpenGL ); format.setSwapBehavior( QSurfaceFormat::DoubleBuffer ); - format.setSwapInterval( 0 ); + format.setSwapInterval( 1 ); // Create context. _context = new QOpenGLContext();