Auto FG limiter regression (#3062): major menu/map FPS loss and random Frame Generation dropouts (RTX 5070 Ti, x6) #3328

Open
opened 2026-12-03 12:27:45 +00:00 by Yoshi-OOF · 3 comments
Yoshi-OOF commented 2026-12-03 12:27:45 +00:00 (Migrated from github.com)
Contributor

Imported from ubiquitarianism/leonida. Originally posted by Yoshi-OOF on 2026-12-03T12:27:45Z.


What happens

Severe FPS regression after several recent pulls, affecting both menus and the map. Frame Generation also randomly disables without being manually turned off, despite the launcher requesting DLSS Frame Generation x6.

Changing only the existing upstream setting LEONIDA_FG_LIMIT_FPS=0, while retaining DLSS Performance and DLSS Frame Generation x6, restores much better performance:

FG limiter setting Menus Map
Default (unset / auto) approximately 10–14 FPS approximately 10–14 FPS
LEONIDA_FG_LIMIT_FPS=0 approximately 60 FPS approximately 60 FPS

These are the FPS figures reported by the user; they are not independently classified as rendered versus generated/presented FPS. The table describes the FPS improvement, not a separate verification that every Frame Generation dropout is resolved.

This appears related to the adaptive Reflex/Frame Generation limiter introduced by #3062. The first bad commit has not been bisected, so this is not a claim that #3062 is conclusively the sole cause.

This is an additional configuration-specific report related to #3260, with an RTX 5070 Ti and FG x6. Please consolidate if it is the same underlying bug.

Version

Checked-out main when collecting this report: b053a1813c8980c4357d51bbe6e69a35dc8c476c.

The exact source revision of the affected running binary was not independently established. The regression was noticed after several recent updates, not isolated to one commit.

System and requested launch settings

  • Windows 11 Pro, build 26300
  • Intel Core i7-14700K
  • 64 GiB RAM
  • NVIDIA RTX 5070 Ti 16 GB
  • NVIDIA driver 621.24 (32.0.16.2124)
  • D3D12 backend, diag build with diagnostics,dlss,mimalloc
  • Series X profile
  • DLSS Performance
  • DLSS Frame Generation x6
  • Smooth Motion disabled

These are the requested launcher settings, not a claim of independently verified in-game DLSS/FG telemetry in this session.

Steps / workaround

  1. Start with the settings above and the default adaptive limiter (LEONIDA_FG_LIMIT_FPS unset / auto).
  2. Observe the low FPS in menus and on the map, along with Frame Generation randomly disabling.
  3. Set the existing upstream option in the launcher's -More hashtable:
LEONIDA_FG_LIMIT_FPS = '0'
  1. Restart while retaining the other requested settings, including DLSS Performance and FG x6.
  2. The user reports the FPS improvement shown in the table above in both menus and on the map.

No local renderer/loader patches were reapplied for this workaround. It changes the limiter setting, not DLSS mode or the requested FG multiplier. No explicit cache purge was performed as part of this change.

Expected

The default adaptive limiter should not cause such a large FPS loss in menus/map rendering, and Frame Generation should not disable unexpectedly while it remains requested. Please check FG x6, menu/loading transitions, and changes in Streamline's actually-presented frame count, not only steady FG x2 gameplay.

Related proposed fixes: #3278 (followed limit recovering after a stall) and #3216 (defer FG until valid inputs arrive). They may address related paths; this report does not establish that either completely fixes this case.

Evidence / limits

The FPS figures and random Frame Generation dropouts are user-reported. No frametime capture, attached log, or formal controlled benchmark is available for this report, and the introducing commit has not been isolated.

AI assistance: the issue write-up and repository research were prepared with an AI assistant; the runtime observations came from the user.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6768476327 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3328). Originally posted by [Yoshi-OOF](https://github.com/Yoshi-OOF) on 2026-12-03T12:27:45Z. --- ### What happens Severe FPS regression after several recent pulls, affecting both menus and the map. **Frame Generation also randomly disables without being manually turned off**, despite the launcher requesting DLSS Frame Generation x6. Changing only the existing upstream setting **`LEONIDA_FG_LIMIT_FPS=0`**, while retaining DLSS Performance and DLSS Frame Generation x6, restores much better performance: | FG limiter setting | Menus | Map | | --- | --- | --- | | Default (`unset` / `auto`) | approximately 10–14 FPS | approximately 10–14 FPS | | `LEONIDA_FG_LIMIT_FPS=0` | approximately 60 FPS | approximately 60 FPS | These are the FPS figures reported by the user; they are not independently classified as rendered versus generated/presented FPS. The table describes the FPS improvement, not a separate verification that every Frame Generation dropout is resolved. This appears related to the adaptive Reflex/Frame Generation limiter introduced by **#3062**. The first bad commit has **not** been bisected, so this is not a claim that #3062 is conclusively the sole cause. This is an additional configuration-specific report related to **#3260**, with an RTX 5070 Ti and FG x6. Please consolidate if it is the same underlying bug. ### Version Checked-out `main` when collecting this report: `b053a1813c8980c4357d51bbe6e69a35dc8c476c`. The exact source revision of the affected running binary was not independently established. The regression was noticed after several recent updates, not isolated to one commit. ### System and requested launch settings - Windows 11 Pro, build 26300 - Intel Core i7-14700K - 64 GiB RAM - NVIDIA RTX 5070 Ti 16 GB - NVIDIA driver 621.24 (`32.0.16.2124`) - D3D12 backend, `diag` build with `diagnostics,dlss,mimalloc` - Series X profile - DLSS **Performance** - DLSS Frame Generation **x6** - Smooth Motion disabled These are the requested launcher settings, not a claim of independently verified in-game DLSS/FG telemetry in this session. ### Steps / workaround 1. Start with the settings above and the default adaptive limiter (`LEONIDA_FG_LIMIT_FPS` unset / `auto`). 2. Observe the low FPS in menus and on the map, along with Frame Generation randomly disabling. 3. Set the existing upstream option in the launcher's `-More` hashtable: ```powershell LEONIDA_FG_LIMIT_FPS = '0' ``` 4. Restart while retaining the other requested settings, including DLSS Performance and FG x6. 5. The user reports the FPS improvement shown in the table above in both menus and on the map. No local renderer/loader patches were reapplied for this workaround. It changes the limiter setting, not DLSS mode or the requested FG multiplier. No explicit cache purge was performed as part of this change. ### Expected The default adaptive limiter should not cause such a large FPS loss in menus/map rendering, and Frame Generation should not disable unexpectedly while it remains requested. Please check **FG x6**, menu/loading transitions, and changes in Streamline's actually-presented frame count, not only steady FG x2 gameplay. Related proposed fixes: **#3278** (followed limit recovering after a stall) and **#3216** (defer FG until valid inputs arrive). They may address related paths; this report does not establish that either completely fixes this case. ### Evidence / limits The FPS figures and random Frame Generation dropouts are user-reported. No frametime capture, attached log, or formal controlled benchmark is available for this report, and the introducing commit has not been isolated. AI assistance: the issue write-up and repository research were prepared with an AI assistant; the runtime observations came from the user.
Headache3318 commented 2026-12-03 12:46:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by Headache3318 on 2026-12-03T12:46:51Z.


Reproduced the mechanism from the code on this rig (3x RTX 4090, driver 620.73.04, Arch, wine 11.23, kernel 7.3.6, 8 cores, 60 GB); #3278 as written fixes all four pieces, #3216 also removes the first-window stall. Numbers, and the follow climb, in the follow-up claims below (VERIFY-3278-RTX4090-FG on #3312).

What LEONIDA_FG_LIMIT_FPS unset does to fps, from follow_rules and Follow::next in d3d12/crates/leonida-gpu/src/fg.rs on d15e048a7:

  1. Reflex holds shown frames to follow.limit / SHOWN (see fg.rs around line 1290, frameLimitUs: rendered_us / shown). With FG x6 (SHOWN = 6), follow.limit = 100_000 us paces Reflex to 16_667 us = 60 fps SHOWN = 10 fps rendered. That is your 10-14.
  2. Reflex is what paces presents, so the window's own median is the limit itself — median = follow.limit * 1.00, always in the at_limit path, never settle. best (Follow::best) updates only in the settle path or the limit == 0 first window, so on a card faster than the follow's own limit, best is fixed at its first value.
  3. If the very first window's median is a stall (>= SLOWEST_US = 100_000), settle clamps to SLOWEST_US, follow.limit = new = settle = 100_000, so new == settle fires the best guard (100_000 > FASTEST_US * BEST_FLOOR = 20_000 = true), best = 100_000. Then far = limit > best * FAR_FROM_BEST = 115_000 = 100_000 > 115_000 = false, and follow.limit can never grow past SLOWEST_US = 100_000, so far never fires again. climb never doubles; each try is 5% at PROBE_AFTER = 3 windows = 6 seconds. From 10 fps rendered to 60 fps is about 36 steps = 216 seconds minimum, longer once BACKOFF = 10 windows waits on the overshoots. That is what your menus sit through.
  4. The "Frame Generation randomly disables" is the same machinery from a different angle: probed stays set across windows that KEEP filtered out (moved = 6_000 <= 100_000 * KEEP = 3_000 in your case, so probed = false never reached, probed remains true), so the next window's median at 100_000 looks like "a try that failed", and hold = BACKOFF = 10 windows = 20 more seconds of 10 fps before the next try. With a SHOWN that has jumped from 1 (unfocused window) to 6 (menu FG engaged) and again = ... firing, Reflex's frameLimitUs also flips between 100_000 and 16_667 = 60 and 10 fps, which as telemetry can look like FG off then on again.

Why #3278 fixes those four pieces: far at self.best == 0 || limit > best * FAR_FROM_BEST (starts fast), hold = BACKOFF only when settle < SLOWEST_US (a stall's clamp does not count as a failed try), best guard gets && settle < SLOWEST_US (a stall does not set best), and the else { self.probed = false } branch resets probed when KEEP filtered new out. #3216 stops the first window from being a stall in the first place, so best never has a stall to be set from. Both together look like the right shape for this.

Environment notes, so anyone reproducing this from the outside can compare:

  • mandy-kit/start.sh runs run --execute mode on Z:\home\cinnamon\Torrents\GTA6.Xbox.v1.0.2.1-CYBERLEEK\game_scarlett_master.exe with LEONIDA_RENDER_SCALE=0.5 and the texture-starvation family (TEXTURE_NO_WAIT=1 RELAY=2 CARD_STEPS=2 ...), so the base rate here is 0.5-scaled, not what a 1440p launcher benchmark would show.
  • DLSS FG on Linux/wine needs LEONIDA_STREAMLINE_DIR pointing at sl.interposer.dll sl.common.dll sl.dlss_g.dll sl.reflex.dll sl.pcl.dll nvngx_dlssg.dll plus dxvk-nvapi for NVAPI on the display driver side. I have them on this box but they are NVIDIA's licensed DLLs and are not in the repository, so any reproducer will have to fetch its own SDK copy.
  • I did not run =0 first; my first run is auto on main + #3278, then auto on main alone as the control, so the two binaries and the same env on the same card.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7378825642 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3328#issuecomment-7378825642). Originally posted by [Headache3318](https://github.com/Headache3318) on 2026-12-03T12:46:51Z. --- Reproduced the mechanism from the code on this rig (3x RTX 4090, driver 620.73.04, Arch, wine 11.23, kernel 7.3.6, 8 cores, 60 GB); #3278 as written fixes all four pieces, #3216 also removes the first-window stall. Numbers, and the follow climb, in the follow-up claims below (VERIFY-3278-RTX4090-FG on #3312). What `LEONIDA_FG_LIMIT_FPS` unset does to fps, from `follow_rules` and `Follow::next` in `d3d12/crates/leonida-gpu/src/fg.rs` on `d15e048a7`: 1. Reflex holds **shown** frames to `follow.limit / SHOWN` (see `fg.rs` around line 1290, `frameLimitUs: rendered_us / shown`). With FG x6 (`SHOWN = 6`), `follow.limit = 100_000 us` paces Reflex to `16_667 us = 60 fps SHOWN = 10 fps rendered`. That is your 10-14. 2. Reflex is what paces presents, so the **window's own median is the limit itself** — `median = follow.limit * 1.00`, always in the `at_limit` path, never `settle`. `best` (`Follow::best`) updates only in the `settle` path or the `limit == 0` first window, so on a card faster than the follow's own limit, `best` is fixed at its first value. 3. If the very first window's median is a stall (>= `SLOWEST_US = 100_000`), `settle` clamps to `SLOWEST_US`, `follow.limit = new = settle = 100_000`, so `new == settle` fires the `best` guard (`100_000 > FASTEST_US * BEST_FLOOR = 20_000` = true), `best = 100_000`. Then `far = limit > best * FAR_FROM_BEST = 115_000` = `100_000 > 115_000` = false, and `follow.limit` can never grow past `SLOWEST_US` = 100_000, so `far` never fires again. `climb` never doubles; each try is 5% at `PROBE_AFTER = 3` windows = 6 seconds. From 10 fps rendered to 60 fps is about 36 steps = 216 seconds minimum, longer once `BACKOFF = 10` windows waits on the overshoots. That is what your menus sit through. 4. The "Frame Generation randomly disables" is the same machinery from a different angle: `probed` stays set across windows that `KEEP` filtered out (`moved = 6_000 <= 100_000 * KEEP = 3_000` in your case, so `probed = false` never reached, `probed` remains true), so the next window's median at 100_000 looks like "a try that failed", and `hold = BACKOFF = 10` windows = 20 more seconds of 10 fps before the next try. With a `SHOWN` that has jumped from 1 (unfocused window) to 6 (menu FG engaged) and `again = ...` firing, Reflex's `frameLimitUs` also flips between 100_000 and 16_667 = 60 and 10 fps, which as telemetry can look like FG off then on again. Why #3278 fixes those four pieces: `far` at `self.best == 0 || limit > best * FAR_FROM_BEST` (starts fast), `hold = BACKOFF` only when `settle < SLOWEST_US` (a stall's clamp does not count as a failed try), `best` guard gets `&& settle < SLOWEST_US` (a stall does not set best), and the `else { self.probed = false }` branch resets `probed` when `KEEP` filtered `new` out. #3216 stops the first window from being a stall in the first place, so `best` never has a stall to be set from. Both together look like the right shape for this. Environment notes, so anyone reproducing this from the outside can compare: - `mandy-kit/start.sh` runs `run --execute` mode on `Z:\home\cinnamon\Torrents\GTA6.Xbox.v1.0.2.1-CYBERLEEK\game_scarlett_master.exe` with `LEONIDA_RENDER_SCALE=0.5` and the texture-starvation family (`TEXTURE_NO_WAIT=1 RELAY=2 CARD_STEPS=2 ...`), so the base rate here is 0.5-scaled, not what a 1440p launcher benchmark would show. - DLSS FG on Linux/wine needs `LEONIDA_STREAMLINE_DIR` pointing at `sl.interposer.dll sl.common.dll sl.dlss_g.dll sl.reflex.dll sl.pcl.dll nvngx_dlssg.dll` plus `dxvk-nvapi` for NVAPI on the display driver side. I have them on this box but they are NVIDIA's licensed DLLs and are not in the repository, so any reproducer will have to fetch its own SDK copy. - I did not run `=0` first; my first run is `auto` on `main + #3278`, then `auto` on `main` alone as the control, so the two binaries and the same env on the same card.
MoonEyes commented 2026-12-03 15:03:58 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T15:03:58Z.


LEONIDA_FG_LIMIT_FPS=0 is the safe workaround for now: it turns the auto limiter off and keeps DLSS and FG x6. A 3090 run today saw the same thing at FG 2x: with the auto limit the menus and loading run at 10-19 fps and the limit only climbs back after about 200 s; without it, rendering is faster and steadier. #3278 (the limit stuck low after a stall) and #3216 (FG kept off until the game's inputs arrive) address parts of it and are not merged yet. Could you attach a log from a run where FG turns itself off, so we can see whether that is the limiter or something else?

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7382503372 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3328#issuecomment-7382503372). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T15:03:58Z. --- `LEONIDA_FG_LIMIT_FPS=0` is the safe workaround for now: it turns the auto limiter off and keeps DLSS and FG x6. A 3090 run today saw the same thing at FG 2x: with the auto limit the menus and loading run at 10-19 fps and the limit only climbs back after about 200 s; without it, rendering is faster and steadier. #3278 (the limit stuck low after a stall) and #3216 (FG kept off until the game's inputs arrive) address parts of it and are not merged yet. Could you attach a log from a run where FG turns itself off, so we can see whether that is the limiter or something else?
Yoshi-OOF commented 2026-12-03 15:43:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by Yoshi-OOF on 2026-12-03T15:43:01Z.


LEONIDA_FG_LIMIT_FPS=0 is the safe workaround for now: it turns the auto limiter off and keeps DLSS and FG x6. A 3090 run today saw the same thing at FG 2x: with the auto limit the menus and loading run at 10-19 fps and the limit only climbs back after about 200 s; without it, rendering is faster and steadier. #3278 (the limit stuck low after a stall) and #3216 (FG kept off until the game's inputs arrive) address parts of it and are not merged yet. Could you attach a log from a run where FG turns itself off, so we can see whether that is the limiter or something else?

No need for logs, the only changes I made was LEONIDA_FG_LIMIT_FPS=0.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7383613426 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/3328#issuecomment-7383613426). Originally posted by [Yoshi-OOF](https://github.com/Yoshi-OOF) on 2026-12-03T15:43:01Z. --- > `LEONIDA_FG_LIMIT_FPS=0` is the safe workaround for now: it turns the auto limiter off and keeps DLSS and FG x6. A 3090 run today saw the same thing at FG 2x: with the auto limit the menus and loading run at 10-19 fps and the limit only climbs back after about 200 s; without it, rendering is faster and steadier. [#3278](https://github.com/ProjectLeonida/mandy/pull/3278) (the limit stuck low after a stall) and [#3216](https://github.com/ProjectLeonida/mandy/pull/3216) (FG kept off until the game's inputs arrive) address parts of it and are not merged yet. Could you attach a log from a run where FG turns itself off, so we can see whether that is the limiter or something else? No need for logs, the only changes I made was LEONIDA_FG_LIMIT_FPS=0.
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#3328
No description provided.