summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-07-10 23:34:50 -0400
committerLioncash <mathew1800@gmail.com>2019-07-10 23:34:54 -0400
commitd4337eebdeb999df380394cdd20d054f5e9fe375 (patch)
treeb2c04979677aa138cbc3202c510a96040ba9adcd /Source/Core/VideoCommon/RenderBase.cpp
parent9802a5e16b5860d1c6b42beeb1b8ca883467e1b1 (diff)
VideoCommon/Statistics: Rename stats global to g_stats
Makes the global variable follow our convention of prefixing g_ on global variables to make it obvious in surrounding code that it's not a local variable.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
-rw-r--r--Source/Core/VideoCommon/RenderBase.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp
index 06471c8560..795a96e40d 100644
--- a/Source/Core/VideoCommon/RenderBase.cpp
+++ b/Source/Core/VideoCommon/RenderBase.cpp
@@ -524,7 +524,7 @@ void Renderer::DrawDebugText()
}
if (g_ActiveConfig.bOverlayStats)
- stats.Display();
+ g_stats.Display();
if (g_ActiveConfig.bShowNetPlayMessages && g_netplay_chat_ui)
g_netplay_chat_ui->Display();
@@ -533,7 +533,7 @@ void Renderer::DrawDebugText()
g_netplay_golf_ui->Display();
if (g_ActiveConfig.bOverlayProjStats)
- stats.DisplayProj();
+ g_stats.DisplayProj();
}
float Renderer::CalculateDrawAspectRatio() const
@@ -1280,8 +1280,8 @@ void Renderer::Swap(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height, u6
DolphinAnalytics::PerformanceSample perf_sample;
perf_sample.speed_ratio = SystemTimers::GetEstimatedEmulationPerformance();
- perf_sample.num_prims = stats.this_frame.num_prims + stats.this_frame.num_dl_prims;
- perf_sample.num_draw_calls = stats.this_frame.num_draw_calls;
+ 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));
if (IsFrameDumping())
@@ -1289,7 +1289,7 @@ void Renderer::Swap(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height, u6
// Begin new frame
m_frame_count++;
- stats.ResetFrame();
+ g_stats.ResetFrame();
g_shader_cache->RetrieveAsyncShaders();
g_vertex_manager->OnEndFrame();
BeginImGuiFrame();