diff options
author | Christian Rauch <Rauch.Christian@gmx.de> | 2020-06-01 02:20:04 +0300 |
---|---|---|
committer | Christian Rauch <Rauch.Christian@gmx.de> | 2021-06-03 20:18:27 +0300 |
commit | bb16f9697301e8f8aba8f0016fd506706ba37afc (patch) | |
tree | 2964737351f2d29921e3cf2467ca40c6431dafd6 | |
parent | 7197017ea951eadddeea5a7b3941cabee2b960db (diff) |
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.
-rw-r--r-- | intern/ghost/intern/GHOST_WindowWayland.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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() |