From a7d1cac8add1a20d3de5716b2d3d65fd0203d75f Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Fri, 14 Mar 2025 15:47:26 -0500 Subject: [PATCH] Core: Call PerformanceMetrics::CountFrame regardless of PresentReason. --- Source/Core/Core/Core.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp index 6a3ebca94f..4504cccf67 100644 --- a/Source/Core/Core/Core.cpp +++ b/Source/Core/Core/Core.cpp @@ -857,10 +857,11 @@ void RunOnCPUThread(Core::System& system, std::function 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); }