mojira.dev
MC-149278

Wolf AI can cause extremely severe lag spikes when in combat with a distant mob

I am playing multiplayer on a 1.14 server. I have a tamed wolf (sitting) at home in loaded spawn chunks, on a floating platform at high altitude, and I am several thousand blocks away from its location. Whenever I attack a new mob, there is a major server lag spike, up to 30 seconds or more. Debug profiling shows that this is due to minecraft:wolf/ai/newAi/targetSelector/goalUpdate/canSee.

 

Attached is a debug log started before attacking the mob and stopped shortly after the lag spike concluded.

Attachments

Comments 0

No comments.

Nathan McCoy

migrated

Unconfirmed

(Unassigned)

Minecraft 1.14

Minecraft 1.14.1 Pre-Release 1

Retrieved