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

NBT selectors cause severe performance issues with inventories with lots of data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • 24w09a
    • 1.19.3, 23w51b
    • None
    • Linux Mint 21, openjdk 17.0.5
    • Community Consensus
    • Inventory, Performance
    • Normal
    • Platform

      Severe performance issues with large inventories

      What I expected to happen was...:
      Your inventory items would not meaningfully effect performance

      What actually happened was...:
      Increase in mspt of about 5x with a full inventory

      Using a datapack to run a command for all players with a certain SelectedItem every tick increases the mspt even more, a datapack running it 27 times per tick is enough to crash the server with a single player

      Steps to Reproduce:
      Create a bundle, fill it with 64  unique items

      Create a shulker box, fill it with 27 copies of the bundle

      Fill your inventory with the shulker boxes

       

      Also effects 1.17.1

        1. datapack.zip
          6 kB
        2. playerdata.dat
          34 kB
        3. MC-259284-24w09a.png
          MC-259284-24w09a.png
          57 kB

            Unassigned Unassigned
            Mathmagician Matthew Lang
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: