Halve the default tex buf size.

Might as well not allocate 2.5 MB that most of the time won't be needed.

If it becomes needed, it'll allocate at runtime, but this should be
uncommon.
This commit is contained in:
Unknown W. Brackets 2016-03-26 22:02:38 -07:00
parent d2f85792ab
commit b4406957c9

View File

@ -47,10 +47,10 @@ TextureCacheCommon::TextureCacheCommon()
memset(clutBufRaw_, 0, 1024 * sizeof(u32));
memset(clutBufConverted_, 0, 1024 * sizeof(u32));
// This is 5MB of temporary storage. Might be possible to shrink it.
tmpTexBuf32.resize(1024 * 512); // 2MB
tmpTexBuf16.resize(1024 * 512); // 1MB
tmpTexBufRearrange.resize(1024 * 512); // 2MB
// These buffers will grow if necessary, but most won't need more than this.
tmpTexBuf32.resize(512 * 512); // 1MB
tmpTexBuf16.resize(512 * 512); // 0.5MB
tmpTexBufRearrange.resize(512 * 512); // 1MB
}
TextureCacheCommon::~TextureCacheCommon() {