Better broadphase performance (#6272)

* Better broadphase parallelism

Moves more stuff into the parallel loop and avoids allocating the list per fixtureproxy.

* Fixes

* Better docs

* doc
This commit is contained in:
metalgearsloth
2025-11-08 02:11:31 +11:00
committed by GitHub
parent 7bc0ffb711
commit 4755cb5747
5 changed files with 157 additions and 110 deletions

View File

@@ -141,7 +141,8 @@ public sealed partial class PhysicsSystem
if ((contact.Flags & ContactFlags.Filter) != 0x0)
{
if (!ShouldCollide(fixtureA, fixtureB) ||
!ShouldCollide(uidA, uidB, bodyA, bodyB, fixtureA, fixtureB, xformA, xformB))
!ShouldCollideSlow(uidA, uidB, bodyA, bodyB, fixtureA, fixtureB, xformA, xformB) ||
!ShouldCollideJoints(uidA, uidB))
{
contact.IsTouching = false;
continue;