diff options
| author | JMC47 <JMC4789@gmail.com> | 2025-03-23 15:21:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-23 15:21:11 -0400 |
| commit | 28f1beeca84911481e7ad8f925bd5fd1f5b2563e (patch) | |
| tree | f30f895c47dbdc9db10b8debdd37415d58992499 /Source/Core/VideoCommon/PerformanceMetrics.cpp | |
| parent | 178462e10f4c03eaf1fd7797698a4763428b3351 (diff) | |
| parent | 46e0952e97bae2cfdecaeed88f7768d028718918 (diff) | |
Merge pull request #13398 from jordan-woyak/perf-tracker
PerformanceTracker: Eliminate mutex. General cleanups.
Diffstat (limited to 'Source/Core/VideoCommon/PerformanceMetrics.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PerformanceMetrics.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/PerformanceMetrics.cpp b/Source/Core/VideoCommon/PerformanceMetrics.cpp index 163ac821a4..9f0b766dbc 100644 --- a/Source/Core/VideoCommon/PerformanceMetrics.cpp +++ b/Source/Core/VideoCommon/PerformanceMetrics.cpp @@ -47,6 +47,7 @@ void PerformanceMetrics::CountThrottleSleep(DT sleep) void PerformanceMetrics::CountPerformanceMarker(Core::System& system, s64 cycles_late) { m_speed_counter.Count(); + m_speed_counter.UpdateStats(); const auto ticks = system.GetCoreTiming().GetTicks() - cycles_late; const auto real_time = Clock::now() - m_time_sleeping; @@ -84,6 +85,9 @@ double PerformanceMetrics::GetMaxSpeed() const void PerformanceMetrics::DrawImGuiStats(const float backbuffer_scale) { + m_vps_counter.UpdateStats(); + m_fps_counter.UpdateStats(); + const int movable_flag = Config::Get(Config::GFX_MOVABLE_PERFORMANCE_METRICS) ? ImGuiWindowFlags_None : ImGuiWindowFlags_NoMove; |
