[draft] [pr-feature][rendering][lighting][RAYTRACING] F1 RT DENOISERS: the game's own ray tracing denoisers off (DARNER_TITLE_DENOISERS=0, on by default) #401
Loading…
Reference in a new issue
No description provided.
Delete branch "paales/title-denoisers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Written by 🤖:
Refs #66
Contributor role (optional)
What it changes
CS_TemporalResolve1_Alphais dropped on 32-lane hosts (#66), so some glass is dark (the cafe window in the police cutscene).DARNER_TITLE_DENOISERS=0, or F1: PICTURE > RT DENOISERS (the row after RAY TRACING), leaves them out at the next start. It takes paths the game has itself: 8 code patches inKnownBuild::denoisers_off, each checked against its old bytes as the existing patches are.TemporalResolveOpaqueruns in place ofSpatialFilter_Std,SpatialFilterandTemporalResolve2. Blur count 0: noBilateralBlur, noUpdateHistory. History length 1, and the frame setup's camera-cut path every frame.The GI probe filters and the bent cones have no such path and stay. On by default: nothing changes for a player who sets nothing.
docs/fork-ray-tracing.mdhas the addresses and the measurements; the README's lighting table has the row.How it was tested
Tested revision:
bc4d0a99. The game build had an earlier wording of the help text; the code is the same.Commands and results:
cargo test --locked -p darner-gpu --lib menu -- --include-ignored: 57 passed (help lines within 60 columns;DARNER_MENU_SHOTmakes the menu picture with the new row).cargo xtask policy: 555 files ok.title patch +0x... DARNER_TITLE_DENOISERS=0, ..., and all runs end without a crash (night lot, police cutscene, house: one run each way).Changes a default: no.
A/B result: the switch is off by default. Checked in the game, one run each way per scene. Change between captures 500 ms apart is the mean absolute luminance difference (0 to 255) over a static view, 16 to 30 s, on the night lot:
On an older base with a diagnostics build and the same 8 patches through
DARNER_TITLE_PATCH: the dispatch capture has noSpatialFilter_Std,SpatialFilter,TemporalResolve2,TemporalResolve1_Alpha,BilateralBlur,UpdateHistoryorDenoiseShadowMaskLDSPacked; none of them is among the 60 most costly pipelines (DARNER_CARD_METER_PIPELINES=1, 0.06 ms a frame each at most); the card's time a frame changes by 1.4 ms at most, in both directions, over 3 scenes.Gates run on
bc4d0a99: both clippy gates pass.cargo test --workspace --locked: 2117 passed, 1 failed (host::refresh_tests::refresh_front_zero_arc_matches_and_runs_due). The write-watch tests fail now and then in the full run onmainf3840d73too: three runs ofcargo test -p darner-gpu --libthere had 1, 2 and 0 failures among the same tests, and each passes on its own.Gameplay: RTX 5070 Ti, Series X profile, 3840x2160 output, DLSS Performance (super resolution), no frame generation, hardware ray tracing.
Shader wave sizes tested: 32 lanes.
Hardware dependence: the patches are in the game's own code, so likely general. The dark glass needs a 32-lane host (#66).
Coverage gaps: AMD, Intel, Series S and software ray tracing not tested. The GI's probe filters stay.
Pictures (cropped from 3840x2160 captures, the same scene and time, A and B) follow in a comment.
Checklist
main.docs/asset-policy.md.Checked for overlap
Human here: Comparison RR vs Original and a bonus screenshot with the in game denoiser completely off.
Haha, ok, this isn't nearly ready.. I'll update the pr when ready.
[pr-feature][rendering][lighting][RAYTRACING] F1 RT DENOISERS: the game's own ray tracing denoisers off (DARNER_TITLE_DENOISERS=0, on by default)to [draft] [pr-feature][rendering][lighting][RAYTRACING] F1 RT DENOISERS: the game's own ray tracing denoisers off (DARNER_TITLE_DENOISERS=0, on by default)Thanks for this. Your first comment mentions an RR comparison: are you working on DLSS Ray Reconstruction on top of this switch?
With the title's denoisers off, RR looks like the natural next step, since it replaces both the denoisers and the upscaler in one pass. As far as I can see, Darner's DLSS path only takes the inputs of the title's
ffxDispatch(colour, depth, motion vectors, exposure, reactive mask). RR also needs diffuse and specular albedo, normals and roughness, and ideally the specular hit distance. Do you already know where the title writes those, or have an RR branch?We're mapping the G-buffer on our side to size the work, and we'd be glad to share what we find and test an RR build under Proton on an RTX 4080 (Ada, 32 lanes), including whether the dark glass from #66 shows there.
Follow-up on #66: on current
mainwith ray tracing on,playsetsDARNER_EXACT64=1(EXACT64_RTinapps/darner/src/play.rs), so34992f2b65a789a5(CS_TemporalResolve1_Alpha) is folded exactly and translates. Without ray tracing it is still left out on purpose: folded, it washed out the phone screen (CodeFloe 267).We checked it under Proton on an RTX 4080 (32 lanes), hardware ray tracing, a
main-based build. In all three runs the program translated and nothing was refused:So the dark cafe board in your doc looks like the older base you measured on. Does it still show dark for you on current
mainwith RT on?Pull request closed