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

Entities (Villagers) cause massive lag when attempting to pathfind

XMLWordPrintable

    • 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. 1_14_villager_breeder.zip
          2.66 MB
        2. 2019-05-07_23.05.45.png
          2019-05-07_23.05.45.png
          417 kB
        3. 2019-05-07_23.08.49.png
          2019-05-07_23.08.49.png
          775 kB
        4. 2019-05-07_23.28.35.png
          2019-05-07_23.28.35.png
          600 kB
        5. 2019-05-07_23.29.43.png
          2019-05-07_23.29.43.png
          541 kB
        6. profile-results-2019-05-07_22.53.05.txt
          10 kB

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

              Created:
              Updated:
              Resolved:
              CHK: