leonida-gpu: LEONIDA_D3D12_BACKGROUND keeps the driver's background shader work out of the world, as a switch (D3D12-DRIVER-BACKGROUND-PLAY) #2847

Closed
TheGeogeo wants to merge 8 commits from upstream-pr/2847 into main
TheGeogeo commented 2026-12-01 07:59:41 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-12-01T07:59:41Z.


Claimed in the coordination issue as: D3D12-DRIVER-BACKGROUND-PLAY (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7302676817)

What and why

After pipelines are made or loaded, the driver compiles their shaders again on threads of its own in this process ("D3D Background Thread"s) and keeps the result in its own cache. Until that is done for the translations in use, those threads take one or two processors: 9 to 15 minutes of play after each change of translations, on a processor the title already fills.

This pull request makes that work a switch to choose. It is not a new default: the launcher and the runtime leave the driver as it is unless LEONIDA_D3D12_BACKGROUND is set.

  • 0: never. Set on the title's device when it is made (the call that was in host.rs).
  • world: off while the world is drawn, allowed in loading screens and menus. The world is counted as the game gate counts it: draw::drawn, 500 draws a frame, 2 counts of 0.5 s to enter, 10 to leave.
  • LEONIDA_AB can name it, for in-run A/B.
  • d3d12/crates/leonida-gpu/src/driver_background.rs holds all three. host.rs keeps one call. queue::presented() is available outside diagnostics builds.

Windows switches the work off only in Developer mode. Microsoft's page of D3D12_BACKGROUND_PROCESSING_MODE says of DISABLE_BACKGROUND_WORK: "Available only in Developer mode." Elsewhere the call fails; Kal0s-design measured 0x887a002d on every adapter, while ALLOWED succeeds. The refusal is written once at WARN with its code, naming Developer mode, and the thread stops asking.

Why it is not a default. The first measurements (below) saw a gain on the submitting thread. Two later checks on the merge with main saw more long frames with the work off while the driver still had some:

  • an RTX 3090 (enlight3d, 40 pairs);
  • the RTX 3080 here (two gate runs).

The assumption, not measured, is that with the work off the driver does at a pipeline's creation what it would otherwise do in the background. Both numbers are in findings.md, so a player or a later change can choose.

Measured

RTX 3080 10 GB, driver 32.0.16.2140, Windows 11 with Developer mode on, Series S settings, standing, gate runs with the driver mod.

  • The slow phase (2026-12-01).

    • While the driver's threads ran: 24.4-25.2 fps, card 77 % busy, 8.2 ms a frame idle behind the submitting thread.
    • Once they stopped: 26.4-27.2 fps, 83 %, 5.7 ms.
    • Switched every 20 s in one run: 38.1 ms median frame with the work off, 39.6 ms with it allowed.
  • On the merge with main (2026-12-02). Head c8b950cb4 merged onto main 3c106eb2f (launcher world), against main 3c106eb2f alone, one gate run each, 300 s in the world:

    this change, world main
    gate PASS, 304 s PASS, 307 s
    device lost, crashes 0, 0 0, 0
    rendered fps, median 27.6 27.9
    p5 fps / p95 frame 22.5 / 44.5 ms 21.6 / 46.4 ms
    longest present gap 5.1 s 0.78 s
    5 s windows with a frame over 1 s 8 1

    The long frames came while pipelines were made in the world (1 to 2.4 a second). With one run each, and the first run of the pair being this change, this is a sign, not a proof. It agrees with enlight3d's 3090 A/B: 73 frames over 50 ms with the work off against 42 allowed in the first ~300 s, and a 90th percentile 0.65 ms better allowed, while allowing it cost the submitting thread about 1 ms.

Tested

On Windows 11, from d3d12\ with the pinned toolchain:

  • cargo test -p leonida-gpu --locked --lib: 676 passed, 0 failed, 59 ignored.
    • In some full runs texture::alias_cast_tests::committed_and_placed_r32_uint_textures_cast_to_r9g9b9e5_under_legacy_barriers fails; it is green alone, and plain main shows the same.
    • With --features diagnostics: 747 passed.
  • driver_background::tests, 8 tests: the variable's values; the decision with and without an A/B phase; the world's hysteresis; each count judging only its own frames; a count without frames; WORLD_DRAWS read from tools/game_gate.py; a mode asked for only when it changes; a refusal reported once and not asked again.
  • Mutations each caught by a test: the refusal not remembered; WORLD_DRAWS at 50; the counter's mark not moved on.
  • cargo clippy -p leonida-gpu --all-targets --locked: no warning in the changed files.
  • Also clean: tools/d3d12_switches.py --check, tests/test_win_launchers.py (launcher unchanged from main), and scripts/check_no_game_data.py on the changed files.
  • In game: the runs above. With world, the log says allowed=true at start and allowed=false at world entry.

GPUs tested: NVIDIA GeForce RTX 3080 10 GB, driver 32.0.16.2140, Windows 11 Pro 26300 (Developer mode on). Also RTX 3090 / 621.40 by enlight3d, and the refusal without Developer mode by Kal0s-design.

AI-assisted: yes. Claude Code with Claude Fable 5.2 and Claude Opus 5.5; the diff was reviewed by a separate Claude Opus 5.5 agent.

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption, including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md (no translator change here).
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5581514776 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2847). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-12-01T07:59:41Z. --- Claimed in the coordination issue as: `D3D12-DRIVER-BACKGROUND-PLAY` (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7302676817) ### What and why After pipelines are made or loaded, the driver compiles their shaders again on threads of its own in this process ("D3D Background Thread"s) and keeps the result in its own cache. Until that is done for the translations in use, those threads take one or two processors: 9 to 15 minutes of play after each change of translations, on a processor the title already fills. This pull request makes that work a switch to choose. It is not a new default: the launcher and the runtime leave the driver as it is unless `LEONIDA_D3D12_BACKGROUND` is set. - `0`: never. Set on the title's device when it is made (the call that was in `host.rs`). - `world`: off while the world is drawn, allowed in loading screens and menus. The world is counted as the game gate counts it: `draw::drawn`, 500 draws a frame, 2 counts of 0.5 s to enter, 10 to leave. - `LEONIDA_AB` can name it, for in-run A/B. - `d3d12/crates/leonida-gpu/src/driver_background.rs` holds all three. `host.rs` keeps one call. `queue::presented()` is available outside diagnostics builds. **Windows switches the work off only in Developer mode.** Microsoft's page of [`D3D12_BACKGROUND_PROCESSING_MODE`](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ne-d3d12-d3d12_background_processing_mode) says of `DISABLE_BACKGROUND_WORK`: "Available only in Developer mode." Elsewhere the call fails; Kal0s-design measured `0x887a002d` on every adapter, while `ALLOWED` succeeds. The refusal is written once at WARN with its code, naming Developer mode, and the thread stops asking. **Why it is not a default.** The first measurements (below) saw a gain on the submitting thread. Two later checks on the merge with `main` saw more long frames with the work off while the driver still had some: - an RTX 3090 (enlight3d, 40 pairs); - the RTX 3080 here (two gate runs). The assumption, not measured, is that with the work off the driver does at a pipeline's creation what it would otherwise do in the background. Both numbers are in `findings.md`, so a player or a later change can choose. ### Measured RTX 3080 10 GB, driver 32.0.16.2140, Windows 11 with Developer mode on, Series S settings, standing, gate runs with the driver mod. - **The slow phase (2026-12-01).** - While the driver's threads ran: 24.4-25.2 fps, card 77 % busy, 8.2 ms a frame idle behind the submitting thread. - Once they stopped: 26.4-27.2 fps, 83 %, 5.7 ms. - Switched every 20 s in one run: 38.1 ms median frame with the work off, 39.6 ms with it allowed. - **On the merge with `main` (2026-12-02).** Head c8b950cb4 merged onto `main` 3c106eb2f (launcher `world`), against `main` 3c106eb2f alone, one gate run each, 300 s in the world: | | this change, `world` | `main` | | --- | --- | --- | | gate | PASS, 304 s | PASS, 307 s | | device lost, crashes | 0, 0 | 0, 0 | | rendered fps, median | 27.6 | 27.9 | | p5 fps / p95 frame | 22.5 / 44.5 ms | 21.6 / 46.4 ms | | longest present gap | 5.1 s | 0.78 s | | 5 s windows with a frame over 1 s | 8 | 1 | The long frames came while pipelines were made in the world (1 to 2.4 a second). With one run each, and the first run of the pair being this change, this is a sign, not a proof. It agrees with enlight3d's 3090 A/B: 73 frames over 50 ms with the work off against 42 allowed in the first ~300 s, and a 90th percentile 0.65 ms better allowed, while allowing it cost the submitting thread about 1 ms. ### Tested On Windows 11, from `d3d12\` with the pinned toolchain: - `cargo test -p leonida-gpu --locked --lib`: 676 passed, 0 failed, 59 ignored. - In some full runs `texture::alias_cast_tests::committed_and_placed_r32_uint_textures_cast_to_r9g9b9e5_under_legacy_barriers` fails; it is green alone, and plain `main` shows the same. - With `--features diagnostics`: 747 passed. - `driver_background::tests`, 8 tests: the variable's values; the decision with and without an A/B phase; the world's hysteresis; each count judging only its own frames; a count without frames; `WORLD_DRAWS` read from `tools/game_gate.py`; a mode asked for only when it changes; a refusal reported once and not asked again. - Mutations each caught by a test: the refusal not remembered; `WORLD_DRAWS` at 50; the counter's mark not moved on. - `cargo clippy -p leonida-gpu --all-targets --locked`: no warning in the changed files. - Also clean: `tools/d3d12_switches.py --check`, `tests/test_win_launchers.py` (launcher unchanged from `main`), and `scripts/check_no_game_data.py` on the changed files. - In game: the runs above. With `world`, the log says `allowed=true` at start and `allowed=false` at world entry. GPUs tested: NVIDIA GeForce RTX 3080 10 GB, driver 32.0.16.2140, Windows 11 Pro 26300 (Developer mode on). Also RTX 3090 / 621.40 by enlight3d, and the refusal without Developer mode by Kal0s-design. AI-assisted: yes. Claude Code with Claude Fable 5.2 and Claude Opus 5.5; the diff was reviewed by a separate Claude Opus 5.5 agent. ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption, including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md` (no translator change here).
lixonik commented 2026-12-01 09:27:55 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-01T09:27:55Z.


