aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.c
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 /src/world.c
parentc1e78cb750a6adadf20d4e0fd7b05b8b71a7b460 (diff)
downloadFindThings-aaf4dd3efe219391c83ce07aa4d24a34bc0c6608.tar.gz
FindThings-aaf4dd3efe219391c83ce07aa4d24a34bc0c6608.tar.bz2
FindThings-aaf4dd3efe219391c83ce07aa4d24a34bc0c6608.zip
sooo slow
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c2
1 files changed, 1 insertions, 1 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);
}