mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 21:49:57 -04:00
Give characters in Ocarina's frame their own motion for DLSS and frame generation, so a running Link no longer trails.
Ocarina's frame has neither the per-object motion pass nor the class buffer the characters' mask reads, so DLSS and FSR 3.1 frame generation moved every pixel with the camera: the character the camera follows dragged a faint copy of itself through DLSS's history and doubled in generated frames. The motion pass (dlaa_mv.comp, vk_dlaa.c mv_pass) now keeps each pixel's view distance for the next frame and checks the camera's vector against it. Where last frame's depth at the place the camera's motion points to disagrees, the surface moved on its own; when last frame's depth at the same pixel agrees, it kept its place on screen and its vector is zero. Such pixels also get the characters' bias mask (dlss_char_mask), so DLSS takes this frame's colour where its history holds something else. The check takes the best of 3x3 pixels, so silhouettes reprojected a pixel off are not taken for motion, and leaves the screen border to DLSS. NX2NAVI_DLAA_ZFIT=0 turns it off; NX2NAVI_DLAA_MASKDEBUG=1 shows the mask. Frame dumps list a border sampler's colour. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -674,6 +674,12 @@ static void describe_bindings(Str *b, const VkExec *ex, const VkPipeInfo *info)
|
||||
mf == 1 || mf == 3 || mf == 5 ? "L" : "N", mf <= 1 ? "none" : mf >= 4 ? "L" : "N",
|
||||
wrap_name(s.ws), wrap_name(s.wt), wrap_name(s.wr), s.aniso, s.lod_min, s.lod_max, s.lod_bias,
|
||||
s.cmp_mode ? " compare" : "");
|
||||
int bw = 0; // a border wrap: its colour, as the sampler builder stored it
|
||||
for (int k = 0; k < 3; k++) {
|
||||
uint8_t wm = k == 0 ? s.ws : k == 1 ? s.wt : s.wr;
|
||||
bw |= wm == NVN_WRAP_MODE_CLAMP_TO_BORDER || wm == NVN_WRAP_MODE_MIRROR_CLAMP_TO_BORDER;
|
||||
}
|
||||
if (bw) sp(b, " border %g,%g,%g,%g", s.border[0], s.border[1], s.border[2], s.border[3]);
|
||||
} else {
|
||||
sp(b, " | samp %d empty (default sampler)", NVN_HANDLE_SAMP(h));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user