You could flush the game state to disk when idle, but leave the process running. Though if the pressure to do so is so high you want to do it within seconds I’d wonder if paying for a bigger machine is not more reasonable.
You could flush the game state to disk when idle, but leave the process running. Though if the pressure to do so is so high you want to do it within seconds I’d wonder if paying for a bigger machine is not more reasonable.