Optimizations (#161)

- cache body sim indices and split out fat aabb
- deferred restitution
- the manifold point normal velocity is only computed for restitution or
hit events, otherwise it is zero
This commit is contained in:
Erin Catto 2026-09-20 15:54:52 -07:00 • committed by GitHub
commit 9e5a4cde86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
49 changed files with 3395 additions and 864 deletions

View file

@ -12,7 +12,7 @@
// Direct unit test of the cache: dedup, reverse lookup, empty/null, arbitrary length, no leak.
static int CacheUnit( void )
{
int32_t base = b3GetByteCount();
int64_t base = b3GetByteCount();
b3NameCache cache = b3CreateNameCache();
@ -155,7 +155,7 @@ static int NameRoundTrip( void )
// the tracked byte count to return to baseline so a re-load that drops duplicate copies leaks nothing.
static int RollbackNames( void )
{
int32_t base = b3GetByteCount();
int64_t base = b3GetByteCount();
b3Recording* rec = b3CreateRecording( 0 );
ENSURE( rec != NULL );