Merge pull request #1878 from skidau/fifo-overflow-xfb Made the CPU thread wait for the GPU thread to swap