Question: how far away do you need to be for mobs to spawn?
Answer: Mobs won't spawn closer than 24 blocks. They won't move around when farther than 32 blocks. Those are the only rules you need to know for a grinder that relies on mobs walking around.