Hi everyone.
I'm trying to optimize my infinite runner game. At first I had my background stuff and my game stuff Instantiate/Destroy structured by player position and realized that's not great.
So now I have my objects all pooling but am realizing that when you die and the scene loads again it's going to create all the objects again. So if you die on gate 1 I'm going backwards from an optimization standpoint. >_<
I do have a logo scene before the game starts. Should I place the object creation/manager items in there and add DontDestroyOnLoad() so when you get to the game scene the same items will be used the entire time you're playing? Or is there something else I should do to manage garbage collection so it doesn't happen when you're playing and happens before you 'tap to start' a new run?
↧