64-bit hashes (#126)

- ContactEvent sample
- Improved shadows
- #120 
- Triangle collision fixes
This commit is contained in:
Erin Catto 2026-08-11 18:08:34 -07:00 • committed by GitHub
commit f42be210a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
49 changed files with 19835 additions and 17544 deletions

View file

@ -138,14 +138,14 @@ static int NameRoundTrip( void )
ENSURE( b3ValidateReplay( b3Recording_GetData( rec ), b3Recording_GetSize( rec ), 1 ) );
b3RecPlayer* player = b3RecPlayer_Create( b3Recording_GetData( rec ), b3Recording_GetSize( rec ), 1 );
b3RecPlayer* player = b3CreatePlayer( b3Recording_GetData( rec ), b3Recording_GetSize( rec ), 1 );
ENSURE( player != NULL );
b3RecPlayer_SeekFrame( player, 20 );
ENSURE( !b3RecPlayer_HasDiverged( player ) );
ENSURE( CheckReplayNames( player ) == 0 );
b3RecPlayer_Destroy( player );
b3DestroyPlayer( player );
b3DestroyRecording( rec );
return 0;
}
@ -178,7 +178,7 @@ static int RollbackNames( void )
b3World_StopRecording( worldId );
b3DestroyWorld( worldId );
b3RecPlayer* player = b3RecPlayer_Create( b3Recording_GetData( rec ), b3Recording_GetSize( rec ), 1 );
b3RecPlayer* player = b3CreatePlayer( b3Recording_GetData( rec ), b3Recording_GetSize( rec ), 1 );
ENSURE( player != NULL );
// Play to the end so the keyframe ring is populated.
@ -195,7 +195,7 @@ static int RollbackNames( void )
ENSURE( CheckReplayNames( player ) == 0 );
}
b3RecPlayer_Destroy( player );
b3DestroyPlayer( player );
b3DestroyRecording( rec );
// Every restore reloaded the name table; dropped duplicate copies must be freed, not leaked.