TINYGL: reduce memory allocation

This commit is contained in:
grisenti 2022-12-03 16:15:47 +01:00 committed by Eugene Sandulenko
parent 65935ec05e
commit 2db6ed40b4
No known key found for this signature in database
GPG key ID: 014D387312D34F08

View file

@ -261,7 +261,7 @@ void GLContext::init(int screenW, int screenH, Graphics::PixelFormat pixelFormat
// color mask
color_mask_red = color_mask_green = color_mask_blue = color_mask_alpha = true;
const size_t kDrawCallMemory = 1024 * 1024 * 1024;
const size_t kDrawCallMemory = 60ULL * 1024ULL * 1024ULL;
_currentAllocatorIndex = 0;
_drawCallAllocator[0].initialize(kDrawCallMemory);