mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Ignore bogus invalidate cache calls, fixes slowdown in some games
This commit is contained in:
parent
cfc4717a51
commit
8f26e128bf
1 changed files with 10 additions and 4 deletions
|
@ -241,24 +241,30 @@ void sceKernelGetGPI()
|
|||
// textures, and in the future display lists, in some cases though.
|
||||
int sceKernelDcacheInvalidateRange(u32 addr, int size)
|
||||
{
|
||||
gpu->InvalidateCache(addr, size);
|
||||
if (size > 0 && addr != 0) {
|
||||
gpu->InvalidateCache(addr, size);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
int sceKernelDcacheWritebackAll()
|
||||
{
|
||||
// Some games seem to use this a lot, it doesn't make sense
|
||||
// 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)
|
||||
{
|
||||
gpu->InvalidateCache(addr, size);
|
||||
if (size > 0 && addr != 0) {
|
||||
gpu->InvalidateCache(addr, size);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
int sceKernelDcacheWritebackInvalidateRange(u32 addr, int size)
|
||||
{
|
||||
gpu->InvalidateCache(addr, size);
|
||||
if (size > 0 && addr != 0) {
|
||||
gpu->InvalidateCache(addr, size);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
int sceKernelDcacheWritebackInvalidateAll()
|
||||
|
|
Loading…
Add table
Reference in a new issue