SIMD hull collision (#93)

SIMD based hull collision inspired by example code from @cairnc in #54 

<img width="1676" height="1332" alt="image"
src="https://github.com/user-attachments/assets/58b137bd-bf7b-4c99-863c-64341b973a3d"
/>

- Fixed #78
- Fixed #85 and fixed CI to error on UB.
- Updated benchmarks
- Added AMD scalar benchmarks
- Added Neon benchmarks
- More determinism unit tests
- Sample leak detection
- Added b3Body_AllowFastRotation
- Added b3Body_IsFastRotationAllowed
- Bumped b3HullData version
- Bumped b3CompoundData version
This commit is contained in:
Erin Catto 2026-07-18 22:43:03 -07:00 • committed by GitHub
commit c37cfe4cd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
84 changed files with 3898 additions and 1151 deletions

View file

@ -869,6 +869,22 @@ void CreateJunkyard( b3WorldId worldId )
b3DestroyHull( hull );
}
void GetJunkyardCapacity(b3Capacity* capacity)
{
#ifdef NDEBUG
capacity->staticShapeCount = 16;
capacity->dynamicShapeCount = 20 * 20 * 24 + 1;
capacity->staticBodyCount = 16;
capacity->dynamicBodyCount = 20 * 20 * 24 + 1;
capacity->contactCount = 250 * 1024;
#else
capacity->staticShapeCount = 16;
capacity->dynamicShapeCount = 20 * 20 * 2 + 1;
capacity->staticBodyCount = 16;
capacity->dynamicBodyCount = 20 * 20 * 2 + 1;
#endif
}
void StepJunkyard( b3WorldId worldId, int stepCount )
{
(void)worldId;
@ -887,6 +903,15 @@ void StepJunkyard( b3WorldId worldId, int stepCount )
// Huge pile of large convexes, ported from PEEL. Each convex is the hull of 32 random points on a
// sphere. A fixed LCG seed makes the hull identical across runs so results compare directly.
void GetConvexPileCapacity( b3Capacity* capacity )
{
#ifdef NDEBUG
capacity->dynamicShapeCount = 5120;
capacity->dynamicBodyCount = 5120;
capacity->contactCount = 50 * 1024;
#endif
}
// PEEL's BasicRandom, kept verbatim so the point set matches the original
typedef struct ConvexPileRandom
{