From 59044e73896d46bf2242a243b69a282cb394a5ea Mon Sep 17 00:00:00 2001 From: toaster Date: Mon, 5 Sep 2022 15:26:28 +0100 Subject: [PATCH] vsync is not broken anymore thanks to both Eidolon and jart's efforts --- src/sdl/i_video.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/sdl/i_video.c b/src/sdl/i_video.c index 6ea86037c..3a5c1d3ab 100644 --- a/src/sdl/i_video.c +++ b/src/sdl/i_video.c @@ -1583,15 +1583,8 @@ static SDL_bool Impl_CreateContext(void) int flags = 0; // Use this to set SDL_RENDERER_* flags now if (usesdl2soft) flags |= SDL_RENDERER_SOFTWARE; -#if 0 - // This shit is BROKEN. - // - The version of SDL we're using cannot toggle VSync at runtime. We'll need a new SDL version implemented to have this work properly. - // - cv_vidwait is initialized before config is loaded, so it's forced to default value at runtime, and forced off when switching. The config loading code would need restructured. - // - With both this & frame interpolation on, I_FinishUpdate takes x10 longer. At this point, it is simpler to use a standard FPS cap. - // So you can probably guess why I'm kinda over this, I'm just disabling it. else if (cv_vidwait.value) flags |= SDL_RENDERER_PRESENTVSYNC; -#endif // 3 August 2022 // Possibly a Windows 11 issue; the default