Yield instead of sleeping rsx thread. (#3158)

Another Yield
This commit is contained in:
RipleyTom 2017-08-06 02:46:01 +02:00 committed by Ani
parent b05434bc6f
commit 2d7e91ba8a
2 changed files with 3 additions and 3 deletions

View File

@ -830,7 +830,7 @@ namespace rsx
{
if (m_internal_tasks.empty())
{
std::this_thread::sleep_for(1ms);
std::this_thread::yield();
}
else
{

View File

@ -1,4 +1,4 @@
#include "stdafx.h"
#include "stdafx.h"
#include "rsx_methods.h"
#include "RSXThread.h"
#include "Emu/Memory/Memory.h"
@ -71,7 +71,7 @@ namespace rsx
if (Emu.IsStopped())
break;
std::this_thread::sleep_for(1ms);
std::this_thread::yield();
}
}