From 81d399a4f22d0fa8ad86f22e4c24a749a2cd28e1 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Mon, 29 Jun 2020 11:59:47 +0200 Subject: [PATCH] VideoCommon: Show profiler output again This profiler was added in 94d9d13, but must've broken at some point. --- Source/Core/VideoCommon/RenderBase.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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