Improved QuadTree to be more efficient with spatial searching and insertion

This commit is contained in:
Obique PSWG
2015-06-07 13:29:42 -05:00
parent 957d0df7d9
commit e62d36a166
3 changed files with 179 additions and 126 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ public class ObjectAwareness {
private void loadQuadTree() {
for (Terrain t : Terrain.values()) {
quadTree.put(t, new QuadTree<SWGObject>(-8192, -8192, 8192, 8192));
quadTree.put(t, new QuadTree<SWGObject>(16, -8192, -8192, 8192, 8192));
}
}