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

@ -51,7 +51,7 @@ public:
b3BodyId groundId = b3CreateBody( m_worldId, &bodyDef );
b3ShapeDef shapeDef = b3DefaultShapeDef();
(void)b3CreateCompoundShape( groundId, &shapeDef, m_compound );
(void)b3CreateBakedCompoundShape( groundId, &shapeDef, m_compound );
}
b3World_SetContactRecycleDistance( m_worldId, 0.0f );
@ -138,7 +138,7 @@ public:
b3BodyId groundId = b3CreateBody( m_worldId, &bodyDef );
b3ShapeDef shapeDef = b3DefaultShapeDef();
(void)b3CreateCompoundShape( groundId, &shapeDef, m_compound );
(void)b3CreateBakedCompoundShape( groundId, &shapeDef, m_compound );
}
~CompoundSpheres() override
@ -212,7 +212,7 @@ public:
b3BodyId groundId = b3CreateBody( m_worldId, &bodyDef );
b3ShapeDef shapeDef = b3DefaultShapeDef();
(void)b3CreateCompoundShape( groundId, &shapeDef, m_compound );
(void)b3CreateBakedCompoundShape( groundId, &shapeDef, m_compound );
}
~CompoundHulls() override
@ -297,7 +297,7 @@ public:
b3BodyId groundId = b3CreateBody( m_worldId, &bodyDef );
b3ShapeDef shapeDef = b3DefaultShapeDef();
(void)b3CreateCompoundShape( groundId, &shapeDef, m_compound );
(void)b3CreateBakedCompoundShape( groundId, &shapeDef, m_compound );
delete[] hulls;
hulls = nullptr;
@ -420,7 +420,7 @@ public:
b3BodyId groundId = b3CreateBody( m_worldId, &bodyDef );
b3ShapeDef shapeDef = b3DefaultShapeDef();
(void)b3CreateCompoundShape( groundId, &shapeDef, m_compound );
(void)b3CreateBakedCompoundShape( groundId, &shapeDef, m_compound );
}
#if 0
@ -650,7 +650,7 @@ public:
b3BodyId groundId = b3CreateBody( m_worldId, &bodyDef );
b3ShapeDef shapeDef = b3DefaultShapeDef();
(void)b3CreateCompoundShape( groundId, &shapeDef, m_compound );
(void)b3CreateBakedCompoundShape( groundId, &shapeDef, m_compound );
delete[] capsules;
capsules = nullptr;