mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-04 16:06:13 +00:00
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:
parent
d2f85792ab
commit
b4406957c9
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user