Struct fps_clock::FpsClock
[−]
[src]
pub struct FpsClock { /* fields omitted */ }
A structure that keeps your game loop running at a constant FPS
Methods
impl FpsClock
[src]
fn new(fps: u32) -> FpsClock
Constructs a new FpsClock from the specified FPS
fn fps(&self) -> u32
Returns the FPS that this FpsClock is set to run at.
fn tick(&mut self)
Makes the game loop slow down to run at the correct FPS