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.
This commit is contained in:
parent
7197017ea9
commit
bb16f96973
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue