[−][src]Struct awsm::tick::MainLoopOptions
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
impl Unpin for MainLoopOptions
impl Sync for MainLoopOptions
impl Send for MainLoopOptions
impl UnwindSafe for MainLoopOptions
impl RefUnwindSafe for MainLoopOptions
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,