pub struct FrameRateStats {
pub current_fps: f64,
pub target_fps: f64,
pub average_frame_time_ms: f64,
pub is_below_target: bool,
pub frame_count: usize,
}Expand description
Frame rate statistics
Fields§
§current_fps: f64Current FPS
target_fps: f64Target FPS
average_frame_time_ms: f64Average frame time in milliseconds
is_below_target: boolWhether below target
frame_count: usizeNumber of frames sampled
Trait Implementations§
Source§impl Clone for FrameRateStats
impl Clone for FrameRateStats
Source§fn clone(&self) -> FrameRateStats
fn clone(&self) -> FrameRateStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameRateStats
impl Debug for FrameRateStats
Source§impl<'de> Deserialize<'de> for FrameRateStats
impl<'de> Deserialize<'de> for FrameRateStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for FrameRateStats
impl Serialize for FrameRateStats
impl Copy for FrameRateStats
Auto Trait Implementations§
impl Freeze for FrameRateStats
impl RefUnwindSafe for FrameRateStats
impl Send for FrameRateStats
impl Sync for FrameRateStats
impl Unpin for FrameRateStats
impl UnsafeUnpin for FrameRateStats
impl UnwindSafe for FrameRateStats
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