Running virtual world smoothly with NPCs