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

Entities (Villagers) cause massive lag when attempting to pathfind

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.2
    • Labels:
      None
    • Environment:
      Minecraft Java 8 on Windows, 1.14.1 pre1, Vanilla client
    • Confirmation Status:
      Community Consensus
    • Category:
      Performance
    • Mojang Priority:
      Very Important

      Description

      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.

        Attachments

        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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: