I'm currently making a procedurally generated 2D landscape. I've already done all the generation, the problem is that I need to optimize it. At first I was just giving every tile its own Polygon2D node, but obviously I can't do that because it causes major performance issues. So I looked into a way to merge all my polygons into one, and I found this reddit post. This was very useful and got really close to what I wanted, but unfortunately I can't get it to work. No matter what I do, it always either doesn't work right or just crashes. Any help, workarounds or alternatives are appreciated.