implement very slow puzzle space exploration

This commit is contained in:
2026-03-04 19:08:16 +01:00
parent 2d111f58da
commit c9915852db
26 changed files with 1438 additions and 697 deletions

View File

@ -13,10 +13,6 @@
#include <variant>
#include <vector>
#ifdef TRACY
#include <tracy/Tracy.hpp>
#endif
class threaded_physics
{
struct add_mass {};
@ -65,8 +61,8 @@ public:
physics_state state;
public:
threaded_physics()
: physics(physics_thread, std::ref(state)) {}
explicit threaded_physics(const std::optional<BS::thread_pool<>* const> thread_pool = std::nullopt)
: physics(physics_thread, std::ref(state), std::ref(thread_pool)) {}
threaded_physics(const threaded_physics& copy) = delete;
auto operator=(const threaded_physics& copy) -> threaded_physics& = delete;
@ -86,7 +82,7 @@ private:
static auto set_octree_pool_thread_name(size_t idx) -> void;
#endif
static auto physics_thread(physics_state& state) -> void;
static auto physics_thread(physics_state& state, std::optional<BS::thread_pool<>* const> thread_pool) -> void;
public:
auto clear_cmd() -> void;