mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-12-22 20:08:20 -06:00
add logging
This commit is contained in:
parent
38c0bfa9d1
commit
d290dd8ab8
|
@ -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}");
|
||||
}
|
||||
_ => ()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue