Skip to content

Commit

Permalink
Merge pull request #4032 from EmptyChaos/blockingloop
Browse files Browse the repository at this point in the history
Fifo: EmulatorState should call AllowSleep instead of Wakeup when pausing (Issue 9692)
  • Loading branch information
delroth committed Jul 19, 2016
2 parents 63f9677 + 5adb29b commit fb72360
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Core/VideoCommon/Fifo.cpp
Expand Up @@ -154,7 +154,10 @@ void ExitGpuLoop()
void EmulatorState(bool running)
{
s_emu_running_state.store(running);
s_gpu_mainloop.Wakeup();
if (running)
s_gpu_mainloop.Wakeup();
else
s_gpu_mainloop.AllowSleep();
}

void SyncGPU(SyncGPUReason reason, bool may_move_read_ptr)
Expand Down

0 comments on commit fb72360

Please sign in to comment.