Minor vsync'ing cleanups

This commit is contained in:
ROllerozxa 2025-03-09 22:23:00 +01:00
commit 006f12e8d6
6 changed files with 0 additions and 18 deletions

View file

@ -16,15 +16,12 @@ loading_screen::loading_screen()
int
loading_screen::pause(void)
{
#ifdef TMS_BACKEND_PC
/* return the pervious vsync status */
if (settings["vsync"]->v.b) {
if (SDL_GL_SetSwapInterval(-1) == -1)
SDL_GL_SetSwapInterval(1);
} else {
SDL_GL_SetSwapInterval(0);
}
#endif
tms_infof("pause loading");
return T_OK;
@ -33,11 +30,6 @@ loading_screen::pause(void)
int
loading_screen::resume(void)
{
#ifdef TMS_BACKEND_PC
/* Disable vsync during loading screen */
SDL_GL_SetSwapInterval(0);
#endif
tms_infof("resume loading -----------------------------------");
this->step = 0;
return T_OK;

View file

@ -385,8 +385,6 @@ tbackend_init_surface()
SDL_GL_CreateContext(_window);
SDL_GL_SetSwapInterval(0);
#else
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);

View file

@ -150,8 +150,6 @@ tbackend_init_surface()
SDL_GL_CreateContext(_window);
//SDL_GL_SetSwapInterval(0);
return T_OK;
}

View file

@ -132,8 +132,6 @@ tbackend_init_surface()
SDL_GL_CreateContext(_window);
SDL_GL_SetSwapInterval(0);
return T_OK;
}

View file

@ -194,8 +194,6 @@ tbackend_init_surface()
SDL_GL_CreateContext(_window);
SDL_GL_SetSwapInterval(0);
//#include "glhacks/definc.h"
return T_OK;

View file

@ -383,8 +383,6 @@ tbackend_init_surface()
SDL_GL_CreateContext(_window);
SDL_GL_SetSwapInterval(0);
return T_OK;
}