best way to pause enemy AI when no players are nearby in roblox
My rpg has around 200 NPCs with pathfinding and the server chugs. I want enemies far from players to go idle. Do you check distance every frame, use regions, or something smarter?