frame generation never starts on the Series X profile: 2208 'missing common constants' and every frame drawn at 35.7 ms #3137

Open
opened 2026-12-02 13:34:13 +00:00 by fiestorra · 3 comments
fiestorra commented 2026-12-02 13:34:13 +00:00 (Migrated from github.com)
Contributor

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T13:34:13Z.


Frame generation never starts on the Series X profile with the launcher's settings: a five-minute run on an RTX 4090 logged 2208 missing common constants and drew every frame without it.

The run

play-nvidia.ps1 -SeriesX -Resolution 1440 on an RTX 4090, driver 621.24 - the profile the launcher's own help describes. LEONIDA_FRAME_GEN=2 was in the resolved settings, the DLSS files were fetched, and the layer made its device on the card (host wave lanes min=32 max=32).

What the log says

2208 times, all from Streamline's frame-generation present:

dlfgPresent.cpp:2251[operator ()] Warning: missing common constants - Frame Generation will be [disabled]

And the frame times say the same from the other side (host::frametime, 46 windows of about five seconds):

22:02:37 - 22:03:50   35.7 ms median, 95th = 35.7 ms        28.0 frames a second, flat
22:03:58 - 22:07:25   medians 145, 180, 450, 486, 1647, 1899 ms
22:07:08 - 22:07:41   71.4 ms median                        14.0 frames a second

LEONIDA_FG_LIMIT_FPS=28 was set, and every rendered frame was 35.7 ms: not one generated frame was presented - with 2x generation the presented rate would have been 56, not 28.

Where it comes from, read in the code

d3d12/crates/leonida-gpu/src/fg.rs:1076-1085: sl.set_constants is only reached inside

if let Some((l, (depth, depth_state), (motion, motion_state))) = found {
    let mut c = constants(l);
    ...
    let r = fg.sl.set_constants(&c, token, &VIEWPORT);

and found is None whenever a copy of the title's depth or motion texture cannot be looked up (fg.rs:1054-1065, crate::resource::made_copy(this)?). A present with no constants is exactly what Streamline then reports as missing common constants. So on this path found was None for all 2208 presents, and nothing else in the frame generation path runs - no tags, no generation.

The requirement is documented in streamline.rs:106, which names this very message: "the index on the present markers ... must match the one used for slSetConstants (otherwise 'common constants cannot be found for frame N')".

What I cannot say

  • Whether the same thing happens on other profiles (-Dlss quality, Series S, or without LEONIDA_OWN_UPSCALER=1): one run, one profile. The launcher's profile sets LEONIDA_OWN_UPSCALER=1 and LEONIDA_FG_LIMIT_FPS=28, and those are my first two suspects for why the depth and motion copies are not found.
  • Which of the two ? in look() failed - the depth copy or the motion one. LEONIDA_FG_RESET_STALE's log line ("frame generation: a present told ...") never appeared either (fg.rs:1082), which says the branch was never entered rather than resets firing.

A log with LEONIDA_FG_* and one run per profile would settle both, and I can do that as soon as I can run the title again.

Why it matters beyond one machine

#2907 reports the same shape from an RTX 4060 ("stuttering even when the fps are above 20 with frame generation on and dlss is not even working"), and #3109 measures the Series X profile at 28 rendered frames a second - the same 35.7 ms this run shows. If the generated frames are not arriving anywhere, the profile's "frame generation 2x" is a promise the launcher makes and the layer does not keep, and every frame-rate measurement taken with it is 28, not 56.

AI-assisted: yes - DeepSeek v4.1 (flash), from the log of a run on the machine above.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6746011237 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3137). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-02T13:34:13Z. --- **Frame generation never starts on the Series X profile with the launcher's settings: a five-minute run on an RTX 4090 logged 2208 `missing common constants` and drew every frame without it.** ## The run `play-nvidia.ps1 -SeriesX -Resolution 1440` on an RTX 4090, driver 621.24 - the profile the launcher's own help describes. `LEONIDA_FRAME_GEN=2` was in the resolved settings, the DLSS files were fetched, and the layer made its device on the card (`host wave lanes min=32 max=32`). ## What the log says **2208 times, all from Streamline's frame-generation present**: ``` dlfgPresent.cpp:2251[operator ()] Warning: missing common constants - Frame Generation will be [disabled] ``` **And the frame times say the same from the other side** (`host::frametime`, 46 windows of about five seconds): ``` 22:02:37 - 22:03:50 35.7 ms median, 95th = 35.7 ms 28.0 frames a second, flat 22:03:58 - 22:07:25 medians 145, 180, 450, 486, 1647, 1899 ms 22:07:08 - 22:07:41 71.4 ms median 14.0 frames a second ``` **`LEONIDA_FG_LIMIT_FPS=28` was set, and every rendered frame was 35.7 ms: not one generated frame was presented** - with 2x generation the presented rate would have been 56, not 28. ## Where it comes from, read in the code `d3d12/crates/leonida-gpu/src/fg.rs:1076-1085`: `sl.set_constants` is only reached **inside** ```rust if let Some((l, (depth, depth_state), (motion, motion_state))) = found { let mut c = constants(l); ... let r = fg.sl.set_constants(&c, token, &VIEWPORT); ``` **and `found` is `None` whenever a copy of the title's depth or motion texture cannot be looked up** (`fg.rs:1054-1065`, `crate::resource::made_copy(this)?`). **A present with no constants is exactly what Streamline then reports as `missing common constants`.** So on this path `found` was `None` for all 2208 presents, and **nothing else in the frame generation path runs** - no tags, no generation. **The requirement is documented in `streamline.rs:106`**, which names this very message: *"the index on the present markers ... must match the one used for `slSetConstants` (otherwise 'common constants cannot be found for frame N')"*. ## What I cannot say - **Whether the same thing happens on other profiles** (`-Dlss quality`, Series S, or without `LEONIDA_OWN_UPSCALER=1`): **one run, one profile**. The launcher's profile sets `LEONIDA_OWN_UPSCALER=1` and `LEONIDA_FG_LIMIT_FPS=28`, and those are my first two suspects for why the depth and motion copies are not found. - **Which of the two `?` in `look()` failed** - the depth copy or the motion one. **`LEONIDA_FG_RESET_STALE`'s log line ("frame generation: a present told ...") never appeared either** (`fg.rs:1082`), which says the branch was never entered rather than resets firing. **A log with `LEONIDA_FG_*` and one run per profile would settle both**, and I can do that as soon as I can run the title again. ## Why it matters beyond one machine **#2907** reports the same shape from an RTX 4060 ("stuttering even when the fps are above 20 with frame generation on and dlss is not even working"), and **#3109** measures the Series X profile at 28 rendered frames a second - the same 35.7 ms this run shows. **If the generated frames are not arriving anywhere, the profile's "frame generation 2x" is a promise the launcher makes and the layer does not keep**, and every frame-rate measurement taken with it is 28, not 56. **AI-assisted:** yes - DeepSeek v4.1 (flash), from the log of a run on the machine above. Written with an AI assistant.
lixonik commented 2026-12-02 14:40:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-02T14:40:06Z.


