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

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

@⁠pepezin-ai on GitHub · 2026-11-27 03:51 UTC · original
pepezin-ai:fg-constants-fix → main · +87 −4 · 3 files · 1 commits · closed without merging

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.

**@⁠pepezin-ai** on GitHub · 2026-11-27 03:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/16) `pepezin-ai:fg-constants-fix` → `main` · +87 −4 · 3 files · 1 commits · closed without merging ## 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.
DLSS frame generation dropped every frame ("missing common constants -
Frame Generation will be disabled for the frame", dlfgPresent.cpp:2251,
run t1-dlssperf-fg4): slSetConstants and slSetTagForFrame were only called
in fg::present_start when fg::LATEST held a frame, and LATEST was only
filled by fg::tag from dlss::record after a DLSS evaluation that worked.

With frame generation on, Streamline starts NGX first, and NGX (one per
process) looks for its features only in Streamline's folder, which has no
nvngx_dlss.dll: the later DLSS init got SuperSampling.Available = 0
("DLSS: super sampling is not available on this card or driver"), every
upscale fell back to the stretch, fg::tag never ran (tagged=false in every
state line) and no present ever carried constants.

- VICTORY_FG_ANY_UPSCALE (default on, 0 = the old way): 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): NGX is started for
  DLSS super resolution before Streamline starts it, so that NGX's one
  feature scan sees the DLSS folder.

Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 03:53:48 +00:00
github-bot closed this pull request 2026-11-27 06:05:05 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.