1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

rpi: limit m_maxCacheSize to fix texture corruption

Limit m_maxCachSize to fix texture corruption in beetle adventure
racing. I have tested values between 3500 and 8000. Everything >= 4000
produces texture corruption or stuttering after some time.
This commit is contained in:
gizmo98 2018-03-28 22:12:49 +02:00 committed by Sergey Lipskiy
parent ed5ebe3047
commit a75665c98e

View File

@ -100,7 +100,11 @@ private:
u32 m_hits, m_misses;
s32 m_curUnpackAlignment;
bool m_toggleDumpTex;
#ifdef VC
const size_t m_maxCacheSize = 3500;
#else
const size_t m_maxCacheSize = 8000;
#endif
};
void getTextureShiftScale(u32 tile, const TextureCache & cache, f32 & shiftScaleS, f32 & shiftScaleT);