diff options
| author | Mai <mai.iam2048@gmail.com> | 2024-01-05 01:50:29 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-05 01:50:29 -0500 |
| commit | bfb417fa98c324c3045e0892a23535a9b4ebde4d (patch) | |
| tree | 7d830f22195984227e8dca5cff9d5e6156caf4d4 /Source/Core/VideoCommon/Statistics.cpp | |
| parent | 9c91b5edca7b7e09d4020d03f5c94c482e09a56c (diff) | |
| parent | 07c035e659ec6d7cc9d0b360a4a825d0cc20b439 (diff) | |
Merge pull request #12481 from AdmiralCurtiss/globals-systemtimers
Core/SystemTimers: Refactor to class, move to System.
Diffstat (limited to 'Source/Core/VideoCommon/Statistics.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Statistics.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Statistics.cpp b/Source/Core/VideoCommon/Statistics.cpp index 231bb470b4..4103dbda3d 100644 --- a/Source/Core/VideoCommon/Statistics.cpp +++ b/Source/Core/VideoCommon/Statistics.cpp @@ -10,6 +10,7 @@ #include "Core/DolphinAnalytics.h" #include "Core/HW/SystemTimers.h" +#include "Core/System.h" #include "VideoCommon/BPFunctions.h" #include "VideoCommon/VideoCommon.h" @@ -24,7 +25,8 @@ static Common::EventHook s_before_frame_event = static Common::EventHook s_after_frame_event = AfterFrameEvent::Register( [] { DolphinAnalytics::PerformanceSample perf_sample; - perf_sample.speed_ratio = SystemTimers::GetEstimatedEmulationPerformance(); + perf_sample.speed_ratio = + Core::System::GetInstance().GetSystemTimers().GetEstimatedEmulationPerformance(); perf_sample.num_prims = g_stats.this_frame.num_prims + g_stats.this_frame.num_dl_prims; perf_sample.num_draw_calls = g_stats.this_frame.num_draw_calls; DolphinAnalytics::Instance().ReportPerformanceInfo(std::move(perf_sample)); |
