aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/world.c2
-rw-r--r--src/world.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/world.c b/src/world.c
index 34747a0..e670d6f 100644
--- a/src/world.c
+++ b/src/world.c
@@ -111,6 +111,7 @@ void buildWorldBVH(World* world)
{
leaf.entities[leafIndex] = closest;
grouped[closest] = true;
+ --ungroupedCount;
}
}
@@ -135,7 +136,6 @@ void buildWorldBVH(World* world)
world->bvhTest[world->bvhTestSize] = leaf;
++world->bvhTestSize;
- --ungroupedCount;
printf("size: %d\n", world->bvhTestSize);
}
diff --git a/src/world.h b/src/world.h
index 6ad658d..c086f1d 100644
--- a/src/world.h
+++ b/src/world.h
@@ -11,7 +11,7 @@
#define BVH_LEAF_COUNT 250
#define BVH_OVERLAP_MULTIPLIER 100.0
-#define WORLD_ENTITY_MAX 1000
+#define WORLD_ENTITY_MAX 3000
#define WORLD_SIZE (Vector3){1000.0, 100.0, 1000.0}
#define WORLD_IMAGE_WIDTH 100
#define WORLD_IMAGE_HEIGHT 100