Refactored entity updates into separate threads