summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-03-23 15:21:31 -0400
committerGitHub <noreply@github.com>2025-03-23 15:21:31 -0400
commitf50d2ee86c5e7530887e8e78b6611c01ccb7bbc8 (patch)
tree63fd8db2c19625f90adefd55c25586aeee79646a /Source/Core
parent28f1beeca84911481e7ad8f925bd5fd1f5b2563e (diff)
parenta7d1cac8add1a20d3de5716b2d3d65fd0203d75f (diff)
Merge pull request #13425 from jordan-woyak/after-present-cleanup
Fix performance statistics when Skip Duplicate Frames is turned off.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Core.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp
index 4823b1dca2..5f90f93bae 100644
--- a/Source/Core/Core/Core.cpp
+++ b/Source/Core/Core/Core.cpp
@@ -853,10 +853,11 @@ void RunOnCPUThread(Core::System& system, std::function<void()> function, bool w
// Called from Renderer::Swap (GPU thread) when a frame is presented to the host screen.
void Callback_FramePresented(const PresentInfo& present_info)
{
+ g_perf_metrics.CountFrame();
+
if (present_info.reason == PresentInfo::PresentReason::VideoInterfaceDuplicate)
return;
- g_perf_metrics.CountFrame();
s_stop_frame_step.store(true);
}