SW GFX plugin: Make dualcore mode work better, and make it exit more cleanly.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4412 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard 2009-10-12 19:12:09 +00:00
parent a887a475e3
commit 489d7dfc3c
1 changed files with 4 additions and 1 deletions

View File

@ -159,13 +159,16 @@ void Video_EnterLoop()
while (fifoStateRun)
{
if (!CommandProcessor::RunBuffer())
g_VideoInitialize.pPeekMessages();
if (!CommandProcessor::RunBuffer()) {
Common::SleepCurrentThread(1);
}
}
}
void Video_ExitLoop()
{
fifoStateRun = false;
}
void Video_AddMessage(const char* pstr, u32 milliseconds)