mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 14:24:54 +00:00
Merge pull request #13425 from jordan-woyak/after-present-cleanup
Fix performance statistics when Skip Duplicate Frames is turned off.
This commit is contained in:
commit
f50d2ee86c
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue