From b59e4ffbcb1a18d5588c40fc10799b7bb3e866ba Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 3 Mar 2020 10:07:16 +1000 Subject: [PATCH] HostInterface: Reset performance counters on unpausing --- src/core/host_interface.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/host_interface.cpp b/src/core/host_interface.cpp index 509dc7bfd..9053a85e1 100644 --- a/src/core/host_interface.cpp +++ b/src/core/host_interface.cpp @@ -120,6 +120,9 @@ void HostInterface::PauseSystem(bool paused) m_audio_stream->PauseOutput(m_paused); OnSystemPaused(paused); UpdateSpeedLimiterState(); + + if (!paused) + m_system->ResetPerformanceCounters(); } void HostInterface::ResetSystem()