diff options
author | nathan <nathansmith@disroot.org> | 2025-07-07 21:40:54 +0000 |
---|---|---|
committer | nathan <nathansmith@disroot.org> | 2025-07-07 21:40:54 +0000 |
commit | 7701d6048ec3511250274504279fdd7a72954d43 (patch) | |
tree | d7eebee742f8e27068b81804f96696f10a370b10 /src/world.h | |
parent | 4d1db458d366981fd65f221430145e6e83f094b5 (diff) | |
download | FindThings-7701d6048ec3511250274504279fdd7a72954d43.tar.gz FindThings-7701d6048ec3511250274504279fdd7a72954d43.tar.bz2 FindThings-7701d6048ec3511250274504279fdd7a72954d43.zip |
Might not be the way forward tbh
Diffstat (limited to 'src/world.h')
-rw-r--r-- | src/world.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/world.h b/src/world.h index d5c1a46..4bf5d79 100644 --- a/src/world.h +++ b/src/world.h @@ -7,8 +7,8 @@ #ifndef WORLD_H #define WORLD_H -// Max entities per node. -#define BVH_MAX 4 +#define BVH_MAX 2 // Max entities per node. +#define BVH_LEAF_COUNT 500 #define WORLD_ENTITY_MAX 1000 #define WORLD_SIZE (Vector3){1000.0, 100.0, 1000.0} @@ -32,7 +32,7 @@ typedef struct { Model heightmap; Entity entities[WORLD_ENTITY_MAX]; BVHNode bvh; - BVHNode bvhTest[250]; + BVHNode bvhTest[BVH_LEAF_COUNT]; } World; World createWorld(int seed); |