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]

[src]

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

[src]

Add a new delta time value.

[src]

Get the fps of the this frame.

[src]

Get the average fps over the samplesize frames.