- [EMU] fix timestep errors with TOMB5

This commit is contained in:
Ilya Shurumov 2020-04-12 22:15:14 +06:00
parent d2c3a8c8b0
commit fdf5b16a4a
3 changed files with 4 additions and 5 deletions

View File

@ -2612,6 +2612,8 @@ unsigned int Emulator_GetFPS()
void Emulator_SwapWindow()
{
Emulator_WaitForTimestep(1);
#if defined(RO_DOUBLE_BUFFERED)
#if defined(OGL)
SDL_GL_SwapWindow(g_window);

View File

@ -30,8 +30,6 @@ int VSync(int mode)
if (mode < 0)
return SDL_GetTicks() - g_swapTime;
Emulator_WaitForTimestep(1);
if (mode == 0)
{
if (vsync_callback != NULL)
@ -39,10 +37,9 @@ int VSync(int mode)
}
else if (mode > 0)
{
Emulator_WaitForTimestep(mode);
}
return g_swapTime;
return SDL_GetTicks();
}
int VSyncCallback(void(*f)(void))

View File

@ -66,7 +66,7 @@ int spool_regioncounter;
int spoolerror; // UNUSED
int spool_regionpos;
volatile int spoolactive; // volatile is required at least for PC
int quickSpool;
volatile int quickSpool;
int models_ready;
short specspooldata[3] = { 20, 10 };