CollisionShape2D versus CollisionPolygon2D Performance

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By garenwyvern

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?