UI shows performance drop on iOS but not on Android
I'm using a pretty complex UI for my game. It has a start game ui that disable itself when the game starts and enable another ui that has lots of sub item(for a lost screen ui) disabled. During gameplay, most of the UI elements are disabled, but the game shows huge lags during gameplay that freeze the game for up to 1 second. All of this ocurres on iOS products(iPads and iPhones) but if I build for android the game works marvelous, without any spike and a very good performance.
Is there something with the UI that could generate problems in iOS but not Android?
Answer by Socapex · Dec 31, 2015 at 07:01 PM
What compression settings are you using for the assets? Are they POT (power of two)? iOS only supports PVRTC compression, so your UI may be displaying truecolor assets instead of compressed ones (that is the fallback if your texture isn't POT).
Try using sprite packing. Also use the framedebugger to find out what is actually being drawn. Hook up the profiler on a build running on iOS, compare that to a build on android. Also this script with frame debugger is great to debug that sort of thing: https://github.com/handcircus/Unity-Resource-Checker
Keep us posted on your findings :)
They are POT, and we are using PVRTC compression. The sprites are also packed. Changing the fonts from dynamic to Unicode helped in the performance(but we lost quality with big words).
Your answer
![](https://koobas.hobune.stream/wayback/20220612054508im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Memory Issues while App Launching,Memory Spike right before Splash Screen(Cold Start?) 0 Answers
Is UI system much worse in terms of performance than using 2D sprite? 0 Answers
ios strange ui behaviour after change canvasscaler 0 Answers
iPad / iOS and Unity 5.3 : UI disappeard ? 2 Answers
Iphone 7 much slower than old android 0 Answers