Follow Range: 999 causes game to lag
I am making a adventure map where a zombie follows you for a long time. When i spawned him the game lagged.
Linked Issues
Created Issue:
Follow Range: 999 causes game to lag
I am making a adventure map where a zombie follows you for a long time. When i spawned him the game lagged.
relates to
is duplicated by
Not a duplicate of MC-74103, this is slightly different, and more recent.
When summoning a mob with an extreme follow range, all mobs in the world will freeze and become invulnerable, block breaking will not produce drops, and chat will not create output or take input. FPS is not impacted, however.
The comments on MC-74103 are addressing that yes, it can cause lag and that is normal, but they have not addressed that there is no way to undo this action as it freezes all mobs - I believe it can still be called a bug because after the mob is spawned the world will be permanently altered.
Probably because the zombie needs to path find all 999 blocks?
Maybe dupes or relates to
MC-17630?The amount of lag is follow range2.
It's to be expected that the game lags with 999 follow range.
Actually, Kumasasa, it's range^3^, since pathfinding works in 3D, which is how come zombies will pathfind up stairs rather than taking an easier route to get to the right spot on the floor below the player. Also I believe that the range is a radius, so it would actually be (2*range + 1)3, but since there are only 256 blocks vertically, it gets limited to (2*range +1)2 * (lowest of 256 or range) (assuming the zombie never goes outside of the vertical boundaries) which in this case makes it just a bit over a million blocks to compute.
kasamikona, of course you're right.
Filling in the numbers gives 1,022,976,256 maximum routes in that case.