Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Nominations have been announced for this years Unity Awards. Celebrate the wonderful projects made by your peers this year and get voting! Vote here!
    Dismiss Notice
  6. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

TextMesh Pro TextMeshProUGUI.LateUpdate() = performance spike

Discussion in 'Unity UI & TextMesh Pro' started by serbusfish, Oct 9, 2018.

  1. serbusfish

    serbusfish

    Joined:
    Dec 27, 2016
    Posts:
    223
    For some reason I keep getting regular performance stutters and according to the profiler it is caused by TextMesh late update. I installed TextMeshPro today, I dont believe I have used it in a way that should cause performance issues, I created 6 separate UI objects, and one of my scripts can change the text during gameplay, that's really all i've done?
     
  2. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    1,863
    TextMesh Pro does use LateUpdate() to check if the scale of the text objects has changed between frames. However, unless you have a lot of text objects, you should not see any measurable performance impact from this.

    Can you post an example of the script you are using to change the text?

    P.S. In the next release of TMP due in part to the [ExecuteInEditMode] attribute being deprecated for Unity 2019.1, TextMesh Pro will be using an update manager instead of LateUpdate(). This will result in a slight performance improvement.