[][src]Struct awsm::tick::MainLoopOptions

pub struct MainLoopOptions {
    pub simulation_timestep: f64,
    pub fps_alpha: f64,
    pub fps_update_interval: f64,
    pub min_frame_delay: f64,
}

Options for start_main_loop()

Fields

simulation_timestep: f64

The amount of time (in milliseconds) to simulate each time update() runs. See MainLoop.setSimulationTimestep() for details.

fps_alpha: f64

A factor that affects how heavily to weight more recent seconds' performance when calculating the average frames per second. Valid values range from zero to one inclusive. Higher values result in weighting more recent seconds more heavily.

fps_update_interval: f64

The minimum duration between updates to the frames-per-second estimate. Higher values increase accuracy, but result in slower updates.

min_frame_delay: f64

The minimum amount of time in milliseconds that must pass since the last frame was executed before another frame can be executed. The multiplicative inverse caps the FPS (the default of zero means there is no cap).

Trait Implementations

impl Default for MainLoopOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]