From 70117f93a27703d234918fc4b8985d6403d54994 Mon Sep 17 00:00:00 2001 From: LunaMoo Date: Sun, 17 Dec 2017 18:48:47 +0100 Subject: [PATCH] Remove Timing from simple frame stats as it's just confusing. --- UI/ProfilerDraw.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UI/ProfilerDraw.cpp b/UI/ProfilerDraw.cpp index a9d5e055ad..2e3f421490 100644 --- a/UI/ProfilerDraw.cpp +++ b/UI/ProfilerDraw.cpp @@ -238,8 +238,10 @@ void DrawProfile(UIContext &ui) { total += val; if (val < 0.1f) catStatus[i] = PROFILE_CAT_IGNORE; - if (!strcmp(name, "timing")) + if (!strcmp(name, "timing")) { timing = val; + catStatus[i] = PROFILE_CAT_IGNORE; + } if (catStatus[i] == PROFILE_CAT_VISIBLE) { float y = legendStartY + legendNum++ * rowH; ui.DrawTextShadow(name, legendStartX, y, fontABGR, ALIGN_VBASELINE); @@ -247,8 +249,6 @@ void DrawProfile(UIContext &ui) { } } ui.DrawTextShadow("Total:", legendStartX, legendStartY + legendNum * rowH, fontABGR, ALIGN_VBASELINE); - ui.DrawTextShadow(StringFromFormat("%.1f%%", total).c_str(), legendStartX + 148, legendStartY + legendNum++ * rowH, fontABGR, ALIGN_VBASELINE); - ui.DrawTextShadow("Normal:", legendStartX, legendStartY + legendNum * rowH, fontABGR, ALIGN_VBASELINE); ui.DrawTextShadow(StringFromFormat("%.1f%%", total - timing).c_str(), legendStartX + 148, legendStartY + legendNum * rowH, fontABGR, ALIGN_VBASELINE); } }