Commit Graph

9 Commits

Author SHA1 Message Date
e7d4170b77 wip: wait until data is ready and has been consumed (couples physics and rendering thread again) 2026-02-24 13:16:00 +01:00
74065b7ea2 wip: don't lock command mutex for each mass/spring in FillGraph() 2026-02-24 12:13:56 +01:00
550970f8a1 wip: integrating threaded decoupled physics
Current Issues:
- HUGE memory leak
- HUGE amount of needles copying
- FillGraph() does thousands of lock_guards instead of one
- Can no longer rely on new states appearing immediately - have to check
each access
- Physics run as fast as possible, no constant sim speed`
- Irregular long freezes
2026-02-24 02:05:09 +01:00
bfe8c6d572 store masses/springs inside vector and manage unordered_maps for a state<->index mapping
this reduces the time required to iterate over all masses/springs
because data is stored in contiguous memory
2026-02-24 00:01:04 +01:00
404a76654c update compiler flags, fix tracy allocation profiling, fix compiler warnings 2026-02-23 23:01:30 +01:00
59a4303d62 mark visited and starting states 2026-02-23 14:41:20 +01:00
861fb34d39 fix octree corruption bug because of node vector reallocation 2026-02-23 13:46:00 +01:00
cc4f8ce865 refactor usage of std::string to refer to states + improve initial mass positioning 2026-02-22 00:12:47 +01:00
0d3913e27e refactor state management and input handling into separate classes 2026-02-21 22:09:42 +01:00