update ModelBatch semantics

This commit is contained in:
MihailRis
2024-06-23 01:57:28 +03:00
parent ea0add3017
commit 94fe5eeb5b
7 changed files with 97 additions and 35 deletions
+5
View File
@@ -62,6 +62,11 @@ std::shared_ptr<UINode> create_debug_panel(
panel->add(create_label([](){
return L"meshes: " + std::to_wstring(Mesh::meshesCount);
}));
panel->add(create_label([](){
int drawCalls = Mesh::drawCalls;
Mesh::drawCalls = 0;
return L"draw-calls: " + std::to_wstring(drawCalls);
}));
panel->add(create_label([](){
return L"speakers: " + std::to_wstring(audio::count_speakers())+
L" streams: " + std::to_wstring(audio::count_streams());