fix thread
This commit is contained in:
@@ -400,9 +400,6 @@ namespace rsx
|
|||||||
// TODO: exit condition
|
// TODO: exit condition
|
||||||
while (!Emu.IsStopped())
|
while (!Emu.IsStopped())
|
||||||
{
|
{
|
||||||
if (!Emu.IsRunning())
|
|
||||||
std::this_thread::sleep_for(10ms);
|
|
||||||
|
|
||||||
if (get_system_time() - start_time > vblank_count * 1000000 / 60)
|
if (get_system_time() - start_time > vblank_count * 1000000 / 60)
|
||||||
{
|
{
|
||||||
vblank_count++;
|
vblank_count++;
|
||||||
@@ -421,6 +418,8 @@ namespace rsx
|
|||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
while (Emu.IsPaused())
|
||||||
|
std::this_thread::sleep_for(10ms);
|
||||||
|
|
||||||
std::this_thread::sleep_for(1ms); // hack
|
std::this_thread::sleep_for(1ms); // hack
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user