bepuphysics2
bepuphysics2 copied to clipboard
CollisionBatcher shape data transposition intrinsification
With the adoption of .NET 5+ in the library, we have more efficient primitives for transposing AOS<->SOA. Based on the equivalent work in the solver, we can cut down the overhead of transposition significantly.
Note that the source of a shape for a CollisionBatcher
add is not always directly held by the Simulation.Shapes collection. For example, creating a pair involving the triangle of a Mesh
. Being able to load that data just in time requires a pointer to the data.
Note that the CollisionBatcher
already has caching mechanisms for putting direct queries into a pointerable cache.
These are not blockers, just something to keep in mind.