Merge pull request #4439 from Armada651/yield-ui CPU: Fix deadlocks by periodically yielding to the UI message pump.