From c7de0654342ef63ee1b21451a1c16862a2d9d07f Mon Sep 17 00:00:00 2001 From: rtm516 Date: Sat, 7 Mar 2026 17:22:44 +0000 Subject: [PATCH] Add chunk count information --- Minecraft.Client/Gui.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Minecraft.Client/Gui.cpp b/Minecraft.Client/Gui.cpp index 80731ecc0..bbd78c5d0 100644 --- a/Minecraft.Client/Gui.cpp +++ b/Minecraft.Client/Gui.cpp @@ -862,10 +862,13 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse) std::vector lines; - // Header lines lines.push_back(ClientConstants::VERSION_STRING); lines.push_back(minecraft->fpsString); lines.push_back(L"E: " + std::to_wstring(minecraft->level->getAllEntities().size())); // Could maybe use entity::shouldRender to work out how many are rendered but thats like expensive + // TODO Add server information with packet counts - once multiplayer is more stable + int renderDistance = app.GetGameSettings(iPad, eGameSetting_RenderDistance); + // Calculate the chunk sections using 16 * (2n + 1)^2 + lines.push_back(L"C: " + std::to_wstring(16 * (2 * renderDistance + 1) * (2 * renderDistance + 1)) + L" D: " + std::to_wstring(renderDistance)); lines.push_back(minecraft->gatherStats4()); // Chunk Cache // Dimension