summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OnScreenUI.cpp
diff options
context:
space:
mode:
authorMihai Brodschi <m.brodschi@gmail.com>2026-03-14 15:36:11 +0200
committerMihai Brodschi <m.brodschi@gmail.com>2026-03-14 16:42:21 +0200
commitf9c3f06f0a03cbff599bb9a601454fc1ae440a69 (patch)
tree94be00afe060c4710d0aca4af3ee2ffcf1084efe /Source/Core/VideoCommon/OnScreenUI.cpp
parent7a45ede688d28debef23030d5e8449a800770539 (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.cpp3
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();