bepuphysics2 icon indicating copy to clipboard operation
bepuphysics2 copied to clipboard

CollisionBatcher shape data transposition intrinsification

Open RossNordby opened this issue 3 years ago • 1 comments

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.

RossNordby avatar Sep 24 '21 20:09 RossNordby

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.

RossNordby avatar Sep 24 '21 21:09 RossNordby