FSR 3 frame generation from the title's own upscaler, without DLSS (VICTORY_FG_OWN=1) #4790

Closed
github-bot wants to merge 1 commit from github-bot/gh-4789 into main AGit
Owner

@⁠AvocadroBro on GitHub · 2026-12-01 08:26 UTC · original
AvocadroBro:fg-own → main · +115 −5 · 4 files · 1 commits · closed without merging

Refs #1445

What it changes

With DLSS off, FSR 3 frame generation stays off ("FSR 3 frame generation stays off: it needs DLSS for the upscaling"): it is fed by the upscalings DLSS takes, and the title's FidelityFX path at DLAA's scale stops the title. This adds an opt-in way to run it with no DLSS and no host upscaler: VICTORY_FG_OWN=1 (off by default, nothing changes without it) keeps the title's own upscaler and gives frame generation the title's own render-size targets.

  • streamline.rs: own_texture_made notes the title's depth target (R32G8X24, depth flag) and motion-vector target (R16G16_FLOAT, render target + UAV) host copies. own_inputs picks the largest same-size pair of the output's aspect once per title frame (Series S: 1280x720; the 1024x1024 and 3840x2160 ones are other targets). The camera is what the title's FidelityFX path gives on this build: inverted depth, near 10000, far 0.15, no jitter, motion vectors in render pixels.
  • fsr_needs_dlss does not hold FSR 3 back when VICTORY_FG_OWN=1, and FSR 3 frame generation initialises without DLSS then.
  • fsr.rs: before_present falls back to own_inputs when no upscaling gave fresh inputs.
  • run.rs: with VICTORY_FG_OWN=1 and FSR 3 alone, the title keeps its own upscaler (upscaler_mode is not asked for the FidelityFX path).

Known limit: the vertical field of view is not available without the FidelityFX path, so it is fixed at 0.866 rad (VICTORY_FG_OWN_FOV to change). Generated frames can be less accurate where the game's real field of view differs (driving camera, cutscenes).

