mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-22 02:19:44 +00:00
Merge branch 'main' into dev
This commit is contained in:
commit
5011a654be
7 changed files with 69 additions and 26 deletions
|
|
@ -78,6 +78,8 @@ std::shared_ptr<UINode> create_debug_panel(
|
|||
static int drawCallsMax = drawCalls;
|
||||
static std::wstring drawCallsAvgString = L"";
|
||||
static std::wstring drawCallsMinMaxString = L"";
|
||||
static int verticesCount = 0;
|
||||
static std::wstring verticesCountString = L"";
|
||||
|
||||
static size_t lastTotalDownload = 0;
|
||||
static size_t lastTotalUpload = 0;
|
||||
|
|
@ -151,6 +153,19 @@ std::shared_ptr<UINode> create_debug_panel(
|
|||
panel->add(create_label(gui, []() {
|
||||
return drawCallsMinMaxString;
|
||||
}));
|
||||
panel->add(create_label(gui, []() {
|
||||
static int frame = 0;
|
||||
verticesCount = std::max<int>(verticesCount, MeshStats::vertices);
|
||||
if (frame % 4 == 0) {
|
||||
verticesCountString =
|
||||
L"vertices: " + std::to_wstring(verticesCount) + L" (" +
|
||||
util::str2wstr_utf8(util::format_count(verticesCount)) + L")";
|
||||
}
|
||||
frame++;
|
||||
MeshStats::vertices = 0;
|
||||
verticesCount = 0;
|
||||
return verticesCountString;
|
||||
}));
|
||||
panel->add(create_label(gui, []() {
|
||||
return L"speakers: " + std::to_wstring(audio::count_speakers()) +
|
||||
L" streams: " + std::to_wstring(audio::count_streams());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue