diff --git a/src/kdtree/mod.rs b/src/kdtree/mod.rs index 3a3bb39..0c90140 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 * 1.5 < depth as f64 { + if self.node_depth_during_last_rebuild as f64 * 1.2 < depth as f64 { self.gather_points_and_rebuild(); } }