From 5705496233d0d0aee5e495f7f3fc02537e7f351f Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sat, 15 Mar 2014 10:51:16 +0100 Subject: [PATCH] Reduce the delay in __KernelVolatileTryMemLock. However, it's still too large. --- Core/HLE/scePower.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Core/HLE/scePower.cpp b/Core/HLE/scePower.cpp index 253fc9c853..4d7c945333 100644 --- a/Core/HLE/scePower.cpp +++ b/Core/HLE/scePower.cpp @@ -225,9 +225,11 @@ int __KernelVolatileMemLock(int type, u32 paddr, u32 psize) { Memory::Write_U32(0x00400000, psize); volatileMemLocked = true; - // HACK (or not?) Seems this make take some time. This fixes Crash Tag Team Racing. - // TODO: Test properly. - hleEatCycles(msToCycles(25)); + // HACK: This fixes Crash Tag Team Racing. + // Should only wait 1200 cycles though according to Unknown's testing, + // and with that it's still broken. So it's not this, unfortunately. + // Leaving it in for the 0.9.8 release anyway. + hleEatCycles(500000); return 0; }