mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 07:21:51 +00:00
fix: debug panel: set specific length for drawCallsStr
This commit is contained in:
parent
dc309c5fb3
commit
4026c5bd41
1 changed files with 4 additions and 3 deletions
|
|
@ -83,7 +83,6 @@ std::shared_ptr<UINode> create_debug_panel(
|
||||||
static float drawCallsAvgLong = drawCalls;
|
static float drawCallsAvgLong = drawCalls;
|
||||||
static std::wstring drawCallsString = L"";
|
static std::wstring drawCallsString = L"";
|
||||||
|
|
||||||
|
|
||||||
static const float AVG_ALPHA = 0.3;
|
static const float AVG_ALPHA = 0.3;
|
||||||
|
|
||||||
static size_t lastTotalDownload = 0;
|
static size_t lastTotalDownload = 0;
|
||||||
|
|
@ -152,8 +151,10 @@ std::shared_ptr<UINode> create_debug_panel(
|
||||||
panel->add(create_label(gui, []() {
|
panel->add(create_label(gui, []() {
|
||||||
drawCalls = MeshStats::drawCalls;
|
drawCalls = MeshStats::drawCalls;
|
||||||
MeshStats::drawCalls = 0;
|
MeshStats::drawCalls = 0;
|
||||||
return L"draw-calls: " + std::to_wstring(drawCalls) + L" ( avg: " +
|
auto drawCallsStr = std::to_wstring(drawCalls);
|
||||||
drawCallsString + L" )";
|
drawCallsStr.resize(6, ' ');
|
||||||
|
return L"draw-calls: " + drawCallsStr +
|
||||||
|
L" ( avg: " + drawCallsString + L" )";
|
||||||
}));
|
}));
|
||||||
panel->add(create_label(gui, []() {
|
panel->add(create_label(gui, []() {
|
||||||
return L" min/max: " +
|
return L" min/max: " +
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue