From 21534c044b62946dadc89645356aacd0c1651dcd Mon Sep 17 00:00:00 2001 From: Ivan 'provod' Avdeev Date: Sat, 4 Mar 2023 11:31:34 -0800 Subject: [PATCH] rt: fix uploading too many light cells, fix #451 c5a1 has ~230k light cells, and tries to upload 77MiB of them. Previous staging size of 64MiB wasn't enough. --- ref/vk/vk_staging.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref/vk/vk_staging.c b/ref/vk/vk_staging.c index d13bca3f..7f1ff0b1 100644 --- a/ref/vk/vk_staging.c +++ b/ref/vk/vk_staging.c @@ -5,7 +5,7 @@ #include -#define DEFAULT_STAGING_SIZE (64*1024*1024) +#define DEFAULT_STAGING_SIZE (128*1024*1024) #define MAX_STAGING_ALLOCS (2048) #define MAX_CONCURRENT_FRAMES 2 #define COMMAND_BUFFER_COUNT (MAX_CONCURRENT_FRAMES + 1) // to accommodate two frames in flight plus something trying to upload data before waiting for the next frame to complete