RUN

Verdict: same on 16C/32T (Ryzen 9 5950X) -- no statistically clear median frame-time difference in matched alternating 20 s phases, with zero errors, zero device-lost events, and clean cold PSO precompile.

Setup:

  • PR #2847 head 3a9afee52 merged onto main ad7c62edb (features diagnostics,dlss,mimalloc)
  • LEONIDA_AB=20,LEONIDA_D3D12_BACKGROUND (Series S, -NoFrameGen)
  • GPUs tested: NVIDIA GeForce RTX 5070 12 GB (driver 621.40, Windows 10 Pro 22H2 build 19045, Ryzen 9 5950X 16C/32T)

Unit test:

  • cargo test --locked -p leonida-gpu --lib driver_background passed.

In-run A/B (tools/d3d12_ab_compare.py phases):

  • 5 valid pairs (8 dropped for draw-count jumps): median frame-time delta -0.220 +- 0.220 ms (no clear difference)
  • Overall run: 27.6 fps / 36.2 ms (gpu_wait 0.0 ms, max 4,214 draws, 475.6 s cold precompile on fresh translations, 30 world samples, 0 errors, 0 device lost)

World phases (draws >= 1000):

Phase LEONIDA_D3D12_BACKGROUND Draws Mean (ms) Median (ms) p90 (ms)
20 OFF 1,652 31.6 31.0 35.1
21 ON 2,025 37.3 34.5 41.5
22 OFF 2,621 31.4 29.4 36.7
23 ON 4,110 39.0 37.7 44.9
24 OFF 4,166 38.7 37.6 40.6
25 ON 4,131 37.0 36.5 39.9

With 32 hardware threads on Ryzen 9 5950X, there is ample CPU headroom for driver background threads compared to 6C/8C CPUs, so same median on 16C/32T with zero regressions is expected and confirms stability on RTX 5070 + driver 621.40.

AI-assisted: Antigravity

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7306739321 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2847#issuecomment-7306739321). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-01T09:27:55Z. --- RUN Verdict: `same` on 16C/32T (Ryzen 9 5950X) -- no statistically clear median frame-time difference in matched alternating 20 s phases, with zero errors, zero device-lost events, and clean cold PSO precompile. Setup: - PR `#2847` head `3a9afee52` merged onto `main` `ad7c62edb` (features `diagnostics,dlss,mimalloc`) - `LEONIDA_AB=20,LEONIDA_D3D12_BACKGROUND` (`Series S`, `-NoFrameGen`) - GPUs tested: NVIDIA GeForce RTX 5070 12 GB (driver `621.40`, Windows 10 Pro 22H2 build 19045, Ryzen 9 5950X 16C/32T) Unit test: - `cargo test --locked -p leonida-gpu --lib driver_background` passed. In-run A/B (`tools/d3d12_ab_compare.py phases`): - 5 valid pairs (8 dropped for draw-count jumps): median frame-time delta `-0.220 +- 0.220 ms` (`no clear difference`) - Overall run: `27.6 fps` / `36.2 ms` (`gpu_wait 0.0 ms`, max `4,214` draws, `475.6 s` cold precompile on fresh translations, `30` world samples, `0` errors, `0` device lost) World phases (`draws >= 1000`): | Phase | `LEONIDA_D3D12_BACKGROUND` | Draws | Mean (ms) | Median (ms) | p90 (ms) | |---|---|---|---|---|---| | 20 | OFF | 1,652 | 31.6 | 31.0 | 35.1 | | 21 | ON | 2,025 | 37.3 | 34.5 | 41.5 | | 22 | OFF | 2,621 | 31.4 | 29.4 | 36.7 | | 23 | ON | 4,110 | 39.0 | 37.7 | 44.9 | | 24 | OFF | 4,166 | 38.7 | 37.6 | 40.6 | | 25 | ON | 4,131 | 37.0 | 36.5 | 39.9 | With 32 hardware threads on Ryzen 9 5950X, there is ample CPU headroom for driver background threads compared to 6C/8C CPUs, so `same` median on 16C/32T with zero regressions is expected and confirms stability on RTX 5070 + driver `621.40`. AI-assisted: Antigravity
MoonEyes commented 2026-12-01 14:25:12 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-01T14:25:12Z.


RUN (RTX 4060 8 GB, NVIDIA 610.88, Windows 11 26300, -SeriesS -FrameGen 2, about 860 s in the world, 0 device lost): head 3a9afee52 with six others on main 21e6bbf4b.

The switch never took effect here. LEONIDA_D3D12_BACKGROUND=world was set (launcher default of this pull request), the world drew 3,500 to 4,700 draws a frame by the five-second lines, and the log has one line only, at the start: allowed=true. There is no allowed=false in 14 minutes of world. In start(), a set_mode(false) that fails is tried again every 500 ms without a word, so that is my guess (not checked): SetBackgroundProcessingMode refuses DISABLE_BACKGROUND_WORK here. Could the thread log the HRESULT once, and does the mode need something on the machine (Developer Mode, for example)? Developer Mode is not set in the registry here.

No harm seen: no loss, no panic. But I can not confirm the effect.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7314219894 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2847#issuecomment-7314219894). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-01T14:25:12Z. --- RUN (RTX 4060 8 GB, NVIDIA 610.88, Windows 11 26300, `-SeriesS -FrameGen 2`, about 860 s in the world, 0 device lost): head `3a9afee52` with six others on `main` `21e6bbf4b`. The switch never took effect here. `LEONIDA_D3D12_BACKGROUND=world` was set (launcher default of this pull request), the world drew 3,500 to 4,700 draws a frame by the five-second lines, and the log has one line only, at the start: `allowed=true`. There is no `allowed=false` in 14 minutes of world. In `start()`, a `set_mode(false)` that fails is tried again every 500 ms without a word, so that is my guess (not checked): `SetBackgroundProcessingMode` refuses `DISABLE_BACKGROUND_WORK` here. Could the thread log the HRESULT once, and does the mode need something on the machine (Developer Mode, for example)? Developer Mode is not set in the registry here. No harm seen: no loss, no panic. But I can not confirm the effect. AI-assisted (Claude Code).
merzleckeier commented 2026-12-01 14:37:08 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T14:37:08Z.


I checked the actual HRESULT for the mode changes in 3a9afee5 + cd0c52fcf. On RTX 4070 SUPER (620.73.04) and AMD Raphael (RADV 26.3.1), Wine 11.22 and VKD3D-Proton exposed ID3D12Device6. SetBackgroundProcessingMode(ALLOWED / DISABLE_BACKGROUND_WORK / ALLOWED, KEEP_ALL, null, null) returned E_NOTIMPL (0x80004001) for all three calls on each GPU. The four policy tests also passed.

For the native Windows question, Microsoft documents that DISABLE_BACKGROUND_WORK is available only in Developer Mode. That fits the reported native pattern of an initial allowed=true without a later successful disable. The native HRESULT is still unmeasured here. A one-time log of the attempted mode and HRESULT would distinguish that case from a missed threshold. Microsoft D3D12_BACKGROUND_PROCESSING_MODE documentation

