Loading Optimization

My game is setup just like I’m sure most of your are…

Main Menu → Loading Screen → Gameplay

We have some assets(textures, audio clips, meshes) in our menu scene that are also used in our gameplay scene. Our loading scene is pretty bare bones.

I’m not entirely sure how unity optimizes things on the back end, but would it help to put the shared assets into the loading scene, just out of sight? Does unity recognize that it already has an asset in memory before trying to load the same asset in the next scene?

I would assume that if unity does recognize this, by the time it gets to our gameplay scene its already cleaned up by the garbage collector if its not in our loading scene.

Any light on this subject would be awesome!

-K

Unity doesn’t care if all 3 scenes have the same assets actually.
At the end of the scene its beeing cleared and the new scene data are loaded with your textures beeing reloaded.

The only thing that passes from one scene to another are things that are manually marked to be not destroyed on load.
That gives you 100% control over what happens but also 100% responsibility to clean it should you not need it somewhere.