- Home /
Question by
Ajesus- · Apr 25, 2018 at 10:48 PM ·
uirenderingoptimizationperformance optimizationupdate function
Text Update demands too much performance
So i'm making an android game where the score increases really fast, and this is shown in the screen via text, and i was getting really low framerate when i played the game, the important part of the code :
score.text = ((int)distanceTravelled).ToString();
long story short i used the Unity Profiler to discover that it was because of the rendering that the text had to update to every frame (showing the distanceTravelled), i made the distanceTravelled increase as half as fast, and even slower, but it still gets laggy, less but still. Is there a way to make the ui rendering or the update part less demanding? any kind of help is welcomed :)
Comment