Upscaling (DLSS Super Resolution, FSR, XeSS): where the title's inputs can be reached, and in which order to land it #730

Open
opened 2026-11-26 03:49:50 +00:00 by github-bot · 1 comment
Owner

@⁠Revens2 on GitHub · 2026-11-25 05:48 UTC · original

Problem

Players with an NVIDIA card ask for DLSS, and players with other cards for FSR or XeSS, to raise image quality or to render at a lower internal resolution. The fork does not control the title's shaders or render passes, so the question is where an upscaler can be fed real inputs (colour, depth, motion vectors, jitter, exposure) and where it cannot. This issue is the feasibility analysis and a staged plan. Frame generation is a separate issue because its constraints differ.

The user also named "DLSS 5". That version is not verified: nothing in this repository or in the upstream tracker mentions it, and no source was consulted for it. This issue does not assume it exists. The DLSS work cited below targets the public Streamline 2.x SDK (2.14.16 in the reports).

In this repository:

  • #86 (PR, open): AMD's PC FidelityFX upscaler (VICTORY_FFX_DIR = SDK signedbin), a port of Marvisak/VIctory#1284. Reported working in the title on RTX 4060 Ti with #32 (see its comments).
  • #188 (PR, open): second present plane for the Series S profile, plus a plain bilinear stretch as the answer to the title's upscale dispatch. crates/victory-hle/src/modules/ffx.rs, apps/victory/src/run.rs.
  • #32 (PR): RGB9E5 stand-in (the title's upscaler output is an RGB9E5 texture a PC cannot write through UAV).
  • #258 (PR): translate the title's own FidelityFX upscaler programs (console-side FSR4 passes), a different route to the same pixels.
  • #13 (issue): Series S, the title's own FSR4 pipeline deserialisation fails ("falling back to NewBE"); root causes and the chain of fixes are in its comments.
  • #616 (issue): a measured Series S run on an RTX 3050 with DLSS (Streamline 2.14.16, MaxQuality, 1280x720 to 1920x1080), PC FSR and the stretch. Its conclusion: the three are within run-to-run noise on frame time; the upscaler is not what a frame costs there. (The branch used is outside the fork's main; the DLSS commit comes from upstream.)

Upstream (Marvisak/VIctory, outside this repository):

  • #1704 (open, "needs-work" triage): answer the title's FidelityFX upscale calls with DLSS through Streamline; mapping of HDR, inverted depth, auto exposure, jittered vectors; motion-vector scale divided by render size; jitter passed through; the title's jitter-sequence and render-size queries answered with FSR's own formulas (8 x ratio^2 phases, Halton(2,3)); swap chain through Streamline's proxy factory.
  • #1793 (open): Series X switch to the host upscaler and a render scale, diagnostics only and tied to specific title builds.
  • No XeSS work was found in either repository (search "xess": nothing).

Nothing here should be implemented twice. DLSS Super Resolution already has a candidate implementation upstream; this issue's value is deciding what the fork takes, in which order, and what it measures.

What the fork can and cannot control

Where the inputs come from. In the Series S profile the title itself calls a FidelityFX upscale (ffxDispatch, upscale type, public FidelityFX API layout) with its internal 1280x720 colour and a 1920x1080 target (#188, #616, upstream #1704). The dispatch description carries, by that public layout, the colour and depth textures, the motion vectors and their scale, the exposure, the jitter offset, the render and upscale sizes, the frame time and the camera near/far/fov; which of those the title actually fills correctly is not verified here beyond what upstream #1704 maps. That dispatch is a seam the fork already intercepts (#188, #86): the colour, depth and vectors arrive from the title's own passes, with the title's own jitter. We never author those passes, so we cannot fix a bad vector or a missing reactive mask; we can only pass them on.

What that implies, in order of certainty:

  1. DLSS Super Resolution, FSR (PC SDK) and XeSS can all be fed from that same dispatch if their input conventions are mapped (depth direction, vector units, jitter units, pre-exposure, HDR vs LDR, the RGB9E5 output). #1704 and #86 are working examples for two of them.
  2. The title also decides the sequence of jitter offsets and the render resolution through FidelityFX queries; whoever answers those queries (today FSR's formulas) decides what the title renders. Another upscaler wants its own sequence; whether the title tolerates an arbitrary sequence is not verified.
  3. The UI. In Series S mode the interface is a second plane at the output size, drawn after the upscale (#188). That is the right order for any upscaler (UI not upscaled). Whether the same holds in the Series X profile is not verified.
  4. Series X. The title uses its own upscaler there, not a FidelityFX call (per #13's comments and upstream #1793). No seam exists unless one patches title code, which upstream #1793 does with build-specific addresses for diagnostics only. That is not a general solution and is not proposed here.
  5. Without any title upscale call (native resolution, no seam), a generic spatial upscaler on the final image (FSR 1-style, or a plain filter) is the only option available to a host that does not see motion vectors. It is lower quality and would belong to the display settings issue, not to this one.
  6. Reconstructing motion vectors and depth from the title's passes by inspecting draw calls is not feasible as a general method for a host that translates console command lists: which target is "depth" and which is "velocity" is not named in the stream we see. Not verified; not proposed.

Pass order, jitter, vectors: all belong to the title's renderer. The fork can verify them in a run (read back the vectors after a dispatch, check their magnitude against the camera motion) but cannot change them.

Proposal, in phases

  1. Measurement harness, no feature. A diagnostics switch that, on the first N upscale dispatches, logs (counts and formats only, no pixel dumps of the title): input/output sizes, formats, the jitter offsets handed in, motion-vector scale, flags (inverted depth, HDR, auto exposure), frame time delta. A table of those from Series S runs. This tells how well the title's inputs match what DLSS/XeSS expect.
  2. Land the FSR path (#86) and the stretch/second plane (#188) before anything vendor-specific. They are the base every other option reuses (RGB9E5 bridge, second plane).
  3. DLSS Super Resolution: take upstream #1704's design (user-provided Streamline folder via VICTORY_DLSS_DIR, no binaries in the tree, off by default). Port as a PR here after #86/#188/#32 are in, or stack on them; do not open a competing implementation. Add the phase 0 measurements to its description.
  4. XeSS: only if someone with an Intel or other GPU asks and the licence of the SDK allows loading it from a user folder (not verified). Same dispatch seam, same mapping table.
  5. Quality evaluation: a fixed list of scenes, three settings (native-equivalent, Quality, Performance), captured with the fork's existing capture tooling and judged by a person; no automated "better than" claim.

Risks and licences

  • DLSS runtime (nvngx_dlss.dll) and Streamline binaries are NVIDIA's and are redistributed under NVIDIA's terms; the fork must load them from a user-supplied folder and not commit them. Whether the Streamline headers are MIT is stated in upstream #1704; not re-verified here. DLSS needs an NVIDIA RTX GPU.
  • FidelityFX SDK binaries (signedbin) are AMD-signed; same user-folder rule as #86. Licence of the SDK not verified in this issue.
  • XeSS: SDK licence not verified.
  • Loading external code is a maintainer decision (flagged in upstream #1704's triage).
  • Title-specific input quality (vectors, jitter, exposure) can produce ghosting or shimmer that no host mapping cures.
  • Series X has no seam; promising DLSS "everywhere" would be false.
  • Frame time: #616 measured no gain from any upscaler on a card that is limited elsewhere; a lower render resolution may not change world frame time if it is bound by texture preparation or CPU work (#612, #696). Not verified for faster scenes.

Acceptance criteria (measurable)

  • Phase 0: one posted table (Series S, one NVIDIA and one AMD run) with the fields above; zero title data in it.
  • Phase 2: with VICTORY_DLSS_DIR set on an RTX card in Series S mode, the log shows the context created at the title's render/output size and at least 1,000 upscale dispatches in a 5 minute world run with no Streamline error and no device removal; with it unset the build and behaviour match main.
  • A/B: for each of {stretch, FSR, DLSS} the median frame time of three 5 minute runs from the same checkpoint, and a side-by-side frame at a fixed moment, posted for review. If the difference in frame time is within the run-to-run spread, say so, as #616 did.
  • cargo test --workspace --locked stays green; the new code has a test that skips cleanly when the SDK folder is missing.

Not verified

  • DLSS 5 (the user's wording): no source, no API, no version number was found or checked. It is recorded here only because it was asked about.
  • Which dispatch fields the title fills correctly, and the jitter sequences it accepts.
  • Series X behaviour beyond what #13 and upstream #1793 say.
  • Image quality of any option on this title; no judged comparison exists.
  • Licence terms of XeSS, FidelityFX SDK, Streamline and DLSS redistribution as applied to this fork.
  • Behaviour on AMD or Intel for the DLSS option (not applicable) and on Linux/Proton for any option.

Next step

No code is proposed before phase 0. A small PR for the logging switch can follow; the DLSS port should be coordinated with the owner of #86/#188 so the three land in a workable order.

**@⁠Revens2** on GitHub · 2026-11-25 05:48 UTC · [original](https://github.com/fxceless/victory-fork/issues/730) ## Problem Players with an NVIDIA card ask for DLSS, and players with other cards for FSR or XeSS, to raise image quality or to render at a lower internal resolution. The fork does not control the title's shaders or render passes, so the question is where an upscaler can be fed real inputs (colour, depth, motion vectors, jitter, exposure) and where it cannot. This issue is the feasibility analysis and a staged plan. Frame generation is a separate issue because its constraints differ. The user also named "DLSS 5". That version is not verified: nothing in this repository or in the upstream tracker mentions it, and no source was consulted for it. This issue does not assume it exists. The DLSS work cited below targets the public Streamline 2.x SDK (2.14.16 in the reports). ## Related work (checked 2026-11-25; searches: dlss, fsr, streamline, upscal, xess, motion vectors) In this repository: - #86 (PR, open): AMD's PC FidelityFX upscaler (`VICTORY_FFX_DIR` = SDK `signedbin`), a port of Marvisak/VIctory#1284. Reported working in the title on RTX 4060 Ti with #32 (see its comments). - #188 (PR, open): second present plane for the Series S profile, plus a plain bilinear stretch as the answer to the title's upscale dispatch. `crates/victory-hle/src/modules/ffx.rs`, `apps/victory/src/run.rs`. - #32 (PR): RGB9E5 stand-in (the title's upscaler output is an RGB9E5 texture a PC cannot write through UAV). - #258 (PR): translate the title's own FidelityFX upscaler programs (console-side FSR4 passes), a different route to the same pixels. - #13 (issue): Series S, the title's own FSR4 pipeline deserialisation fails ("falling back to NewBE"); root causes and the chain of fixes are in its comments. - #616 (issue): a measured Series S run on an RTX 3050 with DLSS (Streamline 2.14.16, MaxQuality, 1280x720 to 1920x1080), PC FSR and the stretch. Its conclusion: the three are within run-to-run noise on frame time; the upscaler is not what a frame costs there. (The branch used is outside the fork's main; the DLSS commit comes from upstream.) Upstream (Marvisak/VIctory, outside this repository): - #1704 (open, "needs-work" triage): answer the title's FidelityFX upscale calls with DLSS through Streamline; mapping of HDR, inverted depth, auto exposure, jittered vectors; motion-vector scale divided by render size; jitter passed through; the title's jitter-sequence and render-size queries answered with FSR's own formulas (8 x ratio^2 phases, Halton(2,3)); swap chain through Streamline's proxy factory. - #1793 (open): Series X switch to the host upscaler and a render scale, diagnostics only and tied to specific title builds. - No XeSS work was found in either repository (search "xess": nothing). Nothing here should be implemented twice. DLSS Super Resolution already has a candidate implementation upstream; this issue's value is deciding what the fork takes, in which order, and what it measures. ## What the fork can and cannot control Where the inputs come from. In the Series S profile the title itself calls a FidelityFX upscale (`ffxDispatch`, upscale type, public FidelityFX API layout) with its internal 1280x720 colour and a 1920x1080 target (#188, #616, upstream #1704). The dispatch description carries, by that public layout, the colour and depth textures, the motion vectors and their scale, the exposure, the jitter offset, the render and upscale sizes, the frame time and the camera near/far/fov; which of those the title actually fills correctly is not verified here beyond what upstream #1704 maps. That dispatch is a seam the fork already intercepts (#188, #86): the colour, depth and vectors arrive from the title's own passes, with the title's own jitter. We never author those passes, so we cannot fix a bad vector or a missing reactive mask; we can only pass them on. What that implies, in order of certainty: 1. DLSS Super Resolution, FSR (PC SDK) and XeSS can all be fed from that same dispatch if their input conventions are mapped (depth direction, vector units, jitter units, pre-exposure, HDR vs LDR, the RGB9E5 output). #1704 and #86 are working examples for two of them. 2. The title also decides the sequence of jitter offsets and the render resolution through FidelityFX queries; whoever answers those queries (today FSR's formulas) decides what the title renders. Another upscaler wants its own sequence; whether the title tolerates an arbitrary sequence is not verified. 3. The UI. In Series S mode the interface is a second plane at the output size, drawn after the upscale (#188). That is the right order for any upscaler (UI not upscaled). Whether the same holds in the Series X profile is not verified. 4. Series X. The title uses its own upscaler there, not a FidelityFX call (per #13's comments and upstream #1793). No seam exists unless one patches title code, which upstream #1793 does with build-specific addresses for diagnostics only. That is not a general solution and is not proposed here. 5. Without any title upscale call (native resolution, no seam), a generic spatial upscaler on the final image (FSR 1-style, or a plain filter) is the only option available to a host that does not see motion vectors. It is lower quality and would belong to the display settings issue, not to this one. 6. Reconstructing motion vectors and depth from the title's passes by inspecting draw calls is not feasible as a general method for a host that translates console command lists: which target is "depth" and which is "velocity" is not named in the stream we see. Not verified; not proposed. Pass order, jitter, vectors: all belong to the title's renderer. The fork can verify them in a run (read back the vectors after a dispatch, check their magnitude against the camera motion) but cannot change them. ## Proposal, in phases 0. Measurement harness, no feature. A diagnostics switch that, on the first N upscale dispatches, logs (counts and formats only, no pixel dumps of the title): input/output sizes, formats, the jitter offsets handed in, motion-vector scale, flags (inverted depth, HDR, auto exposure), frame time delta. A table of those from Series S runs. This tells how well the title's inputs match what DLSS/XeSS expect. 1. Land the FSR path (#86) and the stretch/second plane (#188) before anything vendor-specific. They are the base every other option reuses (RGB9E5 bridge, second plane). 2. DLSS Super Resolution: take upstream #1704's design (user-provided Streamline folder via `VICTORY_DLSS_DIR`, no binaries in the tree, off by default). Port as a PR here after #86/#188/#32 are in, or stack on them; do not open a competing implementation. Add the phase 0 measurements to its description. 3. XeSS: only if someone with an Intel or other GPU asks and the licence of the SDK allows loading it from a user folder (not verified). Same dispatch seam, same mapping table. 4. Quality evaluation: a fixed list of scenes, three settings (native-equivalent, Quality, Performance), captured with the fork's existing capture tooling and judged by a person; no automated "better than" claim. ## Risks and licences - DLSS runtime (`nvngx_dlss.dll`) and Streamline binaries are NVIDIA's and are redistributed under NVIDIA's terms; the fork must load them from a user-supplied folder and not commit them. Whether the Streamline headers are MIT is stated in upstream #1704; not re-verified here. DLSS needs an NVIDIA RTX GPU. - FidelityFX SDK binaries (`signedbin`) are AMD-signed; same user-folder rule as #86. Licence of the SDK not verified in this issue. - XeSS: SDK licence not verified. - Loading external code is a maintainer decision (flagged in upstream #1704's triage). - Title-specific input quality (vectors, jitter, exposure) can produce ghosting or shimmer that no host mapping cures. - Series X has no seam; promising DLSS "everywhere" would be false. - Frame time: #616 measured no gain from any upscaler on a card that is limited elsewhere; a lower render resolution may not change world frame time if it is bound by texture preparation or CPU work (#612, #696). Not verified for faster scenes. ## Acceptance criteria (measurable) - Phase 0: one posted table (Series S, one NVIDIA and one AMD run) with the fields above; zero title data in it. - Phase 2: with `VICTORY_DLSS_DIR` set on an RTX card in Series S mode, the log shows the context created at the title's render/output size and at least 1,000 upscale dispatches in a 5 minute world run with no Streamline error and no device removal; with it unset the build and behaviour match main. - A/B: for each of {stretch, FSR, DLSS} the median frame time of three 5 minute runs from the same checkpoint, and a side-by-side frame at a fixed moment, posted for review. If the difference in frame time is within the run-to-run spread, say so, as #616 did. - `cargo test --workspace --locked` stays green; the new code has a test that skips cleanly when the SDK folder is missing. ## Not verified - DLSS 5 (the user's wording): no source, no API, no version number was found or checked. It is recorded here only because it was asked about. - Which dispatch fields the title fills correctly, and the jitter sequences it accepts. - Series X behaviour beyond what #13 and upstream #1793 say. - Image quality of any option on this title; no judged comparison exists. - Licence terms of XeSS, FidelityFX SDK, Streamline and DLSS redistribution as applied to this fork. - Behaviour on AMD or Intel for the DLSS option (not applicable) and on Linux/Proton for any option. ## Next step No code is proposed before phase 0. A small PR for the logging switch can follow; the DLSS port should be coordinated with the owner of #86/#188 so the three land in a workable order.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:49:50 +00:00
Author
Owner

@⁠Revens2 on GitHub · 2026-11-25 05:48 UTC · original

Sibling issues opened together: #727 (settings/menu), #728 (frame pacing and latency), #729 (Reflex), #730 (upscaling), #731 (frame generation). Overlaps are named in each body; this set should stay split by subject.

**@⁠Revens2** on GitHub · 2026-11-25 05:48 UTC · [original](https://github.com/fxceless/victory-fork/issues/730#issuecomment-7154160842) Sibling issues opened together: #727 (settings/menu), #728 (frame pacing and latency), #729 (Reflex), #730 (upscaling), #731 (frame generation). Overlaps are named in each body; this set should stay split by subject.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#730
No description provided.