mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 06:39:14 +01:00
Reduce some DI command delays. Fix DKCR hanging with DSP HLE. My other games continue to work.
This commit is contained in:
parent
6fd96a162f
commit
5a3435255b
@ -477,7 +477,7 @@ int CWII_IPC_HLE_Device_di::GetCmdDelay(u32 _CommandAddress)
|
|||||||
u32 const Size = Memory::Read_U32(BufferIn + 0x04);
|
u32 const Size = Memory::Read_U32(BufferIn + 0x04);
|
||||||
// Delay depends on size of read, that makes sense, right?
|
// Delay depends on size of read, that makes sense, right?
|
||||||
// More than ~1150K "bytes / sec" hangs NSMBWii on boot.
|
// More than ~1150K "bytes / sec" hangs NSMBWii on boot.
|
||||||
// Less than ~800K "bytes / sec" hangs DKCR randomly.
|
// Less than ~800K "bytes / sec" hangs DKCR randomly (ok, probably not true)
|
||||||
return SystemTimers::GetTicksPerSecond() / 975000 * Size;
|
return SystemTimers::GetTicksPerSecond() / 975000 * Size;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -498,7 +498,8 @@ int CWII_IPC_HLE_Device_di::GetCmdDelay(u32 _CommandAddress)
|
|||||||
// case DVDLowClosePartition:
|
// case DVDLowClosePartition:
|
||||||
default:
|
default:
|
||||||
// ranom numbers here!
|
// ranom numbers here!
|
||||||
return SystemTimers::GetTicksPerSecond() / 1500;
|
// More than ~1/2000th of a second hangs DKCR with DSP HLE, maybe.
|
||||||
|
return SystemTimers::GetTicksPerSecond() / 15000;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user