chunkmgr: debug info for chunkmgr
parent
1b4cef8958
commit
357f67aac1
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -112,10 +112,14 @@ namespace debug{
|
||||||
if(ImGui::CollapsingHeader("Chunks")){
|
if(ImGui::CollapsingHeader("Chunks")){
|
||||||
ImGui::Text("Total chunks present: %d",
|
ImGui::Text("Total chunks present: %d",
|
||||||
std::any_cast<int>(parameters.at("update_chunks_total")));
|
std::any_cast<int>(parameters.at("update_chunks_total")));
|
||||||
/*ImGui::Text("Chunks freed from memory: %d",
|
ImGui::Text("Chunks generated: %d",
|
||||||
std::any_cast<int>(parameters.at("update_chunks_delete")));*/
|
std::any_cast<int>(parameters.at("update_chunks_generated")));
|
||||||
ImGui::Text("Bucket size: %d",
|
ImGui::Text("Chunks meshed: %d",
|
||||||
std::any_cast<int>(parameters.at("update_chunks_bucket")));
|
std::any_cast<int>(parameters.at("update_chunks_meshed")));
|
||||||
|
ImGui::Text("Chunks actually freed from memory: %d",
|
||||||
|
std::any_cast<int>(parameters.at("update_chunks_freed")));
|
||||||
|
ImGui::Text("Chunks explored: %d",
|
||||||
|
std::any_cast<int>(parameters.at("update_chunks_explored")));
|
||||||
}
|
}
|
||||||
}catch(const std::bad_any_cast& e){
|
}catch(const std::bad_any_cast& e){
|
||||||
std::cout << e.what() << std::endl;
|
std::cout << e.what() << std::endl;
|
||||||
|
|
Loading…
Reference in New Issue