Struct amethyst_utils::fps_counter::FPSCounter[][src]

pub struct FPSCounter { /* fields omitted */ }

The FPSCounter resource needed by the FPSCounterSystem.

Add it to your resources with id 0 to be able to use the FPSCounterSystem.

Usage:

Get the FPSCounter resource from the world then call either frame_fps or sampled_fps to get the FPS.

Methods

impl FPSCounter
[src]

Creates a new FPSCounter that calculates the average fps over samplesize values.

Add a new delta time value.

Get the fps of the this frame.

Get the average fps over the samplesize frames.

Trait Implementations

impl Default for FPSCounter
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for FPSCounter

impl Sync for FPSCounter