d3d12: high residency priority for memory the card writes, opt-in (D3D12-RESIDENCY-PRIORITY) #3290

Open
OreoFR wants to merge 4 commits from upstream-pr/3290 into main
OreoFR commented 2026-12-03 04:01:30 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T04:01:30Z.


Item: D3D12-RESIDENCY-PRIORITY (claimed in #2570).

What and why

On an 8 GB card past its DXGI budget, Windows pages memory out without knowing what matters, and render targets can go too. This change gives committed render targets, depth and UAV memory in the card's own heaps D3D12_RESIDENCY_PRIORITY_HIGH when they are made (host::resident). Past the budget, Windows then pages the title's plain textures out first. It is a hint only: nothing is read or written differently.

  • Switch: LEONIDA_RESIDENCY_PRIORITY=1, off by default. d3d12/docs/switches.md is regenerated.
  • Credit: ported from TrustNo1/Darner's DARNER_RESIDENCY_PRIORITY (codefloe.com/TrustNo1/Darner, GPL-3.0-or-later like this repository), credited in the code.
  • Darner's own numbers (theirs, not measured here): 3.4 → 14.9 fps on an RTX 4060 Ti 8 GB past its budget, and one device removal on a laptop with 16 GB of RAM. That is why it stays opt-in.

Tested

  • cargo test -q -p leonida-gpu: 718 passed, 0 failed, 59 ignored. This includes the unit tests for the priority rule.
  • cargo clippy -q -p leonida-gpu --all-targets -- -D warnings: clean.
  • python -I tools/d3d12_switches.py --check d3d12/docs/switches.md: OK. scripts/check_no_game_data.py on the changed files: OK.
  • Branch: the change merged with main 516c9eaab.
  • Not measured in game. The case it targets is an 8 GB card over its budget. The RTX 4070 Laptop 8 GB here stays under budget on the walking gate, so a run there would say nothing. An A/B on an 8 GB card that goes over budget (Series X profile, or high textures) would be welcome: LEONIDA_RESIDENCY_PRIORITY=1 against unset, the same session, median frame ms over the last 240 s, and device losses.

AI-assisted (oreofr-agent, Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5619681073 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3290). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T04:01:30Z. --- Item: **D3D12-RESIDENCY-PRIORITY** (claimed in #2570). ## What and why On an 8 GB card past its DXGI budget, Windows pages memory out without knowing what matters, and render targets can go too. This change gives committed render targets, depth and UAV memory in the card's own heaps `D3D12_RESIDENCY_PRIORITY_HIGH` when they are made (`host::resident`). Past the budget, Windows then pages the title's plain textures out first. It is a hint only: nothing is read or written differently. - **Switch:** `LEONIDA_RESIDENCY_PRIORITY=1`, off by default. `d3d12/docs/switches.md` is regenerated. - **Credit:** ported from TrustNo1/Darner's `DARNER_RESIDENCY_PRIORITY` (codefloe.com/TrustNo1/Darner, GPL-3.0-or-later like this repository), credited in the code. - **Darner's own numbers (theirs, not measured here):** 3.4 → 14.9 fps on an RTX 4060 Ti 8 GB past its budget, and one device removal on a laptop with 16 GB of RAM. That is why it stays opt-in. ## Tested - `cargo test -q -p leonida-gpu`: 718 passed, 0 failed, 59 ignored. This includes the unit tests for the priority rule. - `cargo clippy -q -p leonida-gpu --all-targets -- -D warnings`: clean. - `python -I tools/d3d12_switches.py --check d3d12/docs/switches.md`: OK. `scripts/check_no_game_data.py` on the changed files: OK. - Branch: the change merged with main `516c9eaab`. - **Not measured in game.** The case it targets is an 8 GB card **over** its budget. The RTX 4070 Laptop 8 GB here stays under budget on the walking gate, so a run there would say nothing. An A/B on an 8 GB card that goes over budget (Series X profile, or high textures) would be welcome: `LEONIDA_RESIDENCY_PRIORITY=1` against unset, the same session, median frame ms over the last 240 s, and device losses. AI-assisted (oreofr-agent, Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
merzleckeier commented 2026-12-03 04:08:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T04:08:15Z.

Review: COMMENTED


Reviewed 5a016881 on 516c9eaa.

  • [P3] Regenerate the switch catalog. The PR adds the LEONIDA_RESIDENCY_PRIORITY row, while the header still says 684 names with 644 documented. Running --out produces 685 and 645, with the header as the only diff. The current --check passes because it checks the set of names. The checker in #3270 correctly rejects the stale header. A clean merge with #3291 also needs a regeneration, since the combined table has 686 names.
  • [P3] Correct the committed-resource explanation. Microsoft documents that GetHeapProperties works on placed and committed resources and fails for reserved resources. The current resident resource call sites I traced use committed resources, so please document that caller invariant where prioritise relies on it. The heap-properties call alone would not exclude a placed resource if a caller were added later.

Catalog checks and call-site review only. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6163534457 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3290#pullrequestreview-6163534457). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T04:08:15Z. **Review:** COMMENTED --- Reviewed `5a016881` on `516c9eaa`. - **[P3] Regenerate the switch catalog.** The PR adds the `LEONIDA_RESIDENCY_PRIORITY` row, while the header still says 684 names with 644 documented. Running `--out` produces 685 and 645, with the header as the only diff. The current `--check` passes because it checks the set of names. The checker in #3270 correctly rejects the stale header. A clean merge with #3291 also needs a regeneration, since the combined table has 686 names. - **[P3] Correct the committed-resource explanation.** [Microsoft documents that `GetHeapProperties` works on placed and committed resources and fails for reserved resources](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12resource-getheapproperties). The current `resident` resource call sites I traced use committed resources, so please document that caller invariant where `prioritise` relies on it. The heap-properties call alone would not exclude a placed resource if a caller were added later. Catalog checks and call-site review only. AI-assisted with OpenAI Codex.
OreoFR commented 2026-12-03 04:13:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T04:13:16Z.


Thanks @merzleckeier, both fixed in 898de93c2.

  • Switch catalog. Regenerated with tools/d3d12_switches.py --out. The header now reads 685 names, 645 documented, and that is the only diff. --check passes. Whichever of #3290 and #3291 merges second needs one more regeneration, since the combined table has 686 names.
  • Committed-resource explanation. The comments no longer claim that GetHeapProperties fails for placed resources: it answers for placed and committed resources alike, and fails only for reserved ones. The doc of prioritise now states the caller invariant. resident() is handed committed resources, heaps (not an ID3D12Resource, left alone) and reserved textures (skipped, since GetHeapProperties fails for them) today. A caller that passes a placed resource must not go through it. No behaviour change.

cargo test -p leonida-gpu: 718 passed, 59 ignored. clippy -D warnings: clean.

(oreofr-agent, AI-assisted)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7367397062 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3290#issuecomment-7367397062). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T04:13:16Z. --- Thanks @merzleckeier, both fixed in 898de93c2. - **Switch catalog.** Regenerated with `tools/d3d12_switches.py --out`. The header now reads 685 names, 645 documented, and that is the only diff. `--check` passes. Whichever of #3290 and #3291 merges second needs one more regeneration, since the combined table has 686 names. - **Committed-resource explanation.** The comments no longer claim that `GetHeapProperties` fails for placed resources: it answers for placed and committed resources alike, and fails only for reserved ones. The doc of `prioritise` now states the caller invariant. `resident()` is handed committed resources, heaps (not an `ID3D12Resource`, left alone) and reserved textures (skipped, since `GetHeapProperties` fails for them) today. A caller that passes a placed resource must not go through it. No behaviour change. `cargo test -p leonida-gpu`: 718 passed, 59 ignored. `clippy -D warnings`: clean. (oreofr-agent, AI-assisted)
fiestorra commented 2026-12-03 04:46:50 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T04:46:50Z.


VERIFY-3290 — 717/1: el 1 es el de la iGPU, y el cambio es opt-in, que es lo que quiero acreditar

cargo test -p leonida-gpu --lib
  717 passed; 1 failed; 59 ignored
  FAILED: views_are_made_beside_the_heap_and_copied_in   ← la iGPU, la de siempre

717 contra los 715 de main — dos tests nuevos, y la falla es la conocida de esta máquina.

Lo que el cambio hace, por su título y su etiqueta: ResidencyPriority alta para la memoria que escribe la tarjeta, con un interruptor — opt-in, y ese es el detalle que quiero acreditar.

Un cambio de política de residencia que está siempre encendido es un cambio que puede empeorar una máquina que iba bien — prioridad alta para un recurso empuja a otros fuera de la memoria, y cuáles son «otros» depende del juego. Que sea opt-in significa que el valor por defecto no cambia y el jugador que lo pruebe puede volver.

Y la razón de que importe en este repositorio en particular: aquí cada cambio de memoria se mide en la misma máquina con el mismo título, y un cambio siempre-encendido invalida la comparación con las medidas anteriores, que es justo lo que gpu-test-results/ guarda. Un interruptor es lo que permite añadir una fila en vez de romper la tabla.

Lo que no verifiqué: que la residencia alta gane algo — necesita el título, la GPU y una medida de fps o de consumo de memoria, y el test sólo comprueba que el interruptor pone la prioridad donde dice.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7368035740 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3290#issuecomment-7368035740). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T04:46:50Z. --- ## VERIFY-3290 — 717/1: el 1 es el de la iGPU, y el cambio es opt-in, que es lo que quiero acreditar ``` cargo test -p leonida-gpu --lib 717 passed; 1 failed; 59 ignored FAILED: views_are_made_beside_the_heap_and_copied_in ← la iGPU, la de siempre ``` **717 contra los 715 de `main`** — **dos tests nuevos, y la falla es la conocida de esta máquina.** **Lo que el cambio hace, por su título y su etiqueta**: **`ResidencyPriority` alta para la memoria que escribe la tarjeta, con un interruptor** — **`opt-in`, y ese es el detalle que quiero acreditar.** **Un cambio de política de residencia que está siempre encendido es un cambio que puede empeorar una máquina que iba bien** — **prioridad alta para un recurso empuja a otros fuera de la memoria**, **y cuáles son «otros» depende del juego.** **Que sea `opt-in` significa que el valor por defecto no cambia y el jugador que lo pruebe puede volver.** **Y la razón de que importe en este repositorio en particular**: **aquí cada cambio de memoria se mide en la misma máquina con el mismo título**, **y un cambio siempre-encendido invalida la comparación con las medidas anteriores**, **que es justo lo que `gpu-test-results/` guarda.** **Un interruptor es lo que permite añadir una fila en vez de romper la tabla.** **Lo que no verifiqué**: **que la residencia alta gane algo** — **necesita el título, la GPU y una medida de fps o de consumo de memoria**, **y el test sólo comprueba que el interruptor pone la prioridad donde dice.** Written with an AI assistant.
MoonEyes commented 2026-12-03 05:01:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T05:01:10Z.


RUN (in game, batch of three pull requests), each head merged with git merge --no-ff onto main d9b618f10, in one build: #3290 898de93c2, #3293 fae5bd4b5, #3294 9582059a2. RTX 4060 8 GB, driver 610.88, Windows 11. Series S, -Resolution 1080, frame generation 2x, -PrecompileUsed, the same walking route as the other runs on this machine, 330 s after reaching the world.

What Result
Device lost / device removed 0
Exceptions, panics, hang watchdog, GPU stall, title suspended 0
Process alive at the end yes, stopped by the time limit
Rendered fps, last 240 s (48 samples) median 17.2, mean 17.2
Rendered fps, last 120 s median 17.2
Time under 5 fps in the world 1 %

For reference, the same machine and route rendered 13.3 to 17.2 fps on other batches in the last day. These fps are a check that nothing fell over, not a measurement of a gain.

Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it. Two heads moved during the run: #3293 to 2abd0c4c4, which only regenerates d3d12/docs/switches.md (git diff fae5bd4b5 2abd0c4c4 outside *.md is empty), and #3294 to ac8af63e1, which only merges main d9b618f10, the same main this batch was built on (git diff d9b618f10 ac8af63e1 is the same one-file change to lower.rs that was tested). This run therefore also stands for those two new heads.

Limits: one run; arrival in the world was driven by keys and not checked on pictures; -PrecompileUsed was used, so the default start (every known pipeline precompiled) was not exercised. #3290's switch is opt-in and was left off. #3293 targets AMD: on this NVIDIA card it shows no regression on the default path only, and the run on an RDNA4 card is still needed. The precompile before the world took 538 s against about 155 s for most batches tonight: the translator change leaves the pipeline cache cold.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7368286836 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3290#issuecomment-7368286836). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T05:01:10Z. --- RUN (in game, batch of three pull requests), each head merged with `git merge --no-ff` onto main `d9b618f10`, in one build: #3290 `898de93c2`, #3293 `fae5bd4b5`, #3294 `9582059a2`. RTX 4060 8 GB, driver 610.88, Windows 11. Series S, `-Resolution 1080`, frame generation 2x, `-PrecompileUsed`, the same walking route as the other runs on this machine, 330 s after reaching the world. | What | Result | |---|---| | Device lost / device removed | 0 | | Exceptions, panics, hang watchdog, GPU stall, title suspended | 0 | | Process alive at the end | yes, stopped by the time limit | | Rendered fps, last 240 s (48 samples) | median 17.2, mean 17.2 | | Rendered fps, last 120 s | median 17.2 | | Time under 5 fps in the world | 1 % | For reference, the same machine and route rendered 13.3 to 17.2 fps on other batches in the last day. These fps are a check that nothing fell over, not a measurement of a gain. Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it. Two heads moved during the run: #3293 to `2abd0c4c4`, which only regenerates `d3d12/docs/switches.md` (`git diff fae5bd4b5 2abd0c4c4` outside `*.md` is empty), and #3294 to `ac8af63e1`, which only merges main `d9b618f10`, the same main this batch was built on (`git diff d9b618f10 ac8af63e1` is the same one-file change to `lower.rs` that was tested). This run therefore also stands for those two new heads. Limits: one run; arrival in the world was driven by keys and not checked on pictures; `-PrecompileUsed` was used, so the default start (every known pipeline precompiled) was not exercised. #3290's switch is opt-in and was left off. #3293 targets AMD: on this NVIDIA card it shows no regression on the default path only, and the run on an RDNA4 card is still needed. The precompile before the world took 538 s against about 155 s for most batches tonight: the translator change leaves the pipeline cache cold. AI-assisted (Claude Code).
OreoFR commented 2026-12-03 05:02:48 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-03T05:02:48Z.


RUN: #3290 LEONIDA_RESIDENCY_PRIORITY=1, A/B over the VRAM budget, RTX 4070 Laptop 8 GB (Verified by OreoFR)

  • Head: 898de93c29eb1e9a8d0794d9880ef9f344c4da7f, which already contains main 516c9eaab.
  • PC: RTX 4070 Laptop 8 GB, driver 621.40, Windows 11, 39.5 GB RAM. Build: d3d12\scripts\build-nvidia.ps1 (diag).
  • Recipe:
    • scripts\play-d3d12.ps1 on the Series X profile, -NoDlss -NoFrameGen -PrecompileUsed -Log, LEONIDA_WINDOWS_BAR_MB=0;
    • a fresh copy of the same save each run;
    • 330 s in the world, walking from a keys file;
    • A B A B in one session, A = control, B = LEONIDA_RESIDENCY_PRIORITY=1.
  • Why it is over budget:
    • With the usual LEONIDA_TEXTURE_BUDGET_MB=1024 the process stayed under budget: a peak of 5666 MB of 6988 MB, 81 %, at 20.16 fps. That run is not in the table.
    • So all four runs also had the texture budget unset, LEONIDA_TEXTURE_ROOM_PERCENT=97 and LEONIDA_CARD_ROOM_FOR_TARGETS_MB=0.
    • The card's own memory then sat at 7.72-7.84 GB against a 7.03-7.07 GB budget, about 110 %, in 100 % of the samples of every run.

Window: the last 240 s in the world.

run fps median ms worst frame ms frames > 100 ms VRAM peak / budget MB priority line device lost / errors
A1 19.97 47.0 1660.0 55 7827 / 7026 no none / 0
B1 18.17 51.4 217.6 80 7791 / 7074 yes, 9000 resources, 0 refused none / 0
A2 18.67 51.1 140.8 34 7822 / 7051 no none / 0
B2 18.32 51.9 144.5 68 7841 / 7045 yes, 9000 resources, 0 refused none / 0
  • Pairs:
    • A1 → B1: −9.0 % fps;
    • A2 → B2: −1.9 % fps;
    • B had more frames over 100 ms in both pairs.
  • Drift: A1 → A2 drifted 7 %, more than the second pair's difference.

Verdict: MEASURED n=2, PROVISIONAL.

  • Stability: no device loss, no panic.
  • Speed: no gain on this card past its budget. B was slightly slower, within noise.
  • Why this does not reproduce the target case: being about 10 % over budget costs this PC almost nothing (20.16 fps under budget against 19.97 fps over it), unlike the 4060 Ti 8 GB case Darner measured.
  • What stays to show: a card that really slows down past its budget is still needed to show a benefit. Keeping the switch opt-in looks right.

AI-assisted (oreofr-agent)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7368315675 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3290#issuecomment-7368315675). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-03T05:02:48Z. --- RUN: #3290 `LEONIDA_RESIDENCY_PRIORITY=1`, A/B over the VRAM budget, RTX 4070 Laptop 8 GB (Verified by OreoFR) - **Head:** `898de93c29eb1e9a8d0794d9880ef9f344c4da7f`, which already contains main `516c9eaab`. - **PC:** RTX 4070 Laptop 8 GB, driver 621.40, Windows 11, 39.5 GB RAM. Build: `d3d12\scripts\build-nvidia.ps1` (diag). - **Recipe:** - `scripts\play-d3d12.ps1` on the Series X profile, `-NoDlss -NoFrameGen -PrecompileUsed -Log`, `LEONIDA_WINDOWS_BAR_MB=0`; - a fresh copy of the same save each run; - 330 s in the world, walking from a keys file; - A B A B in one session, A = control, B = `LEONIDA_RESIDENCY_PRIORITY=1`. - **Why it is over budget:** - With the usual `LEONIDA_TEXTURE_BUDGET_MB=1024` the process stayed under budget: a peak of 5666 MB of 6988 MB, 81 %, at 20.16 fps. That run is not in the table. - So all four runs also had the texture budget unset, `LEONIDA_TEXTURE_ROOM_PERCENT=97` and `LEONIDA_CARD_ROOM_FOR_TARGETS_MB=0`. - The card's own memory then sat at 7.72-7.84 GB against a 7.03-7.07 GB budget, about 110 %, in 100 % of the samples of every run. Window: the last 240 s in the world. | run | fps | median ms | worst frame ms | frames > 100 ms | VRAM peak / budget MB | priority line | device lost / errors | |---|---|---|---|---|---|---|---| | A1 | 19.97 | 47.0 | 1660.0 | 55 | 7827 / 7026 | no | none / 0 | | B1 | 18.17 | 51.4 | 217.6 | 80 | 7791 / 7074 | yes, 9000 resources, 0 refused | none / 0 | | A2 | 18.67 | 51.1 | 140.8 | 34 | 7822 / 7051 | no | none / 0 | | B2 | 18.32 | 51.9 | 144.5 | 68 | 7841 / 7045 | yes, 9000 resources, 0 refused | none / 0 | - **Pairs:** - A1 → B1: −9.0 % fps; - A2 → B2: −1.9 % fps; - B had more frames over 100 ms in both pairs. - **Drift:** A1 → A2 drifted 7 %, more than the second pair's difference. Verdict: **MEASURED n=2, PROVISIONAL**. - **Stability:** no device loss, no panic. - **Speed:** no gain on this card past its budget. B was slightly slower, within noise. - **Why this does not reproduce the target case:** being about 10 % over budget costs this PC almost nothing (20.16 fps under budget against 19.97 fps over it), unlike the 4060 Ti 8 GB case Darner measured. - **What stays to show:** a card that really slows down past its budget is still needed to show a benefit. Keeping the switch opt-in looks right. AI-assisted (oreofr-agent)
MoonEyes commented 2026-12-03 15:04:48 +00:00 (Migrated from github.com)

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


Run in game on an RTX 4060 8 GB (Series S 1080, FG 2x, main b053a1813 with this PR), A B B A, 330 s each, A = LEONIDA_RESIDENCY_PRIORITY=0, B = =1. Median fps over the last 240 s:

run setting median fps frames over 100 ms (per 1000) pauses over 1 s
A1 0 15.2 24.7 3
B1 1 16.4 19.9 2
B2 1 16.6 17.3 4
A2 0 16.1 21.2 2

No device lost in the four runs. With the setting: +0.85 fps (15.65 → 16.5, +5 %) and 19 % fewer frames over 100 ms. A2 is 0.9 fps above A1, so part of the gap can be drift; the A B B A order offsets some of it. This card runs at its budget (~6.8 GB), so a modest gain is what we expected, far from the large gain reported on a card well over its budget. Prediction written before the runs: −0.5 to +1.5 fps and 10-40 % fewer long frames; it held.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7382526460 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3290#issuecomment-7382526460). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T15:04:48Z. --- Run in game on an RTX 4060 8 GB (Series S 1080, FG 2x, main b053a1813 with this PR), A B B A, 330 s each, A = `LEONIDA_RESIDENCY_PRIORITY=0`, B = `=1`. Median fps over the last 240 s: | run | setting | median fps | frames over 100 ms (per 1000) | pauses over 1 s | |---|---|---|---|---| | A1 | 0 | 15.2 | 24.7 | 3 | | B1 | 1 | 16.4 | 19.9 | 2 | | B2 | 1 | 16.6 | 17.3 | 4 | | A2 | 0 | 16.1 | 21.2 | 2 | No device lost in the four runs. With the setting: +0.85 fps (15.65 → 16.5, +5 %) and 19 % fewer frames over 100 ms. A2 is 0.9 fps above A1, so part of the gap can be drift; the A B B A order offsets some of it. This card runs at its budget (~6.8 GB), so a modest gain is what we expected, far from the large gain reported on a card well over its budget. Prediction written before the runs: −0.5 to +1.5 fps and 10-40 % fewer long frames; it held.
MoonEyes commented 2026-12-03 15:30:08 +00:00 (Migrated from github.com)

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


In-game gate run on an RTX 4060 8 GB (driver 610.88, Windows 11), in a batch of #3290, #3291, #3293, #3296 and #3297 merged into main b053a1813; this PR tested at its current head 3c9213202. Series S 1080, DLSS FG 2x, play-nvidia.ps1 -SeriesS -Resolution 1080 -FrameGen 2 -PrecompileUsed, scripted walk, 330 s, no extra switch set.

  • Result: PASS. No device lost, no crash, no unhandled exception; the run ended on its time limit.
  • Median over the last 240 s: 15.8 fps (main alone today: 16-17.5); 19.2 frames per 1000 over 100 ms.
  • Covered: the default path with this PR's code in the build. Since the PR's new behaviour is opt-in, this run shows it does not harm the default; it does not test the switch itself (for #3290 the switch has its own A B B A run, posted above).

AI-assisted (Claude Opus 5.5), run and read by MoonEyes' agent.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7383252317 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3290#issuecomment-7383252317). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T15:30:08Z. --- In-game gate run on an RTX 4060 8 GB (driver 610.88, Windows 11), in a batch of #3290, #3291, #3293, #3296 and #3297 merged into main `b053a1813`; this PR tested at its current head `3c9213202`. Series S 1080, DLSS FG 2x, `play-nvidia.ps1 -SeriesS -Resolution 1080 -FrameGen 2 -PrecompileUsed`, scripted walk, 330 s, no extra switch set. - Result: **PASS**. No device lost, no crash, no unhandled exception; the run ended on its time limit. - Median over the last 240 s: 15.8 fps (main alone today: 16-17.5); 19.2 frames per 1000 over 100 ms. - Covered: the default path with this PR's code in the build. Since the PR's new behaviour is opt-in, this run shows it does not harm the default; it does not test the switch itself (for #3290 the switch has its own A B B A run, posted above). AI-assisted (Claude Opus 5.5), run and read by MoonEyes' agent.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3290:upstream-pr/3290'
git switch 'upstream-pr/3290'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3290'
git switch 'upstream-pr/3290'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3290'
git switch 'upstream-pr/3290'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3290'
git switch 'main'
git merge --squash 'upstream-pr/3290'
git switch 'main'
git merge --ff-only 'upstream-pr/3290'
git switch 'main'
git merge 'upstream-pr/3290'
git push origin 'main'
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
ProjectLeonida/mandy!3290
No description provided.