Series S upscale on NVIDIA: DLSS (or a stretch) in place of the title's FidelityFX passes, opt-in #203
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!203
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-203"
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?
@YeokiNoewChi on GitHub · 2026-11-26 11:29 UTC · original
YeokiNoewChi:nvidia-dlss-upscale→main· +1053 −1 · 12 files · 3 commits · openOn NVIDIA cards the title's own FidelityFX upscaler is the most expensive thing in a Series S frame. This tree translates the upscaler DLL's passes (the
ACCC/FSPXcontainers) and runs them, which is right on RDNA, but on a 32-lane card they come out slow: aVICTORY_GPU_TIMING=1run on an RTX 3070 Ti put about 150-250 ms of card time a frame in ten compute programs that are not inshaders.rpf(the four largest8cbd7f5b9ce7530c15x270x1,f46117391dd8146115x540x1,f7fc6c984427fef315x540x1,47d8c225abfcb2461013x1x1). Skipping them is fast but leaves the upscaler half-run: ghost trails.This takes the upscale dispatch in Series S and does it another way, off by default.
What it does
VICTORY_UPSCALE=stretch|dlss(Series S only; unset = the title's own upscaler, as now). The exe's import offfxDispatchfromamd_fidelityfx_loader_xbox.dllis bound tovictory_hle::modules::ffx; an upscale description (FFX_API_DISPATCH_DESC_TYPE_UPSCALE) is handled here, every other dispatch goes on to the title's DLL. The hook and the stretch pass are CuteBooty/victory-8gb's (ffx.rs,over.rsthere); the struct is extended to the wholeffxDispatchDescUpscale(offsets tested).stretch: a bilinear compute stretch of the colour input over the output (victory_gpu::stretch). Fast, soft, nothing from outside the repository.dlss: NVIDIA DLSS (victory_gpu::dlss, behind a cargo featuredlss, off unless built with it). The title already gives everything DLSS takes: colour (RGBA16F, HDR), depth, motion vectors (RG16F, render size), jitter, reset, near/far. NGX is started on the host device at the first upscale, a super sampling feature is made per input/output size and flags (MV low-res + jittered, HDR by the colour format, depth inverted by near > far, auto exposure when no exposure texture is given), and evaluated on the list in place of the title's passes. Any failure (no SDK DLL, an older driver, a refused feature) falls back to the stretch, logged once.VICTORY_THIN=1the upscale is a call of the written-down stream like the others (a new opUPSCALE, its arguments as 11 words:list::Upscale), recorded by the translating thread. Without that the hook found no host list at the call and the title's upscaler ran; the stretch alone crashed before the world.VICTORY_UPSCALE_PROBE=1logs what the title gives each upscale (sizes and formats of every input, jitter, motion scale, reset, near/far, fov, flags), the first 12 and then one in 300.Building with DLSS
No NVIDIA files are added to the repository, and none are needed for a normal build. To build with it, check out the DLSS SDK (github.com/NVIDIA/DLSS:
includeandlib/Windows_x86_64) somewhere outside the tree and:build.rslinksnvsdk_ngx_d.lib(static, dynamic CRT) fromVICTORY_DLSS_SDKonly when the feature is on. The DLSS SDK is under NVIDIA's own licence, so a build with the feature should be kept for one's own use and not passed around as a binary; the source here only calls its C API.Tuning switches, all read once:
VICTORY_DLSS_QUALITY(0..2, 5 = DLAA; 2),VICTORY_DLSS_SHARPNESS,VICTORY_DLSS_MV_SIGN=-1,VICTORY_DLSS_JITTER_SIGN=-1,VICTORY_DLSS_HDR=0|1,VICTORY_DLSS_DEPTH_INVERTED=0|1. None was needed here.Where it does nothing
VICTORY_UPSCALEunsetdlsswithout the feature, or on AMD/IntelMeasured
RTX 3070 Ti 8 GB, Ryzen 5 5600X, 64 GB, Windows 11 26300, Series S, the first boat mission standing (
autotestboat checkpoint), warm cache, with this tree'splay.ps1-style switches plusVICTORY_LEVELS_ON_DEMAND=1 VICTORY_CARD_BUFFERS_MB=768 VICTORY_TEXTURE_BUDGET_MB=1800(to stay inside an 8 GB card's budget). Medians of the 5-second frame lines with no shader being made and over 2,000 draws:dlssdlss(forward throttle every 90 s): no crash, nothing refused, median 101.7 ms at 3,400-6,800 draws, VRAM steady.On this branch (
9576c45f+ these commits), same scene and switches, DLSS starts and runs (DLSS: feature made input=(1280, 720) output=(1920, 1080) hdr=true depth_inverted=true auto_exposure=true), no crash, but the frame is limited by something else here: the pass over the heap's views took 132 ms a frame looking at slots (19 ms on the cool_fox tree), 100 ms withVICTORY_PORT_CONSTANTS=1 VICTORY_PORT_DESCRIPTORS=1; medians 310 and 223 ms. That is independent of the upscale; I have not looked into it further, so treat the cool_fox rows as the measure of what the upscale itself saves.Credits
The
ffxDispatchhook and the stretch pass are CuteBooty/victory-8gb's. The finding that the upscaler is the cost on NVIDIA came from codec-d/cool_fox, whose tree runs the title's upscaler. Written with Claude Code.🤖 Generated with Claude Code
View 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.