Frame generation (DLSS-G, FSR): go/no-go depends on the base frame rate; what upstream has and what is unverified #731

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

Frame generation (DLSS Frame Generation, AMD FSR frame generation, and similar) is asked for as a way to raise displayed frame rate. It is a different problem from upscaling: it inserts frames between rendered ones from motion vectors, depth and colour, it needs its own swap chain integration and, for the NVIDIA version, latency markers. This issue records what is known, what the fork can and cannot do, and the one condition that decides whether it is worth anything here. Super Resolution is in the upscaling issue; Reflex is in its own issue.

The user also named "DLSS 5". That is not verified (no source found or consulted); it is written down as asked and not assumed to exist. The frame-generation work cited below uses DLSS-G through the public Streamline 2.x SDK and FSR frame generation from AMD's FidelityFX SDK.

In this repository: no issue or PR on frame generation. Context only: #86 (PC FSR), #188 (second plane and stretch), #616 (DLSS and FSR measured in Series S; the upscaler was not what a frame costs).

Upstream (Marvisak/VIctory, outside this repository):

  • #1715 (open, "needs rebase" triage): DLSS frame generation on frames the title upscales, stacked on #1704. VICTORY_DLSS_FG=<n> adds n frames. Depth and motion vectors are tagged from the title's own upscale dispatch; each present gets PCL markers and Reflex sleep (required by DLSS-G); generation is switched on only for frames that had an upscale (menus, videos, loading excluded). Needs an RTX 40 or newer and hardware-accelerated GPU scheduling per its description. Its own test is reported flaky (about one run in five generates nothing while reporting no failure; cause unconfirmed).
  • #1917 (open): optional AMD frame generation on the host upscale (VICTORY_FIDELITYFX_FRAMEGEN=1), FidelityFX proxy swap chain, FSR 3 interpolation API fed with depth and motion from the existing upscale. Verified: proxy swap chain at 4K. Unverified, by its own table: generated frames in the world, pacing, quality, overhead. HUD-less colour is unavailable, so the UI is included in interpolation.
  • #1287 (closed): the earlier AMD frame generation test path, replaced by #1917.

The condition that decides it

Frame generation multiplies the frames the game renders; it does not make a slow frame faster. This repository's reports measure world frames of about 200 to 800 ms (0.4 to 5 fps; #616, #696, #535, #418, #612). Generating 1 to 3 frames between frames that are a quarter second apart produces an image that moves with the old input latency and a long visible stall between real frames. The vendors document a minimum base frame rate for frame generation to behave; the numbers were not consulted here and are therefore not stated. Until the world runs at a rate where the base frames are short, frame generation has no useful application in the world. It could apply earlier only where the title renders at a steady rate (some menus, if the title upscales them: upstream #1715 excludes them by design).

Therefore the first deliverable is not code: it is a measured go/no-go that needs the world frame time to come down first. That work is tracked elsewhere (texture preparation, copy-back, relay, shader translation).

