pub struct FramePlan {
pub steps: u32,
pub first_tick: u64,
pub alpha: f32,
pub dropped: Duration,
}Expand description
Updates to execute before drawing a frame.
Fields§
§steps: u32Number of fixed updates to execute.
first_tick: u64Index of the first tick in this plan.
alpha: f32Fraction between the previous and current simulation state, in [0, 1).
dropped: DurationWhole simulation time discarded to bound catch-up work.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FramePlan
impl RefUnwindSafe for FramePlan
impl Send for FramePlan
impl Sync for FramePlan
impl Unpin for FramePlan
impl UnsafeUnpin for FramePlan
impl UnwindSafe for FramePlan
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