You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf: Optimize core math, dynamic trees, and delegates using 'in' modifier and Span
- Updated B2MathFunction methods to pass structs (B2Vec2, B2Rot, B2Transform, etc.) by read-only reference ('in') to reduce copying overhead.
- Updated B2DynamicTrees methods to pass B2AABB by read-only reference ('in').
- Refactored b2PartitionSAH in B2DynamicTrees to use Span<B2AABB> instead of arrays for improved performance.
- Updated delegate definitions in B2Delegates (e.g., b2CustomFilterFcn, b2PreSolveFcn, DrawSolidPolygonFcn) to use 'in' parameters for structs like B2ShapeId, B2Transform, and B2Vec2.
- Adjusted related callback invocations and implementations across the project to align with these signature changes.
0 commit comments