forked from mirrors/principia
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:
parent
d14bf51465
commit
a3ffe63962
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue