Best optimization for multiple UI Canvas from prefabs
Hi everyone, hope you're doing fine during these tough times.
I have a problem with my Unity game, the profiler is showing high ms for:
PostLateUpdate.PlayerUpdateCanvases: 15.06ms
UIEvents.WillRenderCanvases: 15.06ms
Canvas.BuildBatch: 14.04ms
Profiler Screenshot https://imgur.com/0UcpTOw
So I think the culprit that's causing these spikes are the UI Canvas per car and we have like 30+ of these cars in the game. https://imgur.com/RbdGWXa
Do you have some suggestions for the settings for the UI? I already disabled the raycast target option to help ease it but it wasn't enough.
If it helps, I'm using TextMeshProUGUI for the text.
All suggestions are greatly appreciated.
Your answer
![](https://koobas.hobune.stream/wayback/20220613003021im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Updated with UI text element not correct (same frame) 0 Answers
Make Text Appear When Looking at Object in VR 1 Answer
Canvas Text Help 0 Answers
uGUI Text draw calls 1 Answer
How can I check if there is no free space in the Text component? 1 Answer