pub struct PipelineStats {
pub broadphase_ms: f64,
pub narrowphase_ms: f64,
pub constraint_ms: f64,
pub integration_ms: f64,
pub postprocess_ms: f64,
pub total_time_ms: f64,
pub collision_pairs: u32,
pub solved_constraints: u32,
}Expand description
Per-step statistics produced by PhysicsPipeline::step.
Fields§
§broadphase_ms: f64Time spent in the broad-phase stage (ms).
narrowphase_ms: f64Time spent in the narrow-phase stage (ms).
constraint_ms: f64Time spent in the constraint-solve stage (ms).
integration_ms: f64Time spent in the integration stage (ms).
postprocess_ms: f64Time spent in the post-process stage (ms).
total_time_ms: f64Total wall-clock time for the step (ms).
collision_pairs: u32Number of collision pairs found in broad-phase.
solved_constraints: u32Number of constraints solved.
Implementations§
Source§impl PipelineStats
impl PipelineStats
Sourcepub fn accumulate(&mut self, other: &PipelineStats)
pub fn accumulate(&mut self, other: &PipelineStats)
Accumulate another stats snapshot into self (used for sub-step sums).
Sourcepub fn stage_total_ms(&self) -> f64
pub fn stage_total_ms(&self) -> f64
Sum of all per-stage times.
Trait Implementations§
Source§impl Clone for PipelineStats
impl Clone for PipelineStats
Source§fn clone(&self) -> PipelineStats
fn clone(&self) -> PipelineStats
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 PipelineStats
impl Debug for PipelineStats
Source§impl Default for PipelineStats
impl Default for PipelineStats
Source§fn default() -> PipelineStats
fn default() -> PipelineStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PipelineStats
impl RefUnwindSafe for PipelineStats
impl Send for PipelineStats
impl Sync for PipelineStats
impl Unpin for PipelineStats
impl UnsafeUnpin for PipelineStats
impl UnwindSafe for PipelineStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more