finding: reproduced the exact Series X -Resolution 1440 settings (LEONIDA_OUTPUT=2560x1440, LEONIDA_RENDER_SCALE=1, LEONIDA_OWN_UPSCALER=1, LEONIDA_FRAME_GEN=2, LEONIDA_FG_LIMIT_FPS=28) live on main (69cd4106c, RTX 5070, Windows 10) -- the G-buffer FG path does latch in-world, and the missing common constants burst + 35.7 ms -> 71.4 ms transition match the menu/loading phase followed by 2x FG under LEONIDA_FG_LIMIT_FPS=28:

1. Live Series X 1440p log on main (69cd4106c)

  • Presents 1..3326 (startup logos, menus, loading -- 128 s):
    • 3,326 occurrences of dlfgPresent.cpp:2251 Warning: missing common constants - Frame Generation will be disabled for the frame, tagged=false, Reflex start_gap_median_ms=35.7 (28.0 fps).
    • Present 600: WARN leonida_gpu::fg: frame generation: neither an upscale nor a G-buffer pass has handed over depth and motion vectors in 600 presents, and no frame is generated until one does (menus and loading screens have neither).
  • Present 3327 (first in-world frame, +135.2 s):
    • INFO leonida_gpu::fg: frame generation: depth and motion vectors are the G-buffer pass's from now on ... size=[2560, 1440]
    • INFO leonida_gpu::fg: frame generation: a present told as a reset (no frame made before it) n=1 index=3327 fresh=true was_fresh=false swapped=false
    • INFO leonida_gpu::fg: frame generation: the picture without the interface is tagged (kBufferTypeHUDLessColor; first present) index=3327 width=2560 height=1440
  • Presents 3327..4200+ (61 s in-world, ~870 presents):
    • 0 missing common constants warnings after present 3326.
    • frame generation: state ... index=3600 tagged=true status=0 and index=4200 tagged=true status=0 (note: our automated run ran minimized/unfocused so Streamline reports presented=1 per=1 while unfocused, as noted in fg.rs:1174-1176; zero constants or tags refused).

