From 16cb3faf2389224118ece329786c563ddb5f51d8 Mon Sep 17 00:00:00 2001 From: Luke Usher Date: Thu, 11 Jul 2019 20:37:14 +0100 Subject: [PATCH] Revert "Tweaking cache values" This reverts commit 1a0d55b473cc90154919caf2732b56be91ca7b20. --- src/core/hle/D3D8/XbVertexBuffer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/hle/D3D8/XbVertexBuffer.h b/src/core/hle/D3D8/XbVertexBuffer.h index 4e704a5a4..fa7ad14b1 100644 --- a/src/core/hle/D3D8/XbVertexBuffer.h +++ b/src/core/hle/D3D8/XbVertexBuffer.h @@ -84,8 +84,8 @@ class CxbxVertexBufferConverter ULONG m_TotalCacheHits = 0; ULONG m_TotalCacheMisses = 0; - UINT m_MaxCacheSize = 2500; // Maximum number of entries in the cache - UINT m_CacheElasticity = 10 ; // Cache is allowed to grow this much more than maximum before being purged to maximum + UINT m_MaxCacheSize = 2000; // 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 CxbxPatchedStream& GetPatchedStream(uint64_t); // Fetches (or inserts) a patched stream associated with the given key