
Xray engine isn't exactly the most efficient/streamlined in regards to this. It is basically lag time between a background process becoming a foreground process. Online basically means they become visible to the player and all their logic, AI, script processing, etc comes to the foreground which uses more processing power as offline they are essentially just data. When NPC's/mutants are within switch distance range they go from offline (processing in the background) to online.