MEASURED with offscreen synthetic devices under Wine. AI-assisted (Codex).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7314551422 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2847#issuecomment-7314551422). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-01T14:37:08Z. --- I checked the actual HRESULT for the mode changes in `3a9afee5` + `cd0c52fcf`. On RTX 4070 SUPER (620.73.04) and AMD Raphael (RADV 26.3.1), Wine 11.22 and VKD3D-Proton exposed `ID3D12Device6`. `SetBackgroundProcessingMode(ALLOWED / DISABLE_BACKGROUND_WORK / ALLOWED, KEEP_ALL, null, null)` returned `E_NOTIMPL` (`0x80004001`) for all three calls on each GPU. The four policy tests also passed. For the native Windows question, Microsoft documents that `DISABLE_BACKGROUND_WORK` is available only in Developer Mode. That fits the reported native pattern of an initial `allowed=true` without a later successful disable. The native HRESULT is still unmeasured here. A one-time log of the attempted mode and HRESULT would distinguish that case from a missed threshold. [Microsoft D3D12_BACKGROUND_PROCESSING_MODE documentation](https://learn.microsoft.com/en-us/windows/win32/api/d3d12/ne-d3d12-d3d12_background_processing_mode) MEASURED with offscreen synthetic devices under Wine. AI-assisted (Codex).
KelboLive commented 2026-12-01 17:58:15 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T17:58:15Z.

Review: CHANGES_REQUESTED


The draw-counter and docs side is consistent: WORLD_DRAWS = 500.0 matches tools/game_gate.py:22 and its two-line rule, ENTER/LEAVE 2/10 × 0.5 s matches the text, the frame log stays exact (list.rs:2541-2551, no new atomic on count_draw), and 604 tests pass (the 2 diagnostics failures are the known parallel flakes, green alone).

Blocking: the mechanism is restricted to Windows Developer Mode, and the failure is silent. D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_BACKGROUND_WORK is documented as requiring Developer Mode. set_mode discards the HRESULT (driver_background.rs:153-167), the caller logs only on success (:139-147) and retries every 500 ms. On a default Windows install that produces exactly the allowed=true then silence MoonEyes reported, and matches merzleckeier's E_NOTIMPL — the PR's successful allowed=false run implies a machine where it was permitted. Neither findings.md nor switches.md mentions the precondition, and play-nvidia.ps1:278 now defaults the launcher to world, so for most users the headline feature is a silent no-op that looks like it worked.

Please:

  1. log the first HRESULT once (with the mode and Developer Mode named in the message), instead of retrying into silence;
  2. document the Developer Mode precondition in both findings.md and switches.md;
  3. hold the world launcher default until a run on a non-Developer-Mode install confirms the mode actually changes — or make the default conditional on a successful probe.

Also, WORLD_DRAWS = 500.0 mirrors the gate only by comment: mutating it to 50.0 leaves all four driver_background tests green, so nothing pins the "as the game gate counts it" claim. A test that imports the number from game_gate.py (or asserts the same value) would.

Minor: driver_background.rs:11 says "~9 minutes" while findings/body say "9 to 15", and findings.md:1731 says a repeat run "has none" then that the threads stop about 45 s after the world comes up — reword that pair.

Merge is clean against current main and the merged tree still passes d3d12_switches.py --check; #2888 and #2743 conflict only in findings.md (and #2743 also switches.md).

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6136964767 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2847#pullrequestreview-6136964767). Originally posted by [KelboLive](https://github.com/KelboLive) on 2026-12-01T17:58:15Z. **Review:** CHANGES_REQUESTED --- The draw-counter and docs side is consistent: `WORLD_DRAWS = 500.0` matches `tools/game_gate.py:22` and its two-line rule, `ENTER`/`LEAVE` 2/10 × 0.5 s matches the text, the frame log stays exact (`list.rs:2541-2551`, no new atomic on `count_draw`), and 604 tests pass (the 2 diagnostics failures are the known parallel flakes, green alone). **Blocking: the mechanism is restricted to Windows Developer Mode, and the failure is silent.** `D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_BACKGROUND_WORK` is documented as requiring Developer Mode. `set_mode` discards the HRESULT (`driver_background.rs:153-167`), the caller logs **only on success** (`:139-147`) and retries every 500 ms. On a default Windows install that produces exactly the `allowed=true` then silence MoonEyes reported, and matches merzleckeier's `E_NOTIMPL` — the PR's successful `allowed=false` run implies a machine where it was permitted. Neither `findings.md` nor `switches.md` mentions the precondition, and `play-nvidia.ps1:278` now defaults the launcher to `world`, so for most users the headline feature is a silent no-op that looks like it worked. Please: 1. log the first HRESULT once (with the mode and `Developer Mode` named in the message), instead of retrying into silence; 2. document the Developer Mode precondition in both `findings.md` and `switches.md`; 3. hold the `world` launcher default until a run on a non-Developer-Mode install confirms the mode actually changes — or make the default conditional on a successful probe. Also, `WORLD_DRAWS = 500.0` mirrors the gate only by comment: mutating it to `50.0` leaves all four `driver_background` tests green, so nothing pins the "as the game gate counts it" claim. A test that imports the number from `game_gate.py` (or asserts the same value) would. Minor: `driver_background.rs:11` says "~9 minutes" while findings/body say "9 to 15", and `findings.md:1731` says a repeat run "has none" then that the threads stop about 45 s after the world comes up — reword that pair. Merge is clean against current main and the merged tree still passes `d3d12_switches.py --check`; #2888 and #2743 conflict only in `findings.md` (and #2743 also `switches.md`).
imShangLi commented 2026-12-02 00:45:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by imShangLi on 2026-12-02T00:45:22Z.


VERIFY-2847 — Linux, Fedora 45, Rust 1.98.1 (the pinned toolchain), Wine 11.21, no GPU device, no game files

Verdict: PASS. The switch's rules are readable and the counting they need is there, the new tests pass, and nothing that worked before is broken. The measurements the pull request quotes are a claim about an NVIDIA card and the game, and I could not check them.

Head 3a9afee5, base the current main 85ec1d33, merge base 501b3e6c, 8 files, +310/−7: d3d12/crates/leonida-gpu/src/driver_background.rs (new), d3d12/crates/leonida-gpu/src/list.rs, d3d12/crates/leonida-gpu/src/host.rs, d3d12/crates/leonida-gpu/src/queue.rs, d3d12/crates/leonida-gpu/src/lib.rs, d3d12/docs/findings.md, d3d12/docs/switches.md, d3d12/scripts/play-nvidia.ps1.

1. What it changes

After the pipelines are made or loaded, the driver compiles their shaders again on threads of its own in this process, and until it has done so those threads take one or two processors — on a processor the title already fills, that costs the frame. The new module lets that work be switched off, or paused while the world is drawn:

  • LEONIDA_D3D12_BACKGROUND=0 — never (the mode is set when the device is made);
  • LEONIDA_D3D12_BACKGROUND=world — not while the world is drawn, allowed in loading screens and menus;
  • unset or 1 — the driver's own behaviour, as before (nothing is started);
  • LEONIDA_AB may name the switch, and its phase wins over the policy.

2. What I checked

The policy mapping.

fn policy(variable: Option<&str>) -> Policy {
    match variable.map(str::trim) {
        Some("0") => Policy::Never,
        Some("world") => Policy::OutsideWorld,
        _ => Policy::Always,
    }
}

unset and 1 both give Always, and start() returns early for Always unless LEONIDA_AB names the switch — so the default path starts no thread at all and the driver is left as it was ✓, which is what the documentation says.

The world is recognised with hysteresis.

const ENTER: u32 = 2;   // counts in a row of the world before it is switched off
const LEAVE: u32 = 10;  // counts in a row of no world before it is allowed again

World::count compares draws / frames with WORLD_DRAWS = 500, and a count with no frame (frames == 0) changes nothing ✓ — so a period with no rendering cannot flip the state. The asymmetry (two counts in, ten out) is deliberate and is in the comment: the work is switched off quickly when the world is drawn and allowed again slowly, so a loading screen between two world stretches does not start the work again and stop it again.

The phase wins over the policy.

fn allowed(phase: Option<bool>, policy: Policy, world: bool) -> bool {
    phase.unwrap_or(match policy { Policy::Always => true, Policy::Never => false, Policy::OutsideWorld => !world })
}

phase is LEONIDA_AB's phase for the switch; when the switch is not named in LEONIDA_AB, phase() is None and the policy decides ✓.

The counting it needs is there. list.rs's take_counts() used to reset the draw counter; it now keeps its own mark and returns the difference, and a new draws_so_far() gives the total since the start — which is what the world test needs (draws / frames) ✓.

