pub struct FrameRateCap(pub u32);Expand description
The live frame-rate cap in FPS (0 = unlimited), published by GraphicsSystem (from GraphicsConfig at init, refreshed by the settings row’s live change) and read by the App-level frame pacer before each world step. Independent of the quality preset (a user/hardware preference, like vsync).
Tuple Fields§
§0: u32Trait Implementations§
Source§impl Clone for FrameRateCap
impl Clone for FrameRateCap
Source§fn clone(&self) -> FrameRateCap
fn clone(&self) -> FrameRateCap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrameRateCap
Source§impl Debug for FrameRateCap
impl Debug for FrameRateCap
Source§impl Default for FrameRateCap
impl Default for FrameRateCap
Source§fn default() -> FrameRateCap
fn default() -> FrameRateCap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FrameRateCap
impl RefUnwindSafe for FrameRateCap
impl Send for FrameRateCap
impl Sync for FrameRateCap
impl Unpin for FrameRateCap
impl UnsafeUnpin for FrameRateCap
impl UnwindSafe for FrameRateCap
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