Update benchmarks (#77)

The large pyramid got larger, not slower.

Renamed b3CreateCompound to b3CreateBakedCompound and added some
comments. There is confusion between run-time compounds and baked
compounds.
This commit is contained in:
Erin Catto 2026-07-12 22:49:25 -07:00 • committed by GitHub
commit d421e45c82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 106 additions and 94 deletions

View file

@ -1144,7 +1144,7 @@ static int AllOps( void )
b3CompoundData* compound = b3CreateCompound( &compoundDef );
ENSURE( compound != NULL );
b3ShapeDef compoundShapeDef = b3DefaultShapeDef();
b3CreateCompoundShape( compoundBodyId, &compoundShapeDef, compound );
b3CreateBakedCompoundShape( compoundBodyId, &compoundShapeDef, compound );
// Throwaway shape to exercise DestroyShape
b3Sphere tmpSphere = { { 0.0f, 0.0f, 0.0f }, 0.1f };

View file

@ -570,7 +570,7 @@ static int TestCompoundHitEvents( void )
bodyDef.type = b3_staticBody;
b3BodyId compoundBodyId = b3CreateBody( worldId, &bodyDef );
b3ShapeDef compoundShapeDef = b3DefaultShapeDef();
b3CreateCompoundShape( compoundBodyId, &compoundShapeDef, compound );
b3CreateBakedCompoundShape( compoundBodyId, &compoundShapeDef, compound );
// Sphere driven straight down onto the chosen child
bodyDef = b3DefaultBodyDef();