- Home /
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?
Answer by ShadyProductions · Feb 07, 2018 at 10:25 AM
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.
Your answer
![](https://koobas.hobune.stream/wayback/20220612152117im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
NullReferenceException: Object reference not set to an instance of an object ??? 1 Answer
Change position of instantiated parent's children 1 Answer
Instantiating camera crashes my pc 0 Answers
How to instantiate a prefab declared in one script, from another script 2 Answers
help with instantiating gameobject at random postition from a target gameobject? 1 Answer