aboutsummaryrefslogtreecommitdiff
path: root/src/counters/mod.rs
diff options
context:
space:
mode:
authorThierry Berger <contact@thierryberger.com>2024-06-03 15:20:24 +0200
committerThierry Berger <contact@thierryberger.com>2024-06-03 15:20:24 +0200
commite1ed90603e618e28f48916690d761e0d8213e2ad (patch)
tree8399da9825ca9ee8edd601b1265e818fa303b541 /src/counters/mod.rs
parentfe336b9b98d5825544ad3a153a84cb59dc9171c6 (diff)
parent856675032e76b6eb4bc9e0be4dc87abdbcfe0421 (diff)
downloadrapier-e1ed90603e618e28f48916690d761e0d8213e2ad.tar.gz
rapier-e1ed90603e618e28f48916690d761e0d8213e2ad.tar.bz2
rapier-e1ed90603e618e28f48916690d761e0d8213e2ad.zip
Merge branch 'master' into collider-builder-debug
Diffstat (limited to 'src/counters/mod.rs')
-rw-r--r--src/counters/mod.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/counters/mod.rs b/src/counters/mod.rs
index 324696f..99a627a 100644
--- a/src/counters/mod.rs
+++ b/src/counters/mod.rs
@@ -17,7 +17,7 @@ mod timer;
/// Aggregation of all the performances counters tracked by rapier.
#[derive(Clone, Copy)]
pub struct Counters {
- /// Whether thi counter is enabled or not.
+ /// Whether this counter is enabled or not.
pub enabled: bool,
/// Timer for a whole timestep.
pub step_time: Timer,
@@ -69,7 +69,7 @@ impl Counters {
}
}
- /// Notfy that the time-step has finished.
+ /// Notify that the time-step has finished.
pub fn step_completed(&mut self) {
if self.enabled {
self.step_time.pause();
@@ -88,7 +88,7 @@ impl Counters {
}
}
- /// Notfy that the custom operation has finished.
+ /// Notify that the custom operation has finished.
pub fn custom_completed(&mut self) {
if self.enabled {
self.custom.pause();
@@ -182,6 +182,12 @@ measure_method!(
stages.solver_time
);
measure_method!(ccd_started, ccd_completed, ccd_time, stages.ccd_time);
+measure_method!(
+ query_pipeline_update_started,
+ query_pipeline_update_completed,
+ query_pipeline_update_time,
+ stages.query_pipeline_time
+);
measure_method!(
assembly_started,
@@ -202,12 +208,6 @@ measure_method!(
solver.velocity_update_time
);
measure_method!(
- position_resolution_started,
- position_resolution_completed,
- position_resolution_time,
- solver.position_resolution_time
-);
-measure_method!(
broad_phase_started,
broad_phase_completed,
broad_phase_time,