[Bf-blender-cvs] [bb29ca9af58] decoration: GHOST/wayland: set swap interval to 0
Christian Rauch
noreply at git.blender.org
Mon Jun 1 01:20:14 CEST 2020
Commit: bb29ca9af58eae4d51413f05e429fbedc7218b1e
Author: Christian Rauch
Date: Mon Jun 1 00:20:04 2020 +0100
Branches: decoration
https://developer.blender.org/rBbb29ca9af58eae4d51413f05e429fbedc7218b1e
GHOST/wayland: set swap interval to 0
The Wayland server will not update hidden surfaces. This will block the
main event loop and thus also block updates to visible windows in a multi-
window setup.
===================================================================
M intern/ghost/intern/GHOST_Window.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_Window.cpp b/intern/ghost/intern/GHOST_Window.cpp
index ca19e251279..ce3fbc7c28f 100644
--- a/intern/ghost/intern/GHOST_Window.cpp
+++ b/intern/ghost/intern/GHOST_Window.cpp
@@ -87,6 +87,8 @@ GHOST_TSuccess GHOST_Window::setDrawingContextType(GHOST_TDrawingContextType typ
m_drawingContextType = GHOST_kDrawingContextTypeNone;
}
+ m_context->setSwapInterval(0);
+
return (type == m_drawingContextType) ? GHOST_kSuccess : GHOST_kFailure;
}
else {
More information about the Bf-blender-cvs
mailing list