diff --git a/src/core/gpu_hw.h b/src/core/gpu_hw.h index f28e2df47..d19703049 100644 --- a/src/core/gpu_hw.h +++ b/src/core/gpu_hw.h @@ -41,13 +41,14 @@ public: protected: enum : u32 { - VRAM_UPDATE_TEXTURE_BUFFER_SIZE = VRAM_WIDTH * VRAM_HEIGHT * sizeof(u32), - VERTEX_BUFFER_SIZE = 1 * 1024 * 1024, - UNIFORM_BUFFER_SIZE = 512 * 1024, + VRAM_UPDATE_TEXTURE_BUFFER_SIZE = 4 * 1024 * 1024, + VERTEX_BUFFER_SIZE = 4 * 1024 * 1024, + UNIFORM_BUFFER_SIZE = 2 * 1024 * 1024, MAX_BATCH_VERTEX_COUNTER_IDS = 65536 - 2, MAX_VERTICES_FOR_RECTANGLE = 6 * (((MAX_PRIMITIVE_WIDTH + (TEXTURE_PAGE_WIDTH - 1)) / TEXTURE_PAGE_WIDTH) + 1u) * (((MAX_PRIMITIVE_HEIGHT + (TEXTURE_PAGE_HEIGHT - 1)) / TEXTURE_PAGE_HEIGHT) + 1u) }; + static_assert(VRAM_UPDATE_TEXTURE_BUFFER_SIZE >= VRAM_WIDTH * VRAM_HEIGHT * sizeof(u16)); struct BatchVertex {