Disable vsync when in a loading screen

This used to be the case but I removed it in 006f12e8d6 which made e.g. initial loading unnecessarily slow. Bring it back for now.
This commit is contained in:
ROllerozxa 2026-06-05 16:25:45 +02:00
commit a3ffe63962

View file

@ -30,6 +30,9 @@ loading_screen::pause(void)
int
loading_screen::resume(void)
{
// Disable vsync for loading screen to not bottleneck loading speed
SDL_GL_SetSwapInterval(0);
tms_infof("resume loading -----------------------------------");
this->step = 0;
return T_OK;