Removed the wait for swap when XFB is used. This fixes flickering in "Fragile Dreams" and "Another Code R".
Fixes issue 3466. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6360 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
57f01776ef
commit
b565618442
|
@ -330,13 +330,7 @@ void Video_BeginField(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight)
|
||||||
{
|
{
|
||||||
if (s_PluginInitialized && g_ActiveConfig.bUseXFB)
|
if (s_PluginInitialized && g_ActiveConfig.bUseXFB)
|
||||||
{
|
{
|
||||||
if (g_VideoInitialize.bOnThread)
|
if (!g_VideoInitialize.bOnThread)
|
||||||
{
|
|
||||||
while (Common::AtomicLoadAcquire(s_swapRequested) && !s_FifoShuttingDown)
|
|
||||||
//Common::SleepCurrentThread(1);
|
|
||||||
Common::YieldCPU();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
VideoFifo_CheckSwapRequest();
|
VideoFifo_CheckSwapRequest();
|
||||||
s_beginFieldArgs.xfbAddr = xfbAddr;
|
s_beginFieldArgs.xfbAddr = xfbAddr;
|
||||||
s_beginFieldArgs.field = field;
|
s_beginFieldArgs.field = field;
|
||||||
|
|
|
@ -361,13 +361,7 @@ void Video_BeginField(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight)
|
||||||
{
|
{
|
||||||
if (s_PluginInitialized && g_ActiveConfig.bUseXFB)
|
if (s_PluginInitialized && g_ActiveConfig.bUseXFB)
|
||||||
{
|
{
|
||||||
if (g_VideoInitialize.bOnThread)
|
if (!g_VideoInitialize.bOnThread)
|
||||||
{
|
|
||||||
while (Common::AtomicLoadAcquire(s_swapRequested) && !s_FifoShuttingDown)
|
|
||||||
//Common::SleepCurrentThread(1);
|
|
||||||
Common::YieldCPU();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
VideoFifo_CheckSwapRequest();
|
VideoFifo_CheckSwapRequest();
|
||||||
s_beginFieldArgs.xfbAddr = xfbAddr;
|
s_beginFieldArgs.xfbAddr = xfbAddr;
|
||||||
s_beginFieldArgs.field = field;
|
s_beginFieldArgs.field = field;
|
||||||
|
|
|
@ -387,13 +387,7 @@ void Video_BeginField(u32 xfbAddr, FieldType field, u32 fbWidth, u32 fbHeight)
|
||||||
{
|
{
|
||||||
if (s_PluginInitialized && g_ActiveConfig.bUseXFB)
|
if (s_PluginInitialized && g_ActiveConfig.bUseXFB)
|
||||||
{
|
{
|
||||||
if (g_VideoInitialize.bOnThread)
|
if (!g_VideoInitialize.bOnThread)
|
||||||
{
|
|
||||||
while (Common::AtomicLoadAcquire(s_swapRequested) && !s_FifoShuttingDown)
|
|
||||||
//Common::SleepCurrentThread(1);
|
|
||||||
Common::YieldCPU();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
VideoFifo_CheckSwapRequest();
|
VideoFifo_CheckSwapRequest();
|
||||||
s_beginFieldArgs.xfbAddr = xfbAddr;
|
s_beginFieldArgs.xfbAddr = xfbAddr;
|
||||||
s_beginFieldArgs.field = field;
|
s_beginFieldArgs.field = field;
|
||||||
|
|
Loading…
Reference in New Issue