From aaf4dd3efe219391c83ce07aa4d24a34bc0c6608 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 8 Jul 2025 21:10:54 -0600 Subject: sooo slow --- src/world.c | 2 +- src/world.h | 2 +- 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 -- cgit v1.2.3