diff options
| author | Scott Mansell <phiren@gmail.com> | 2023-01-31 17:29:16 +1300 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2023-02-09 18:36:20 +1300 |
| commit | 31cfe8250d5a27bd586136d0b71b09736861ad7d (patch) | |
| tree | 170644a7c52c618e488e2226768d23eb0e52482e /Source/Core/VideoCommon/Statistics.cpp | |
| parent | 11de923dcb7e6a7e1b29e5b15cb2bf71ede22b97 (diff) | |
Lint fixes
Diffstat (limited to 'Source/Core/VideoCommon/Statistics.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Statistics.cpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/Source/Core/VideoCommon/Statistics.cpp b/Source/Core/VideoCommon/Statistics.cpp index a1ab6122ab..ecca851968 100644 --- a/Source/Core/VideoCommon/Statistics.cpp +++ b/Source/Core/VideoCommon/Statistics.cpp @@ -18,17 +18,18 @@ Statistics g_stats; -static EventHook s_before_frame_event = BeforeFrameEvent::Register([] { - g_stats.ResetFrame(); -}, "Statistics::ResetFrame"); - -static EventHook s_after_frame_event = AfterFrameEvent::Register([] { - DolphinAnalytics::PerformanceSample perf_sample; - perf_sample.speed_ratio = SystemTimers::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)); -}, "Statistics::PerformanceSample"); +static EventHook s_before_frame_event = + BeforeFrameEvent::Register([] { g_stats.ResetFrame(); }, "Statistics::ResetFrame"); + +static EventHook s_after_frame_event = AfterFrameEvent::Register( + [] { + DolphinAnalytics::PerformanceSample perf_sample; + perf_sample.speed_ratio = SystemTimers::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)); + }, + "Statistics::PerformanceSample"); static bool clear_scissors; |