3. What the tests do here

leonida-gpu does not build on Linux (upstream: "The crates are Windows-only today … Linux follows #2577"), so I cross-compiled it for x86_64-pc-windows-gnu and ran the tests under Wine 11.21.

The pull request changes no test, so the red side cannot be built (there is nothing to take); the base and the head were compared instead:

the merge base 654 tests
the pull request's head 659 tests
the new tests, only on the head 5 — all pass
failing on both sides 3 — the watch tests that need Microsoft's VirtualAlloc/VirtualQuery behaviour, which Wine does not have

One further test, watch::tests::a_write_is_reported_at_every_checked_view, failed in one full-suite run on the head and passed on the base. It is the same family of parallel-run flakes as the three above: run alone it passes 5 times out of 5 on the head, and the same test fails on the base at a comparable rate when the whole suite runs in parallel.

4. What I did not check

  • The measurements. "24.4-25.2 frames a second with the work against 26.4-27.2 without", the 8.2 ms against 5.7 ms idle behind the submitting thread, the D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS_HIGH_PRIORITY experiment — these are from an RTX 3080 with the game, and neither the card nor the game is here.
  • That the mode reaches the driver's background threads. The 0 path sets D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_BACKGROUND_WORK on the device when it is made (the pre-existing code), and the world path sets it again from the new thread; whether that is what the driver's threads read is a driver property.
  • The world test's own threshold. WORLD_DRAWS = 500 is the game gate's "the world is drawn" measure (tools/game_gate.py); I did not check that the draw counts the module reads are the same ones the gate uses.
  • Windows and MSVC. Everything above is Linux with Wine 11.21 (staging) and no GPU device.

AI-assisted: MiniMax M3.1 Flash.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7330921300 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2847#issuecomment-7330921300). Originally posted by [imShangLi](https://github.com/imShangLi) on 2026-12-02T00:45:22Z. --- ## VERIFY-2847 — Linux, Fedora 45, Rust 1.98.1 (the pinned toolchain), Wine 11.21, no GPU device, no game files **Verdict: PASS.** The switch's rules are readable and the counting they need is there, the new tests pass, and nothing that worked before is broken. The measurements the pull request quotes are a claim about an NVIDIA card and the game, and I could not check them. Head `3a9afee5`, base the current `main` `85ec1d33`, merge base `501b3e6c`, 8 files, +310/−7: `d3d12/crates/leonida-gpu/src/driver_background.rs` (new), `d3d12/crates/leonida-gpu/src/list.rs`, `d3d12/crates/leonida-gpu/src/host.rs`, `d3d12/crates/leonida-gpu/src/queue.rs`, `d3d12/crates/leonida-gpu/src/lib.rs`, `d3d12/docs/findings.md`, `d3d12/docs/switches.md`, `d3d12/scripts/play-nvidia.ps1`. ### 1. What it changes After the pipelines are made or loaded, the driver compiles their shaders again on threads of its own in this process, and until it has done so those threads take one or two processors — on a processor the title already fills, that costs the frame. The new module lets that work be switched off, or paused while the world is drawn: - `LEONIDA_D3D12_BACKGROUND=0` — never (the mode is set when the device is made); - `LEONIDA_D3D12_BACKGROUND=world` — not while the world is drawn, allowed in loading screens and menus; - unset or `1` — the driver's own behaviour, as before (nothing is started); - `LEONIDA_AB` may name the switch, and its phase wins over the policy. ### 2. What I checked **The policy mapping.** ```rust fn policy(variable: Option<&str>) -> Policy { match variable.map(str::trim) { Some("0") => Policy::Never, Some("world") => Policy::OutsideWorld, _ => Policy::Always, } } ``` unset and `1` both give `Always`, and `start()` returns early for `Always` unless `LEONIDA_AB` names the switch — so the default path starts no thread at all and the driver is left as it was ✓, which is what the documentation says. **The world is recognised with hysteresis.** ```rust const ENTER: u32 = 2; // counts in a row of the world before it is switched off const LEAVE: u32 = 10; // counts in a row of no world before it is allowed again ``` `World::count` compares `draws / frames` with `WORLD_DRAWS = 500`, and a count with **no** frame (`frames == 0`) changes nothing ✓ — so a period with no rendering cannot flip the state. The asymmetry (two counts in, ten out) is deliberate and is in the comment: the work is switched off quickly when the world is drawn and allowed again slowly, so a loading screen between two world stretches does not start the work again and stop it again. **The phase wins over the policy.** ```rust fn allowed(phase: Option<bool>, policy: Policy, world: bool) -> bool { phase.unwrap_or(match policy { Policy::Always => true, Policy::Never => false, Policy::OutsideWorld => !world }) } ``` `phase` is `LEONIDA_AB`'s phase for the switch; when the switch is not named in `LEONIDA_AB`, `phase()` is `None` and the policy decides ✓. **The counting it needs is there.** `list.rs`'s `take_counts()` used to reset the draw counter; it now keeps its own mark and returns the difference, and a new `draws_so_far()` gives the total since the start — which is what the world test needs (`draws / frames`) ✓. ### 3. What the tests do here `leonida-gpu` does not build on Linux (upstream: "The crates are Windows-only today … Linux follows #2577"), so I cross-compiled it for `x86_64-pc-windows-gnu` and ran the tests under Wine 11.21. The pull request changes no test, so the red side cannot be built (there is nothing to take); the base and the head were compared instead: | | | |---|---| | the merge base | 654 tests | | the pull request's head | 659 tests | | the new tests, only on the head | 5 — all pass | | failing on both sides | 3 — the `watch` tests that need Microsoft's `VirtualAlloc`/`VirtualQuery` behaviour, which Wine does not have | One further test, `watch::tests::a_write_is_reported_at_every_checked_view`, failed in one full-suite run on the head and passed on the base. It is the same family of parallel-run flakes as the three above: run alone it passes 5 times out of 5 on the head, and the same test fails on the base at a comparable rate when the whole suite runs in parallel. ### 4. What I did not check - **The measurements.** "24.4-25.2 frames a second with the work against 26.4-27.2 without", the 8.2 ms against 5.7 ms idle behind the submitting thread, the `D3D12_MEASUREMENTS_ACTION_COMMIT_RESULTS_HIGH_PRIORITY` experiment — these are from an RTX 3080 with the game, and neither the card nor the game is here. - **That the mode reaches the driver's background threads.** The `0` path sets `D3D12_BACKGROUND_PROCESSING_MODE_DISABLE_BACKGROUND_WORK` on the device when it is made (the pre-existing code), and the `world` path sets it again from the new thread; whether that is what the driver's threads read is a driver property. - **The world test's own threshold.** `WORLD_DRAWS = 500` is the game gate's "the world is drawn" measure (`tools/game_gate.py`); I did not check that the draw counts the module reads are the same ones the gate uses. - **Windows and MSVC.** Everything above is Linux with Wine 11.21 (staging) and no GPU device. AI-assisted: MiniMax M3.1 Flash.
TheGeogeo commented 2026-12-02 03:42:36 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-12-02T03:42:36Z.


Thanks @KelboLive, @MoonEyes, @merzleckeier. Rebased on main 8422def75 and changed after your review (head c1bf55d02):

  • Developer mode, and no more silent retries. Microsoft's page of D3D12_BACKGROUND_PROCESSING_MODE says of DISABLE_BACKGROUND_WORK: "Available only in Developer mode." The PC I measured on has it on; the RTX 4060 run had it off, and the first version wrote only calls that succeeded and asked again every half second, which is why it showed allowed=true and nothing more. Now a refused call is written once at WARN with its code (the driver's background shader work stays as the driver likes, naming Developer mode and where to turn it on), and the thread stops asking. The precondition is in the module, findings.md, switches.md and the launcher.
  • 0 takes the same path. The call that was in host.rs moved into driver_background::start, which host.rs calls once: 0 is still set when the device is made, before anything is made with it, and a refusal is written the same way. One parser for the variable.
  • The launcher's default is conditional. play-nvidia.ps1 sets world only where Developer mode is on (AppModelUnlock\AllowDevelopmentWithoutDevLicense = 1); elsewhere the driver is left as it is, so players without Developer mode see no change and no warning. -More still applies on top.
  • Counted as the gate counts it. The world is now judged on the frame line's draws (draw::drawn, the gate's figure), so the list.rs change is gone. A test reads WORLD_DRAWS from tools/game_gate.py and checks one draw a frame below it is not the world; with the constant at 50 it fails. Another test covers a long world stretch followed by a menu.
  • Wording: "9 to 15 minutes" everywhere; the "has none" / "45 s" pair is one sentence now; the claim that the work "finishes over a few sessions" is gone. Loading screens are short: after a 900 s world session the defaults' threads still ran 14 minutes, so for some players it may never finish. On the 3080 that costs the card nothing measurable (29.5 ms of card work a frame with shaders the driver never got to, 30.4 ms with its finished ones).

