Use core fps instead of display rate when counting dropped frames (#17605)

This commit is contained in:
sonninnos 2025-02-20 14:10:08 +02:00 committed by GitHub
parent b5756a1b20
commit fce67c1fab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -3796,7 +3796,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)