diff options
| author | JosJuice <josjuice@gmail.com> | 2020-06-29 11:59:47 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2020-06-29 11:59:47 +0200 |
| commit | 81d399a4f22d0fa8ad86f22e4c24a749a2cd28e1 (patch) | |
| tree | 2a69a7d2e33d37ca96968d0f6918b68998887b62 /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | 961f93701065f099ba68fb610f699f89b804a2b4 (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.cpp | 4 |
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 |
