fix bugs
still kinda shitty tho. like, we lost enough timer accuracy to have visible effects (aging cart tests that fail, FMVs that play too slow, etc)
This commit is contained in:
parent
b569c03884
commit
aba4610d45
|
@ -461,7 +461,7 @@ s32 ARMv5::Execute()
|
|||
else
|
||||
{
|
||||
Cycles = CyclesToRun;
|
||||
NDS::RunTimingCriticalDevices(0, CyclesToRun >> ClockShift);
|
||||
//NDS::RunTimingCriticalDevices(0, CyclesToRun >> ClockShift);
|
||||
return Cycles;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -764,11 +764,13 @@ u32 RunFrame()
|
|||
if (CPUStop & 0x0FFF0000)
|
||||
{
|
||||
s32 cycles = ndscyclestorun - ARM7Offset;
|
||||
s32 critcycles = cycles;
|
||||
cycles = DMAs[4]->Run(cycles);
|
||||
if (cycles > 0) cycles = DMAs[5]->Run(cycles);
|
||||
if (cycles > 0) cycles = DMAs[6]->Run(cycles);
|
||||
if (cycles > 0) cycles = DMAs[7]->Run(cycles);
|
||||
ARM7Offset = -cycles;
|
||||
RunTimingCriticalDevices(1, critcycles);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue