pub struct Metrics {
pub fps: f32,
pub frame_ms_avg: f32,
pub frame_ms_p99: f32,
pub frames_total: u64,
pub frames_dropped: u64,
pub gpu_bytes: u64,
pub draw_calls: u32,
}Expand description
A snapshot of the current diagnostics, mirroring the C ABI RlxMetrics
struct (ADR-0008) on the native side so both frontends surface identical
numbers from one computation.
Fields§
§fps: f32Frames per second over the retained window.
frame_ms_avg: f32Mean frame time over the window, in milliseconds.
frame_ms_p99: f3299th-percentile frame time over the window, in milliseconds.
frames_total: u64Frames recorded since creation (monotonic).
frames_dropped: u64Frames the renderer skipped (surface acquire returned nothing).
gpu_bytes: u64Core-tracked GPU resource bytes — an approximation (wgpu does not report driver device memory), dominated by the swapchain. A trend indicator.
draw_calls: u32Draw/render-pass calls issued on the last frame.
Trait Implementations§
impl Copy for Metrics
impl StructuralPartialEq for Metrics
Auto Trait Implementations§
impl Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnsafeUnpin for Metrics
impl UnwindSafe for Metrics
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