[][src]Trait game_time::framerate::sample::FrameRateSampler

pub trait FrameRateSampler: Debug {
    fn tick(&mut self, time: &GameTime);
fn average_frame_rate(&self) -> f64;
fn is_saturated(&self) -> bool;
fn max_samples(&self) -> u32; }

Frame rate computation.

FrameRateSampler provides methods to take the time at each frame and compute a frame rate metric through some method.

Required Methods

Update the frame rate with a new frame.

Return the current frame rate measure.

Return true if the number of samples fills the cache.

Return the number of samples to average over.

Implementors

impl FrameRateSampler for LinearAverageSampler
[src]

impl FrameRateSampler for RunningAverageSampler
[src]