From ae2c9347954217fe006a5e6b208ca6243e6bfb7d Mon Sep 17 00:00:00 2001 From: mylek4 Date: Sun, 28 Nov 2010 09:49:41 +0000 Subject: [PATCH] minor fix for r6486 Return values from RunCycles isn't consistent/meaningful at the moment so assuming it runs as many cycles as asked. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6487 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_DSP_LLE/Src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_DSP_LLE/Src/main.cpp b/Source/Plugins/Plugin_DSP_LLE/Src/main.cpp index 4e67168eab..f3b46a0524 100644 --- a/Source/Plugins/Plugin_DSP_LLE/Src/main.cpp +++ b/Source/Plugins/Plugin_DSP_LLE/Src/main.cpp @@ -188,7 +188,11 @@ THREAD_RETURN dsp_thread(void* lpParameter) { int cycles = (int)cycle_count; if (cycles > 0) { - cycles -= jit ? DSPCore_RunCycles(cycles) : DSPInterpreter::RunCycles(cycles); + if (jit) + DSPCore_RunCycles(cycles); + else + DSPInterpreter::RunCycles(cycles); + Common::AtomicAdd(cycle_count, -cycles); } // yield?