Struct gameloop_timing::tickloop::TickLoopState [−][src]
pub struct TickLoopState { /* fields omitted */ }Expand description
Implementation of a tickloop according to http://www.koonsolo.com/news/dewitters-gameloop/
Implementations
Creates a new tickloop with the given target tick-rate.
Attempt to do a tick (at current tickrate per second), returning true if one happened.
Attempt to do a tock (once per second), returning true if one happened.
Returns the interpolation factor between the previous and next tick, for smooth rendering.
Returns the intended minimum duration of a single tick.
Auto Trait Implementations
impl RefUnwindSafe for TickLoopStateimpl Send for TickLoopStateimpl Sync for TickLoopStateimpl Unpin for TickLoopStateimpl UnwindSafe for TickLoopState