mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-10 01:28:41 -06:00
add logging
This commit is contained in:
parent
38c0bfa9d1
commit
d290dd8ab8
|
@ -113,6 +113,8 @@ fn start_required_tasks(
|
||||||
//Update chunk state
|
//Update chunk state
|
||||||
let chunk = world.chunks.get_mut(&position).unwrap();
|
let chunk = world.chunks.get_mut(&position).unwrap();
|
||||||
chunk.current_state = CurrentChunkState::Loading;
|
chunk.current_state = CurrentChunkState::Loading;
|
||||||
|
// ===========
|
||||||
|
log::info!("Started loading chunk {position}");
|
||||||
},
|
},
|
||||||
DesiredChunkState::Rendered if chunk.current_state == CurrentChunkState::Loaded => {
|
DesiredChunkState::Rendered if chunk.current_state == CurrentChunkState::Loaded => {
|
||||||
//get needed data
|
//get needed data
|
||||||
|
@ -127,6 +129,8 @@ fn start_required_tasks(
|
||||||
//Update chunk state
|
//Update chunk state
|
||||||
let chunk = world.chunks.get_mut(&position).unwrap();
|
let chunk = world.chunks.get_mut(&position).unwrap();
|
||||||
chunk.current_state = CurrentChunkState::CalculatingMesh;
|
chunk.current_state = CurrentChunkState::CalculatingMesh;
|
||||||
|
// ===========
|
||||||
|
log::info!("Started generating mesh for chunk {position}");
|
||||||
}
|
}
|
||||||
_ => ()
|
_ => ()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue