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

Villager AI (POI detection) pegs CPU at 100%

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • Minecraft 19w11a, Minecraft 19w13a, Minecraft 1.14.1, Minecraft 1.14.2
    • None
    • Linux, 3.2 GHz Haswell
    • Community Consensus
    • Performance, Village system

      Fine-Structure is a casual-play 1.13.2 server that we use for testing purposes. Loading it up into 19w11a exposes a new severe performance problem. One thread dominates the CPU time and pegs the CPU at 100%. I used async-profiler to analyze this, and a screenshot is attached. The full profile in HTML form can also be found at "https://www.dropbox.com/s/33lqat9x3yzkdny/tree2.html?dl=0".

      According to people from the Fabric project, this is villager AI. Rockenroll4life confirmed that there's a new AI engine.

      We do have a fair number of villagers in one area. In 1.13.2, there were lag problems due to entity collisions. In 1.14, the collision problem is fixed, but now there's significant lag caused by villager AI processing instead.

        1. image-2019-05-26-00-28-09-334.png
          17 kB
          Jason Hsu
        2. profile-results-2019-05-13_11.25.18.txt
          76 kB
          Timothy Miller
        3. Screen Shot 2019-03-13 at 3.05.39 PM.png
          1.16 MB
          Timothy Miller
        4. tree.html
          447 kB
          Timothy Miller

            Unassigned Unassigned
            theosib2 Timothy Miller
            Votes:
            42 Vote for this issue
            Watchers:
            25 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: