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
+3
View File
@@ -31,6 +31,7 @@ int retrojoy_init=0,retro_ui_finalized=0;
int retro_sound_finalized=0;
float retro_fps=49.8607597;
long long retro_frame_counter;
extern int ToggleTV;
extern int CURRENT_TV;
@@ -621,6 +622,8 @@ void retro_run(void)
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE_UPDATE, &updated) && updated)
update_variables();
retro_frame_counter++;
if(pauseg==0){
if (ToggleTV == 1)