Use frame counter instead of real clock

This commit is contained in:
Vladimir Serbinenko
2020-04-20 13:29:59 +02:00
parent 2322284eda
commit 6b1dc161dc
3 changed files with 7 additions and 42 deletions
+4 -1
View File
@@ -647,9 +647,12 @@ void PLATFORM_DisplayScreen(void)
retro_Render();
}
extern float retro_fps;
extern long long retro_frame_counter;
double PLATFORM_Time(void)
{
return GetTicks()/1000 ;//* 1e-3;
return retro_frame_counter * (1000.0 / retro_fps);
}
void PLATFORM_PaletteUpdate(void)