Limit texture cache based on total texture size (#4350)

* Limit texture cache based on total texture size

* Formatting
This commit is contained in:
gdkchan
2023-02-08 10:19:43 -03:00
committed by GitHub
parent 96cf242bcf
commit 26bf13a65d
4 changed files with 40 additions and 84 deletions

View File

@ -1637,13 +1637,6 @@ namespace Ryujinx.Graphics.Gpu.Image
}
RemoveFromPools(true);
// We only want to remove if there's no mapped region of the texture that was modified by the GPU,
// otherwise we could lose data.
if (!Group.AnyModified(this))
{
_physicalMemory.TextureCache.QueueAutoDeleteCacheRemoval(this);
}
}
/// <summary>