Say I have a gameobject with Rigidbody2D and X circle colliders. Other gameobject also has Rigidbody2D and PolygonCollider2D with 2X points. Which of two gameobjects is less expensive in terms of CPU usage when solving collisions?
The fact that we do not know how the collision solving is implemented and we also do not know your X, we can’t say anything about this. The other fact is that the question is odd. You can only solve a collision between two GameObjects, otherwise there is no collision to solve, so it’s not possible to split the cost between the two.
What you could to is setup a solver scenario, duplicate this a couple of hundred times and see what the profiler spits out during the solving frame. Do the same with a change in object count. I wouldn’t be surprised if factors like “on which side of a polygon collider does the collision occur” or “is it convex or concave” would also matter.
From my experience, questions like “which does cost more performance” can almost never be answered without profiling them, which is why I initially answered with the rule of thumb of circle collisions being the least expensive.
Circle tests are always the most performant, no matter what. It’s a simple distance between centers vs. the sum of their radii comparison