mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-14 07:21:51 +00:00
update: debug panel: draw calls
This commit is contained in:
parent
ecbccd4b54
commit
881253708c
1 changed files with 5 additions and 2 deletions
|
|
@ -134,8 +134,11 @@ 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(int(drawCallsAvgLong)) +
|
return L"draw-calls: " + std::to_wstring(drawCalls) +
|
||||||
L" / " +
|
L" (avg: " + std::to_wstring(int(drawCallsAvgLong)) + L" )";
|
||||||
|
}));
|
||||||
|
panel->add(create_label(gui, []() {
|
||||||
|
return L" min/max: " +
|
||||||
std::to_wstring(std::min(drawCallsMinOld, drawCallsMin)) +
|
std::to_wstring(std::min(drawCallsMinOld, drawCallsMin)) +
|
||||||
L" / " +
|
L" / " +
|
||||||
std::to_wstring(std::max(drawCallsMaxOld, drawCallsMax));
|
std::to_wstring(std::max(drawCallsMaxOld, drawCallsMax));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue