Text optimalization for UI (Performance Hit Upon Changing Text)

,

Hello!
I was busy with analyzing my performance, and I noticed that there was a peak in the profiler when setting 3 texts to a different string upon a press of a button. A bunch of other stuff happens when pressing that button, but I disabled the text and the performance hit was gone.

I’ve read through some articles, which say its got something to do with either Unity rendering each letter by scanning the font for the letter, for each letter? Or by using Best Fit?

I disabled the three texts’ Best Fit and got some performance gain, but overall still a noticeable thing. Note that I’m not setting it to insanely long strings, these are only 0-15 words long.

If it helps, the peak was noted as Font.CacheFontForText and also repeatedly as CanvasUpdate.PreRender

Thanks in advance!