diff options
| author | Mihai Brodschi <m.brodschi@gmail.com> | 2026-03-14 15:36:11 +0200 |
|---|---|---|
| committer | Mihai Brodschi <m.brodschi@gmail.com> | 2026-03-14 16:42:21 +0200 |
| commit | f9c3f06f0a03cbff599bb9a601454fc1ae440a69 (patch) | |
| tree | 94be00afe060c4710d0aca4af3ee2ffcf1084efe /Source/Core/VideoCommon/OnScreenUI.cpp | |
| parent | 7a45ede688d28debef23030d5e8449a800770539 (diff) | |
Move PerformanceMetrics from global variable to System
This avoids the static initialization order fiasco between Core and VideoCommon
Co-authored-by: Jordan Woyak <jordan.woyak@gmail.com>
Diffstat (limited to 'Source/Core/VideoCommon/OnScreenUI.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/OnScreenUI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/OnScreenUI.cpp b/Source/Core/VideoCommon/OnScreenUI.cpp index 0bf669ab96..209e96c9b2 100644 --- a/Source/Core/VideoCommon/OnScreenUI.cpp +++ b/Source/Core/VideoCommon/OnScreenUI.cpp @@ -417,7 +417,8 @@ void OnScreenUI::Finalize() { auto lock = GetImGuiLock(); - g_perf_metrics.DrawImGuiStats(m_backbuffer_scale); + auto& perf_metrics = Core::System::GetInstance().GetPerfMetrics(); + perf_metrics.DrawImGuiStats(m_backbuffer_scale); DrawDebugText(); OSD::DrawMessages(); DrawChallengesAndLeaderboards(); |
