Created Map with Gridtiles and Noise, now I need to fill the lakes. Need Ideas

So I just moved all of that into the construction script and here it works as I initially wanted it: Run this beast, take whatever time you need but just run it.

So its

  1. Creates the Grid (128x128) and saves each grid point and each grid point location into Arrays (0,3 sec compile time)
  2. Calculate and set grid tiles to “Edge of the map” (not yet in use, maybe useful later on) (still 0,3 sec)
  3. Create Noise and set grid tiles accordingly to Water/Land Arrays (compile time now 0,67 sec)
  4. Scann the map to find all Water tiles that are Ocean, remove them from Water array (now 7,6 sec)
  5. Create all the instanced meshes from the Water/Land/Ocean/MapEdge Arrays. (now 8,7 sec)

All of this in 8,7 Seconds. I dont know if its bad or good since I have no comparison. But the scann is abviously the big oof :smiley:
But your inward ring sounds like an improvement already. Yesterday I tried to start with the bottom left corner so I only need up and right. But it lead to some holes where the coastline is very curvy. I will try yours as well :slight_smile:

BR
Sven