Timing Module Update

- Implement a new timing module
- Utilize the new timing module in glium platform implementation for frame limiting and fixed engine updates timing.
This commit is contained in:
reo 2025-09-24 23:20:51 +03:00
parent 5e8897c271
commit 84ab3a26b1
9 changed files with 221 additions and 11 deletions

View file

@ -19,7 +19,8 @@ pub trait System {
/// Spawn the first entities of the world.
fn load_world(&mut self, _ctx: &mut SystemContext) {}
fn handle_event(&mut self, _ctx: &mut SystemContext) {}
fn update(&mut self, _ctx: &mut SystemContext) {}
fn fixed_update(&mut self, _ctx: &mut SystemContext) {}
fn frame_update(&mut self, _ctx: &mut SystemContext) {}
}
pub struct SystemManager {