Struct fixedstep::FixedStep [] [src]

pub struct FixedStep { /* fields omitted */ }

Methods

impl FixedStep
[src]

[src]

Create and start a new fixedstep timer with the given frequency in Hz

[src]

Set the limit for how many updates can be performed between rendering. ie: the maximum number of times update() will return true between calls to render_delta

Use this if rendering on time is more important than keeping the simulation on time (which is usually the case for video games).

[src]

Remove the update limit

[src]

Restarts the timer at the current time and clears any waiting updates.

[src]

Returns true if enough time has elapsed to perform another update.

[src]

Return the amount of time (relative to the update period) since the last update tick.

Also refreshes the update counter (see the limit method)