What the fork can and cannot control

  • Inputs. The seam is the same as for upscaling: the title's upscale dispatch (Series S profile) hands over colour, depth and motion vectors with its jitter; upstream #1715/#1917 reuse them. Series X has no such seam (the title's own upscaler), see the upscaling issue.
  • No HUD-less colour. Frame generation sees the image the title upscaled; in Series S mode the interface is a separate plane drawn after (#188), which could allow the UI to be left out of interpolation. Whether that is possible with the vendor APIs here is not verified (#1917 says the UI is included).
  • Swap chain. Both vendors' integrations want to own the swap chain (Streamline's proxy factory, FidelityFX's proxy swap chain). Our presenter makes its swap chain in crates/victory-gpu/src/host.rs (Presenter, CreateSwapChainForHwnd, flip-discard, 2 buffers) and copies the title's texture into the back buffer each present. Frame generation changes that: presents are produced by the vendor layer, Present's blocking behaviour changes, and the overlay/menu (#717 and the settings issue) have to draw on the final image, not before it.
  • Pacing. Both need steady presentation: the title's flip waits (crates/victory-gpu/src/frame.rs) and #457's before_present interact with it; not tested.
  • Latency. Added latency is at least one base frame for interpolation-based generation; with Reflex (NVIDIA) it is reduced, not removed. Not measured on this title.

Proposal, in phases (all conditional on the go/no-go)

  1. Go/no-go measurement: median world frame time and present interval on a card of each vendor, from the current main (use #717/scripts/bench.ps1 figures). Record the base frame rate at which the project decides frame generation is worth trying. No code.
  2. Prerequisites that can land independently: #86 and #188 (upscale dispatch and second plane), the Reflex issue's markers (NVIDIA), the presentation work in the frame pacing issue.
  3. Port, do not rewrite: upstream #1715 (DLSS-G) and #1917 (FSR FG) as separate, opt-in, default-off PRs here, each rebased on #86/#188 and carrying the upstream author's measurements plus ours. Do not merge a path that upstream itself lists as "unverified in the world" without a run that verifies it.
  4. Interaction tests: overlay/menu on the final image; window mode toggle and ResizeBuffers with the vendor swap chain; capture tooling (the fork's frame capture reads back the title's texture, not the generated frames).
  5. Quality evaluation by a person on fixed scenes; HUD artefacts called out explicitly.

Risks and licences

  • No benefit at the current world frame rate (above). The main risk is shipping something that looks like a fix and is not.
  • The vendor layers take over Present; a bug there is hard to debug and affects every presentation (menus, videos).
  • DLSS-G needs RTX 40 or newer hardware and hardware-accelerated GPU scheduling (per upstream #1715), so it is not available on many of the cards that report here (RTX 20/30, RDNA2/3 for FSR3 FG are not checked).
  • Licences: Streamline/DLSS binaries and the FidelityFX SDK are third-party; load from a user folder, never commit. Terms for redistribution not verified here.
  • Flaky generation (upstream #1715 reports it) means a status check at run time is needed before trusting the feature on.
  • Anti-cheat or online components: not applicable to what is known of this fork (not verified).

Acceptance criteria (measurable)

  • Phase 0: a posted table with base frame time per scene and vendor; the go threshold written down with its source.
  • Phase 2 (if go): with the option off, behaviour and frame times identical to main (within run-to-run spread). With it on in a scene above the threshold, the number of presents per base frame equals n+1 for at least 95 % of a 60 s sample (measured at the presenter), no device removal over 10 minutes, and median input-to-display latency, measured with a capture tool, is reported next to the off figure (no claim of improvement).
  • Menu/overlay remain visible and correct in the generated frames (screenshots of a fixed moment, reviewed by a person).
  • cargo test --workspace --locked stays green; tests that need the SDK skip cleanly without it.

Not verified

  • DLSS 5 (the user's wording).
  • The minimum base frame rate vendors recommend for their frame generation (not consulted).
  • That the generated frames are correct in this title at any rate: upstream's own results for both vendors are partial (flaky in #1715's test, world unverified in #1917).
  • Latency added, pacing behaviour, and quality, on this title.
  • Behaviour under Proton/Wine.
  • Licence terms.

Next step

None until phase 0 has a number. No PR is planned from this issue yet.

**@⁠Revens2** on GitHub · 2026-11-25 05:48 UTC · [original](https://github.com/fxceless/victory-fork/issues/731) ## Problem Frame generation (DLSS Frame Generation, AMD FSR frame generation, and similar) is asked for as a way to raise displayed frame rate. It is a different problem from upscaling: it inserts frames between rendered ones from motion vectors, depth and colour, it needs its own swap chain integration and, for the NVIDIA version, latency markers. This issue records what is known, what the fork can and cannot do, and the one condition that decides whether it is worth anything here. Super Resolution is in the upscaling issue; Reflex is in its own issue. The user also named "DLSS 5". That is not verified (no source found or consulted); it is written down as asked and not assumed to exist. The frame-generation work cited below uses DLSS-G through the public Streamline 2.x SDK and FSR frame generation from AMD's FidelityFX SDK. ## Related work (checked 2026-11-25; searches: frame generation, framegen, dlss, fsr, streamline) In this repository: no issue or PR on frame generation. Context only: #86 (PC FSR), #188 (second plane and stretch), #616 (DLSS and FSR measured in Series S; the upscaler was not what a frame costs). Upstream (Marvisak/VIctory, outside this repository): - #1715 (open, "needs rebase" triage): DLSS frame generation on frames the title upscales, stacked on #1704. `VICTORY_DLSS_FG=<n>` adds n frames. Depth and motion vectors are tagged from the title's own upscale dispatch; each present gets PCL markers and Reflex sleep (required by DLSS-G); generation is switched on only for frames that had an upscale (menus, videos, loading excluded). Needs an RTX 40 or newer and hardware-accelerated GPU scheduling per its description. Its own test is reported flaky (about one run in five generates nothing while reporting no failure; cause unconfirmed). - #1917 (open): optional AMD frame generation on the host upscale (`VICTORY_FIDELITYFX_FRAMEGEN=1`), FidelityFX proxy swap chain, FSR 3 interpolation API fed with depth and motion from the existing upscale. Verified: proxy swap chain at 4K. Unverified, by its own table: generated frames in the world, pacing, quality, overhead. HUD-less colour is unavailable, so the UI is included in interpolation. - #1287 (closed): the earlier AMD frame generation test path, replaced by #1917. ## The condition that decides it Frame generation multiplies the frames the game renders; it does not make a slow frame faster. This repository's reports measure world frames of about 200 to 800 ms (0.4 to 5 fps; #616, #696, #535, #418, #612). Generating 1 to 3 frames between frames that are a quarter second apart produces an image that moves with the old input latency and a long visible stall between real frames. The vendors document a minimum base frame rate for frame generation to behave; the numbers were not consulted here and are therefore not stated. Until the world runs at a rate where the base frames are short, frame generation has no useful application in the world. It could apply earlier only where the title renders at a steady rate (some menus, if the title upscales them: upstream #1715 excludes them by design). Therefore the first deliverable is not code: it is a measured go/no-go that needs the world frame time to come down first. That work is tracked elsewhere (texture preparation, copy-back, relay, shader translation). ## What the fork can and cannot control - Inputs. The seam is the same as for upscaling: the title's upscale dispatch (Series S profile) hands over colour, depth and motion vectors with its jitter; upstream #1715/#1917 reuse them. Series X has no such seam (the title's own upscaler), see the upscaling issue. - No HUD-less colour. Frame generation sees the image the title upscaled; in Series S mode the interface is a separate plane drawn after (#188), which could allow the UI to be left out of interpolation. Whether that is possible with the vendor APIs here is not verified (#1917 says the UI is included). - Swap chain. Both vendors' integrations want to own the swap chain (Streamline's proxy factory, FidelityFX's proxy swap chain). Our presenter makes its swap chain in `crates/victory-gpu/src/host.rs` (`Presenter`, `CreateSwapChainForHwnd`, flip-discard, 2 buffers) and copies the title's texture into the back buffer each present. Frame generation changes that: presents are produced by the vendor layer, `Present`'s blocking behaviour changes, and the overlay/menu (#717 and the settings issue) have to draw on the final image, not before it. - Pacing. Both need steady presentation: the title's flip waits (`crates/victory-gpu/src/frame.rs`) and #457's `before_present` interact with it; not tested. - Latency. Added latency is at least one base frame for interpolation-based generation; with Reflex (NVIDIA) it is reduced, not removed. Not measured on this title. ## Proposal, in phases (all conditional on the go/no-go) 0. Go/no-go measurement: median world frame time and present interval on a card of each vendor, from the current main (use #717/`scripts/bench.ps1` figures). Record the base frame rate at which the project decides frame generation is worth trying. No code. 1. Prerequisites that can land independently: #86 and #188 (upscale dispatch and second plane), the Reflex issue's markers (NVIDIA), the presentation work in the frame pacing issue. 2. Port, do not rewrite: upstream #1715 (DLSS-G) and #1917 (FSR FG) as separate, opt-in, default-off PRs here, each rebased on #86/#188 and carrying the upstream author's measurements plus ours. Do not merge a path that upstream itself lists as "unverified in the world" without a run that verifies it. 3. Interaction tests: overlay/menu on the final image; window mode toggle and `ResizeBuffers` with the vendor swap chain; capture tooling (the fork's frame capture reads back the title's texture, not the generated frames). 4. Quality evaluation by a person on fixed scenes; HUD artefacts called out explicitly. ## Risks and licences - No benefit at the current world frame rate (above). The main risk is shipping something that looks like a fix and is not. - The vendor layers take over `Present`; a bug there is hard to debug and affects every presentation (menus, videos). - DLSS-G needs RTX 40 or newer hardware and hardware-accelerated GPU scheduling (per upstream #1715), so it is not available on many of the cards that report here (RTX 20/30, RDNA2/3 for FSR3 FG are not checked). - Licences: Streamline/DLSS binaries and the FidelityFX SDK are third-party; load from a user folder, never commit. Terms for redistribution not verified here. - Flaky generation (upstream #1715 reports it) means a status check at run time is needed before trusting the feature on. - Anti-cheat or online components: not applicable to what is known of this fork (not verified). ## Acceptance criteria (measurable) - Phase 0: a posted table with base frame time per scene and vendor; the go threshold written down with its source. - Phase 2 (if go): with the option off, behaviour and frame times identical to main (within run-to-run spread). With it on in a scene above the threshold, the number of presents per base frame equals n+1 for at least 95 % of a 60 s sample (measured at the presenter), no device removal over 10 minutes, and median input-to-display latency, measured with a capture tool, is reported next to the off figure (no claim of improvement). - Menu/overlay remain visible and correct in the generated frames (screenshots of a fixed moment, reviewed by a person). - `cargo test --workspace --locked` stays green; tests that need the SDK skip cleanly without it. ## Not verified - DLSS 5 (the user's wording). - The minimum base frame rate vendors recommend for their frame generation (not consulted). - That the generated frames are correct in this title at any rate: upstream's own results for both vendors are partial (flaky in #1715's test, world unverified in #1917). - Latency added, pacing behaviour, and quality, on this title. - Behaviour under Proton/Wine. - Licence terms. ## Next step None until phase 0 has a number. No PR is planned from this issue yet.
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/731#issuecomment-7154161276) 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#731
No description provided.