mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +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, []() {
|
||||
drawCalls = MeshStats::drawCalls;
|
||||
MeshStats::drawCalls = 0;
|
||||
return L"draw-calls: " + std::to_wstring(int(drawCallsAvgLong)) +
|
||||
L" / " +
|
||||
return L"draw-calls: " + std::to_wstring(drawCalls) +
|
||||
L" (avg: " + std::to_wstring(int(drawCallsAvgLong)) + L" )";
|
||||
}));
|
||||
panel->add(create_label(gui, []() {
|
||||
return L" min/max: " +
|
||||
std::to_wstring(std::min(drawCallsMinOld, drawCallsMin)) +
|
||||
L" / " +
|
||||
std::to_wstring(std::max(drawCallsMaxOld, drawCallsMax));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue