pub struct SimTiming {
pub ticks: u32,
pub tick_dt: f32,
pub alpha: f32,
}Expand description
Fixed-timestep budget for the current frame, published by the App-level
simulation clock before each world step. ticks is how many fixed steps the
simulation systems (physics, behavior) run this frame; tick_dt is the
seconds each step advances; alpha is the accumulator remainder as a
fraction of tick_dt, used to blend the previous and current simulated
states when writing render-facing transforms. Absent (a directly-stepped
world with no App), the default is exactly one tick per step with no
blending, which makes bare World::step loops deterministic.
Fields§
§ticks: u32Fixed simulation steps to run this frame.
tick_dt: f32Seconds each fixed step advances.
alpha: f32Accumulator remainder as a fraction of tick_dt.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimTiming
impl RefUnwindSafe for SimTiming
impl Send for SimTiming
impl Sync for SimTiming
impl Unpin for SimTiming
impl UnsafeUnpin for SimTiming
impl UnwindSafe for SimTiming
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more