From d290dd8ab82d3cf8b29c79a9d12d6025048774e8 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Mon, 23 Jan 2023 02:36:27 +0100 Subject: [PATCH] add logging --- src/world/loading.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/world/loading.rs b/src/world/loading.rs index c2302e3..6a8b9e5 100644 --- a/src/world/loading.rs +++ b/src/world/loading.rs @@ -113,6 +113,8 @@ fn start_required_tasks( //Update chunk state let chunk = world.chunks.get_mut(&position).unwrap(); chunk.current_state = CurrentChunkState::Loading; + // =========== + log::info!("Started loading chunk {position}"); }, DesiredChunkState::Rendered if chunk.current_state == CurrentChunkState::Loaded => { //get needed data @@ -127,6 +129,8 @@ fn start_required_tasks( //Update chunk state let chunk = world.chunks.get_mut(&position).unwrap(); chunk.current_state = CurrentChunkState::CalculatingMesh; + // =========== + log::info!("Started generating mesh for chunk {position}"); } _ => () }