Tested on the RTX 3080 (driver 32.0.16.2140, Windows 11, Developer mode on): crate tests and diagnostics tests, three mutations each caught by a test, and a 300 s gate run of this code: PASS, allowed=true at start, allowed=false 78 s later at world entry. Not tested: the refusal on a PC without Developer mode. @MoonEyes, if you run it again on the 4060 with -More @{LEONIDA_D3D12_BACKGROUND='world'}, the log should have one WARN line with the code at world entry and nothing after it.

AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5; a separate Claude Opus 5.5 agent reviewed the diff before this push).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7334160241 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2847#issuecomment-7334160241). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-12-02T03:42:36Z. --- Thanks @KelboLive, @MoonEyes, @merzleckeier. Rebased on `main` 8422def75 and changed after your review (head c1bf55d02): - **Developer mode, and no more silent retries.** Microsoft's page of `D3D12_BACKGROUND_PROCESSING_MODE` says of `DISABLE_BACKGROUND_WORK`: "Available only in Developer mode." The PC I measured on has it on; the RTX 4060 run had it off, and the first version wrote only calls that succeeded and asked again every half second, which is why it showed `allowed=true` and nothing more. Now a refused call is written once at WARN with its code (`the driver's background shader work stays as the driver likes`, naming Developer mode and where to turn it on), and the thread stops asking. The precondition is in the module, `findings.md`, `switches.md` and the launcher. - **`0` takes the same path.** The call that was in `host.rs` moved into `driver_background::start`, which `host.rs` calls once: `0` is still set when the device is made, before anything is made with it, and a refusal is written the same way. One parser for the variable. - **The launcher's default is conditional.** `play-nvidia.ps1` sets `world` only where Developer mode is on (`AppModelUnlock\AllowDevelopmentWithoutDevLicense` = 1); elsewhere the driver is left as it is, so players without Developer mode see no change and no warning. `-More` still applies on top. - **Counted as the gate counts it.** The world is now judged on the frame line's draws (`draw::drawn`, the gate's figure), so the `list.rs` change is gone. A test reads `WORLD_DRAWS` from `tools/game_gate.py` and checks one draw a frame below it is not the world; with the constant at 50 it fails. Another test covers a long world stretch followed by a menu. - **Wording:** "9 to 15 minutes" everywhere; the "has none" / "45 s" pair is one sentence now; the claim that the work "finishes over a few sessions" is gone. Loading screens are short: after a 900 s `world` session the defaults' threads still ran 14 minutes, so for some players it may never finish. On the 3080 that costs the card nothing measurable (29.5 ms of card work a frame with shaders the driver never got to, 30.4 ms with its finished ones). Tested on the RTX 3080 (driver 32.0.16.2140, Windows 11, Developer mode on): crate tests and diagnostics tests, three mutations each caught by a test, and a 300 s gate run of this code: PASS, `allowed=true` at start, `allowed=false` 78 s later at world entry. Not tested: the refusal on a PC without Developer mode. @MoonEyes, if you run it again on the 4060 with `-More @{LEONIDA_D3D12_BACKGROUND='world'}`, the log should have one WARN line with the code at world entry and nothing after it. AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5; a separate Claude Opus 5.5 agent reviewed the diff before this push).
MoonEyes commented 2026-12-02 12:29:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T12:29:03Z.


This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists).

Could you, or anyone with a working setup, post a run report on the current head merged onto current main:

  • the head SHA and the main SHA it was merged onto;
  • GPU, driver and OS;
  • at least 300 s in the world after loading;
  • device lost / crashes (count), and rendered fps (median) if you have them;
  • the same run on main alone for comparison, if you can.

Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7345407988 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2847#issuecomment-7345407988). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T12:29:03Z. --- This pull request touches the render path, so it needs an in-game run before it can be merged: unit tests and CI do not catch rendering regressions (a device loss after an earlier merge is why this gate exists). Could you, or anyone with a working setup, post a run report on the **current head** merged onto current `main`: - the head SHA and the `main` SHA it was merged onto; - GPU, driver and OS; - at least 300 s in the world after loading; - device lost / crashes (count), and rendered fps (median) if you have them; - the same run on `main` alone for comparison, if you can. Please do not attach logs or screenshots that show game content. If a run on this exact head is already posted, a link to it in a reply is enough. AI-assisted (Claude Code).
Kal0s-design commented 2026-12-02 13:19:55 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-02T13:19:55Z.


Ran natively on Windows 11, head 7fa8e56bb merged into current main (d0bf821fa, clean merge), Windows without Developer mode (AppModelUnlock\AllowDevelopmentWithoutDevLicense not 1). No game run; this covers the refused path the body lists as not tested, plus the launcher's Developer mode check.

The native refusal code. A throwaway test calling the PR's set_mode on every adapter this PC enumerates (the NVIDIA card, a second hardware adapter, Microsoft Basic Render, WARP):

Call, in order Result on every adapter
ALLOWED S_OK
DISABLE_BACKGROUND_WORK 0x887a002d (DXGI_ERROR_SDK_COMPONENT_MISSING)
ALLOWED S_OK
DISABLE_BACKGROUND_WORK (twice) 0x887a002d both times
ALLOWED S_OK

So here, with Developer mode off, native Windows refuses only the switch-off, with 0x887a002d, not E_NOTIMPL as under Wine. Mode::turn driven by the real device gives Now(true), Refused(false, 0x887a002d), Same, Same. With world that means: allowed=true at start, then one WARN line at world entry, then the thread ends. This matches the earlier native report in this thread and what the fix expects.

The launcher's Developer mode check is always false in Windows PowerShell 5.1. play-nvidia.ps1:403:

$developerMode = $IsWindows -and [Microsoft.Win32.Registry]::GetValue(...) -eq 1

$IsWindows only exists in PowerShell 6+. In Windows PowerShell 5.1 it is unset ($null), so the whole expression is False, whatever the registry says:

Shell $IsWindows $IsWindows -and $true
Windows PowerShell 5.1 (unset) False
PowerShell 7.7 True True

The documented route runs 5.1. Launcher.bat goes to tools/leonida_launcher.py, whose play_command starts powershell -File scripts\play-d3d12.ps1. That script calls & ...\play-nvidia.ps1 in the same 5.1 process. The README's powershell -ExecutionPolicy Bypass -File ... line is 5.1 too. So on that route the world default is dropped even where Developer mode is on. Nothing breaks; the default is just never applied. No test in tests/ covers this line (test_win_launchers.py has no Developer mode case, and it prefers pwsh when installed). The script is Windows-only, so the $IsWindows -and part can go, or $env:OS -eq 'Windows_NT' works in both shells. Under Set-StrictMode -Version Latest (used for the body's check), 5.1 throws on $IsWindows instead (The variable '$IsWindows' cannot be retrieved because it has not been set). The launcher sets no strict mode, so in practice the result is the silent False.

Tests on the merge:

Run Result
cargo test -p leonida-gpu --locked --lib 699 passed, 0 failed, 59 ignored
same, --features diagnostics 779 passed, 1 failed, 59 ignored: watch::tests::what_the_kernel_writes_through_is_not_guarded_for_another_view, green alone 3 of 3 (parallel flake, not in this diff)
driver_background tests, --features diagnostics 8 passed
cargo clippy -p leonida-gpu --all-targets --locked no warning in driver_background.rs or queue.rs
tools/d3d12_switches.py --check, tests/test_win_launchers.py OK, 5 tests OK

The new tests do not exist on main (new module), so there is no red side to compare.

Not checked: any in-game run or frame time; the switch-off path with Developer mode on (not enabled here); whether the debug layer adds a message to the refusal.

