[][src]Trait mutiny::time::FrameCount

pub trait FrameCount: Debug {
    fn target_frame_rate(&self) -> f64;
fn target_time_per_frame(&self) -> FloatDuration;
fn remaining_frame_time(&self, time: &GameTime) -> FloatDuration;
fn tick(&mut self, time: &GameTime);
fn average_frame_rate(&self) -> f64;
fn is_running_slow(&self, time: &GameTime) -> bool; }

A frame rate counter and tracker.

Required Methods

The target frame rate for the simulation.

The target wall time for each frame.

The duration remaining to reach the optimal frame time.

The duration can be negative if the current frame has executed longer than the optimal time.

Update the counter for a new frame.

The average frame rate for the current frame.

Return whether the simulation is running slowly.

Implementations on Foreign Types

impl<S> FrameCount for FrameCounter<S> where
    S: FrameRateSampler
[src]

Implementors