aboutsummaryrefslogtreecommitdiff
path: root/src
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
parent52bbcc79fe1989f391e17b8c240a886bd8529d1f (diff)
downloadrapier-c031f96ac548645932c5605bfc17869618e9212b.tar.gz
rapier-c031f96ac548645932c5605bfc17869618e9212b.tar.bz2
rapier-c031f96ac548645932c5605bfc17869618e9212b.zip
Fix compilation when parallelism is not enabled.
Diffstat (limited to 'src')
-rw-r--r--src/geometry/waabb.rs4
-rw-r--r--src/pipeline/query_pipeline.rs16
2 files changed, 9 insertions, 11 deletions
diff --git a/src/geometry/waabb.rs b/src/geometry/waabb.rs
index 4981373..1706370 100644
--- a/src/geometry/waabb.rs
+++ b/src/geometry/waabb.rs
@@ -1,7 +1,5 @@
use crate::geometry::Ray;
-#[cfg(feature = "serde-serialize")]
-use crate::math::DIM;
-use crate::math::{Point, Vector, SIMD_WIDTH};
+use crate::math::{Point, Vector, DIM, SIMD_WIDTH};
use crate::utils;
use ncollide::bounding_volume::AABB;
use num::{One, Zero};
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
}