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

Rapid cod spawning and despawning causing performance issues

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.15.1, 1.15.2, 20w06a
    • 20w10a
    • None
    • Confirmed
    • Mob spawning, Performance
    • Very Important

    Description

      Similar to MC-134696 but I was told to create a new issue.

      The bug

      Cods can rapidly spawn and despawn. They don't respect their cap. This can cause 400+ cods to spawn, dropping the server performance. 

      This happens more regularly when moving into unloaded chunks, but this is not always required. After a minute the numbers go back down. I printed the number of cods in chat every 10 seconds and attached a screenshot with the results. 

      How to reproduce

      1. Load chunks near an ocean where cods spawn.
      2. Cods should start spawning immediately.
      3. /execute if entity @e[type=cod] shows how many cods are loaded. In my testing this could be as high as 500 entities.
      4. Notice the server performance has dropped significantly.

      Attachments

        1. Code_2VmE0F7Kxl.png
          87 kB
          [Helper] Misode
        2. javaw_FBT6GpoURv.png
          173 kB
          [Helper] Misode
        3. profile-results-2019-12-24_13.12.17.txt
          47 kB
          [Helper] Misode

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Misoloo [Helper] Misode
              Votes:
              11 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                CHK: