- Home /
Layout Has High CPU Cost Every Frame UI
Hey guys,
I just discovered something that really saved my project, so I'd just like to share the tip with you. First, the question - Why does my CPU incur extremely high UI cost (WillRenderCanvases > Layout call in Profiler) when I'm not breaking batching or changing anything in my static UI?
The answer: Rect Mask 2D. If your UI is sufficiently big, rect mask 2D will destroy you. Don't use it unless you actually need it! Went from 2.5-4 ms a frame on Oculus Go to .5ms. Huge win. Hopefully will be for you too.
Your answer
Follow this Question
Related Questions
[Optimization] - Is "Generate Physics shape", in Import settings, necessary for UI? 1 Answer
Heavy use of layout groups and content fitters performance 1 Answer
Get Position of a specific letter in UI Text containing line breaks 0 Answers
User Interface for game object customization. 0 Answers
How to store colors for future use 2 Answers