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>
This commit is contained in:
Mihai Brodschi
2026-03-14 15:36:11 +02:00
parent 7a45ede688
commit f9c3f06f0a
9 changed files with 20 additions and 14 deletions

View File

@@ -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();