Performace issue with game

I am a new user, I have an experiment in 3 games with Unity. The first and the second are very easy and they work well. But in my current game i have many many problems.

  • The first: My game work very well in Editor, and my test devices (Samsung Galaxy A5) but when i build it and test on another devices (Samsung Galaxy Tab A and Redmi Note 4) it crash. I have 4 scene: The Preload Scene, Shop Scene and Main Menu Scene work well, but the Gameplay scene crash when i try to click to play. I have tried many method such as: remove “Auto Graphics API”, “OpenGLES2”, try to remove some Game Objects, reduce the max size of Sprites,but nothing happen. The hardware and software of the first test devices (Samsung Galaxy A5) is not better too much to the 2 others. I do not know what happen.

  • The second: When i build it on iOS and run test on Iphone 7 plus it work well too, but the game size is too terrible, which on Android only 76MB. The game size after building and publish to Apple iTunes Store increase to 118MB (after uncheck the bitcode when upload app). It is not too bad now, i can accept this, but the most terrible is the size on the storage after installed become 1.3GB!!! I also try many method to remove bitcode, reduce max size and quality of Sprites but i seems no use. The size no reduce a bit.

Please help me!!!. I do not know what happen. It’s very terrible.

Have you tried running with the Profiler connected to see any spike before the crash?

As for sizes, you should try to use as few materials, textures and sprites as possible. If it’s nothing top-secret, could you post a few screenshots of your game scene? Also, read this: Unity - Manual: Reducing the file size of your build

Thank you very much DroidifyDevs, i have tried to reduce as much as possible the texture but it didn’t help. :(. Here are my Game Menu Scene.

3165674--241004--20472645_1516287455101413_2001327616_o.jpg
3165674--241006--20517462_1516217011775124_2083009730_o.jpg

Well that doesn’t look complicated enough to cause a crash. Could you show a screenshot of the game itself? I’m afraid you’re using many similar-looking textures instead of using the same texture for multiple objects.

Also, check the Editor log to see what’s taking up so much space: http://answers.unity3d.com/questions/153065/file-size-is-far-too-big.html

1 Like

Thank you very much. I think this is the problem because i use so many game object. 6 backgrounds with many layers, 40 enemies types, 10 skill types and about 20 characters. And all of them are different. Should I reduce them? I do not want to reduce because i have reduced for one half recently to let it work on my test device. :(:frowning:

3165706--241008--20517740_1516215995108559_927537874_o(1).jpg
3165706--241009--20502841_336132733477289_1710259095_o.jpg
3165706--241010--20524120_1517027738360718_1473404797_o.jpg

Did you look at what’s taking up space in the Editor log?

1 Like

Yes, I have watch the log. And it said my Texture is 99%.

Well I’m not sure how to answer the crash, but at least you know the answer to your large size issue. You need to make the textures smaller and use as few of them as possible.