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

View distance affects mob spawning

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.4.2, Minecraft 1.4.6, Minecraft 1.5.1, Minecraft 1.5.2, Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 13w38a, Minecraft 13w38b, Minecraft 13w38c, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 1.7.4, Minecraft 1.7.5, Minecraft 14w11b, Minecraft 1.7.9, Minecraft 14w33c, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.1-pre5, Minecraft 1.8.1, Minecraft 1.8.3, Minecraft 1.8.7, Minecraft 1.8.9, Minecraft 1.9, Minecraft 1.10.2, Minecraft 16w40a, Minecraft 17w06a, Minecraft 1.12, Minecraft 1.12.2, Minecraft 18w10d, Minecraft 1.13-pre5, Minecraft 1.13, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w09a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 1.14
    • Fix Version/s: None
    • Environment:
      Java 6; appears to be os independent.
    • Confirmation Status:
      Community Consensus
    • Category:
      Mob spawning
    • Mojang Priority:
      Important

      Description

      Reported on forum: http://www.minecraftforum.net/topic/1541173-java-memory-and-minecraft/#entry19026273

      Apparently, the server "view distance" setting, which affects how many chunks are sent to the client for rendering, also affects mob spawns.

      What I expected: Just like in single player, under normal circumstances the server would have radius 9 chunks loaded (radius 2= tiny render distance, radius 4=short, radius 8=normal, and load a 9th chunk out so that block ticks can affect stuff into that next chunk), and would have game effects and mobs working in that range, regardless of how many chunks were being sent to the client. Equally, if I had view distance of 15, then my clients can use "far", and things would still behave normally.

      While working on server performance, memory/GC tuning, etc, I had a typo recommendation of 7 chunks instead of 9. And I got a response from someone that this severely affected mob spawns.

      What I see as the bug: View range – chunks sent from server to client for display – should be independent of game effects – effects are within 9 chunks, as mobs should despawn if loaded and more than 127 from a player, and a block 8 chunks away might tick and update into that 9th chunk. This should hold true whether only 4 chunks are sent to clients (overloaded network upload speed), or 15 chunks (lots of memory, bandwidth, and far vision support)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                keybounce Keybounce
              • Votes:
                209 Vote for this issue
                Watchers:
                83 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: