diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-11-07 16:32:06 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-07 16:32:06 -0600 |
| commit | 5af9bd5e4630c671e8a7c71a598d803af028f195 (patch) | |
| tree | 65e0b320f383eb90afd22842ada615b5409e727d /Source/Core/VideoCommon/Statistics.cpp | |
| parent | 51cd0a676a7979f31751af28485c8cfcd9e5a483 (diff) | |
| parent | da6c65bf3b83fa1cfe5da5dc5e43ec49b2786b52 (diff) | |
Merge pull request #14074 from jordan-woyak/HookableEvent-no-strings
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() |
