mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
some more minor optimizations introduced by aavindraa, i only corrected evaluation order using some ().
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5883 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -222,16 +222,9 @@ THREAD_RETURN dsp_thread(void* lpParameter)
|
||||
{
|
||||
int cycles = (int)cycle_count;
|
||||
if (cycles > 0) {
|
||||
if (jit)
|
||||
{
|
||||
cycles -= DSPCore_RunCycles(cycles);
|
||||
}
|
||||
else {
|
||||
cycles -= DSPInterpreter::RunCycles(cycles);
|
||||
}
|
||||
cycles -= jit ? DSPCore_RunCycles(cycles) : DSPInterpreter::RunCycles(cycles);
|
||||
Common::AtomicAdd(cycle_count, -cycles);
|
||||
}
|
||||
|
||||
// yield?
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user