2. Why your log showed 2208 warnings, 35.7 ms, and then 71.4 ms

  1. The 2208 missing common constants warnings come from menus and loading screens before the first G-buffer pass:
    fg.rs:993 turns DLSSGMode::eOn at present 1, before LATEST is ever populated by a G-buffer pass (fg.rs:859-909). While menus/loading run, found is None (no G-buffer pass has executed yet) so Streamline logs one missing common constants warning per present (~73 s * 28 fps + loading frames ≈ 2208).
  2. 35.7 ms -> 71.4 ms is actually the signature of 2x FG turning ON under LEONIDA_FG_LIMIT_FPS=28:
    Per d3d12/crates/leonida-gpu/src/fg.rs:82-85 and d3d12/scripts/play-nvidia.ps1:432-442, LEONIDA_FG_LIMIT_FPS=28 caps shown frames (including generated ones) at 28 fps:
    • While FG is inactive (menus/loading, 22:02:37-22:03:50), Reflex paces rendered frames to 28.0 fps (35.7 ms).
    • Once FG starts generating 2x frames (22:07:08-22:07:41), Reflex counts the generated frame toward the 28 fps limit and holds rendered frames to 14.0 fps (71.4 ms), yielding 28 shown fps -- not 56.
    • On an RTX 4090, passing -More @{LEONIDA_FG_LIMIT_FPS='0'} (or a higher limit like '60') removes that 28-shown-fps cap.

3. Suggested follow-up checks / small cleanup opportunity

  • If you check timestamps of the last missing common constants line in your RTX 4090 log (and search for depth and motion vectors are the G-buffer pass's and frame generation: state), you can confirm whether the warnings stopped right at 22:07:08 when 71.4 ms began. (If missing common constants continued past 22:07:08 during 71.4 ms in-world frames, posting the leonida_gpu::fg lines from that window would pinpoint whether made_copy() actually returned None on that run.)
  • Independently, keeping DLSSGMode::eOff in fg.rs:993 until LATEST has been populated once (instead of enabling DLSS-G on present 1 during menus/loading) would eliminate the 2,000-3,300 misleading missing common constants warnings during startup/menus.

AI-assisted: yes (Antigravity).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7348935855 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3137#issuecomment-7348935855). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-02T14:40:06Z. --- finding: reproduced the exact Series X `-Resolution 1440` settings (`LEONIDA_OUTPUT=2560x1440`, `LEONIDA_RENDER_SCALE=1`, `LEONIDA_OWN_UPSCALER=1`, `LEONIDA_FRAME_GEN=2`, `LEONIDA_FG_LIMIT_FPS=28`) live on `main` (`69cd4106c`, RTX 5070, Windows 10) -- the G-buffer FG path **does** latch in-world, and the `missing common constants` burst + `35.7 ms -> 71.4 ms` transition match the menu/loading phase followed by 2x FG under `LEONIDA_FG_LIMIT_FPS=28`: ### 1. Live Series X 1440p log on `main` (`69cd4106c`) - **Presents `1..3326` (startup logos, menus, loading -- 128 s):** - `3,326` occurrences of `dlfgPresent.cpp:2251 Warning: missing common constants - Frame Generation will be disabled for the frame`, `tagged=false`, Reflex `start_gap_median_ms=35.7` (28.0 fps). - Present `600`: `WARN leonida_gpu::fg: frame generation: neither an upscale nor a G-buffer pass has handed over depth and motion vectors in 600 presents, and no frame is generated until one does (menus and loading screens have neither)`. - **Present `3327` (first in-world frame, `+135.2 s`):** - `INFO leonida_gpu::fg: frame generation: depth and motion vectors are the G-buffer pass's from now on ... size=[2560, 1440]` - `INFO leonida_gpu::fg: frame generation: a present told as a reset (no frame made before it) n=1 index=3327 fresh=true was_fresh=false swapped=false` - `INFO leonida_gpu::fg: frame generation: the picture without the interface is tagged (kBufferTypeHUDLessColor; first present) index=3327 width=2560 height=1440` - **Presents `3327..4200+` (61 s in-world, ~870 presents):** - **0** `missing common constants` warnings after present `3326`. - `frame generation: state ... index=3600 tagged=true status=0` and `index=4200 tagged=true status=0` (note: our automated run ran minimized/unfocused so Streamline reports `presented=1 per=1` while unfocused, as noted in `fg.rs:1174-1176`; zero `constants or tags refused`). ### 2. Why your log showed `2208` warnings, `35.7 ms`, and then `71.4 ms` 1. **The `2208` `missing common constants` warnings come from menus and loading screens before the first G-buffer pass:** `fg.rs:993` turns `DLSSGMode::eOn` at present `1`, before `LATEST` is ever populated by a G-buffer pass (`fg.rs:859-909`). While menus/loading run, `found` is `None` (no G-buffer pass has executed yet) so Streamline logs one `missing common constants` warning per present (`~73 s * 28 fps + loading frames ≈ 2208`). 2. **`35.7 ms` -> `71.4 ms` is actually the signature of 2x FG turning ON under `LEONIDA_FG_LIMIT_FPS=28`:** Per `d3d12/crates/leonida-gpu/src/fg.rs:82-85` and `d3d12/scripts/play-nvidia.ps1:432-442`, `LEONIDA_FG_LIMIT_FPS=28` caps **shown** frames (including generated ones) at 28 fps: - While FG is inactive (menus/loading, `22:02:37-22:03:50`), Reflex paces rendered frames to `28.0 fps` (`35.7 ms`). - Once FG starts generating 2x frames (`22:07:08-22:07:41`), Reflex counts the generated frame toward the 28 fps limit and holds **rendered** frames to `14.0 fps` (**`71.4 ms`**), yielding `28` shown fps -- not `56`. - On an RTX 4090, passing `-More @{LEONIDA_FG_LIMIT_FPS='0'}` (or a higher limit like `'60'`) removes that 28-shown-fps cap. ### 3. Suggested follow-up checks / small cleanup opportunity - If you check timestamps of the **last** `missing common constants` line in your RTX 4090 log (and search for `depth and motion vectors are the G-buffer pass's` and `frame generation: state`), you can confirm whether the warnings stopped right at `22:07:08` when `71.4 ms` began. (If `missing common constants` continued *past* `22:07:08` during `71.4 ms` in-world frames, posting the `leonida_gpu::fg` lines from that window would pinpoint whether `made_copy()` actually returned `None` on that run.) - Independently, keeping `DLSSGMode::eOff` in `fg.rs:993` until `LATEST` has been populated once (instead of enabling DLSS-G on present `1` during menus/loading) would eliminate the 2,000-3,300 misleading `missing common constants` warnings during startup/menus. AI-assisted: yes (Antigravity).
fiestorra commented 2026-12-02 18:02:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T18:02:45Z.


finding: #3186 is #3137 with a crash on top, and that changes its priority. #3186's log ends with Streamline is disabling Frame Generation during presentation (dlfgPresent.cpp:2251) because common constants are m[issing] and the run dies at the loading screen; #3137 is that same line 2,208 times in one log with the run continuing without generated frames. Same signature, one of them fatal.

What I can say about the code without a run: in d3d12/crates/leonida-gpu/src/fg.rs, set_constants is only called inside if let Some((..)) = found (around L1076-1085), and found is None when crate::resource::made_copy(this)? fails - so when the lookup fails, the frame generation keeps running with whatever constants were already there and the SDK disables itself at present. That is where I would look for the 5070's crash.

The test that separates the two: -NoFrameGen with everything else the same. In the world -> the crash is in the FG path; still dying -> FG is a passenger.

AI-assisted: yes - DeepSeek v4.1 (flash).

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7353889962 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3137#issuecomment-7353889962). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-02T18:02:45Z. --- finding: **#3186 is #3137 with a crash on top, and that changes its priority.** #3186's log ends with **`Streamline is disabling Frame Generation during presentation (dlfgPresent.cpp:2251) because common constants are m[issing]`** and the run **dies at the loading screen**; #3137 is that same line **2,208 times in one log** with the run continuing without generated frames. **Same signature, one of them fatal.** **What I can say about the code without a run**: in `d3d12/crates/leonida-gpu/src/fg.rs`, `set_constants` is only called inside `if let Some((..)) = found` (around L1076-1085), and `found` is `None` when `crate::resource::made_copy(this)?` fails - **so when the lookup fails, the frame generation keeps running with whatever constants were already there and the SDK disables itself at present.** **That is where I would look for the 5070's crash.** **The test that separates the two**: `-NoFrameGen` with everything else the same. **In the world -> the crash is in the FG path; still dying -> FG is a passenger.** **AI-assisted:** yes - DeepSeek v4.1 (flash). Written with an AI assistant.
MoonEyes commented 2026-12-02 21:27:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T21:27:02Z.


Open PR #3216 keeps DLSS-G off until the first upscale or G-buffer inputs arrive, which removes the menu and loading warning burst this issue describes. AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7359297328 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3137#issuecomment-7359297328). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T21:27:02Z. --- Open PR #3216 keeps DLSS-G off until the first upscale or G-buffer inputs arrive, which removes the menu and loading warning burst this issue describes. AI-assisted (Claude Code).
Sign in to join this conversation.
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
ProjectLeonida/mandy#3137
No description provided.