Fix high CPU usage by the renderer thread busy waiting