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.

Resets the tickloop.

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.

Returns when the tickloop was created.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.