How it was tested

  • GPU and profile: RTX 3060 12 GB, Ryzen 5 5600X, 16 GB RAM. Series S profile (render 1280x720), DLSS off, FSR 3 frame generation 2x (FidelityFX 2.4.0 DLLs), ray tracing off. Series X not tested.
  • Before: -FrameGen -FgType fsr -Dlss off logs the "stays off: it needs DLSS" warning and frame generation never runs (seen on 41adb55; the same guard is on 5fabb46e).
  • After: 5fabb46e with this change, in a build that also carried two unrelated local patches (an opt-in watch.rs lock change, enabled for the run, and an inactive engine-settings port). The log shows its depth and motion vectors taken (first time) width=1280 height=720; in steady play 118 to 136 of about 160 presents per 10 s had frame generation on, 0 prepare dispatches failed; about 15 minutes in the open world, no crash. Over the whole session, loading and movies included: 9,247 presents on, 7,790 off.
  • An earlier version of the same change on an older base (28 Nov): the screen counter showed 15.3 to 30.6 and 16.8 to 33.6 fps; benchmark median 16.6 fps real; picture clean, the interface-free plane is used.
  • cargo test -p victory-gpu -p victory --locked on 7b43774a: victory 94 passed; victory-gpu 1094 passed, 1 failed (host::packed_present_tests::packed_float_single_planes_are_presented, which fails the same way on 5fabb46e without this change).
  • cargo clippy -p victory-gpu -p victory --all-targets --locked -- -D warnings, default and --all-features: no findings in the changed code. main itself has 5 findings in host/font.rs, host/menu.rs and host/panel.rs (from #4635), not touched here.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #3519 (FSR 3 without DLSS through the PC FidelityFX upscaler). It solves the same problem by replacing the title's upscaling with the PC FidelityFX upscaler; this keeps the title's own upscaler and needs no upscaler DLL. The two are separate opt-ins and can coexist; #3519's path was not tested here. Also touching these files: #3857, #3690, #4283.
**@⁠AvocadroBro** on GitHub · 2026-12-01 08:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4789) `AvocadroBro:fg-own` → `main` · +115 −5 · 4 files · 1 commits · closed without merging Refs #1445 ## What it changes With DLSS off, FSR 3 frame generation stays off ("FSR 3 frame generation stays off: it needs DLSS for the upscaling"): it is fed by the upscalings DLSS takes, and the title's FidelityFX path at DLAA's scale stops the title. This adds an opt-in way to run it with no DLSS and no host upscaler: `VICTORY_FG_OWN=1` (off by default, nothing changes without it) keeps the title's own upscaler and gives frame generation the title's own render-size targets. - `streamline.rs`: `own_texture_made` notes the title's depth target (R32G8X24, depth flag) and motion-vector target (R16G16_FLOAT, render target + UAV) host copies. `own_inputs` picks the largest same-size pair of the output's aspect once per title frame (Series S: 1280x720; the 1024x1024 and 3840x2160 ones are other targets). The camera is what the title's FidelityFX path gives on this build: inverted depth, near 10000, far 0.15, no jitter, motion vectors in render pixels. - `fsr_needs_dlss` does not hold FSR 3 back when `VICTORY_FG_OWN=1`, and FSR 3 frame generation initialises without DLSS then. - `fsr.rs`: `before_present` falls back to `own_inputs` when no upscaling gave fresh inputs. - `run.rs`: with `VICTORY_FG_OWN=1` and FSR 3 alone, the title keeps its own upscaler (`upscaler_mode` is not asked for the FidelityFX path). Known limit: the vertical field of view is not available without the FidelityFX path, so it is fixed at 0.866 rad (`VICTORY_FG_OWN_FOV` to change). Generated frames can be less accurate where the game's real field of view differs (driving camera, cutscenes). ## How it was tested - GPU and profile: RTX 3060 12 GB, Ryzen 5 5600X, 16 GB RAM. Series S profile (render 1280x720), DLSS off, FSR 3 frame generation 2x (FidelityFX 2.4.0 DLLs), ray tracing off. Series X not tested. - Before: `-FrameGen -FgType fsr -Dlss off` logs the "stays off: it needs DLSS" warning and frame generation never runs (seen on 41adb55; the same guard is on 5fabb46e). - After: 5fabb46e with this change, in a build that also carried two unrelated local patches (an opt-in watch.rs lock change, enabled for the run, and an inactive engine-settings port). The log shows `its depth and motion vectors taken (first time) width=1280 height=720`; in steady play 118 to 136 of about 160 presents per 10 s had frame generation on, 0 prepare dispatches failed; about 15 minutes in the open world, no crash. Over the whole session, loading and movies included: 9,247 presents on, 7,790 off. - An earlier version of the same change on an older base (28 Nov): the screen counter showed 15.3 to 30.6 and 16.8 to 33.6 fps; benchmark median 16.6 fps real; picture clean, the interface-free plane is used. - `cargo test -p victory-gpu -p victory --locked` on 7b43774a: victory 94 passed; victory-gpu 1094 passed, 1 failed (`host::packed_present_tests::packed_float_single_planes_are_presented`, which fails the same way on 5fabb46e without this change). - `cargo clippy -p victory-gpu -p victory --all-targets --locked -- -D warnings`, default and `--all-features`: no findings in the changed code. `main` itself has 5 findings in `host/font.rs`, `host/menu.rs` and `host/panel.rs` (from #4635), not touched here. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #3519 (FSR 3 without DLSS through the PC FidelityFX upscaler). It solves the same problem by replacing the title's upscaling with the PC FidelityFX upscaler; this keeps the title's own upscaler and needs no upscaler DLL. The two are separate opt-ins and can coexist; #3519's path was not tested here. Also touching these files: #3857, #3690, #4283.
With DLSS off, FSR 3 frame generation stays off (#1445): it is fed by the
upscalings DLSS takes, and the title's FidelityFX path at DLAA's scale stops
the title. VICTORY_FG_OWN=1 (off by default) keeps the title's own upscaler
and gives frame generation the title's render-size depth and motion-vector
targets, so FSR 3 runs with no DLSS and no host upscaler.

- streamline.rs: own_texture_made notes the title's depth (R32G8X24, depth
  flag) and motion (R16G16_FLOAT, render target + UAV) host textures;
  own_inputs picks the largest pair of the output's aspect once per title
  frame (Series S: 1280x720), with the FidelityFX path's camera on this build
  (inverted depth, near 10000, far 0.15, no jitter); the vertical field of
  view is not known there: VICTORY_FG_OWN_FOV, 0.866 rad by default.
- fsr_needs_dlss does not hold FSR 3 back when VICTORY_FG_OWN=1.
- fsr.rs: before_present falls back to own_inputs when no upscaling gave
  fresh inputs.
- run.rs: with VICTORY_FG_OWN=1 the title keeps its own upscaler
  (upscaler_mode is not asked for the FidelityFX path for FSR 3 alone).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 08:27:10 +00:00
github-bot changed title from FSR 3 frame generation from the title's own upscaler, without DLSS (VICTORY_FG_OWN=1)Frame generation: FSR 3 from the title's own upscaler, no DLSS (VICTO… to FSR 3 frame generation from the title's own upscaler, without DLSS (VICTORY_FG_OWN=1) 2026-12-01 08:32:40 +00:00
github-bot closed this pull request 2026-12-01 18:36:33 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:32 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:32 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4789#issuecomment-7321103359) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/trustno1-coder--VIctory-NVIDIA!4790
No description provided.