I just released an iOS game, and while trying to export the Android counterpart, I noticed that it is sooooooo much slower. By FAR. Like the first time to even open the game, it takes around 20 seconds between the splash screen and the menu screen. And it just gets worse when going into different parts of the game.
Using the profiler (full disclosure, first time I ever opened it) I saw this that I’m attaching, which explains a bit why it’s being so slow… the question is, how can I avoid that from happening? (and why doesn’t it happen on iOS)
I have almost all my assets in the resources folder. It looks like that is bad practice, which I never knew as I always worked with iOS and everything works just fine there.
An iPhone 7 (where everything works great and menu screen shows up in less than 1 second) vs a Samsung Galaxy S10, where it takes at least 15 seconds to show the menu screen.
That is A LOT to be loading in the menu screen. Now the question I have, is WHY is it loading all that, when for example all those “loading_” files are not even used on that screen?
Also, does anyone know if “GizmoIconAtlas_pix32” is something internal from Unity? It is not mine, and it doesn’t show up when I perform a search of my assets.
I also noticed that Fonts are HUGE. Are there any recommendation on how, or if it is even possible to bring those down?
For fonts, best option is to remove unused characters from the font/atlas. Specially if your game is English only. Other option is only load font for selected language.