[vulkan] Change shadow quanta to 128 pixels

Interestingly, this caused a reduction in memory use for some maps (but
did increase marcher's again, but not as much as the bogus rounding
did). The idea was to use sparse bindings to remap shadow map layers,
but it turns out sparse bindings are insanely slow (beyond unusable).
However, the reduction in the number of shadow map images seems to be
worth it.
This commit is contained in:
Bill Currie 2023-12-14 09:50:49 +09:00
parent 75ce49b1f0
commit 9ba7207e20

View file

@ -78,7 +78,7 @@
#include "vid_vulkan.h"
#include "vkparse.h"
#define shadow_quanta 32
#define shadow_quanta 128
#define lnearclip 4
#define num_cascade 4
@ -108,7 +108,7 @@ static cvar_t dynlight_size_cvar = {
.description =
"Effective radius of dynamic light shadow maps. Needs map reload to "
"take effect",
.default_value = "250",
.default_value = "256",
.flags = CVAR_NONE,
.value = { .type = &cexpr_int, .value = &dynlight_size },
};