enable asynchronous octree building (somehow this is stable with morton octree)

This commit is contained in:
2026-03-06 20:04:27 +01:00
parent fe9a54a8da
commit 591f018685
6 changed files with 21 additions and 911 deletions

View File

@ -3,8 +3,9 @@
#include <raylib.h>
// TODO: Using the octree from the last frame completely breaks the physics :/
// #define ASYNC_OCTREE
// Calculate the octree parallel to the layout calculation.
// Layout uses the octree from last frame.
#define ASYNC_OCTREE
// Gets set by CMake
// #define THREADPOOL // Enable physics threadpool

View File

@ -44,10 +44,10 @@ private:
public:
octree() = default;
octree(const octree& copy) = delete;
auto operator=(const octree& copy) -> octree& = delete;
octree(octree&& move) = delete;
auto operator=(octree&& move) -> octree& = delete;
// octree(const octree& copy) = delete;
// auto operator=(const octree& copy) -> octree& = delete;
// octree(octree&& move) = delete;
// auto operator=(octree&& move) -> octree& = delete;
private:
[[nodiscard]] INLINE static inline auto get_octant(const Vector3& box_min,