pub enum CatchUp {
Unbounded,
Interleave(u16),
Cap(u16),
}Expand description
What to do when a frame falls further behind than the game allows.
Variants§
Unbounded
Run every owed tick before the next render. Logic time never drops.
Interleave(u16)
Run at most this many ticks per frame, render, and carry the rest of the debt into the next frames. Logic time never drops; a long stall is caught up over several rendered frames instead of one frozen burst.
Cap(u16)
Run at most this many ticks per frame and drop the rest of the debt
(counted in TickStats::dropped). Game time then falls behind real
time, so use it only where a burst would be worse than a slowdown.
Trait Implementations§
impl Copy for CatchUp
impl Eq for CatchUp
impl StructuralPartialEq for CatchUp
Auto Trait Implementations§
impl Freeze for CatchUp
impl RefUnwindSafe for CatchUp
impl Send for CatchUp
impl Sync for CatchUp
impl Unpin for CatchUp
impl UnsafeUnpin for CatchUp
impl UnwindSafe for CatchUp
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)