Struct amethyst_utils::fps_counter::FPSCounterSystem [−][src]
pub struct FPSCounterSystem;
Add this system to your game to automatically push FPS values to the FPSCounter resource with id 0
Trait Implementations
impl<'a> System<'a> for FPSCounterSystem[src]
impl<'a> System<'a> for FPSCounterSystemtype SystemData = (Read<'a, Time>, Write<'a, FPSCounter>)
The resource bundle required to execute this system. Read more
fn run(&mut self, (time, counter): Self::SystemData)[src]
fn run(&mut self, (time, counter): Self::SystemData)Executes the system with the required system data. Read more
fn running_time(&self) -> RunningTime
fn running_time(&self) -> RunningTimeReturns a hint how long the system needs for running. This is used to optimize the way they're executed (might allow more parallelization). Read more
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>Return the accessor from the [SystemData].
fn setup(&mut self, res: &mut Resources)
fn setup(&mut self, res: &mut Resources)Sets up the Resources using Self::SystemData::setup.
Auto Trait Implementations
impl Send for FPSCounterSystem
impl Send for FPSCounterSystemimpl Sync for FPSCounterSystem
impl Sync for FPSCounterSystem