pub struct FlipHistogram { /* private fields */ }Expand description
How many flips came k VBlanks after the one before.
psx-rt keeps one in RAM (psx_rt::interrupts::flip_histogram, read with
from_buckets), so a run’s
flip pacing can be read off a frame dump or a RAM watch and checked with
below.
Implementations§
Source§impl FlipHistogram
impl FlipHistogram
Sourcepub const fn buckets(&self) -> &[u32; 8]
pub const fn buckets(&self) -> &[u32; 8]
buckets()[k]: flips k VBlanks after the previous one (the last bucket
is “that many or more”). The first flip after a reset has no previous one
and is counted in the last bucket.
Sourcepub const fn from_buckets(buckets: [u32; 8]) -> FlipHistogram
pub const fn from_buckets(buckets: [u32; 8]) -> FlipHistogram
The histogram of buckets as psx_rt::interrupts::flip_histogram returns it.
Trait Implementations§
Source§impl Clone for FlipHistogram
impl Clone for FlipHistogram
Source§fn clone(&self) -> FlipHistogram
fn clone(&self) -> FlipHistogram
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FlipHistogram
impl Debug for FlipHistogram
Source§impl Default for FlipHistogram
impl Default for FlipHistogram
Source§fn default() -> FlipHistogram
fn default() -> FlipHistogram
Returns the “default value” for a type. Read more
Source§impl PartialEq for FlipHistogram
impl PartialEq for FlipHistogram
impl Copy for FlipHistogram
impl Eq for FlipHistogram
impl StructuralPartialEq for FlipHistogram
Auto Trait Implementations§
impl Freeze for FlipHistogram
impl RefUnwindSafe for FlipHistogram
impl Send for FlipHistogram
impl Sync for FlipHistogram
impl Unpin for FlipHistogram
impl UnsafeUnpin for FlipHistogram
impl UnwindSafe for FlipHistogram
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)