From 82749d1ba35bd920d382864604b222e776d85f16 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 13 Mar 2021 01:24:33 +1000 Subject: [PATCH] GPU/HW: Increase streaming buffer sizes to 4MB/2MB --- src/core/gpu_hw.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 {