diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-11-06 22:08:27 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2025-11-06 22:34:40 -0600 |
| commit | da6c65bf3b83fa1cfe5da5dc5e43ec49b2786b52 (patch) | |
| tree | 1538fff3c783052707c8513738ba5cdc636ece48 /Source/Core/VideoCommon/Statistics.cpp | |
| parent | 5650be68425960131225bcd3ea5a8dfc85074148 (diff) | |
Common: Remove the string parameters from the HookableEvent interface.
Diffstat (limited to 'Source/Core/VideoCommon/Statistics.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Statistics.cpp | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/Source/Core/VideoCommon/Statistics.cpp b/Source/Core/VideoCommon/Statistics.cpp index 97c9264d18..642df5694a 100644 --- a/Source/Core/VideoCommon/Statistics.cpp +++ b/Source/Core/VideoCommon/Statistics.cpp @@ -500,18 +500,15 @@ void Statistics::DisplayScissor() void Statistics::Init() { - s_before_frame_event = GetVideoEvents().before_frame_event.Register([] { g_stats.ResetFrame(); }, - "Statistics::ResetFrame"); - - s_after_frame_event = GetVideoEvents().after_frame_event.Register( - [](const Core::System& system) { - DolphinAnalytics::Instance().ReportPerformanceInfo({ - .speed_ratio = system.GetSystemTimers().GetEstimatedEmulationPerformance(), - .num_prims = g_stats.this_frame.num_prims + g_stats.this_frame.num_dl_prims, - .num_draw_calls = g_stats.this_frame.num_draw_calls, - }); - }, - "Statistics::PerformanceSample"); + s_before_frame_event = GetVideoEvents().before_frame_event.Register([] { g_stats.ResetFrame(); }); + + s_after_frame_event = GetVideoEvents().after_frame_event.Register([](const Core::System& system) { + DolphinAnalytics::Instance().ReportPerformanceInfo({ + .speed_ratio = system.GetSystemTimers().GetEstimatedEmulationPerformance(), + .num_prims = g_stats.this_frame.num_prims + g_stats.this_frame.num_dl_prims, + .num_draw_calls = g_stats.this_frame.num_draw_calls, + }); + }); } void Statistics::Shutdown() |
