Fifo: Extract syncing loop

It's now a new helper function within common.
This commit is contained in:
degasus
2015-05-27 20:53:09 +02:00
parent ff29ffeb66
commit 02a3a063c3
9 changed files with 212 additions and 71 deletions

View File

@ -62,6 +62,7 @@ IPC_HLE_PERIOD: For the Wiimote this is the call schedule:
#include "Core/PowerPC/PowerPC.h"
#include "VideoCommon/CommandProcessor.h"
#include "VideoCommon/Fifo.h"
#include "VideoCommon/VideoBackendBase.h"
@ -189,7 +190,7 @@ static void PatchEngineCallback(u64 userdata, int cyclesLate)
static void ThrottleCallback(u64 last_time, int cyclesLate)
{
// Allow the GPU thread to sleep. Setting this flag here limits the wakeups to 1 kHz.
CommandProcessor::s_gpuMaySleep.Set();
GpuMaySleep();
u32 time = Common::Timer::GetTimeMs();