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

Scale attribute causes extreme TPS loss with the ender dragon


    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.20.5 Pre-Release 2
    • 23w51b, 24w12a
    • None
    • Confirmed
    • Commands, Performance
    • Normal
    • Platform

      The bug

      Setting the scale attribute on the ender dragon causes extreme TPS loss. TPS loss increases the higher you set the attribute. Even just setting it to 10 makes the game almost unplayable with more than 80ms per tick, while other entities have no issues with higher scale values.

      Also see the TPS graph on the attached screenshot.

      This happens both with the naturally spawned dragon in the end and one spawned manually in the overworld.

      How to reproduce

      1. Go to the end or /summon a ender_dragon
      2. Open the TPS graph with F3+2
      3. /execute as @e[type=minecraft:ender_dragon] run attribute @s minecraft:generic.scale base set 8
      4. Watch the TPS and FPS die

            gegy1000 [Mojang] Gegy
            Malfrador Malfrador
            6 Vote for this issue
            2 Start watching this issue