From 301205051b85347a5b153270449e1a9cdcbcd5f4 Mon Sep 17 00:00:00 2001 From: Anthony Date: Sun, 17 Jan 2021 17:32:22 +1300 Subject: [PATCH] Increase vertex buffer cache size Improves performance in Crash Nitro Kart, which did more draws per frame than the cache size. --- src/core/hle/D3D8/XbVertexBuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/D3D8/XbVertexBuffer.h b/src/core/hle/D3D8/XbVertexBuffer.h index faad271fc..0ba41fe6d 100644 --- a/src/core/hle/D3D8/XbVertexBuffer.h +++ b/src/core/hle/D3D8/XbVertexBuffer.h @@ -85,7 +85,7 @@ class CxbxVertexBufferConverter ULONG m_TotalCacheHits = 0; ULONG m_TotalCacheMisses = 0; - UINT m_MaxCacheSize = 2000; // Maximum number of entries in the cache + UINT m_MaxCacheSize = 10000; // Maximum number of entries in the cache UINT m_CacheElasticity = 200; // Cache is allowed to grow this much more than maximum before being purged to maximum std::unordered_map::iterator> m_PatchedStreams; // Stores references to patched streams for fast lookup std::list m_PatchedStreamUsageList; // Linked list of vertex streams, least recently used is last in the list