Hi, I’m working on a mobile game for Android, I have a large scene with thousands of objects (trees,rocks mainly). The problem is that when I Load this scene switching from the menu scene it takes 60 seconds and it’s not acceptable! In the editor it takes “only” 10s.
I was wondering if anyone could help me understand why is this happening and how to solve it!
Thanks!
Hello.
Does the scene have music/sounds? have the audio clips selected “preloading audio data” option? This can cause to spend so many time during scene loading.
Bye!
Hello @simonepostal
There are many ways to optimize your scene!
- You should always use a profiler! (Window>Profiler) Unity - Manual: Profiler overview
- LOD’s (Level of detail)
- Bake your lights!
- Static and dynamic batching
- Game design. You are making a game for your phone. So keep that in mind when you design your game.
I just threw some buzzwords out to make you look them up. I hope you see some things you don’t know and learn some new things!
Ps. Make a loading screen. When the game is loading you should inform people who are playing what is happening. Or else they would be really confused and just leave.
Kind regards,
Lars Werther