mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-30 09:39:56 -06:00
Force cache to remove entries when memory usage exceeds a given threshold (#492)
This commit is contained in:
@ -5,11 +5,13 @@ namespace Ryujinx.Graphics.Gal.OpenGL
|
||||
{
|
||||
class OGLConstBuffer : IGalConstBuffer
|
||||
{
|
||||
private const long MaxConstBufferCacheSize = 64 * 1024 * 1024;
|
||||
|
||||
private OGLCachedResource<OGLStreamBuffer> Cache;
|
||||
|
||||
public OGLConstBuffer()
|
||||
{
|
||||
Cache = new OGLCachedResource<OGLStreamBuffer>(DeleteBuffer);
|
||||
Cache = new OGLCachedResource<OGLStreamBuffer>(DeleteBuffer, MaxConstBufferCacheSize);
|
||||
}
|
||||
|
||||
public void LockCache()
|
||||
|
Reference in New Issue
Block a user