From 5970ca49e9f05d3bce36f44b23f235f0cfa9b62e Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 12 Nov 2022 15:45:54 -0600 Subject: [PATCH] Don't use swap interval on Wayland --- app/streaming/video/ffmpeg-renderers/eglvid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/streaming/video/ffmpeg-renderers/eglvid.cpp b/app/streaming/video/ffmpeg-renderers/eglvid.cpp index 6b7809a3..fa8a7d76 100644 --- a/app/streaming/video/ffmpeg-renderers/eglvid.cpp +++ b/app/streaming/video/ffmpeg-renderers/eglvid.cpp @@ -669,7 +669,7 @@ bool EGLRenderer::initialize(PDECODER_PARAMETERS params) // situation, swap interval > 0 behaves as a frame pacing option // rather than a way to eliminate tearing as SDL will block in // SwapBuffers until the compositor consumes the frame. This will - // needlessly increases latency, so we should avoid it unless asked. + // needlessly increases latency, so we should avoid it. // // HACK: In SDL 2.0.22+ on GNOME systems with fractional DPI scaling, // the Wayland viewport can be stale when using Super+Left/Right/Up @@ -677,7 +677,7 @@ bool EGLRenderer::initialize(PDECODER_PARAMETERS params) // with vsync enabled, so this also mitigates that problem too. if (params->enableVsync #ifdef SDL_VIDEO_DRIVER_WAYLAND - && (info.subsystem != SDL_SYSWM_WAYLAND || params->enableFramePacing) + && info.subsystem != SDL_SYSWM_WAYLAND #endif ) { SDL_GL_SetSwapInterval(1);