I'm using a Wave Function Collapse algorithm to generate a map using gameobject tiles and I wonder if I should instantiate the tiles in the same loop as I run the WFC or if I should collapse the whole grid first and then instantiate the tiles in a different loop.
Two loops sound expensive, no? But at the same time, it makes the code so much cleaner.