mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-25 22:15:57 +00:00
Running the upscaler after the fog layer and the clouds is what dlaa_effects_after = 1 does, with DLSS as with FSR, instead of a separate dlaa_fx_composite switch
The option draws the particles and the dust over the upscaler's picture; the fog layer and the clouds' composite before them decide sky or surface from the jittered scene depth and belong under the upscaler with either engine. DLSS is not yet checked on NVIDIA hardware. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7f09910809
commit
6a2941859f
5 files changed
+24
-31
No files matched your search
+1
-1
@@ -41,7 +41,7 @@ static const char *const known[] = {
|
||||
"BIND_INC", "BIND_SKIP", "BIND_STATS", "BIND_UP", "BIND_X", "BIND_Y",
|
||||
"BIND_ZL", "BIND_ZR", "BARRIER_MERGE", "BLOCK_VIEWS_3D", "CLIMB_FIX", "CLOTH_REALTIME", "COLOR_BRIGHTNESS", "COLOR_CONTRAST", "COLOR_GAMMA",
|
||||
"COLOR_PRESET", "COLOR_SATURATION", "CONTACT_DEBUG", "CONTACT_SHADOWS", "CORE_DIAG", "CRIT", "CRIT_OUT",
|
||||
"DESC_TEMPLATE", "DESWIZZLE", "DEVICE_PROFILE", "DIALOGUE_CLICK", "DISCORD_APP_ID", "DISCORD_IMAGE", "DISCORD_RPC", "DLAA", "DLAA_CAM_JITTER", "DLAA_EFFECTS_AFTER", "DLAA_FX_COMPOSITE", "DLAA_JITTER", "DLAA_MV", "DLAA_MASKDEBUG", "DLAA_MVDEBUG", "DLAA_OBJMV", "DLAA_SURVEY", "DLAA_TIMES", "DLSS", "DLSS_CHAR_MASK", "DLSS_FIXED_EXPOSURE", "DLSS_PRESET", "DLSS_REACTIVE", "DUMP", "DUMP_BUF", "DUMP_DIR",
|
||||
"DESC_TEMPLATE", "DESWIZZLE", "DEVICE_PROFILE", "DIALOGUE_CLICK", "DISCORD_APP_ID", "DISCORD_IMAGE", "DISCORD_RPC", "DLAA", "DLAA_CAM_JITTER", "DLAA_EFFECTS_AFTER", "DLAA_JITTER", "DLAA_MV", "DLAA_MASKDEBUG", "DLAA_MVDEBUG", "DLAA_OBJMV", "DLAA_SURVEY", "DLAA_TIMES", "DLSS", "DLSS_CHAR_MASK", "DLSS_FIXED_EXPOSURE", "DLSS_PRESET", "DLSS_REACTIVE", "DUMP", "DUMP_BUF", "DUMP_DIR",
|
||||
"DUMP_LOG", "DYNAMIC_RES", "DYN_DELTA", "EXEFS", "FEEDBACK", "FG_DEBUG", "FG_OBJECTS", "FG_SHOT", "FG_SHOT_DIR", "FG_TEST", "FG_TIMES", "FIXED_RES_PATCH", "FIX_C0", "FIX_ZERO", "FLIGHT", "FLIGHT_AT", "FLIGHT_DIR", "FLIGHT_FRAMES",
|
||||
"FLIGHT_SPIKE_MS", "FLIGHT_THUMBS", "FLUSH_SPAN", "FOV", "FOV_PATCH", "FPS60", "FPS_LIMIT", "FRAME_GEN", "FRAME_QUEUE", "FREECAM_KEY", "FREECAM_PAD", "FREECAM_PATCH",
|
||||
"FREEZE_IDLE", "FREE_CORES", "FSR3_DEBUG", "FSR3_VIEW", "FSR4_DEBUG", "FSR_SHARPNESS",
|
||||
|
||||
+15
-18
@@ -1618,25 +1618,22 @@ static void gbuf_light(const VkExec *ex) {
|
||||
// breaks it puts DLSS back at the bloom until it holds again, so a frame the rule does not fit changes the picture at
|
||||
// most once a second instead of from frame to frame.
|
||||
// dlaa_effects_after = 0 (the Screen tab, read each frame): DLSS at the bloom, effects included.
|
||||
// With FSR the point waits for the first full-size pass into the light target without depth (the composite of the
|
||||
// half-size clouds outdoors, of the volumetric fog in shrines, of the field's effects in the yard) and runs before the
|
||||
// next pass with a depth, the particles or the dust. The fog layer and those composites are drawn over the whole
|
||||
// picture and decide per pixel from the scene depth whether a pixel is sky or a surface; over the upscaler's picture
|
||||
// that depth is still this frame's jittered one while the picture is not, so on a silhouette against clouds or fog a
|
||||
// pixel the picture shows as sky took the surface's side of the test in some frames: no clouds or fog there that
|
||||
// frame, a brighter dot along distant ridges at night and at dawn, flickering with the jitter's phase and never
|
||||
// resolved, since it came after the upscaler. Measured at 2560x1440 with FSR 4 (frame dumps, a ridge against the
|
||||
// night sky): a ridge pixel brighter than the sky and the mountain beside it in 34 % of the columns with the point
|
||||
// before the fog layer, 6-7 % (as with the upscaler off) with it after the composite. These layers are smooth and
|
||||
// follow the scene, so the upscaler takes them with the scene's motion; the particles still go over its picture.
|
||||
// A frame without such a composite before the bloom runs the upscaler at the bloom, and the FX_STEADY count holds the
|
||||
// point back as for any frame the rule does not fit. TOTK_DLAA_FX_COMPOSITE=0 (test) puts the point back at the first
|
||||
// pass after the lighting; =1 also moves it with DLSS, where it is off by default until measured on NVIDIA hardware.
|
||||
// The point waits for the first full-size pass into the light target without depth after the lighting (the composite
|
||||
// of the half-size clouds outdoors, of the volumetric fog in shrines, of the field's effects in the yard) and runs DLSS
|
||||
// before the next pass with a depth, the particles or the dust. Run at the first pass after the lighting, it left the
|
||||
// fog layer and those composites over its picture: they decide per pixel from the scene depth whether a pixel is sky
|
||||
// or a surface, and that depth is still this frame's jittered one while DLSS's picture is not, so on a silhouette
|
||||
// against clouds or fog a pixel the picture shows as sky took the surface's side of the test in some frames. No clouds
|
||||
// or fog there that frame: a brighter dot along distant ridges at night and at dawn, flickering with the jitter's
|
||||
// phase and never resolved, since it came after DLSS. Measured at 2560x1440 with FSR 4 (frame dumps, a ridge against
|
||||
// the night sky): a ridge pixel brighter than the sky and the mountain beside it in 34 % of the columns with the point
|
||||
// before the fog layer, 15 % with it after the composite (6 % with the upscaler off). These layers are smooth and
|
||||
// follow the scene, so DLSS takes them with the scene's motion; the particles and the dust still go over its picture.
|
||||
// A frame without such a composite before the bloom runs DLSS at the bloom, and the FX_STEADY count holds the point
|
||||
// back as for any frame the rule does not fit.
|
||||
#define FX_STEADY 60u
|
||||
|
||||
static int effects_point(const VkExec *ex) {
|
||||
static int after_comp = -1;
|
||||
if (after_comp < 0) after_comp = rt_knob("DLAA_FX_COMPOSITE", D.fsr ? "1" : "0");
|
||||
const VkExecTarget *c = &ex->color[0], *z = &ex->depth;
|
||||
if (!D.fx_on || D.fx_bad || !D.glight || D.ended || ex->pass_ncolor != 1 || c->image != D.glight || c->level) return 0;
|
||||
if (!D.light_z) {
|
||||
@@ -1647,8 +1644,8 @@ static int effects_point(const VkExec *ex) {
|
||||
unsigned o[2], s[2];
|
||||
res_sizes(o, s);
|
||||
if (c->width < o[0] || !scene_shaped(c) || !scene_large(c)) return 0;
|
||||
if (after_comp && !z->image) D.fx_comp = 1; // asked again at the same pass: the same answer
|
||||
if (after_comp && (!D.fx_comp || !z->image)) return 0;
|
||||
if (!z->image) D.fx_comp = 1; // asked again at the same pass: the same answer
|
||||
if (!D.fx_comp || !z->image) return 0;
|
||||
D.fx_seen = D.fx_open = 1;
|
||||
return D.fx_steady >= FX_STEADY;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user