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:
parent
5e8897c271
commit
84ab3a26b1
9 changed files with 221 additions and 11 deletions
|
|
@ -7,4 +7,12 @@ pub struct PlatformContext {
|
|||
pub asset_manager: ModelManagerRef,
|
||||
pub frame_width: f32,
|
||||
pub frame_height: f32,
|
||||
pub time_ctx: TimeContext,
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct TimeContext {
|
||||
pub frame_dt: f32,
|
||||
pub fixed_dt: f32,
|
||||
pub alpha: f32,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue