mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-14 15:51:29 +02:00
Core: Call PerformanceMetrics::CountFrame regardless of PresentReason.
This commit is contained in:
parent
0299540209
commit
a7d1cac8ad
@ -857,10 +857,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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user