Force the runtime to prioritize the main thread and keep things smooth.