From c1483216ef75d16beaa296d6253e9a460312aa74 Mon Sep 17 00:00:00 2001 From: Ivan 'provod' Avdeev Date: Sat, 4 Mar 2023 10:57:27 -0800 Subject: [PATCH] rt: increase MAX_ACCELS to 2048, fix #366 test_shaders_room3 has lots of sprites, and currently we create a new BLAS for each sprite. This is not great, and a proper fix would probably mean consolidating all dynamic transparent things into BLASes per render mode or something. But for now we can just increase the limit --- ref/vk/vk_ray_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref/vk/vk_ray_internal.h b/ref/vk/vk_ray_internal.h index ed15c2cc..9d74a985 100644 --- a/ref/vk/vk_ray_internal.h +++ b/ref/vk/vk_ray_internal.h @@ -4,7 +4,7 @@ #include "vk_buffer.h" #include "vk_const.h" -#define MAX_ACCELS 1024 +#define MAX_ACCELS 2048 #define MAX_KUSOCHKI 16384 #define MODEL_CACHE_SIZE 1024