Hi,
UNITY 2018.1.8F1
My game is almost ready, the only worrying thing that is causing me a headache is the loading scene times. Not all scenes take ages, just some in particular and I cannot work out why this is.
The first scene of two scenes (A to B) for example is instant in loading, but when I move to the second scene ( A to B (fine) then back to A (ages)), it takes forever to load. Also, if I start in scene B, and move to scene A, it is seamless, but when going back to scene B it takes ages, so again, it is not the size of the scene A or B.
See video here:
And image of Profiler when:
I am using preload and have asynchronous set to on.
Please look at my overall build size:
Are my textures overly large?
I have gone through my long audio files and chosen Compressed In Memory and unticked Preload Audio.
But this doesn’t seem to have changed the loading time.
Big backgrounds are 4096 pixels.
See import settings:
As a test, I removed all the graphics and audio and it still had the delay
Could it be the number of animation clips? and if so, is there a way to sort this without reducing the number?
Removed all animations, didn’t really make much difference
I couldn’t really think of many reasons why scene loading would take an extra long amount of time, especially when loading one originally is fine, but then loading another and coming back is way worse. The main thing that stuck out to me as I read your post is that you are using asynchronous loading. Now, I am very new to Unity, but doesn’t this mean that you are loading a scene in the background while maintaining the current scene? Are you sure you are “getting rid of” the last scene that is used during the asynchronous load properly? That is just about the only reason I could think of that would cause a scene to take longer to load than before, but again, I do not have very much experience with loading many different scenes.