Take into account the want_determinism option and do not create a DSP thread if determinism is needed.

This commit is contained in:
skidau 2014-11-01 13:57:24 +11:00
parent 5c862adfa7
commit baaccfd2f0
1 changed files with 4 additions and 2 deletions

View File

@ -162,7 +162,9 @@ static bool FillDSPInitOptions(DSPInitOptions* opts)
bool DSPLLE::Initialize(bool bWii, bool bDSPThread)
{
m_bWii = bWii;
m_bDSPThread = bDSPThread;
m_bDSPThread = true;
if (NetPlay::IsNetPlayRunning() || Movie::IsMovieActive() || Core::g_want_determinism || !bDSPThread)
m_bDSPThread = false;
requestDisableThread = false;
DSPInitOptions opts;
@ -317,7 +319,7 @@ void DSPLLE::DSP_Update(int cycles)
*/
if (m_bDSPThread)
{
if (requestDisableThread || NetPlay::IsNetPlayRunning() || Movie::IsMovieActive())
if (requestDisableThread || NetPlay::IsNetPlayRunning() || Movie::IsMovieActive() || Core::g_want_determinism)
{
DSP_StopSoundStream();
m_bDSPThread = false;