Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reduce some DI command delays. Fix DKCR hanging with DSP HLE. My othe…
…r games continue to work.
  • Loading branch information
jordan-woyak committed Feb 15, 2013
1 parent 6fd96a1 commit 5a34352
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_DI.cpp
Expand Up @@ -477,7 +477,7 @@ int CWII_IPC_HLE_Device_di::GetCmdDelay(u32 _CommandAddress)
u32 const Size = Memory::Read_U32(BufferIn + 0x04);
// Delay depends on size of read, that makes sense, right?
// 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;
break;
}
Expand All @@ -498,7 +498,8 @@ int CWII_IPC_HLE_Device_di::GetCmdDelay(u32 _CommandAddress)
// case DVDLowClosePartition:
default:
// 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;
}
}

0 comments on commit 5a34352

Please sign in to comment.