Expand the index cache to a generous size

This seems to slightly increase performance in Crash Nitro Kart
which can do ~4000 draws per frame
This commit is contained in:
Anthony 2021-01-17 01:58:48 +13:00
parent 8eeb061a42
commit 363d91faff
1 changed files with 1 additions and 1 deletions

View File

@ -2702,7 +2702,7 @@ ConvertedIndexBuffer& CxbxUpdateActiveIndexBuffer
}
// Poor-mans eviction policy : when exceeding treshold, clear entire cache :
if (g_IndexBufferCache.size() > 256) {
if (g_IndexBufferCache.size() > 10000) {
g_IndexBufferCache.clear(); // Note : ConvertedIndexBuffer destructor will release any assigned pHostIndexBuffer
}