Skip to content
Permalink
Browse files

Merge pull request #1878 from skidau/fifo-overflow-xfb

Made the CPU thread wait for the GPU thread to swap
  • Loading branch information...
degasus committed Jan 12, 2015
2 parents b3474c8 + 14ced85 commit 197c38e8659024c6c97a217329b04beea893753d
Showing with 6 additions and 0 deletions.
  1. +6 −0 Source/Core/VideoCommon/MainBase.cpp
@@ -125,6 +125,12 @@ void VideoBackendHardware::Video_EndField()
if (s_BackendInitialized)
{
SyncGPU(SYNC_GPU_SWAP);

// Wait until the GPU thread has swapped. Prevents FIFO overflows.
while (g_ActiveConfig.bUseXFB && SConfig::GetInstance().m_LocalCoreStartupParameter.bCPUThread && s_swapRequested.IsSet())
{
Common::YieldCPU();
}
s_swapRequested.Set();
}
}

0 comments on commit 197c38e

Please sign in to comment.
You can’t perform that action at this time.