add logging

This commit is contained in:
griffi-gh 2023-01-23 02:36:27 +01:00
parent 38c0bfa9d1
commit d290dd8ab8

View file

@ -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}");
}
_ => ()
}