mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 13:39:58 -04:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user