mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-26 04:12:34 +01:00
- [EMU] fix timestep errors with TOMB5
This commit is contained in:
parent
d2c3a8c8b0
commit
fdf5b16a4a
@ -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);
|
||||
|
@ -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))
|
||||
|
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user