[vlc-commits] [Git][videolan/vlc][master] qt: improve UI backbuffer synchronisation in X11 compositor

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sun Feb 13 19:54:56 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
ef6b298f by Fatih Uzunoglu at 2022-02-13T10:58:23+00:00
qt: improve UI backbuffer synchronisation in X11 compositor

- - - - -


1 changed file:

- modules/gui/qt/maininterface/compositor_x11_uisurface.cpp


Changes:

=====================================
modules/gui/qt/maininterface/compositor_x11_uisurface.cpp
=====================================
@@ -35,7 +35,7 @@ CompositorX11UISurface::CompositorX11UISurface(QWindow* window, QScreen* screen)
     format.setDepthBufferSize(8);
     format.setStencilBufferSize(8);
     format.setAlphaBufferSize(8);
-
+    format.setSwapInterval(0);
     setFormat(format);
 
     m_context = new QOpenGLContext();
@@ -116,6 +116,8 @@ void CompositorX11UISurface::render()
 
     m_uiRenderControl->polishItems();
     m_uiRenderControl->sync();
+
+    // FIXME: Render function should be executed in rendering thread
     m_uiRenderControl->render();
 
     m_uiWindow->resetOpenGLState();



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ef6b298f2e20dba0b8e8cbf30d74de74d645f9ed

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/ef6b298f2e20dba0b8e8cbf30d74de74d645f9ed
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list