diff options
Diffstat (limited to 'Source/Core/VideoCommon/PerformanceMetrics.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PerformanceMetrics.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/PerformanceMetrics.cpp b/Source/Core/VideoCommon/PerformanceMetrics.cpp index 8d18b846ef..520f9d8b95 100644 --- a/Source/Core/VideoCommon/PerformanceMetrics.cpp +++ b/Source/Core/VideoCommon/PerformanceMetrics.cpp @@ -35,6 +35,12 @@ void PerformanceMetrics::CountVBlank() m_vps_counter.Count(); } +void PerformanceMetrics::OnEmulationStateChanged([[maybe_unused]] Core::State state) +{ + m_fps_counter.InvalidateLastTime(); + m_vps_counter.InvalidateLastTime(); +} + void PerformanceMetrics::CountThrottleSleep(DT sleep) { m_time_sleeping += sleep; |
