diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index bb525627ae..c98837bd79 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -2714,7 +2714,9 @@ static u32 sceKernelUnloadModule(u32 moduleId) { module->Cleanup(); kernelObjects.Destroy(moduleId); - return hleDelayResult(hleLogDebug(Log::sceModule, moduleId), "module unloaded", 500); + // About 400us of work that better threads can preempt, and worse ones don't get in on + // (tests/threads/scheduling/syscallkinds). + return __KernelBusyDelayResult(hleLogDebug(Log::sceModule, moduleId), (int)usToCycles(400), "module unloaded"); } u32 __KernelStopUnloadSelfModuleWithOrWithoutStatus(u32 exitCode, u32 argSize, u32 argp, u32 statusAddr, u32 optionAddr, bool WithStatus) { diff --git a/Core/HLE/scePower.cpp b/Core/HLE/scePower.cpp index 43ca06633c..90cc481c7b 100644 --- a/Core/HLE/scePower.cpp +++ b/Core/HLE/scePower.cpp @@ -334,11 +334,9 @@ static int sceKernelVolatileMemTryLock(int type, u32 paddr, u32 psize) { switch (error) { case 0: - // 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); + // Under 100us on hardware (tests/threads/scheduling/syscallkinds). This used to eat 500000 + // cycles as a hack for Crash Tag Team Racing, which no longer needs it. + hleEatCycles(1200); DEBUG_LOG(Log::HLE, "sceKernelVolatileMemTryLock(%i, %08x, %08x) - success", type, paddr, psize); break;