pub struct FrameClock { /* private fields */ }Expand description
Fixed-timestep accumulator and variable-rate frame telemetry clock for real-time game loops.
Implementations§
Source§impl FrameClock
Simulation step scheduling and frame telemetry updates for FrameClock.
impl FrameClock
Simulation step scheduling and frame telemetry updates for FrameClock.
Source§impl FrameClock
impl FrameClock
pub fn get_fixed_dt(&self) -> f32
pub fn get_mut_fixed_dt(&mut self) -> &mut f32
pub fn set_fixed_dt(&mut self, val: f32) -> &mut Self
pub fn get_max_substeps(&self) -> u32
pub fn get_mut_max_substeps(&mut self) -> &mut u32
pub fn set_max_substeps(&mut self, val: u32) -> &mut Self
pub fn get_accumulator(&self) -> f32
pub fn get_mut_accumulator(&mut self) -> &mut f32
pub fn set_accumulator(&mut self, val: f32) -> &mut Self
pub fn get_delta_secs(&self) -> f32
pub fn get_mut_delta_secs(&mut self) -> &mut f32
pub fn set_delta_secs(&mut self, val: f32) -> &mut Self
pub fn get_elapsed_secs(&self) -> f64
pub fn get_mut_elapsed_secs(&mut self) -> &mut f64
pub fn set_elapsed_secs(&mut self, val: f64) -> &mut Self
pub fn get_alpha(&self) -> f32
pub fn get_mut_alpha(&mut self) -> &mut f32
pub fn set_alpha(&mut self, val: f32) -> &mut Self
pub fn get_fps(&self) -> f32
pub fn get_mut_fps(&mut self) -> &mut f32
pub fn set_fps(&mut self, val: f32) -> &mut Self
pub fn get_frame_count(&self) -> u64
pub fn get_mut_frame_count(&mut self) -> &mut u64
pub fn set_frame_count(&mut self, val: u64) -> &mut Self
pub fn get_fixed_step_count(&self) -> u64
pub fn get_mut_fixed_step_count(&mut self) -> &mut u64
pub fn set_fixed_step_count(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for FrameClock
impl Clone for FrameClock
impl Copy for FrameClock
Source§impl Debug for FrameClock
impl Debug for FrameClock
Source§impl Default for FrameClock
Default 60Hz fixed-timestep FrameClock with 8-substep safety cap.
impl Default for FrameClock
Default 60Hz fixed-timestep FrameClock with 8-substep safety cap.
Source§impl PartialEq for FrameClock
impl PartialEq for FrameClock
impl StructuralPartialEq for FrameClock
Auto Trait Implementations§
impl Forget for FrameClock
impl Freeze for FrameClock
impl Move for FrameClock
impl RefUnwindSafe for FrameClock
impl Send for FrameClock
impl Sync for FrameClock
impl Unpin for FrameClock
impl UnsafeUnpin for FrameClock
impl UnwindSafe for FrameClock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more