From 38e922557d312368a985ddacfd15bbfb5785ca36 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 28 Feb 2025 08:27:35 +0300 Subject: [PATCH] engine: platform: sdl: remove disabling vsync while we're not in game, as this is something users have been complaining a lot It's not a big deal if level loading will take a few milliseconds more. --- engine/platform/sdl/vid_sdl.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/engine/platform/sdl/vid_sdl.c b/engine/platform/sdl/vid_sdl.c index 7fe37af7..72242a17 100644 --- a/engine/platform/sdl/vid_sdl.c +++ b/engine/platform/sdl/vid_sdl.c @@ -488,14 +488,7 @@ GL_UpdateSwapInterval void GL_UpdateSwapInterval( void ) { #if SDL_VERSION_ATLEAST( 2, 0, 0 ) - // disable VSync while level is loading - if( cls.state < ca_active ) - { - if( SDL_GL_GetSwapInterval() != 0 ) - SDL_GL_SetSwapInterval( 0 ); - SetBits( gl_vsync.flags, FCVAR_CHANGED ); - } - else if( FBitSet( gl_vsync.flags, FCVAR_CHANGED )) + if( FBitSet( gl_vsync.flags, FCVAR_CHANGED )) { ClearBits( gl_vsync.flags, FCVAR_CHANGED );