Search Unity

Question Performance cost: Text vs texture

Discussion in 'UGUI & TextMesh Pro' started by pabuty, May 29, 2023.

  1. pabuty

    pabuty

    Joined:
    Apr 7, 2022
    Posts:
    24
    Hi,

    I wonder which would have a lower performance cost:
    - a dozen texts (mesh pro) on UI elements (world or screen space) + one or two images.
    - texture (with the text and image drawn on them) on a UI-imitating mesh or as the UI panel background.

    Please note that the texts and images are created outside the Unity project and are loaded at Start. The UI objects would be created then rendered by a stacked (HDRP composite) camera (without anti-aliasing, because the UI objects in World are moving). Because the items are external, it would also be easy to outsource their creation to an external executable and then load all of them (as PNG files) once during one frame Update.