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.
This commit is contained in:
Alibek Omarov 2025-02-28 08:27:35 +03:00
parent 4dec1785ed
commit 38e922557d

View file

@ -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 );