From 53ff913c36d8ad975e0d0a6f01c5282b1ddc04c2 Mon Sep 17 00:00:00 2001 From: LibretroAdmin <105389611+LibretroAdmin@users.noreply.github.com> Date: Wed, 31 May 2023 16:47:43 +0200 Subject: [PATCH] Revert "Don't count frames while paused" This reverts commit ed29ba6b3226d01d2da88853333c77769d7484e3. --- gfx/video_driver.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 8423cf57d2..3e0188c42c 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -2355,16 +2355,10 @@ void video_driver_cached_frame(void) video_driver_state_t *video_st = &video_driver_st; void *recording = recording_st->data; struct retro_callbacks *cbs = &runloop_st->retro_ctx; - bool is_paused = runloop_st->flags & RUNLOOP_FLAG_PAUSED; /* Cannot allow recording when pushing duped frames. */ recording_st->data = NULL; - /* Ensure paused state to stop frame count, since unpausing - * removes the flag too early. Paused flag does nothing else - * in `video_driver_frame()`. */ - runloop_st->flags |= RUNLOOP_FLAG_PAUSED; - if (runloop_st->current_core.flags & RETRO_CORE_FLAG_INITED) cbs->frame_cb( (video_st->frame_cache_data != RETRO_HW_FRAME_BUFFER_VALID) @@ -2375,12 +2369,6 @@ void video_driver_cached_frame(void) video_st->frame_cache_pitch); recording_st->data = recording; - - /* Restore paused state */ - if (is_paused) - runloop_st->flags |= RUNLOOP_FLAG_PAUSED; - else - runloop_st->flags &= ~RUNLOOP_FLAG_PAUSED; } bool video_driver_has_focus(void) @@ -3774,9 +3762,7 @@ void video_driver_frame(const void *data, unsigned width, video_st->flags &= ~VIDEO_FLAG_ACTIVE; } - /* Don't count frames while paused. */ - if (!(runloop_st->flags & RUNLOOP_FLAG_PAUSED)) - video_st->frame_count++; + video_st->frame_count++; /* Display the status text, with a higher priority. */ if ( ( video_info.fps_show