Simulation distance

Simulation distance is a world-creation setting that controls mob spawning and despawning, and tick updates. , simulation distance is a video setting related to render distance, to restrict tick update distance.
== Bedrock Edition ==
=== Control ===
The simulation distance control appears in the settings page when creating a new world. The values that can be set range from 4 to 12 in increments of 2 (even numbers only).
=== Tick updates ===
Simulation distance determines the maximum chunk distance in which entities get updated, and blocks and fluids are ticked. This is not a Euclidean distance, but taxicab distance in Bedrock Edition.
These ticks include random ticking of crops, amethysts and such. The simulation distance is purely chunk based and has nothing to do with the player's position inside the chunk.
Pure redstone circuits continue to function infinitely far away, but break down where they interact with hoppers, pistons, observers, and anything else that needs tick updates to function.
=== Spawning and despawning ===
Simulation distance restricts the maximum distance at which mobs spawn and despawn.
The minimum spawning distance is 24 blocks (Euclidean distance) from the player. The maximum spawning distance and despawning distances are determined by the simulation distance, which is a quasi-spherical shell having the following ranges relative to the player:
Simulation distance	Spawning range 	Random despawn range 	Instant despawn range
4 	24-44 blocks 	34-44 blocks 	>44 blocks from nearest player
6 	24-128 blocks, except in chunks bordering unloaded chunks 	34-128 blocks if no damage taken within last 30 seconds	>128 blocks, or when entering a chunk on the edge of the simulation distance (technically a chunk not fully surrounded by 8 chunks that were simulated on the last game tick)
8-12 	24-128 blocks, except in chunks bordering unloaded chunks and chunks with a center more than 96 blocks awayThe 96-block horizontal limit is reported as a bug at MCPE-102197	34-128 blocks if no damage taken within last 30 seconds	>128 blocks, or when entering a chunk on the edge of the simulation distance (technically a chunk not fully surrounded by 8 chunks that were simulated on the last game tick)
Within the simulation distance, there is a chance of the mob spawning algorithm attempting to run per chunk, per tick.
Realms worlds use a simulation distance of 9 chunks and 4 chunks .
Regardless of simulation distance, mobs with persistence do not despawn, and fish always despawn when they are more than 40 blocks from the nearest player.
=== Mob cap ===
Mobs in chunks outside a ticking area still count toward the per-mob population control caps as long as they were previously loaded within the simulation distance at some time.
== Java Edition ==
In Java Edition, the minimum value of simulation distance is 5. The maximum value is the same as for render distance: 32 for 64-bit Java installations with at least 1 gigabyte of memory, and 16 in all other cases. If render distance is set to a lower value than simulation distance, the lower value is used instead.
Simulation distance defines a square region of chunks around the player where entities are ticked. Using distance of 6 for instance, entities may move normally within a 13×13 chunk column around the player chunk. One more chunk out, within a one-chunk-thick square frame surrounding this region, redstone may run, fluid may flow, and crops may grow (subject to normal chunk ticking rules). Beyond that nothing moves or changes. But these game aspects are also subject to chunk loading rules. See also Chunk#Ticking.
The simulation distance setting is ideally less than render distance because updating all entities within the simulation distance is more taxing on performance than the equivalent level of render distance.
=== Entity visibility ===
Not all entities within the loaded and visible chunks are displayed to the player. There are three criteria that hide entities from view. First, the server does not send any information about an entity to the client if the entity is beyond a certain distance from the player, controlled by "entity-broadcast-range-percentage" in the server.properties file. Second, the client does not render entities depending on both "Render distance" and "Entity distance" video settings. Apparently, render distance (in chunks) multiplied by a magic number (about 8.5 for mobs, 2 for items) and scaled by the "entity distance" percentage gives the radius in blocks for a sphere around the player beyond which entities are hidden. For example, using render distance 10 and 100% entity distance, a skeleton disappears from view if the player stands more than 85 blocks directly above it. The magic number varies slightly for different types of mobs, such as being larger for spiders and ghasts, even though ghasts still frequently attack player from beyond visibility range. Finally, the client has a hard visibility limit of 128 blocks horizontally, defining another circular column. Entities are displayed only if they are inside the intersection of this sphere and two cylinders.
== References ==
Category:UI