Skip to content

Conversation

@ikpil
Copy link
Owner

@ikpil ikpil commented Dec 27, 2025

  • Updated B2ContactSolvers.cs math functions (b2AddW, b2SubW, b2MulW, etc.) to pass B2FloatW and B2Vec2W parameters by reference using the in keyword.
  • Updated B2Vec2W constructor to accept B2FloatW parameters by reference.
  • These changes reduce struct copying overhead and improve performance for SIMD-related operations.

- Updated `B2ContactSolvers.cs` math functions (`b2AddW`, `b2SubW`, `b2MulW`, etc.) to pass `B2FloatW` and `B2Vec2W` parameters by reference using the `in` keyword.
- Updated `B2Vec2W` constructor to accept `B2FloatW` parameters by reference.
- These changes reduce struct copying overhead and improve performance for SIMD-related operations.
@ikpil ikpil merged commit 84e25d1 into main Dec 27, 2025
10 checks passed
@ikpil ikpil deleted the pr/refactor--Optimize-B2FloatW-and-B2Vec2W-operations-with-'in'-modifier branch December 27, 2025 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants