NIS sharpening after DLSS (VICTORY_SHARPEN, off by default, live in F1) #3689
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3689
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3689"
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?
@Jesper-Andersson on GitHub · 2026-11-30 04:04 UTC · original
Jesper-Andersson:t1u-sharpen-pr→main· +2176 −4 · 10 files · 1 commits · draftRelates to: none (new feature).
What it changes
DLSS's own sharpness setting has done nothing since DLSS 2.5.1, and NVIDIA points developers to NVIDIA Image Scaling (NIS) instead (per NVIDIA, as reported by wccftech: https://wccftech.com/nvidia-dlss-2-5-1-disables-built-in-sharpening-nvidia-tells-developers-to-use-nis-going-forward/). This adds an optional sharpening pass for DLSS output.
VICTORY_SHARPEN=0..1(a float, default 0 = off, nothing is recorded: one atomic load). It runs NIS NVSharpen (sharpening only,NIS_SCALER=0, same size in and out) on the texture DLSS just wrote. The pass is recorded in the title's list right after the DLSS evaluation, so it comes before the title's tone mapping, its interface plane and our compose, and before frame generation tags its inputs. Nothing happens without DLSS.VICTORY_HOT_ABfile overrides it.VICTORY_SHARPEN_HDR=0/1forces one of them. Tone mapping is unchanged.crates/victory-gpu/src/sharpen/, with the LICENSE and the provenance, SDK commit named).NIS_Scaler.his renamedNIS_Scaler.hlslibecause the repository policy allows no.hfiles.NVSharpenUpdateConfigis ported to Rust. They are compiled at run time throughhlsl.rs(D3DCompilecs_5_1, DXC fallback) on a thread of its own at the first need; until then upscalings are not sharpened.docs/dlss.md(switch table) anddocs/findings.md.Credit: NVIDIA Image Scaling SDK (MIT, https://github.com/NVIDIAGameWorks/NVIDIAImageScaling).
Not in this PR: any change to tone mapping, FSR/XeSS paths, or DLSS's own sharpness parameter.
How it was tested
VICTORY_SHARPEN=0.5. This ran in a local build that has the same commit merged with other work, not on a clean build of this branch. The log shows the shader compiled with D3DCompilecs_5_1in 1002 ms (11,736 bytes, mode "HDR linear"), a copy texture of 1920x1080 format 10, and "first upscaling sharpened strength=0.5".docs/findings.mdwas written before that session and lists what is still unmeasured.cargo testpassed for the crates it touches: yes.cargo check -p victoryclean;cargo test -p victory-gpu --lib sharpen: 9 passed, 0 failed;cargo test -p victory-gpu --lib menu -- --test-threads=1: 15 passed, 0 failed. No new clippy lints in the files touched. Tests that need the GPU were not run.Checked for overlap
cargo xtask policyis clean for the files in this PR. A plain full-tree run still flags the existingcrates/victory-loader/src/heap_sites/frame_users.rs(a long run of hex digits), which this PR does not touch.This change was made with AI assistance (Claude Code).
cfb62dd6a4to522e7cd2dfView command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.