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

Mob AI causes performance issues in 1.14

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.14.4 Pre-Release 1
    • Fix Version/s: None
    • Labels:
    • Environment:
      Windows 10, i7-3630qm, GTX 660m, 16GB RAM
    • Confirmation Status:
      Unconfirmed
    • Category:
      Performance

      Description

      Probably affects all 1.14 releases, but debug reports from 1.14.4 pre-release 1 were analyzed.

      Mob AI seems to be the most important cause of performance issues (especially cod AI when near water). 

      I've created three debug report under three circumstances:

      1. Swimming in an ocean - 8.98 ticks per second, ~25 FPS
      2. Walking on land - 16.79 ticks per second ~50 FPS
      3. Walking on land with doMobSpawning and doMobLoot both set to false, with a custom datapack that runs 
        tp @e[type=!player] 0 0 0

        then

        kill @e[type=!player]

        every tick. - 18.83 ticks per second ~55 FPS, often above 70

      In case #1, cods seem to account for 52.53% of the tick time.
      In case #2, no type of mob seem to take more than 13.30% of the tick time.
      In case #3, chunkSource takes the longest but the game is now playable.

      Sorry if I interpreted any of the debug report info incorrectly. The datapack (kp-disable-entities.zip) and the three debug reports are attached.

      Extra info: fancy graphics, smooth lighting maximum, mipmap levels: off, render distance: 12, clouds: fancy, particles: all, entity shadows: on, VSync: off

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kypnrp kypnrp
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: