Revert "Tweaking cache values"

This reverts commit 1a0d55b473.
This commit is contained in:
Luke Usher 2019-07-11 20:37:14 +01:00
parent 1a0d55b473
commit 16cb3faf23
1 changed files with 2 additions and 2 deletions

View File

@ -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<uint64_t, std::list<CxbxPatchedStream>::iterator> m_PatchedStreams; // Stores references to patched streams for fast lookup
std::list<CxbxPatchedStream> 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