wip: don't lock command mutex for each mass/spring in FillGraph()
This commit is contained in:
@ -30,7 +30,7 @@ constexpr float ROT_SPEED = 1.0;
|
||||
constexpr float CAMERA_SMOOTH_SPEED = 15.0;
|
||||
|
||||
// Physics Engine
|
||||
constexpr float SIM_SPEED = 4.0; // How large each update should be
|
||||
constexpr float SIM_SPEED = 0.2; // How large each update should be
|
||||
constexpr float TIMESTEP = 1.0 / 90; // Do 90 physics updates per second
|
||||
constexpr float MASS = 1.0; // Mass spring system
|
||||
constexpr float SPRING_CONSTANT = 5.0; // Mass spring system
|
||||
|
||||
@ -188,6 +188,10 @@ public:
|
||||
auto AddSpringCmd(const State &a, const State &b) -> void;
|
||||
|
||||
auto ClearCmd() -> void;
|
||||
|
||||
auto NonLockingAddMassCmd(const State &_state) -> void;
|
||||
|
||||
auto NonLockingAddSpringCmd(const State &a, const State &b) -> void;
|
||||
};
|
||||
|
||||
// https://en.cppreference.com/w/cpp/utility/variant/visit
|
||||
|
||||
Reference in New Issue
Block a user