Skip to content

Commit

Permalink
Use core fps instead of display rate when counting dropped frames
Browse files Browse the repository at this point in the history
  • Loading branch information
sonninnos committed Feb 20, 2025
1 parent 6c08bf0 commit 7208194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gfx/video_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -3793,7 +3793,7 @@ void video_driver_frame(const void *data, unsigned width,
/* Consider frame dropped when frame time exceeds 1.75x target */
if ( video_st->frame_count > 4
&& !menu_is_alive
&& frame_time > 1000000.0f / video_info.refresh_rate * 1.75f)
&& frame_time > 1000000.0f / video_st->av_info.timing.fps * 1.75f)
video_st->frame_drop_count++;

if (video_info.fps_show)
Expand Down

0 comments on commit 7208194

Please sign in to comment.