use some memory limit

This commit is contained in:
Ced2911 2013-08-29 11:22:36 +02:00
parent a6c3421f00
commit e4344b9fb3
2 changed files with 7 additions and 0 deletions

View File

@ -72,6 +72,9 @@ TextureCache::TextureCache() : clearCacheNextFrame_(false), lowMemoryMode_(false
clutBufRaw_ = new u32[4096]; // 16KB
// glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &maxAnisotropyLevel);
maxAnisotropyLevel = 16;
#ifdef _XBOX
lowMemoryMode_ = true;
#endif
}
TextureCache::~TextureCache() {

View File

@ -973,7 +973,11 @@ u32 TransformDrawEngine::ComputeFastDCID() {
return hash;
}
#ifdef _XBOX
enum { VAI_KILL_AGE = 60 };
#else
enum { VAI_KILL_AGE = 120 };
#endif
void TransformDrawEngine::ClearTrackedVertexArrays() {
for (auto vai = vai_.begin(); vai != vai_.end(); vai++) {