small fix for lle-int
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6739 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
293b5cb4c1
commit
77346cc254
|
@ -217,7 +217,7 @@ static int dsp_slice = 0;
|
|||
static bool dsp_is_lle = false;
|
||||
|
||||
//time given to lle dsp on every read of the high bits in a mailbox
|
||||
static const int DSP_MAIL_SLICE=12;
|
||||
static const int DSP_MAIL_SLICE=72;
|
||||
|
||||
void DoState(PointerWrap &p)
|
||||
{
|
||||
|
|
|
@ -105,32 +105,32 @@ void Step()
|
|||
}
|
||||
|
||||
// Used by thread mode.
|
||||
void Run()
|
||||
{
|
||||
int checkInterrupt = 0;
|
||||
gdsp_running = true;
|
||||
while (!(g_dsp.cr & CR_HALT) && gdsp_running)
|
||||
{
|
||||
if (jit)
|
||||
jit->RunForCycles(1);
|
||||
else {
|
||||
// Automatically let the other threads work if we're idle skipping
|
||||
if(DSPAnalyzer::code_flags[g_dsp.pc] & DSPAnalyzer::CODE_IDLE_SKIP)
|
||||
Common::YieldCPU();
|
||||
|
||||
Step();
|
||||
|
||||
// Turns out the less you check for external interrupts, the more
|
||||
// sound you hear, and it becomes slower
|
||||
checkInterrupt++;
|
||||
if(checkInterrupt == 500) { // <-- Arbitrary number. TODO: tweak
|
||||
DSPCore_CheckExternalInterrupt();
|
||||
checkInterrupt = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
gdsp_running = false;
|
||||
}
|
||||
//void Run()
|
||||
//{
|
||||
// int checkInterrupt = 0;
|
||||
// gdsp_running = true;
|
||||
// while (!(g_dsp.cr & CR_HALT) && gdsp_running)
|
||||
// {
|
||||
// if (jit)
|
||||
// jit->RunForCycles(1);
|
||||
// else {
|
||||
// // Automatically let the other threads work if we're idle skipping
|
||||
// if(DSPAnalyzer::code_flags[g_dsp.pc] & DSPAnalyzer::CODE_IDLE_SKIP)
|
||||
// Common::YieldCPU();
|
||||
//
|
||||
// Step();
|
||||
//
|
||||
// // Turns out the less you check for external interrupts, the more
|
||||
// // sound you hear, and it becomes slower
|
||||
// checkInterrupt++;
|
||||
// if(checkInterrupt == 500) { // <-- Arbitrary number. TODO: tweak
|
||||
// DSPCore_CheckExternalInterrupt();
|
||||
// checkInterrupt = 0;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// gdsp_running = false;
|
||||
//}
|
||||
|
||||
// This one has basic idle skipping, and checks breakpoints.
|
||||
int RunCyclesDebug(int cycles)
|
||||
|
@ -151,7 +151,7 @@ int RunCyclesDebug(int cycles)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DSPCore_CheckExternalInterrupt();
|
||||
//DSPCore_CheckExternalInterrupt();
|
||||
|
||||
while (true)
|
||||
{
|
||||
|
@ -209,7 +209,7 @@ int RunCycles(int cycles)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DSPCore_CheckExternalInterrupt();
|
||||
//DSPCore_CheckExternalInterrupt();
|
||||
|
||||
while (true)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue