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:
parent
e961bfb7bf
commit
d421e45c82
18 changed files with 106 additions and 94 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue