fix thread

This commit is contained in:
Jake 2017-06-22 21:33:32 -05:00 committed by Zangetsu38
parent 3dd03e1066
commit 3e2549e873

View file

@ -400,9 +400,6 @@ namespace rsx
// TODO: exit condition
while (!Emu.IsStopped())
{
if (!Emu.IsRunning())
std::this_thread::sleep_for(10ms);
if (get_system_time() - start_time > vblank_count * 1000000 / 60)
{
vblank_count++;
@ -421,6 +418,8 @@ namespace rsx
continue;
}
while (Emu.IsPaused())
std::this_thread::sleep_for(10ms);
std::this_thread::sleep_for(1ms); // hack
}