From 88ed72fdc18ca1f868a77dba2ebdd54e95a122ce Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 20 Jun 2020 14:44:21 -0700 Subject: [PATCH] Use regular VSync when enabled because adaptive VSync still tears --- app/streaming/video/ffmpeg-renderers/eglvid.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/streaming/video/ffmpeg-renderers/eglvid.cpp b/app/streaming/video/ffmpeg-renderers/eglvid.cpp index 5beb2509..2fcc8e4a 100644 --- a/app/streaming/video/ffmpeg-renderers/eglvid.cpp +++ b/app/streaming/video/ffmpeg-renderers/eglvid.cpp @@ -403,13 +403,8 @@ bool EGLRenderer::initialize(PDECODER_PARAMETERS params) glClear(GL_COLOR_BUFFER_BIT); if (params->enableVsync) { - // Try to use adaptive VSYNC unless we're using frame pacing. - // Frame pacing relies on us blocking in renderFrame() to - // match the display refresh rate. - if (params->enableFramePacing || SDL_GL_SetSwapInterval(-1)) { - SDL_GL_SetSwapInterval(1); - m_BlockingSwapBuffers = true; - } + SDL_GL_SetSwapInterval(1); + m_BlockingSwapBuffers = true; } else { SDL_GL_SetSwapInterval(0); }