ticker awaits an empty particle queue

This commit is contained in:
Llywelwyn 2023-08-30 05:57:03 +01:00
parent 9427ebd7c1
commit b5c4cb1fb5
2 changed files with 9 additions and 1 deletions

View file

@ -269,7 +269,7 @@ impl GameState for State {
}
}
RunState::Ticking => {
while new_runstate == RunState::Ticking {
while new_runstate == RunState::Ticking && particle_system::check_queue(&self.ecs) {
self.run_systems();
self.ecs.maintain();
try_spawn_interval(&mut self.ecs);