Frame generation: hand DLSS-G its constants after any upscale, not only a DLSS one #16

Closed
pepezin-ai wants to merge 1 commit from upstream-pr/16 into main
pepezin-ai commented 2026-11-27 03:51:45 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by pepezin-ai on 2026-11-27T03:51:45Z.


What was wrong

With frame generation on (VICTORY_FRAME_GEN=4), DLSS-G never generated a frame: Streamline logged dlfgPresent.cpp:2251 ... missing common constants - Frame Generation will be disabled for the frame on every present (about 2,900 times in 5 minutes), and every fg state line said tagged=false.

Cause: slSetConstants / slSetTagForFrame only ran in fg::present_start when fg::LATEST held a frame, and LATEST was only filled by fg::tag from dlss::record, i.e. after a DLSS evaluation that worked. But with frame generation on, Streamline starts NGX first, NGX (one per process) scans for features only in Streamline's folder, which has no nvngx_dlss.dll, so the later DLSS init gets SuperSampling.Available = 0 ("DLSS: super sampling is not available on this card or driver"), every upscale falls back to the stretch, and no present ever carries constants.

The change (3 files, +87 / -4)

  • VICTORY_FG_ANY_UPSCALE (default on, 0 = the old behaviour): list::upscale_now hands the title's upscale numbers, depth and motion vectors to fg::from_upscale after any recorded upscale, DLSS or stretch. Only the frame-generation path changes; fg::from_upscale does nothing without Streamline.
  • VICTORY_DLSS_BEFORE_SL=1 (default off, untested): starts NGX for DLSS super resolution before Streamline does, so NGX's single feature scan sees the DLSS folder. Meant to get DLSS SR and frame generation working together; left off until someone measures it.

Measured

Ryzen 7 5700X 8C/16T, 32 GB RAM, RTX 5070 12 GB, Windows 11, driver Smooth Motion off. scripts\play-nvidia.ps1 -Log -More @{VICTORY_FRAME_GEN='4'}, Series S, same open-world save.

before (b190242) after (this PR)
missing common constants warnings every frame, the whole run only while loading, none in the world
fg state line tagged=false status 0 = working ... presented=4 per=4
window title – 11 fps (frame gen 44 fps) (driving the boat)
real fps in the world ~6 ~10-11 (different scene, so not a like-for-like gain)

Not checked: whether VICTORY_DLSS_BEFORE_SL=1 really brings DLSS SR back alongside FG; the motion-vector / jitter signs for the generated frames (the picture gets the usual frame-gen smear at a ~5-11 fps base). cargo test -p victory-gpu does not compile on b190242 itself (descriptor.rs:1730, a test with one argument too many), so no unit tests ran for this crate.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5520869312 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/16). Originally posted by [pepezin-ai](https://github.com/pepezin-ai) on 2026-11-27T03:51:45Z. --- ## What was wrong With frame generation on (`VICTORY_FRAME_GEN=4`), DLSS-G never generated a frame: Streamline logged `dlfgPresent.cpp:2251 ... missing common constants - Frame Generation will be disabled for the frame` on every present (about 2,900 times in 5 minutes), and every fg state line said `tagged=false`. Cause: `slSetConstants` / `slSetTagForFrame` only ran in `fg::present_start` when `fg::LATEST` held a frame, and `LATEST` was only filled by `fg::tag` from `dlss::record`, i.e. after a DLSS evaluation that worked. But with frame generation on, Streamline starts NGX first, NGX (one per process) scans for features only in Streamline's folder, which has no `nvngx_dlss.dll`, so the later DLSS init gets `SuperSampling.Available = 0` ("DLSS: super sampling is not available on this card or driver"), every upscale falls back to the stretch, and no present ever carries constants. ## The change (3 files, +87 / -4) - `VICTORY_FG_ANY_UPSCALE` (default **on**, `0` = the old behaviour): `list::upscale_now` hands the title's upscale numbers, depth and motion vectors to `fg::from_upscale` after **any** recorded upscale, DLSS or stretch. Only the frame-generation path changes; `fg::from_upscale` does nothing without Streamline. - `VICTORY_DLSS_BEFORE_SL=1` (default **off**, untested): starts NGX for DLSS super resolution before Streamline does, so NGX's single feature scan sees the DLSS folder. Meant to get DLSS SR and frame generation working together; left off until someone measures it. ## Measured Ryzen 7 5700X 8C/16T, 32 GB RAM, RTX 5070 12 GB, Windows 11, driver Smooth Motion off. `scripts\play-nvidia.ps1 -Log -More @{VICTORY_FRAME_GEN='4'}`, Series S, same open-world save. | | before (b190242) | after (this PR) | |---|---|---| | `missing common constants` warnings | every frame, the whole run | only while loading, **none in the world** | | fg state line | `tagged=false` | `status 0 = working ... presented=4 per=4` | | window title | – | `11 fps (frame gen 44 fps)` (driving the boat) | | real fps in the world | ~6 | ~10-11 (different scene, so not a like-for-like gain) | Not checked: whether `VICTORY_DLSS_BEFORE_SL=1` really brings DLSS SR back alongside FG; the motion-vector / jitter signs for the generated frames (the picture gets the usual frame-gen smear at a ~5-11 fps base). `cargo test -p victory-gpu` does not compile on b190242 itself (`descriptor.rs:1730`, a test with one argument too many), so no unit tests ran for this crate.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
trustno1-coder/VIctory-NVIDIA!16
No description provided.