DLSS Ray Reconstruction (LARP_RR=1, NVIDIA, opt-in) #576
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp!576
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-576"
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?
@SkylerizMe on GitHub · 2026-12-06 03:07 UTC · original
SkylerizMe:pr/dlss-ray-reconstruction→main· +1062 −42 · 5 files · 1 commits · openAdds opt-in DLSS Ray Reconstruction (NGX feature 13, nvngx_dlssd.dll) in place of DLSS Super Resolution where DLSS answers the title's FidelityFX upscaler. Off by default.
What it does
crates/larp-gpu/src/rr.rs(new): watches the title's render-target bindings for its G-buffer pass (six targets, formats 29/28/28/28/34/28, at the render size). Just before the upscale, a compute pass turns the packed targets into the guides NVIDIA takes (diffuse albedo, specular albedo, normals with roughness). The camera comes from the reflections' per-view constants (LARP_RR_CAMERA=0: identity).dlss.rs: makes the RR feature next to SR's and evaluates it with the guides and the WorldToView / ViewToClip matrices. A failed RR evaluation falls back to SR for that frame; after three failures in a row RR is given up for the run. SR's feature is released after 600 frames by RR alone.draw.rs: two small hooks (render targets bound; compute dispatches for the camera).docs/environment-variables.md:LARP_RR,LARP_RR_CAMERA.The title's own ray-tracing denoisers are left on. In our tests, leaving the reflections' filter out made glossy surfaces indoors white and glass pink or flickering; with the filter on and RR on top, those were gone. Details and speed numbers in a separate issue (to follow).
Credit: ported from TrustNo1/Darner PR #431 (its G-buffer map and conversion shader, GPL-3.0). Port written with help from Claude.
Testing
--console series-x.c048b3a(v1.1.6) and v1.1.5, each plus local changes that are NOT in this PR (byte patches to leave out the title's RT denoisers, a borderless window with black bars, keeping previously drawn pipelines from the menu on, the GHST trainer DLL in the mods folder, D3D12 Agility 1.620.2). Switches:LARP_UPSCALER=dlss,LARP_UPSCALER_SCALE=0.6667,LARP_RESOLUTION=2560x1440(one run3440x1440),LARP_FRAME_RATE=60,LARP_DISPLAY_MODE=borderless,LARP_PIPELINE_WAIT_MS=8; DLSS frame generation 2x.459db13): compile-checked only (cargo check --tests, Windows target).View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.