GPUs tested: one NVIDIA desktop card + WARP.

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7346706910 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2847#issuecomment-7346706910). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-12-02T13:19:55Z. --- Ran natively on Windows 11, head `7fa8e56bb` merged into current `main` (`d0bf821fa`, clean merge), Windows **without** Developer mode (`AppModelUnlock\AllowDevelopmentWithoutDevLicense` not 1). No game run; this covers the refused path the body lists as not tested, plus the launcher's Developer mode check. **The native refusal code.** A throwaway test calling the PR's `set_mode` on every adapter this PC enumerates (the NVIDIA card, a second hardware adapter, Microsoft Basic Render, WARP): | Call, in order | Result on every adapter | | --- | --- | | `ALLOWED` | `S_OK` | | `DISABLE_BACKGROUND_WORK` | `0x887a002d` (`DXGI_ERROR_SDK_COMPONENT_MISSING`) | | `ALLOWED` | `S_OK` | | `DISABLE_BACKGROUND_WORK` (twice) | `0x887a002d` both times | | `ALLOWED` | `S_OK` | So here, with Developer mode off, native Windows refuses only the switch-off, with `0x887a002d`, not `E_NOTIMPL` as under Wine. `Mode::turn` driven by the real device gives `Now(true)`, `Refused(false, 0x887a002d)`, `Same`, `Same`. With `world` that means: `allowed=true` at start, then one WARN line at world entry, then the thread ends. This matches the earlier native report in this thread and what the fix expects. **The launcher's Developer mode check is always false in Windows PowerShell 5.1.** `play-nvidia.ps1:403`: ```powershell $developerMode = $IsWindows -and [Microsoft.Win32.Registry]::GetValue(...) -eq 1 ``` `$IsWindows` only exists in PowerShell 6+. In Windows PowerShell 5.1 it is unset (`$null`), so the whole expression is `False`, whatever the registry says: | Shell | `$IsWindows` | `$IsWindows -and $true` | | --- | --- | --- | | Windows PowerShell 5.1 | (unset) | `False` | | PowerShell 7.7 | `True` | `True` | The documented route runs 5.1. `Launcher.bat` goes to `tools/leonida_launcher.py`, whose `play_command` starts `powershell -File scripts\play-d3d12.ps1`. That script calls `& ...\play-nvidia.ps1` in the same 5.1 process. The README's `powershell -ExecutionPolicy Bypass -File ...` line is 5.1 too. So on that route the `world` default is dropped even where Developer mode is on. Nothing breaks; the default is just never applied. No test in `tests/` covers this line (`test_win_launchers.py` has no Developer mode case, and it prefers `pwsh` when installed). The script is Windows-only, so the `$IsWindows -and` part can go, or `$env:OS -eq 'Windows_NT'` works in both shells. Under `Set-StrictMode -Version Latest` (used for the body's check), 5.1 throws on `$IsWindows` instead (`The variable '$IsWindows' cannot be retrieved because it has not been set`). The launcher sets no strict mode, so in practice the result is the silent `False`. **Tests on the merge:** | Run | Result | | --- | --- | | `cargo test -p leonida-gpu --locked --lib` | 699 passed, 0 failed, 59 ignored | | same, `--features diagnostics` | 779 passed, 1 failed, 59 ignored: `watch::tests::what_the_kernel_writes_through_is_not_guarded_for_another_view`, green alone 3 of 3 (parallel flake, not in this diff) | | `driver_background` tests, `--features diagnostics` | 8 passed | | `cargo clippy -p leonida-gpu --all-targets --locked` | no warning in `driver_background.rs` or `queue.rs` | | `tools/d3d12_switches.py --check`, `tests/test_win_launchers.py` | OK, 5 tests OK | The new tests do not exist on `main` (new module), so there is no red side to compare. Not checked: any in-game run or frame time; the switch-off path with Developer mode on (not enabled here); whether the debug layer adds a message to the refusal. GPUs tested: one NVIDIA desktop card + WARP. AI-assisted: yes (Claude Code).
enlight3d commented 2026-12-02 16:02:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-12-02T16:02:31Z.


