The bug
Axolotls, bats, magma cubes, phantoms, slimes, turtles and vexes can move outside the 32 blocks of range, causing lag.
How to reproduce
Spawn some zombies and some slimes
Go in spectator mode
→ Zombies can't move, slimes can
Linked issues
Comments 6
Tested in single-player, in spectator mode (MC-227635). This affects axolotls, bats, bees, ender dragons, foxes, ghasts, goats, hoglins, magma cubes, phantoms, piglins, piglin brutes, slimes, turtles, vexes, villagers, withers and zoglins. This does not affect fish anymore.
Demonstration video
https://i.gyazo.com/6b6fd1ec394dcc0341cdd2eb5c8a280b.mp4