mojira.dev
MC-151150

Entities (Villagers) cause massive lag when attempting to pathfind

Villagers cause massive tps lag when trying to pathfind. They bob up and down in a 1.5 high hole and every time they do so, this causes a massive lag spike indicating their pathfinding efforts (from the profiler).

Capping them with top slabs resolves the issue by cancelling their pathfinding.

Single pathfinding routine seems to cost way to much? Villagers in the attached world are close to Y0. Is void air properly treated in the pathing algorithm?

Lagspikes are most prominent during the night - when they try to pathfind to their beds.

Linked issues

Attachments

Comments 21

[media][media][media][media][media][media]
11 more comments

Which version are you in @@unknown?

Zachary Johnson

The one you just asked for. I switched to 1.14.2 to make sure, and the issue is indeed still present. 1.14.2 just fixed the chunk caching, so that the game was playable when the villagers aren't loaded.

The one you just asked for. I switched to 1.14.2 to make sure, and the issue is indeed still present. 1.14.2 just fixed the chunk caching, so that the game was playable when the villagers aren't loaded.

Still present in 1.15.2

Still present in 1.15.2

gnembon

migrated

Community Consensus

Very Important

Performance

Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.2

Minecraft 1.14.4 Pre-Release 2

Retrieved