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

Bees' path finding system may cause performance issues

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 22w45a
    • 1.19.2
    • None
    • Plausible
    • Performance
    • Important

      This is more like an algorithm issue.

      Bees need to find their way back Beenests or Beehives in order to work or avoid raining. But the Bees' path finding is a little worrying, which may weigh MSPT down.

      According to my observing, if you tie a Bee with a Lead and far away from its Nest until the chunk the Nest in is uninstalled, unless there's a new Nest nearby, the Bee always bind the original Nest, resulting the chunks the far-away Nest in and the way to this Nest are always reloaded. In this case, you can apparently feel that the amount of MSPT goes higher and higher.

      I think it's more like the way of Zombified Piglins' anger to Players, Turtles' way back spawn point, etc.

      It's OK if in Singleplayer. But this feature may cause some unnecessary problems in Multiplayer, especially the server device. This feature may cost the device so many resources.

      ========

      This post may provide more info: (Title: "Bees, Chunk Loading and MSPT")

      https://www.bilibili.com/read/cv18388381

      This video contains detailed ingame situation, to help understanding the specific influences in Multiplayer: (Title: "Our Server was Almost Crashed Because of a Bee")

      https://www.bilibili.com/video/BV1nP411V7xQ

            gegy1000 [Mojang] Gegy
            ZYX_2D ZYX_2D
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: