From d657fc9fa20fdb303d9927c42250e8990042e40a Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Wed, 2 Jan 2013 13:50:52 +0100 Subject: [PATCH] Disable clearing all the GPU's cache on sceKernelCacheWritebackAll, the performance penalty was too big. --- Core/HLE/sceKernel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/HLE/sceKernel.cpp b/Core/HLE/sceKernel.cpp index c750d09142..94eebea14a 100644 --- a/Core/HLE/sceKernel.cpp +++ b/Core/HLE/sceKernel.cpp @@ -246,7 +246,9 @@ int sceKernelDcacheInvalidateRange(u32 addr, int size) } int sceKernelDcacheWritebackAll() { - gpu->InvalidateCache(0, -1); + // Some games seem to use this a lot, it doesn't make sense + // to zap the whole texture cache. + // gpu->InvalidateCache(0, -1); return 0; } int sceKernelDcacheWritebackRange(u32 addr, int size)