I am making a top-down 2D game (my first Godot game - loving it so far). Currently, I am using RectangleShape2Ds under CollisionShape2Ds to define the edges of areas. The edges of areas can be covered by these, but since areas are not just rectangles some areas have a dozen or so RectangleShape2Ds to get every edge.
I saw (but have not used) there is a CollisionPolygon2D. If it is possible to draw out the edges with just one CollisionPolygon2D, would that be better performance than the rectangles, or does the engine internally process these into essentially the same thing?