diff --git a/gfx/video_driver.c b/gfx/video_driver.c index a63fb7feab..f03cff5aa7 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -1032,15 +1032,13 @@ bool video_monitor_fps_statistics(double *refresh_rate, bool video_monitor_get_fps(char *buf, size_t size, char *buf_fps, size_t size_fps) { - retro_time_t new_time; static retro_time_t curr_time; static retro_time_t fps_time; - rarch_system_info_t *system = rarch_system_info_get_ptr(); + retro_time_t new_time = retro_get_time_usec(); + rarch_system_info_t *system = rarch_system_info_get_ptr(); *buf = '\0'; - new_time = retro_get_time_usec(); - if (video_driver_frame_count) { static float last_fps;