From 4026c5bd411b53a9d46de8c54480df765a3b3db6 Mon Sep 17 00:00:00 2001 From: alexei-zebra Date: Wed, 24 Dec 2025 23:03:53 +0300 Subject: [PATCH] fix: debug panel: set specific length for drawCallsStr --- src/frontend/debug_panel.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/frontend/debug_panel.cpp b/src/frontend/debug_panel.cpp index 9d2dcf786..934d68c65 100644 --- a/src/frontend/debug_panel.cpp +++ b/src/frontend/debug_panel.cpp @@ -83,7 +83,6 @@ std::shared_ptr create_debug_panel( static float drawCallsAvgLong = drawCalls; static std::wstring drawCallsString = L""; - static const float AVG_ALPHA = 0.3; static size_t lastTotalDownload = 0; @@ -152,8 +151,10 @@ std::shared_ptr create_debug_panel( panel->add(create_label(gui, []() { drawCalls = MeshStats::drawCalls; MeshStats::drawCalls = 0; - return L"draw-calls: " + std::to_wstring(drawCalls) + L" ( avg: " + - drawCallsString + L" )"; + auto drawCallsStr = std::to_wstring(drawCalls); + drawCallsStr.resize(6, ' '); + return L"draw-calls: " + drawCallsStr + + L" ( avg: " + drawCallsString + L" )"; })); panel->add(create_label(gui, []() { return L" min/max: " +