aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-07-09 03:10:54 +0000
committernathan <nathansmith@disroot.org>2025-07-09 03:10:54 +0000
commitaaf4dd3efe219391c83ce07aa4d24a34bc0c6608 (patch)
treedd86b412fe9451b4dc1fdb8e812515ccd6f39962
parentc1e78cb750a6adadf20d4e0fd7b05b8b71a7b460 (diff)
downloadFindThings-aaf4dd3efe219391c83ce07aa4d24a34bc0c6608.tar.gz
FindThings-aaf4dd3efe219391c83ce07aa4d24a34bc0c6608.tar.bz2
FindThings-aaf4dd3efe219391c83ce07aa4d24a34bc0c6608.zip
sooo slow
-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