From fb8ac06524ac583ee6cd1ffd3aa2f2474746e704 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 12 Mar 2017 22:42:04 +0100 Subject: [PATCH] Reduce the minSize of quad tree nodes for better performance --- components/terrain/quadtreeworld.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/terrain/quadtreeworld.cpp b/components/terrain/quadtreeworld.cpp index 7afdccca66..649496e8d1 100644 --- a/components/terrain/quadtreeworld.cpp +++ b/components/terrain/quadtreeworld.cpp @@ -394,7 +394,7 @@ void QuadTreeWorld::ensureQuadTreeBuilt() if (mQuadTreeBuilt) return; - const float minSize = 1/4.f; + const float minSize = 1/8.f; QuadTreeBuilder builder(mStorage, mViewDataMap.get(), minSize); builder.build();