RUN (independent, in game, RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro build 26300, Windows developer mode on). Runtime built from head 7fa8e56bb merged with git merge --no-ff onto main 83046a713 (diagnostics,mimalloc, target x86_64-pc-windows-msvc); the current head c8b950cb4 changes no file under d3d12/crates (only the launcher's developer-mode line and its test), so the same runtime code.

Launcher, head c8b950cb4. A dry run under Windows PowerShell 5.1 (-SeriesS -NoDlss -NoFrameGen) now sets LEONIDA_D3D12_BACKGROUND=world on this PC; with 7fa8e56bb it set nothing (the $IsWindows issue). tests/test_win_launchers.py: the new test_nvidia_launcher_reads_no_powershell_6_variable fails on 7fa8e56bb ('$IsWindows' unexpectedly found) and passes on c8b950cb4 (6 passed). cargo test -p leonida-gpu --lib on the merge: 704 passed, 0 failed (785 with diagnostics), the 8 driver_background::tests included.

The cut happens. Warm-up run with LEONIDA_D3D12_BACKGROUND=world: allowed=true 1.3 s after start, allowed=false 1.3 s after reaching the world; no refusal line.

Effect on the frames, Series S settings, standing at the save, one run of 900 s right after the warm-up (same driver cache), measured, LEONIDA_AB=10,LEONIDA_D3D12_BACKGROUND (phases with the driver's background work allowed, as on main, and cut, as this pull request does in the world), LEONIDA_LOG=info,leonida_gpu::frame=debug for one line per present, first 30 s after reaching the world left out, 40 pairs of phases. Differences are allowed − cut.

frame median frame p90 submitting thread card busy frames over 50 ms, per 1,000 presents (allowed / cut)
all 40 pairs +0.15 ms −0.65 ms +0.80 ms −0.15 ms 5.1 / 7.5
first ~300 s in the world (14 pairs) +0.35 ms −0.55 ms +1.25 ms 0.00 ms 42 / 73 frames
after (26 pairs) 0.00 ms −0.70 ms +0.45 ms −0.30 ms 20 / 18 frames

No crash, no device loss, private memory at most 29.1 GB.

Reading for this card: cutting the driver's background work in the world did not make frames steadier here. While the driver still had work (the first minutes after reaching the world), there were more frames over 50 ms with it cut than allowed (73 against 42), and the p90 was a little lower with it allowed; allowing it costs the submitting thread about 1 ms a frame meanwhile. Afterwards the two are the same. The split at about 300 s is an estimate (when the driver's background thread finished was not sampled), but the difference in long frames is gone after it. One run on one card; it does not contradict a gain on another card or driver, it only does not reproduce one here.

Verdict for this card: no regression in stability, no gain in steadiness measured.

AI-assisted: Claude Code (Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7351348291 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2847#issuecomment-7351348291). Originally posted by [enlight3d](https://github.com/enlight3d) on 2026-12-02T16:02:31Z. --- RUN (independent, in game, RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro build 26300, Windows developer mode on). Runtime built from head 7fa8e56bb merged with `git merge --no-ff` onto `main` 83046a713 (`diagnostics,mimalloc`, target `x86_64-pc-windows-msvc`); the current head c8b950cb4 changes no file under `d3d12/crates` (only the launcher's developer-mode line and its test), so the same runtime code. **Launcher, head c8b950cb4.** A dry run under Windows PowerShell 5.1 (`-SeriesS -NoDlss -NoFrameGen`) now sets `LEONIDA_D3D12_BACKGROUND=world` on this PC; with 7fa8e56bb it set nothing (the `$IsWindows` issue). `tests/test_win_launchers.py`: the new `test_nvidia_launcher_reads_no_powershell_6_variable` fails on 7fa8e56bb (`'$IsWindows' unexpectedly found`) and passes on c8b950cb4 (6 passed). `cargo test -p leonida-gpu --lib` on the merge: 704 passed, 0 failed (785 with `diagnostics`), the 8 `driver_background::tests` included. **The cut happens.** Warm-up run with `LEONIDA_D3D12_BACKGROUND=world`: `allowed=true` 1.3 s after start, `allowed=false` 1.3 s after reaching the world; no refusal line. **Effect on the frames**, Series S settings, standing at the save, one run of 900 s right after the warm-up (same driver cache), measured, `LEONIDA_AB=10,LEONIDA_D3D12_BACKGROUND` (phases with the driver's background work allowed, as on `main`, and cut, as this pull request does in the world), `LEONIDA_LOG=info,leonida_gpu::frame=debug` for one line per present, first 30 s after reaching the world left out, 40 pairs of phases. Differences are allowed − cut. | | frame median | frame p90 | submitting thread | card busy | frames over 50 ms, per 1,000 presents (allowed / cut) | |---|---|---|---|---|---| | all 40 pairs | +0.15 ms | −0.65 ms | +0.80 ms | −0.15 ms | 5.1 / 7.5 | | first ~300 s in the world (14 pairs) | +0.35 ms | −0.55 ms | +1.25 ms | 0.00 ms | 42 / 73 frames | | after (26 pairs) | 0.00 ms | −0.70 ms | +0.45 ms | −0.30 ms | 20 / 18 frames | No crash, no device loss, private memory at most 29.1 GB. **Reading for this card:** cutting the driver's background work in the world did not make frames steadier here. While the driver still had work (the first minutes after reaching the world), there were more frames over 50 ms with it cut than allowed (73 against 42), and the p90 was a little lower with it allowed; allowing it costs the submitting thread about 1 ms a frame meanwhile. Afterwards the two are the same. The split at about 300 s is an estimate (when the driver's background thread finished was not sampled), but the difference in long frames is gone after it. One run on one card; it does not contradict a gain on another card or driver, it only does not reproduce one here. **Verdict for this card: no regression in stability, no gain in steadiness measured.** AI-assisted: Claude Code (Claude Opus 5.5)
TheGeogeo commented 2026-12-02 16:05:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-12-02T16:05:34Z.


RUN, as asked by @MoonEyes. RTX 3080 10 GB, NVIDIA 32.0.16.2140, Windows 11 Pro 26300 (Developer mode on), Series S settings, standing, the gate's driver mod. One run each, 300 s in the world:

head c8b950cb4 merged onto main 3c106eb2f (launcher world) main 3c106eb2f alone
gate PASS, 304 s PASS, 307 s
device lost, crashes 0, 0 0, 0
rendered fps, median 27.6 27.9
p5 fps / p95 frame 22.5 / 44.5 ms 21.6 / 46.4 ms
longest present gap 5.1 s 0.78 s
5 s windows with a frame over 1 s 8 1

The log shows allowed=true at start and allowed=false at world entry. The long frames came while pipelines were made in the world, at 1 to 2.4 a second. That is one run each, and this change ran first. But it points the same way as @enlight3d's 3090 A/B: more frames over 50 ms with the work off while the driver still had some.

So the default goes. Head 7c80bd66e puts the launcher back as on main, which also removes the Developer mode check that @Kal0s-design's 5.1 finding was about. 0, world and LEONIDA_AB stay as switches, with the refusal written once; thanks @Kal0s-design for the native code, 0x887a002d. findings.md records both checks and the refusal code. The description and the title now say it is a switch, not a default.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7351422893 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2847#issuecomment-7351422893). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-12-02T16:05:34Z. --- RUN, as asked by @MoonEyes. RTX 3080 10 GB, NVIDIA 32.0.16.2140, Windows 11 Pro 26300 (Developer mode on), Series S settings, standing, the gate's driver mod. One run each, 300 s in the world: | | head c8b950cb4 merged onto `main` 3c106eb2f (launcher `world`) | `main` 3c106eb2f alone | | --- | --- | --- | | gate | PASS, 304 s | PASS, 307 s | | device lost, crashes | 0, 0 | 0, 0 | | rendered fps, median | 27.6 | 27.9 | | p5 fps / p95 frame | 22.5 / 44.5 ms | 21.6 / 46.4 ms | | longest present gap | 5.1 s | 0.78 s | | 5 s windows with a frame over 1 s | 8 | 1 | The log shows `allowed=true` at start and `allowed=false` at world entry. The long frames came while pipelines were made in the world, at 1 to 2.4 a second. That is one run each, and this change ran first. But it points the same way as @enlight3d's 3090 A/B: more frames over 50 ms with the work off while the driver still had some. So the default goes. Head 7c80bd66e puts the launcher back as on `main`, which also removes the Developer mode check that @Kal0s-design's 5.1 finding was about. `0`, `world` and `LEONIDA_AB` stay as switches, with the refusal written once; thanks @Kal0s-design for the native code, `0x887a002d`. `findings.md` records both checks and the refusal code. The description and the title now say it is a switch, not a default. AI-assisted (Claude Code, Claude Opus 5.5).
valenciana-nc commented 2026-12-02 16:46:11 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by valenciana-nc on 2026-12-02T16:46:11Z.


A launcher bug at head 7fa8e56bb: under Windows PowerShell 5.1, world is never set.

d3d12/scripts/play-nvidia.ps1:415 reads:

$developerMode = $IsWindows -and [Microsoft.Win32.Registry]::GetValue(...) -eq 1

$IsWindows is an automatic variable of PowerShell 6 and later only. In Windows PowerShell 5.1 (powershell.exe) it doesn't exist, so it reads as $null and $developerMode is always false. The next line then removes LEONIDA_D3D12_BACKGROUND. 5.1 is what the README's start command (powershell -ExecutionPolicy Bypass -File scripts\play-d3d12.ps1 ...) and Launcher.bat run.

Checked on Windows 11 with Developer mode on (AllowDevelopmentWithoutDevLicense = 1):

  • powershell -NoProfile -Command '$PSVersionTable.PSVersion; $null -eq $IsWindows' gives 5.1.26100.10068 and True.
  • A -DryRun of this head merged onto main (-SeriesS -Resolution 720) prints no LEONIDA_D3D12_BACKGROUND line.

A form that works in both:

$onWindows = ($PSVersionTable.PSEdition -eq 'Desktop') -or $IsWindows

[Environment]::OSVersion.Platform -eq 'Win32NT' also works.

Why it matters here: on this PC (RTX 4060 Laptop 8 GB, 16 GB RAM, 621.47) the device loss of #2821 came after 3.7–8.5 min in 5 of 6 runs without background work off, and none came in 30–45 min in 5 runs with LEONIDA_D3D12_BACKGROUND=0 or with allocator trim. Numbers are in https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7352177565. So this switch may matter for stability, not only for processor time. I'm now running this head with LEONIDA_D3D12_BACKGROUND=world set by hand and will post the in-game report here.

AI-assisted: yes (Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7352428213 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2847#issuecomment-7352428213). Originally posted by [valenciana-nc](https://github.com/valenciana-nc) on 2026-12-02T16:46:11Z. --- A launcher bug at head `7fa8e56bb`: under Windows PowerShell 5.1, `world` is never set. `d3d12/scripts/play-nvidia.ps1:415` reads: ```powershell $developerMode = $IsWindows -and [Microsoft.Win32.Registry]::GetValue(...) -eq 1 ``` `$IsWindows` is an automatic variable of PowerShell 6 and later only. In Windows PowerShell 5.1 (`powershell.exe`) it doesn't exist, so it reads as `$null` and `$developerMode` is always false. The next line then removes `LEONIDA_D3D12_BACKGROUND`. 5.1 is what the README's start command (`powershell -ExecutionPolicy Bypass -File scripts\play-d3d12.ps1 ...`) and `Launcher.bat` run. Checked on Windows 11 with Developer mode on (`AllowDevelopmentWithoutDevLicense` = 1): - `powershell -NoProfile -Command '$PSVersionTable.PSVersion; $null -eq $IsWindows'` gives `5.1.26100.10068` and `True`. - A `-DryRun` of this head merged onto `main` (`-SeriesS -Resolution 720`) prints no `LEONIDA_D3D12_BACKGROUND` line. A form that works in both: ```powershell $onWindows = ($PSVersionTable.PSEdition -eq 'Desktop') -or $IsWindows ``` `[Environment]::OSVersion.Platform -eq 'Win32NT'` also works. Why it matters here: on this PC (RTX 4060 Laptop 8 GB, 16 GB RAM, 621.47) the device loss of #2821 came after 3.7–8.5 min in 5 of 6 runs without background work off, and none came in 30–45 min in 5 runs with `LEONIDA_D3D12_BACKGROUND=0` or with allocator trim. Numbers are in https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7352177565. So this switch may matter for stability, not only for processor time. I'm now running this head with `LEONIDA_D3D12_BACKGROUND=world` set by hand and will post the in-game report here. AI-assisted: yes (Claude Opus 5.5)
valenciana-nc commented 2026-12-02 17:34:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by valenciana-nc on 2026-12-02T17:34:14Z.


In-game run report for #2847, as @MoonEyes asked.

  • Code: head 7fa8e56bb merged onto main 83046a713 (clean merge), diagnostics build.
  • PC: NVIDIA GeForce RTX 4060 Laptop GPU 8 GB, driver 621.47, i7-13650HX, 16 GB RAM, Windows 11 Home with Developer mode on.
  • Start: scripts\play-d3d12.ps1 -SeriesS -Resolution 720 -NoDlss -NoFrameGen, with LEONIDA_D3D12_BACKGROUND=world set by hand. Under Windows PowerShell 5.1 the launcher doesn't set it itself (see my comment above about $IsWindows).
  • Method: the same save each start, a scripted walking loop with camera turns, LEONIDA_D3D12_DRED=light.
Run Time in the world Device lost Median fps Median frame Frame lines > 100 ms Mode changes
1 1226 s no 23.7 42.2 ms 24 of 220 allowed at start, refused once in the world
2 1216 s no 23.2 43.1 ms 26 of 217 same

In both runs the runtime logged allowed=true while loading and allowed=false about 50 s later, once the world was drawn. It stayed that way to the end; there were no loading screens in between.

For comparison, the same PC, settings and loop without this PR, on main-based builds (numbers in https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7352177565):

  • 5 of 6 runs lost the device (0x887A0005) after 3.7 to 8.5 min in the world. Two of those were 6-minute gate runs on main d0bf821fa, standing.
  • With LEONIDA_D3D12_BACKGROUND=0, 2 of 2 ran 30 to 45 min with no loss, at 23.0 to 23.2 fps median.

This PR's world mode behaves like 0 here, with no loss in 2 of 2 runs of 20 min, and the frame rate is the same as with 0. One caveat: like every run of these series, the system commit was near its limit (the PC has 16 GB).

AI-assisted: yes (Claude Opus 5.5; runs driven by script on the PC above)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7353433437 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2847#issuecomment-7353433437). Originally posted by [valenciana-nc](https://github.com/valenciana-nc) on 2026-12-02T17:34:14Z. --- In-game run report for #2847, as @MoonEyes asked. - **Code:** head `7fa8e56bb` merged onto `main` `83046a713` (clean merge), diagnostics build. - **PC:** NVIDIA GeForce RTX 4060 Laptop GPU 8 GB, driver 621.47, i7-13650HX, 16 GB RAM, Windows 11 Home with Developer mode on. - **Start:** `scripts\play-d3d12.ps1 -SeriesS -Resolution 720 -NoDlss -NoFrameGen`, with `LEONIDA_D3D12_BACKGROUND=world` set by hand. Under Windows PowerShell 5.1 the launcher doesn't set it itself (see my comment above about `$IsWindows`). - **Method:** the same save each start, a scripted walking loop with camera turns, `LEONIDA_D3D12_DRED=light`. | Run | Time in the world | Device lost | Median fps | Median frame | Frame lines > 100 ms | Mode changes | |---|---|---|---|---|---|---| | 1 | 1226 s | no | 23.7 | 42.2 ms | 24 of 220 | allowed at start, refused once in the world | | 2 | 1216 s | no | 23.2 | 43.1 ms | 26 of 217 | same | In both runs the runtime logged `allowed=true` while loading and `allowed=false` about 50 s later, once the world was drawn. It stayed that way to the end; there were no loading screens in between. For comparison, the same PC, settings and loop without this PR, on `main`-based builds (numbers in https://github.com/ProjectLeonida/mandy/issues/2821#issuecomment-7352177565): - 5 of 6 runs lost the device (0x887A0005) after 3.7 to 8.5 min in the world. Two of those were 6-minute gate runs on `main` `d0bf821fa`, standing. - With `LEONIDA_D3D12_BACKGROUND=0`, 2 of 2 ran 30 to 45 min with no loss, at 23.0 to 23.2 fps median. This PR's `world` mode behaves like `0` here, with no loss in 2 of 2 runs of 20 min, and the frame rate is the same as with `0`. One caveat: like every run of these series, the system commit was near its limit (the PC has 16 GB). AI-assisted: yes (Claude Opus 5.5; runs driven by script on the PC above)
MoonEyes commented 2026-12-02 18:29:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:29:37Z.


Verification of #2847 (LEONIDA_D3D12_BACKGROUND: world, 0 and A/B): third-party code review on Linux x86_64. The code was not built: leonida-gpu is Windows-only.

  • Head: 7c80bd66e, merge base 8422def75. It merges cleanly into main 45dc41f95. CI passes on this head (6/6).
  • Between 7fa8e56bb, the head of the in-game runs posted above, and the current head, only d3d12/docs/findings.md, d3d12/docs/switches.md and d3d12/scripts/play-nvidia.ps1 changed (git diff --stat). The launcher change was dropped. leonida-gpu is therefore identical to what was run in game, and the PowerShell 5.1 $IsWindows problem reported above no longer applies.

Commands and results

  • python -I tests/test_d3d12_switches.py on the merge: 20 tests, OK.
  • python -I scripts/check_no_game_data.py on driver_background.rs, host.rs, findings.md and switches.md: clean.

Review (d3d12/crates/leonida-gpu/src/driver_background.rs)

  • start makes no call when the variable is unset or 1 and A/B does not name the switch (L182). Behaviour then matches main, except that the old inline =0 path now goes through set_mode and logs a refusal once.
  • World::count uses hysteresis: 2 counts to enter, 10 to leave, 500 draws a frame, the same as WORLD_DRAWS in the game gate. It ignores intervals with no new frame. Mode::turn stops asking after the first refusal, which is right outside Developer mode.
  • queue::presented loses its #[cfg(feature = "diagnostics")] so that release builds can count frames; draw::drawn was already unconditional.
  • The polling thread never ends while the policy is world or A/B is set. A 0.5 s sleep loop is cheap, so this is acceptable.
  • Not blocking: any value other than 0 or world silently means "allowed". A warning for a value it does not recognise would help users who type off.

Verdict: ready on code review (not built here: Windows-only). The in-game runs on code identical to this head are posted above.

AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.


Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7354678777 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2847#issuecomment-7354678777). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T18:29:37Z. --- **Verification of #2847 (LEONIDA_D3D12_BACKGROUND: world, 0 and A/B)**: third-party code review on Linux x86_64. The code was not built: `leonida-gpu` is Windows-only. - Head: `7c80bd66e`, merge base `8422def75`. It merges cleanly into `main` `45dc41f95`. CI passes on this head (6/6). - Between `7fa8e56bb`, the head of the in-game runs posted above, and the current head, only `d3d12/docs/findings.md`, `d3d12/docs/switches.md` and `d3d12/scripts/play-nvidia.ps1` changed (`git diff --stat`). The launcher change was dropped. `leonida-gpu` is therefore identical to what was run in game, and the PowerShell 5.1 `$IsWindows` problem reported above no longer applies. **Commands and results** - `python -I tests/test_d3d12_switches.py` on the merge: 20 tests, OK. - `python -I scripts/check_no_game_data.py` on `driver_background.rs`, `host.rs`, `findings.md` and `switches.md`: clean. **Review (`d3d12/crates/leonida-gpu/src/driver_background.rs`)** - `start` makes no call when the variable is unset or `1` and A/B does not name the switch (L182). Behaviour then matches `main`, except that the old inline `=0` path now goes through `set_mode` and logs a refusal once. - `World::count` uses hysteresis: 2 counts to enter, 10 to leave, 500 draws a frame, the same as `WORLD_DRAWS` in the game gate. It ignores intervals with no new frame. `Mode::turn` stops asking after the first refusal, which is right outside Developer mode. - `queue::presented` loses its `#[cfg(feature = "diagnostics")]` so that release builds can count frames; `draw::drawn` was already unconditional. - The polling thread never ends while the policy is `world` or A/B is set. A `0.5 s` sleep loop is cheap, so this is acceptable. - Not blocking: any value other than `0` or `world` silently means "allowed". A warning for a value it does not recognise would help users who type `off`. **Verdict:** ready on code review (not built here: Windows-only). The in-game runs on code identical to this head are posted above. AI-assisted verification: Claude Opus (Claude Code), separate agent per batch. --- _Generated by [Claude Code](https://claude.ai/code)_
TheGeogeo commented 2026-12-03 00:08:31 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-12-03T00:08:31Z.


Closing this. As a default it did not help: on the merge with main, the RTX 3080 here and @enlight3d's RTX 3090 both saw more long frames with the work off while the driver still had some. And Windows refuses the switch-off outside Developer mode (0x887a002d, thanks @Kal0s-design), so few players could use the switch.

@valenciana-nc's RTX 4060 Laptop runs point at stability, not frame time (0 and world held 20 to 45 min where main lost the device in 5 of 6 runs). That lead stays in #2821.

The branch TheGeogeo:d3d12-driver-background-commit (7c80bd66e) keeps the switch, its tests and the refusal logged once, for anyone who wants to carry it on. Thanks to everyone who ran and reviewed it. The claim is released in #2570.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7362842853 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2847#issuecomment-7362842853). Originally posted by [TheGeogeo](https://github.com/TheGeogeo) on 2026-12-03T00:08:31Z. --- Closing this. As a default it did not help: on the merge with `main`, the RTX 3080 here and @enlight3d's RTX 3090 both saw more long frames with the work off while the driver still had some. And Windows refuses the switch-off outside Developer mode (`0x887a002d`, thanks @Kal0s-design), so few players could use the switch. @valenciana-nc's RTX 4060 Laptop runs point at stability, not frame time (`0` and `world` held 20 to 45 min where `main` lost the device in 5 of 6 runs). That lead stays in #2821. The branch `TheGeogeo:d3d12-driver-background-commit` (`7c80bd66e`) keeps the switch, its tests and the refusal logged once, for anyone who wants to carry it on. Thanks to everyone who ran and reviewed it. The claim is released in #2570. AI-assisted (Claude Code, Claude Opus 5.5).

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
ProjectLeonida/mandy!2847
No description provided.