mojira.dev
MC-255743

Bees' path finding system may cause performance issues

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

Attachments

Comments 6

Provide screenshots. Mojang will probably not respond and if they do, they will ask for more info.

@KingEnderCat

Which kind of screenshots should I provide? The post in the link or ingame demonstration?

I tried to reproduce again but failed since I cannot uninstall the chunk to keep it no response. I'll try my best to reproduce this issue.

Also, the link in this issue may explain more info. Msg me to translate into English if necessary. Though I'm not professional with coding, I'll still try my best.

I don't think that screenshots are necessary in this case as it's more of a technical issue.

Tried my best to translate the post in the description into English. It may helps out if you completely understand after reading. Any Eastern-language user can also help dealing with this issue.

I tried many attempts but failed to reproduce again on my own :<.

ZYX_2D

gegy

Plausible

Important

Performance

1.19.2

22w45a

Retrieved