Skip to content

Commit

Permalink
【Frontend】Trigger lag detection after 4 missed frames instead of 500ms
Browse files Browse the repository at this point in the history
  • Loading branch information
skylersaleh committed Aug 8, 2023
1 parent b644fa6 commit b2b374c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3570,7 +3570,7 @@ void se_update_frame() {
static double simulation_time = -1;
double curr_time = se_time();

if(fabs(curr_time-simulation_time)>0.5||emu_state.run_mode==SB_MODE_PAUSE)simulation_time = curr_time;
if(fabs(curr_time-simulation_time)>1.0/60.*4||emu_state.run_mode==SB_MODE_PAUSE)simulation_time = curr_time;
if(emu_state.run_mode==SB_MODE_RUN||emu_state.run_mode==SB_MODE_STEP||emu_state.run_mode==SB_MODE_REWIND){
emu_state.frame=0;
int max_frames_per_tick =1+ emu_state.step_frames;
Expand Down

0 comments on commit b2b374c

Please sign in to comment.