enable asynchronous octree building (somehow this is stable with morton octree)
This commit is contained in:
@ -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
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user