Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Moving UI Canvases and Performance

Discussion in 'UGUI & TextMesh Pro' started by FelixLightshape, Feb 3, 2020.

  1. FelixLightshape

    FelixLightshape

    Joined:
    Nov 25, 2019
    Posts:
    9
    In my current VR project (on 2018.4) I have a few canvases with an image and a text each. They are attached to the controller during the tutorial providing explanations. They only load their text in once at start, after that they're static. But since they're parented to and moving with the controllers, Unity still seems to think it's necessary to rebuild them completely every frame. This adds about 6ms performance overhead by Canvas.BuildBatch causing noticable lags. How can I fix this issue? I have thought about only using non-UI elements like Textmeshes, but that will be difficult since I load in text at the start and resize them according to their text. Any way I can keep the Canvas from rebuilding so often?
     
  2. seanybaby2

    seanybaby2

    Joined:
    May 17, 2013
    Posts:
    120
    Bumping this to see if you or anyone has a fix. I'm also on 2018.49f1