[Bf-blender-cvs] [bb16f969730] master: GHOST/wayland: set swap interval to 0
Christian Rauch
noreply at git.blender.org
Thu Jun 3 19:24:15 CEST 2021
Commit: bb16f9697301e8f8aba8f0016fd506706ba37afc
Author: Christian Rauch
Date: Mon Jun 1 00:20:04 2020 +0100
Branches: master
https://developer.blender.org/rBbb16f9697301e8f8aba8f0016fd506706ba37afc
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_WindowWayland.cpp
===================================================================
diff --git a/intern/ghost/intern/GHOST_WindowWayland.cpp b/intern/ghost/intern/GHOST_WindowWayland.cpp
index 1e1d0814d3a..e28ad805741 100644
--- a/intern/ghost/intern/GHOST_WindowWayland.cpp
+++ b/intern/ghost/intern/GHOST_WindowWayland.cpp
@@ -192,6 +192,9 @@ GHOST_WindowWayland::GHOST_WindowWayland(GHOST_SystemWayland *system,
if (setDrawingContextType(type) == GHOST_kFailure) {
GHOST_PRINT("Failed to create EGL context" << std::endl);
}
+
+ /* set swap interval to 0 to prevent blocking */
+ setSwapInterval(0);
}
GHOST_TSuccess GHOST_WindowWayland::close()
More information about the Bf-blender-cvs
mailing list