From bdb54d91b75b9a377802930b6c65effb4cfc8e0d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 4 Dec 2015 08:27:47 +0100 Subject: [PATCH] video_monitor_fps_statistics - small cleanup --- gfx/video_driver.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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;