flame icon indicating copy to clipboard operation
flame copied to clipboard

ShapeHitbox.allowSiblingCollision could be moved into broadphase

Open ASGAlex opened this issue 2 years ago • 0 comments

What could be improved

Ideally, we cah check allowSiblingCollision at broadphase, before creating unnecesary CollisionProspect for siblings pairs. And skip several iterations over "potentials" list later.

Why should this be improved

A little bit better performance.

Any risks?

Every broadphase implementation should implement it's unique "siblings check". An interface could be added for that.

ASGAlex avatar Jun 29 '23 00:06 ASGAlex