fixes and simplification

This commit is contained in:
Erin Catto 2026-11-17 15:46:36 -08:00
commit 69b2ad35e3
4 changed files with 12 additions and 11 deletions

View file

@ -1115,7 +1115,6 @@ static void b3LaunchTreeTask( b3StepContext* context, bool deferred )
if ( deferred == false )
{
context->tasks[0].deferred = false;
context->stepTasks[0].deferred = false;
b3AtomicStoreInt( &context->treePending, 0 );
}
}
@ -1460,8 +1459,6 @@ void b3World_Step( b3WorldId worldId, float timeStep, int subStepCount )
return;
}
B3_ASSERT( 0 < subStepCount );
b3TracyCZoneNC( world_step, "Step", b3_colorBox2DGreen, true );
if ( world->useScheduler )
@ -1552,8 +1549,6 @@ void b3World_Step( b3WorldId worldId, float timeStep, int subStepCount )
b3TaskBatch b3World_BeginStep( b3WorldId worldId, float timeStep, int subStepCount )
{
B3_ASSERT( 0 < subStepCount );
b3World* world = b3GetWorldFromId( worldId );
B3_ASSERT( world->locked == false );
if ( world->locked )
@ -2842,6 +2837,14 @@ static uint64_t b3GetWorldByteCount( b3World* world, bool log )
b3Log( "pairSet: %d (%d, %d)", pairSetBytes, pairSet->count, pairSet->capacity );
}
int stepContextBytes = (int)sizeof( b3StepContext );
total += (uint64_t)stepContextBytes;
if ( log )
{
b3Log( "step context: %d", stepContextBytes );
}
// Manifold block allocators, one per manifold point count
int manifoldArrayBytes = b3Array_ByteCount( world->manifoldAllocators );
int manifoldBlockBytes = 0;