diff --git a/src/chunkmanager.cpp b/src/chunkmanager.cpp index 9204e38..7fda085 100644 --- a/src/chunkmanager.cpp +++ b/src/chunkmanager.cpp @@ -247,6 +247,11 @@ namespace chunkmanager } }); + debug::window::set_parameter("update_chunks_total", (int)chunks.size()); + debug::window::set_parameter("update_chunks_generated", (int) nGenerated); + debug::window::set_parameter("update_chunks_meshed", (int) nMeshed); + debug::window::set_parameter("update_chunks_freed", (int) nUnloaded); + debug::window::set_parameter("update_chunks_explored", (int) nExplored); } } diff --git a/src/debugwindow.cpp b/src/debugwindow.cpp index 1db0880..e1293c9 100644 --- a/src/debugwindow.cpp +++ b/src/debugwindow.cpp @@ -112,10 +112,14 @@ namespace debug{ if(ImGui::CollapsingHeader("Chunks")){ ImGui::Text("Total chunks present: %d", std::any_cast(parameters.at("update_chunks_total"))); - /*ImGui::Text("Chunks freed from memory: %d", - std::any_cast(parameters.at("update_chunks_delete")));*/ - ImGui::Text("Bucket size: %d", - std::any_cast(parameters.at("update_chunks_bucket"))); + ImGui::Text("Chunks generated: %d", + std::any_cast(parameters.at("update_chunks_generated"))); + ImGui::Text("Chunks meshed: %d", + std::any_cast(parameters.at("update_chunks_meshed"))); + ImGui::Text("Chunks actually freed from memory: %d", + std::any_cast(parameters.at("update_chunks_freed"))); + ImGui::Text("Chunks explored: %d", + std::any_cast(parameters.at("update_chunks_explored"))); } }catch(const std::bad_any_cast& e){ std::cout << e.what() << std::endl;