Add the -1 texture LOD bias NVIDIA asks for while DLSS or FSR runs with jitter.

The bias on the scene's tiled material textures was log2(render / output) alone, so DLAA got 0 and Quality -0.58. NVIDIA's DLSS guide asks for log2(render / output) - 1 on top of the game's own bias: the jittered frames the upscaler accumulates resolve detail a level finer than one frame shows. The -1 now comes with the jitter (dlaa_jitter, on by default): DLAA gets -1, Quality -1.58, Performance -2, for DLSS and FSR 3.1 and 4 alike, which share the bias. Without jitter it stays as it was, where a sharper level would shimmer. Which samplers take it, and the clamp to the device's limit, are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
tangerineturtle1
2026-11-11 13:43:03 -05:00
parent 48b71a630d
commit 1fb2877f56
2 changed files with 21 additions and 8 deletions

View File

@@ -381,10 +381,10 @@ void res_init(void) {
double wide_dlss_share(void); // widescreen.c: the mode's share of the picture (1 DLAA), 0 off
// DLSS upscaling: textures are sampled for the output's resolution, not the scene's (NVIDIA's DLSS guide: a mip bias
// of log2(render / output)), so their detail survives the scaling. 0 without a DLSS mode. Without the output and scene
// patch sets (Ocarina) the scene's share is widescreen.c's, which follows the mode and the upscaler while the game runs;
// R.dlss_k stays the mode at start there (res_dlss_mode moves it only once res_init has switched the sets on). vk_dlaa.c
// dlss_mode asks again at every mode change.
// of log2(render / output), and -1 more with the jitter, which vk_dlaa.c dlss_mode adds), so their detail survives the
// scaling. 0 without a DLSS mode. Without the output and scene patch sets (Ocarina) the scene's share is widescreen.c's,
// which follows the mode and the upscaler while the game runs; R.dlss_k stays the mode at start there (res_dlss_mode
// moves it only once res_init has switched the sets on). vk_dlaa.c dlss_mode asks again at every mode change.
float res_dlss_lod_bias(void) {
decide();
double k = res_adjustable() ? R.dlss_k : wide_dlss_share();