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:
parent
4dec1785ed
commit
38e922557d
1 changed files with 1 additions and 8 deletions
|
@ -488,14 +488,7 @@ GL_UpdateSwapInterval
|
||||||
void GL_UpdateSwapInterval( void )
|
void GL_UpdateSwapInterval( void )
|
||||||
{
|
{
|
||||||
#if SDL_VERSION_ATLEAST( 2, 0, 0 )
|
#if SDL_VERSION_ATLEAST( 2, 0, 0 )
|
||||||
// disable VSync while level is loading
|
if( FBitSet( gl_vsync.flags, FCVAR_CHANGED ))
|
||||||
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 ))
|
|
||||||
{
|
{
|
||||||
ClearBits( gl_vsync.flags, FCVAR_CHANGED );
|
ClearBits( gl_vsync.flags, FCVAR_CHANGED );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue