Move PerformanceMetrics from global variable to System

This avoids the static initialization order fiasco between Core and VideoCommon

Co-authored-by: Jordan Woyak <[email protected]>
This commit is contained in:
Mihai BrodschiandJordan Woyak committed 2026-03-14 16:42:21 +02:00
1 parent 7a45ede688
commit f9c3f06f0a
9 files changed
+20 -14

No files matched your search

+1 -1
View File
@@ -895,7 +895,7 @@ void VideoInterfaceManager::EndField(FieldType field, u64 ticks)
if (is_vblank_data_wanted)
m_system.GetCoreTiming().Throttle(ticks);
g_perf_metrics.CountVBlank();
m_system.GetPerfMetrics().CountVBlank();
m_system.GetVideoEvents().vi_end_field_event.Trigger();
Core::OnFrameEnd(m_system);
}