summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2020-06-29 11:59:47 +0200
committerJosJuice <josjuice@gmail.com>2020-06-29 11:59:47 +0200
commit81d399a4f22d0fa8ad86f22e4c24a749a2cd28e1 (patch)
tree2a69a7d2e33d37ca96968d0f6918b68998887b62 /Source/Core/VideoCommon/RenderBase.cpp
parent961f93701065f099ba68fb610f699f89b804a2b4 (diff)
VideoCommon: Show profiler output again
This profiler was added in 94d9d13, but must've broken at some point.
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
-rw-r--r--Source/Core/VideoCommon/RenderBase.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp
index f3aa366af7..5cffecf1cd 100644
--- a/Source/Core/VideoCommon/RenderBase.cpp
+++ b/Source/Core/VideoCommon/RenderBase.cpp
@@ -557,6 +557,10 @@ void Renderer::DrawDebugText()
if (g_ActiveConfig.bOverlayProjStats)
g_stats.DisplayProj();
+
+ const std::string profile_output = Common::Profiler::ToString();
+ if (!profile_output.empty())
+ ImGui::TextUnformatted(profile_output.c_str());
}
float Renderer::CalculateDrawAspectRatio() const