Very slow startup on Android after update to unity 5.3

After update unity from version 5.1 to version 5.3, FIRST startup on android is very slow… i see black screen 12s. It is only at first time or when i clear cache using android settings → apps → my app → clear cache.

Can i do something to fix it? Anybody help me?

I have the same issue. Have you managed to find out what more about this?

Thanks!

I can confirm that things are OK in 5.1.5. Will also test 5.2.

On 5.2.5 (all tests made with a simple Unity3d 2D project that displays a small image centered on the screen):

  • there is a larger delay after the Unity Logo is shown;
  • the delay appears only when the application runs for the first time;
  • clearing the app cache makes the delay appear again.

On 5.3/5.4 the long delay is very annoying, as it shows before the logo - so the application appears to have crashed or just showing a black screen.

We have the same issue. Any help?

I had a similar problem. For my case, a GameObject on the scene had a lot of public variables for Materials. Each of the variables was assigned a Material object (they have their own custom shaders) by drag-dropping on the Inspector.
This situation caused the app create /sdcard/Android/data/(com.app.name)/cache/UnityShaderCache/ folder on the device and expand the shaders from the Materials there at the first start-up. This process spent much time.
I removed the public variables for Materials and made them load lazily by using Resources.Load(“material path in the resources”) at runtime. This resolved my problem.

1 Like

That is an interesting solution, it seems to fit with the hypothesis that the large delays are caused by shader compilation times.

However, I still have the problem with an empty scene. This may be caused by a phone with extremely slow shader compilation.

Unity 5.1.x and 5.4.x is only usable versions for android game. 5.2 and 5.3 has lots of problems.

Some long loading time is happens when you use image effect on your camera. For example motion blur effect takes 10x more time to load on mobiles.

This problem is for EMPTY project (new project)… no camera effect, no shaders, no gameobjects.
However …
I recently had a case that the slowdown was caused by a large MP3 file with loading mode “Decompress on load”… solution: set to “streaming”

1 Like