From fce67c1fab024188214fb4bbe76ee2444577ac8d Mon Sep 17 00:00:00 2001 From: sonninnos <45124675+sonninnos@users.noreply.github.com> Date: Thu, 20 Feb 2025 14:10:08 +0200 Subject: [PATCH] Use core fps instead of display rate when counting dropped frames (#17605) --- gfx/video_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 8cc7c1a741..8574cf5c94 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -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)