improve host and device shared buffer cache modes

This commit is contained in:
Samuliak 2024-11-04 16:03:34 +01:00
parent fbea328b9b
commit a00d409ab7
No known key found for this signature in database
3 changed files with 23 additions and 9 deletions

View file

@ -88,8 +88,8 @@ MetalRenderer::MetalRenderer()
m_depthStencilCache = new MetalDepthStencilCache(this);
m_samplerCache = new MetalSamplerCache(this);
// Lower the commit treshold when host memory is used for cache to reduce latency
if (m_memoryManager->UseHostMemoryForCache())
// Lower the commit treshold when buffer cache needs reduced latency
if (m_memoryManager->NeedsReducedLatency())
m_defaultCommitTreshlod = 64;
else
m_defaultCommitTreshlod = 196;