Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-249635

Text rendering can heavily impact frame rate performance

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.17.1, 1.18.2, 22w12a, 22w15a, 22w16b, 22w19a, 1.19 Pre-release 4, 1.19, 22w24a, 1.19.1, 1.19.2, 1.19.3 Pre-release 2, 1.19.3, 23w04a, 23w05a, 23w06a, 1.19.4 Pre-release 1, 1.19.4, 23w16a, 23w17a, 23w18a, 1.20.1, 23w31a, 1.20.2, 23w44a, 24w33a, 1.21.1, 1.21.2 Pre-Release 1, 1.21.4
    • None
    • Confirmed
    • Performance, Rendering
    • Important
    • Platform

      For some reason text rendering seems to consume a lot of resources, such that a large amount of text on the screen tends to drastically drop frame rate in some scenarios.
      Nameplates are an example of this when enough of them are shown, notably when a large amount of players get rendered on the screen or in servers that make use of armor stands as "holograms" to make floating text.

      There are other cases where this issue is present as well, however as they're a lot i only listed the most notable ones:

      • Entity nameplates / text_display entities (the most prevalent).
      • HUD text (chat, tab list, sidebar, etc).
      • GUI text (menus, item tooltips, etc).
      • Glow signs (text rendered 9 times, see MC-226966).
      • Obfuscated text ("scrambled" text effect, see MC-253502).
      • Debug menu (F3).
      • etc...

      How to reproduce

      1. Summon a few text display entities with the following command:
        /summon minecraft:text_display ~ ~ ~ {text:'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}
        
      2. Notice the frame rate, with enough nameplates you might notice the fps drop.

        1. 2022-03-26_23.25.52.png
          251 kB
          syarumi
        2. 2022-03-26_23.27.00.png
          167 kB
          syarumi
        3. 2022-03-26_23.27.55.png
          179 kB
          syarumi
        4. 2022-04-15_15.38.39.png
          534 kB
          [Mod] ampolive
        5. 2022-04-15_15.38.45.png
          637 kB
          [Mod] ampolive
        6. 2022-05-30_22.05.01.png
          180 kB
          syarumi
        7. 2022-05-30_22.05.25.png
          214 kB
          syarumi

            Unassigned Unassigned
            Chavamix700 syarumi
            Votes:
            21 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              CHK: