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
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue