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

Display entities with a rather large shadow_radius value can cause performance issues


    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w12a
    • 23w06a, 23w07a, 1.19.4 Pre-release 1, 1.19.4 Pre-release 3
    • None
    • Confirmed
    • Performance
    • Normal
    • Platform

      When multiple display entities such as block_display render on the client and they have a larger shadow radius than default, frame rate times can be severely affected.

      This makes it difficult for creators to properly make use of this feature for specific visual effects, as the larger the radius the bigger the impact. Rendering about the same number of entities without shadow applied doesn't affect performance that significantly even if they're scaled to about ten times their size, so i don't think entity shadows (a simple drawn circle) halving client's performance is reasonable.

      How to reproduce

      1. Create a void world (optional)
      2. Summon about 10-20 or more entities with the following command (you can also slightly increase the radius value if needed):
        /summon minecraft:block_display ~ ~ ~ {shadow_radius:8}
      3. Make sure entity shadows are enabled in video settings, also increase the entity distance if needed.
      4. Check the frame rate with ALT + F3.

            gegy1000 [Mojang] Gegy
            Chavamix700 syarumi
            10 Vote for this issue
            4 Start watching this issue