- Home /
Why would UI Layout be such a hog, and I don't even have any in my scene? CurvedUI!
I've got a mobile app (Android), which worked great in 5.5 (It's a VR video player).
I updated it to 2017.1p5
I attach to Profiler, and it's telling me 65-75% of the time is spent in UI Layout. See pic. Seriously. The oddest part is, I'm not using any Layout components AT ALL as far as I can tell.
Update: I tracked it to CurvedUI, which is updating it's meshes on every Update. Anyone seen this before?
Any ideas?
Well, do you somehow update something on your UI every frame? It looks like it has to rebuild the mesh every frame. Also how complex is your UI? 1.8 $$anonymous$$B seems to be quite a bit.
It could however be related to the curved UI. I don't have that asset so i can't tell. Does it have a setting for how detailed the "curve" is?
Thanks for the suggestion. It was indeed CurvedUI being called on each object, each frame, to modify itself. I'm not quite sure why, or what settings (if any) would prevent that. I've kluged it to only go through the Update function once, and it works well for me now, in that the UI curves, and still works. I'm not making this an answer because it's not a good fix.