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

Entities (Villagers) cause massive lag when attempting to pathfind


    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.2
    • None
    • Minecraft Java 8 on Windows, 1.14.1 pre1, Vanilla client
    • Community Consensus
    • Performance
    • Very Important

      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.

        1. 2019-05-07_23.05.45.png
          417 kB
          [Mojang] Gnembon
        2. 2019-05-07_23.08.49.png
          775 kB
          [Mojang] Gnembon
        3. 2019-05-07_23.28.35.png
          600 kB
          [Mojang] Gnembon
        4. 2019-05-07_23.29.43.png
          541 kB
          [Mojang] Gnembon
        5. profile-results-2019-05-07_22.53.05.txt
          10 kB
          [Mojang] Gnembon

            ProfMobius ProfMobius (Thomas Guimbretiere)
            gnembon [Mojang] Gnembon
            24 Vote for this issue
            11 Start watching this issue