aboutsummaryrefslogtreecommitdiff
path: root/src/pipeline
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2020-09-28 10:04:56 +0200
committerCrozet Sébastien <developer@crozet.re>2020-09-28 15:27:25 +0200
commitc031f96ac548645932c5605bfc17869618e9212b (patch)
tree569cdd0505e78932bcfe35526613e66dab18a947 /src/pipeline
parent52bbcc79fe1989f391e17b8c240a886bd8529d1f (diff)
downloadrapier-c031f96ac548645932c5605bfc17869618e9212b.tar.gz
rapier-c031f96ac548645932c5605bfc17869618e9212b.tar.bz2
rapier-c031f96ac548645932c5605bfc17869618e9212b.zip
Fix compilation when parallelism is not enabled.
Diffstat (limited to 'src/pipeline')
-rw-r--r--src/pipeline/query_pipeline.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/pipeline/query_pipeline.rs b/src/pipeline/query_pipeline.rs
index 666eb58..1a37ad8 100644
--- a/src/pipeline/query_pipeline.rs
+++ b/src/pipeline/query_pipeline.rs
@@ -62,15 +62,15 @@ impl QueryPipeline {
ray: &Ray,
max_toi: f32,
) -> Option<(ColliderHandle, &'a Collider, RayIntersection)> {
- let t0 = instant::now();
+ // let t0 = instant::now();
let inter = self.quadtree.cast_ray(ray, max_toi);
- println!(
- "Found {} interefrences in time {}.",
- inter.len(),
- instant::now() - t0
- );
+ // println!(
+ // "Found {} interefrences in time {}.",
+ // inter.len(),
+ // instant::now() - t0
+ // );
- let t0 = instant::now();
+ // let t0 = instant::now();
let mut best = f32::MAX;
let mut result = None;
@@ -83,7 +83,7 @@ impl QueryPipeline {
}
}
}
- println!("Cast time: {}", instant::now() - t0);
+ // println!("Cast time: {}", instant::now() - t0);
result
}