diff --git a/src/kdtree/mod.rs b/src/kdtree/mod.rs index 1686a7e..ce8b667 100644 --- a/src/kdtree/mod.rs +++ b/src/kdtree/mod.rs @@ -129,7 +129,7 @@ impl Kdtree { self.nodes.pop(); } - if self.node_depth_during_last_rebuild as f64 * 8.0 < depth as f64 { + if self.node_depth_during_last_rebuild as f64 * 2.0 < depth as f64 { self.gather_points_and_rebuild(); } }