mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-03 09:35:24 +02:00
Fifo: rewrite sync on idle skipping hack
Now it's done without a busy loop
This commit is contained in:
1 parent
9bdaa00e2d
commit
b020ae1c5d
10 files changed
+30
-39
No files matched your search
@@ -480,11 +480,8 @@ void Idle()
|
||||
//When the FIFO is processing data we must not advance because in this way
|
||||
//the VI will be desynchronized. So, We are waiting until the FIFO finish and
|
||||
//while we process only the events required by the FIFO.
|
||||
while (g_video_backend->Video_IsPossibleWaitingSetDrawDone())
|
||||
{
|
||||
ProcessFifoWaitEvents();
|
||||
Common::YieldCPU();
|
||||
}
|
||||
ProcessFifoWaitEvents();
|
||||
g_video_backend->Video_Sync();
|
||||
}
|
||||
|
||||
idledCycles += DowncountToCycles(PowerPC::ppcState.downcount);
|
||||
|
||||
Reference in new issue
Block a user