diff options
| author | JMC47 <JMC4789@gmail.com> | 2025-05-01 21:29:02 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-01 21:29:02 -0400 |
| commit | 2b568566acc2aed7a0fd39504a145ad9228f67b0 (patch) | |
| tree | 8718085f9587d2d5ece384b74595b98b1deae55d /Source/Core/VideoCommon/PerformanceMetrics.cpp | |
| parent | 539a3ed021269439d287891ee14d1f43779eb5fb (diff) | |
| parent | bad78cfed416d89ceb6b0acf6c134d3691b3d624 (diff) | |
Merge pull request #13535 from m-brodschi/mihaib/fix-shutdown-crash
Core, VideoCommon: Fix crash at shutdown due to destructor order
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; |
