From 99b4b0470525b7c1dd0f7fc37f55733b8a36dae8 Mon Sep 17 00:00:00 2001 From: "XTra.KrazzY" Date: Thu, 20 Aug 2009 21:38:10 +0000 Subject: [PATCH] DSP LLE on Thread with LLE now boots, but no sound. The mail connection appears to be incomplete in the on thread mode, but it's much faster than on the CPU thread. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4022 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DSPCore/Src/DSPInterpreter.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Core/DSPCore/Src/DSPInterpreter.cpp b/Source/Core/DSPCore/Src/DSPInterpreter.cpp index 8840cd34cf..4e2011a53c 100644 --- a/Source/Core/DSPCore/Src/DSPInterpreter.cpp +++ b/Source/Core/DSPCore/Src/DSPInterpreter.cpp @@ -106,13 +106,11 @@ void Run() while (!(g_dsp.cr & CR_HALT)) { // Are we running? - if (DSPHost_Running()) + if (DSPHost_Running() && !DSPHost_OnThread()) break; - DSPCore_CheckExternalInterrupt(); // This number (500) is completely arbitrary. TODO: tweak. - for (int i = 0; i < 500 && !(g_dsp.cr & CR_HALT); i++) - Step(); + RunCyclesDebug(500); if (!gdsp_running) break;