3D XPBD Chain Simulation: https://gitlab.com/-/snippets/4918914
Hard-realtime, low-variance, fixed size, no dynamic memory allocation, fixed upper bound loops, AVX2/SSE4.2/Neon. MT missing but trivial to add.
Currently not simulated chains are packed to 64-byte cache size and stored. So 32k chains are 2MB of memory. Which chain to simulate is picked based on game specific variables so not added (for example distance player, visibility, random sampling,...)










