Hello,
I have a lot of windows implemented using uGUI with CanvasGroup attached to every window root game object.
On every given time, a single window is shown, it means that every other CanvasGroup alpha is set to 0.
I tested the app on my android device (LG G3) and im getting less than 10 FPS.
The funny thing is that on IPhone i get 60 FPS…
I tried deactivating the game objects that arnt shown and seeing if that helps and i get 60 FPS on android again.
I thought that when CanvasGroup.alpha is 0, unity will stop rendering the UI elements…
I think that this is a bug because it happens only for Android and not IPhone, i tested it on other android devices and got the same results.
Am I doing something wrong? or should i fill a bug report?
CanvasGroup.alpha=0 still produces draw calls… So no way to do it. I wrote a scripth that disables canvas when it is out of frustum. You should also do it. I wonder @Tim-C 's solutions here. What you think? When CanvasGroup.alpha=0 it still produces drawcall. Is it a bug?
What I am thinking is that there is a new component called 2d mask which uses new cull api in 5.2. Maybe you can attach it to your parent canvas. Than, whenever your windows are outside of this canvas, they are culled(not rendered). But they should be outside of this mask.
Are you sure it works that way? And im waiting for someone from unity to reply to know for sure if its a bug… Because why on iphone im getting good performance and not on android?