Tile game instatiation

Hi everyone, I’m doing an arcade tile-game. I wonder if at the begining of the levels, I should instantiate all the level, or instantiate a layer before the screen and destroying those after, I think it’s best for the performance to do it all before we start to play, but maybe it’s big for the memory. Any advice?

Depends on the size of the map, if you use a mesh to render your tiles it should be relatively okay to render the entire map if it doesn’t exceed the mesh’s maximum vertices. If however you a have a gameobject for every tile (which is not recommended) it is best to not render everything at once, and use loading screens to instantiate parts of the map when the user comes in range and possibly objectpool it so that revisiting those parts of the map can load a lot faster.