d3d12(hwrt): scale BLAS budget up to 6 GiB with DXGI VRAM pressure throttling (D3D12-HWRT-BLAS-BUDGET) #3225

Closed
teamallgit wants to merge 1 commit from upstream-pr/3225 into main
teamallgit commented 2026-12-02 20:48:24 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by teamallgit on 2026-12-02T20:48:24Z.


Claimed in the coordination issue as: D3D12-HWRT-BLAS-BUDGET (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7358311451)

Fixes: #3135

What and why

d3d12/crates/leonida-gpu/src/hwrt.rs previously clamped BLAS_BUDGET_MOST to 1.5 GiB (1536 << 20) and only re-read the DXGI local VRAM budget every 300 frames, without throttling active BLAS or scratch/instance spares when live DXGI VRAM usage rose. On 24–32 GB GPUs (e.g. RTX 4090 / 5090), the 1.5 GiB cap caused continuous BLAS eviction and multi-second host-side rebuild stalls while driving (#3135).

This change:

  • Raises BLAS_BUDGET_MOST from 1.5 GiB to 6 GiB (6144 << 20) so 10% of the DXGI local budget scales naturally on high-VRAM GPUs (~2.2–2.4 GiB on 24 GB cards, ~3.0–3.2 GiB on 32 GB cards) while staying unchanged on 8–16 GB cards.
  • Adds blas_budget_for_usage(local, used, override_bytes) (overflow-safe u128 ratio checks) to tighten the BLAS budget under live DXGI VRAM pressure (>=85% -> <=768 MiB, >=90% -> <=512 MiB, >=95% -> 256 MiB) and refreshes every 60 frames (BUDGET_LOOK_FRAMES = 60).
  • Adds an active spare_limit on LeasePool<T> enforced inside give() and updated on every budget tick (set_spare_limit()), trimming largest idle scratch/instance spares down to 96 MiB at >=85% and 64 MiB at >=90% (and restoring 256 MiB once pressure clears), retiring resources outside both locks.
  • Adds LEONIDA_HW_RT_BLAS_MB (minimum 256 MiB, overflow-safe) for explicit BLAS cache sizing and documents it in d3d12/docs/switches.md.

Tested

Rebased on main (8d82a34ae), commit bce6a5b15:

  • cargo test --locked -p leonida-gpu --lib hwrt -- --test-threads=1 — 24 passed, 0 failed (covers 6 GiB scaling, 85%/90%/95% / over-budget / local == 0 boundaries, parse_blas_budget_mb edge cases, and LeasePool trim + active give() capping).
  • Independent read-only code review completed and approved (caught LeasePool::give() active spare enforcement, switches.md count/prose alignment, and parser unit tests; all fixed and re-verified).

GPUs tested: n/a (synthetic CPU-only unit tests on Windows 11; no GPU or game files required)

AI-assisted: yes (authored with Gemini in Antigravity and audited by a separate read-only reviewer subagent)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — no translator rules added)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5614448248 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3225). Originally posted by [teamallgit](https://github.com/teamallgit) on 2026-12-02T20:48:24Z. --- Claimed in the coordination issue as: D3D12-HWRT-BLAS-BUDGET (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7358311451) Fixes: #3135 ### What and why `d3d12/crates/leonida-gpu/src/hwrt.rs` previously clamped `BLAS_BUDGET_MOST` to 1.5 GiB (`1536 << 20`) and only re-read the DXGI local VRAM budget every 300 frames, without throttling active BLAS or scratch/instance spares when live DXGI VRAM usage rose. On 24–32 GB GPUs (e.g. RTX 4090 / 5090), the 1.5 GiB cap caused continuous BLAS eviction and multi-second host-side rebuild stalls while driving (#3135). This change: - Raises `BLAS_BUDGET_MOST` from 1.5 GiB to 6 GiB (`6144 << 20`) so 10% of the DXGI local budget scales naturally on high-VRAM GPUs (~2.2–2.4 GiB on 24 GB cards, ~3.0–3.2 GiB on 32 GB cards) while staying unchanged on 8–16 GB cards. - Adds `blas_budget_for_usage(local, used, override_bytes)` (overflow-safe `u128` ratio checks) to tighten the BLAS budget under live DXGI VRAM pressure (`>=85%` -> `<=768 MiB`, `>=90%` -> `<=512 MiB`, `>=95%` -> `256 MiB`) and refreshes every 60 frames (`BUDGET_LOOK_FRAMES = 60`). - Adds an active `spare_limit` on `LeasePool<T>` enforced inside `give()` and updated on every budget tick (`set_spare_limit()`), trimming largest idle scratch/instance spares down to `96 MiB` at `>=85%` and `64 MiB` at `>=90%` (and restoring `256 MiB` once pressure clears), retiring resources outside both locks. - Adds `LEONIDA_HW_RT_BLAS_MB` (minimum 256 MiB, overflow-safe) for explicit BLAS cache sizing and documents it in `d3d12/docs/switches.md`. ### Tested Rebased on `main` (`8d82a34ae`), commit `bce6a5b15`: - `cargo test --locked -p leonida-gpu --lib hwrt -- --test-threads=1` — **24 passed, 0 failed** (covers 6 GiB scaling, `85%/90%/95%` / over-budget / `local == 0` boundaries, `parse_blas_budget_mb` edge cases, and `LeasePool` trim + active `give()` capping). - Independent read-only code review completed and approved (caught `LeasePool::give()` active spare enforcement, `switches.md` count/prose alignment, and parser unit tests; all fixed and re-verified). GPUs tested: n/a (synthetic CPU-only unit tests on Windows 11; no GPU or game files required) AI-assisted: yes (authored with Gemini in Antigravity and audited by a separate read-only reviewer subagent) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a — no translator rules added)
merzleckeier commented 2026-12-02 20:52:02 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T20:52:02Z.

Review: COMMENTED


Source and CPU policy check on bce6a5b1. Using the exact budget helpers with a local budget of 24,000 MiB, repeated samples one byte below and at 85% alternate the BLAS limit between 2,400 and 768 MiB and the spare limit between 256 and 96 MiB. The existing eviction path evicts toward 90% of the current BLAS limit and rebuilds a retained recipe if it is named again. Since #3135 is about repeated eviction and rebuilding, can you check what happens across repeated pressure crossings and either show the cache remains stable or add a slower recovery threshold? A single boundary test does not exercise that interaction. I ran the extracted CPU policy only, with no GPU or game workload. AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6158797449 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3225#pullrequestreview-6158797449). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-02T20:52:02Z. **Review:** COMMENTED --- Source and CPU policy check on `bce6a5b1`. Using the exact budget helpers with a local budget of 24,000 MiB, repeated samples one byte below and at 85% alternate the BLAS limit between 2,400 and 768 MiB and the spare limit between 256 and 96 MiB. The existing eviction path evicts toward 90% of the current BLAS limit and rebuilds a retained recipe if it is named again. Since #3135 is about repeated eviction and rebuilding, can you check what happens across repeated pressure crossings and either show the cache remains stable or add a slower recovery threshold? A single boundary test does not exercise that interaction. I ran the extracted CPU policy only, with no GPU or game workload. AI-assisted.
fiestorra commented 2026-12-02 21:39:00 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T21:39:00Z.


VERIFY-3225 — Windows nativo: el presupuesto de BLAS y sus topes, con control que muerde

Head (this PR)
Merge base b41763227 = current main
Merged onto main — merge-tree clean, git merge --no-ff clean

Ran

cargo test -p leonida-gpu --lib hwrt    24 passed; 0 failed
  blas_budget_tightens_under_vram_pressure_and_respects_override ... ok
  lease_pool_trims_and_enforces_active_spare_limit_under_pressure ... ok
cargo test -p leonida-gpu --lib         704 passed; 1 failed; 59 ignored

The one failure is this machine's, unchanged all day (views_are_made_beside_the_heap_and_copied_in, the iGPU artefact of D3D12CreateDevice(None, ..) that #2995 addresses).

Negative control (synthetic — the tests ship with the change): I made blas_budget_for_usage ignore its override argument under a test variable, rebuilt and ran → FAILED: blas_budget_tightens_under_vram_pressure_and_respects_override, assertion left == right failed: explicit LEONIDA_HW_RT_BLAS_MB override wins. The test bites.

First control attempt, recorded because it was wrong: I patched the env reader (blas_budget_override) instead of the pure function the test calls, and the test still passed — the test passes the override explicitly (Some(6144 << 20)), so the env reader is not on its path. A control that does not bite is not a control, and I moved it to the function under test.

What the change says, from the test's own boundaries: the budget tightens at 85 % (768 MiB), 90 % (512 MiB) and 95 % (256 MiB) of the card's local memory, an over-budget usage is floored at 256 MiB, and an explicit LEONIDA_HW_RT_BLAS_MB wins but never drops below that floor. The lease_pool test covers trimming and the active-spare limit under the same pressure.

Stacked, once more

The branch carries #3204's frame.rs (CAP_UNREAD), so merging it lands #3204 too — the fifth stacked branch tonight.

What I could not test

  • Real VRAM pressure: the tests drive blas_budget_for_usage and the lease pool with synthetic numbers; the GPU's own usage is not measured here.
  • A ray-traced run: none.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7359581226 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3225#issuecomment-7359581226). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-02T21:39:00Z. --- ## VERIFY-3225 — Windows nativo: el presupuesto de BLAS y sus topes, con control que muerde | | | |---|---| | Head | `(this PR)` | | Merge base | `b41763227` = current `main` | | Merged onto | `main` — `merge-tree` clean, `git merge --no-ff` clean | **Ran** ``` cargo test -p leonida-gpu --lib hwrt 24 passed; 0 failed blas_budget_tightens_under_vram_pressure_and_respects_override ... ok lease_pool_trims_and_enforces_active_spare_limit_under_pressure ... ok cargo test -p leonida-gpu --lib 704 passed; 1 failed; 59 ignored ``` The one failure is this machine's, unchanged all day (`views_are_made_beside_the_heap_and_copied_in`, the iGPU artefact of `D3D12CreateDevice(None, ..)` that #2995 addresses). **Negative control (synthetic — the tests ship with the change)**: I made `blas_budget_for_usage` ignore its override argument under a test variable, rebuilt and ran → `FAILED: blas_budget_tightens_under_vram_pressure_and_respects_override`, `assertion left == right failed: explicit LEONIDA_HW_RT_BLAS_MB override wins`. **The test bites.** **First control attempt, recorded because it was wrong**: I patched the *env reader* (`blas_budget_override`) instead of the pure function the test calls, and the test still passed — the test passes the override explicitly (`Some(6144 << 20)`), so the env reader is not on its path. **A control that does not bite is not a control**, and I moved it to the function under test. **What the change says, from the test's own boundaries**: the budget tightens at 85 % (768 MiB), 90 % (512 MiB) and 95 % (256 MiB) of the card's local memory, an over-budget usage is floored at 256 MiB, and an explicit `LEONIDA_HW_RT_BLAS_MB` wins but never drops below that floor. The `lease_pool` test covers trimming and the active-spare limit under the same pressure. ## Stacked, once more **The branch carries #3204's `frame.rs`** (`CAP_UNREAD`), so merging it lands #3204 too — the fifth stacked branch tonight. ## What I could not test - **Real VRAM pressure**: the tests drive `blas_budget_for_usage` and the lease pool with synthetic numbers; the GPU's own usage is not measured here. - **A ray-traced run**: none. Written with an AI assistant.
x2Tweek commented 2026-12-02 21:51:16 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by x2Tweek on 2026-12-02T21:51:16Z.


Game run on the RTX 5090 from #3135, with this PR and without my local 6 GB override.

Setup: RTX 5090 32 GB, driver 621.40, i9-14900KS, 64 GB DDR5, Windows 11 (26300). Base: upstream main
0d7a451ab plus #3113, #3182 and #3204, diag build. This PR merged on top at bce6a5b15, with
LEONIDA_HW_RT_BLAS_MB unset. Series X profile, 3840x2160 output, render scale 0.6667, -HardwareRT -SmoothMotion -PrecompileAll -Log, fullscreen. About 5 minutes of city driving.

Tests: cargo test -p leonida-gpu --lib hwrt gives 25 passed and 0 failed.

Budget and throttling: the budget came out at 3141 MB (10 % of the card's 31.4 GB). Late in the drive,
with the card at about 24 GB in use, it was trimmed to 3034-3040 MB. Live BLAS memory peaked at about 2.5 GB.
Not one BLAS was evicted for the budget ("evicted 0 (0 MB), 0 evicted now" on every line), against continuous
eviction at the 1.5 GB cap.

City driving, about 5 min stock 1.5 GB cap (#3135) local 6 GB override this PR (3.1 GB)
fps median / p10 16.2 / 11.5 18.7 / 11.8 18.6 / 13.8
frames over 1 s 3084 ms, 720 ms none 1015 ms, 1946 ms
BLAS evictions for the budget continuous 0 0
"BLAS prep" share of wall time 18 % 21 % 12 %
  • The cap's stalls are gone. No BLAS was evicted for the budget, and BLAS preparation dropped to 12 % of wall
    time. So 3.1 GB is enough on this card for this drive.
  • Two frames over 1 s remain. They came at 21:45:25 and 21:46:32 UTC. Neither coincides with an eviction, the
    budget stood at 3141 MB with 0.8-1.3 GB live, and the card was idle. New host pipelines were being made around
    the second one, so they look unrelated to this PR, but I have not proven it. The local 6 GB run had none, on a
    different drive.
  • Frame rate matches the 6 GB override. The routes differ, so read it loosely.

From my side, this PR fixes what #3135 reported.

AI-assisted: the build, the test run, the log reading and the write-up were done with Claude Opus 5.5 (Claude
Code); the numbers are the runtime's own log lines from the run above.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7359876450 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3225#issuecomment-7359876450). Originally posted by [x2Tweek](https://github.com/x2Tweek) on 2026-12-02T21:51:16Z. --- Game run on the RTX 5090 from #3135, with this PR and without my local 6 GB override. **Setup:** RTX 5090 32 GB, driver 621.40, i9-14900KS, 64 GB DDR5, Windows 11 (26300). Base: upstream main `0d7a451ab` plus #3113, #3182 and #3204, diag build. This PR merged on top at `bce6a5b15`, with `LEONIDA_HW_RT_BLAS_MB` unset. Series X profile, 3840x2160 output, render scale 0.6667, `-HardwareRT -SmoothMotion -PrecompileAll -Log`, fullscreen. About 5 minutes of city driving. **Tests:** `cargo test -p leonida-gpu --lib hwrt` gives 25 passed and 0 failed. **Budget and throttling:** the budget came out at **3141 MB** (10 % of the card's 31.4 GB). Late in the drive, with the card at about 24 GB in use, it was trimmed to **3034-3040 MB**. Live BLAS memory peaked at about 2.5 GB. Not one BLAS was evicted for the budget ("evicted 0 (0 MB), 0 evicted now" on every line), against continuous eviction at the 1.5 GB cap. | City driving, about 5 min | stock 1.5 GB cap (#3135) | local 6 GB override | this PR (3.1 GB) | |---|---|---|---| | fps median / p10 | 16.2 / 11.5 | 18.7 / 11.8 | 18.6 / 13.8 | | frames over 1 s | 3084 ms, 720 ms | none | 1015 ms, 1946 ms | | BLAS evictions for the budget | continuous | 0 | 0 | | "BLAS prep" share of wall time | 18 % | 21 % | 12 % | - **The cap's stalls are gone.** No BLAS was evicted for the budget, and BLAS preparation dropped to 12 % of wall time. So 3.1 GB is enough on this card for this drive. - **Two frames over 1 s remain.** They came at 21:45:25 and 21:46:32 UTC. Neither coincides with an eviction, the budget stood at 3141 MB with 0.8-1.3 GB live, and the card was idle. New host pipelines were being made around the second one, so they look unrelated to this PR, but I have not proven it. The local 6 GB run had none, on a different drive. - **Frame rate** matches the 6 GB override. The routes differ, so read it loosely. From my side, this PR fixes what #3135 reported. AI-assisted: the build, the test run, the log reading and the write-up were done with Claude Opus 5.5 (Claude Code); the numbers are the runtime's own log lines from the run above.
MoonEyes commented 2026-12-02 22:00:08 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T22:00:08Z.


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:7360083810 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3225#issuecomment-7360083810). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T22:00:08Z. --- 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).
lixonik commented 2026-12-02 22:25:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-02T22:25:03Z.


RUN (in game, RTX 5070 12 GB, Hardware RT, 315 s in-world gate) -- PASS on head bce6a5b15 (merged cleanly via git merge --no-ff onto main 8877be372).

Build & Unit Checks (Windows 10 x64, RTX 5070 12 GB, driver 595.79)

  • python -I scripts/check_no_game_data.py -> PASS
  • python -I tools/d3d12_switches.py --check d3d12/docs/switches.md -> PASS
  • LEONIDA_D3D12_DEBUG=1 cargo test -p leonida-gpu --features diagnostics --lib --locked hwrt -> 24 passed, 0 failed
  • cargo build --profile diag --features "diagnostics,dlss,mimalloc" --locked -> PASS

Live In-Game Gate (-SeriesS -NoFrameGen, Hardware RT: LEONIDA_HW_RT=1, LEONIDA_AMBIENT=0, LEONIDA_RT_RESOLVE=1, LEONIDA_ACTIVATE_RAYS=1)

  • Duration: 315 s in world (500.0 s total, 64 world samples >= 1000 draws, max 5,697 draws)
  • Errors / Device Lost / Crashes: 0 / 0 / 0
  • Rendered FPS (d3d12_run_fps.py): median 25.4 fps (39.4 ms; slowest tenth 17.7 fps, fastest tenth 26.5 fps; 3000-4999 draws median 25.4 fps across 54 samples)
  • Hardware RT & BLAS Budget Telemetry (measured in log):
    • hardware DXR 1.1 RT manager initialized (LEONIDA_HW_RT=1) tier=11, adapter vram_budget_mb=11176
    • hardware RT BLAS memory: dynamic budget tracked 1078..1117 MB on this 12 GB card, peak live 531 MB (4,987 BLAS), 0 evictions (0 MB), 929 MB freed past fence, 39,210 TLAS marks read / 0 lost
    • Final counters: BLAS live 5198 (built 19075, refit 343974, refit->rebuild 1149, rehydrated 3312), TLAS live 5 (builds 39230), AS memory 532 MB, lifted shaders 14 (0 software fallbacks)

AI-assisted: yes (Antigravity -- Gemini 4 Neon).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7360663184 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3225#issuecomment-7360663184). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-02T22:25:03Z. --- **RUN (in game, RTX 5070 12 GB, Hardware RT, 315 s in-world gate) -- PASS** on head `bce6a5b15` (merged cleanly via `git merge --no-ff` onto `main` `8877be372`). ### Build & Unit Checks (Windows 10 x64, RTX 5070 12 GB, driver 595.79) - `python -I scripts/check_no_game_data.py` -> **PASS** - `python -I tools/d3d12_switches.py --check d3d12/docs/switches.md` -> **PASS** - `LEONIDA_D3D12_DEBUG=1 cargo test -p leonida-gpu --features diagnostics --lib --locked hwrt` -> **24 passed, 0 failed** - `cargo build --profile diag --features "diagnostics,dlss,mimalloc" --locked` -> **PASS** ### Live In-Game Gate (`-SeriesS -NoFrameGen`, Hardware RT: `LEONIDA_HW_RT=1`, `LEONIDA_AMBIENT=0`, `LEONIDA_RT_RESOLVE=1`, `LEONIDA_ACTIVATE_RAYS=1`) - **Duration:** `315 s` in world (`500.0 s` total, `64` world samples `>= 1000` draws, max `5,697` draws) - **Errors / Device Lost / Crashes:** **`0` / `0` / `0`** - **Rendered FPS (`d3d12_run_fps.py`):** median **`25.4 fps`** (`39.4 ms`; slowest tenth `17.7 fps`, fastest tenth `26.5 fps`; `3000-4999` draws median `25.4 fps` across `54` samples) - **Hardware RT & BLAS Budget Telemetry (measured in log):** - `hardware DXR 1.1 RT manager initialized (LEONIDA_HW_RT=1) tier=11`, adapter `vram_budget_mb=11176` - `hardware RT BLAS memory`: dynamic budget tracked `1078..1117 MB` on this 12 GB card, peak live `531 MB` (`4,987` BLAS), `0` evictions (`0 MB`), `929 MB` freed past fence, `39,210` TLAS marks read / `0` lost - Final counters: `BLAS live 5198` (`built 19075`, `refit 343974`, `refit->rebuild 1149`, `rehydrated 3312`), `TLAS live 5` (`builds 39230`), `AS memory 532 MB`, `lifted shaders 14` (`0` software fallbacks) AI-assisted: yes (Antigravity -- Gemini 4 Neon).
MoonEyes commented 2026-12-03 07:01:38 +00:00 (Migrated from github.com)

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


This pull request has a merge conflict with current main (d9b618f10), so it can't be run in game or merged as it is. Could you merge the latest main into it (or rebase onto it) and resolve the conflict? Once the head is updated, the in-game gate run can be done on the new head.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7370508137 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3225#issuecomment-7370508137). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T07:01:38Z. --- This pull request has a merge conflict with current `main` (`d9b618f10`), so it can't be run in game or merged as it is. Could you merge the latest `main` into it (or rebase onto it) and resolve the conflict? Once the head is updated, the in-game gate run can be done on the new head. AI-assisted (Claude Code).
fiestorra commented 2026-12-03 09:17:57 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T09:17:57Z.


#3225 rebasado y empujado: pr-3225-rebased = e7fab42a5 — y el recuento no está adivinado: está calculado

El conflicto era la línea del recuento (main 684/644, su base 683/643), pero esta vez podía derivarlo en vez de elegir:

filas `| `LEONIDA_…`` en main           684
con frase en la última columna          644
cabecera de main                        684 names; 644 have a sentence
                                         ← coincide exactamente

Y su PR añade una fila (LEONIDA_HW_RT_BLAS_MB, con frase en la última columna), así que el número que toca es 685/645 — y no hizo falta creérmelo: después de insertar su fila, contar el fichero da filas 685 · con frase 645 y coincide: True.

Lo que eso cambia respecto a #3308: allí tomé la línea de main porque su PR no añadía filas; aquí su PR sí añade una y la cabecera es una función del contenido, así que hay que recalcularla. La receta «tomar la de main» es correcta sólo cuando la PR no añade un interruptor.

Los números del rebase:

rebase sobre d9b618f10       exit 0
marcadores en el commit      0 ficheros
diff                         2 files changed, +177/−19
cargo test -p leonida-gpu --lib   717 passed; 1 failed; 59 ignored
                             el 1 es views_are_made_beside…, el de la iGPU de siempre
pytest tests/test_d3d12_switches.py   20 passed

Y 717 contra los 715 de main: dos tests nuevos, medidos en el diff — hwrt.rs trae los suyos, y son de los que se pueden correr sin el juego (presupuesto de BLAS contra VRAM).

Lo que no verifiqué: el comportamiento con una tarjeta real — el presupuesto de BLAS depende de la VRAM y de la presión de DXGI, y aquí sólo se prueba con lo que el test simula.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7373460220 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3225#issuecomment-7373460220). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-03T09:17:57Z. --- ## `#3225` rebasado y empujado: `pr-3225-rebased` = `e7fab42a5` — **y el recuento no está adivinado: está calculado** **El conflicto era la línea del recuento** (**`main` 684/644, su base 683/643**), **pero esta vez podía derivarlo en vez de elegir**: ``` filas `| `LEONIDA_…`` en main 684 con frase en la última columna 644 cabecera de main 684 names; 644 have a sentence ← coincide exactamente ``` **Y su PR añade una fila** (`LEONIDA_HW_RT_BLAS_MB`, con frase en la última columna), **así que el número que toca es 685/645** — **y no hizo falta creérmelo: después de insertar su fila, contar el fichero da `filas 685 · con frase 645` y `coincide: True`.** **Lo que eso cambia respecto a `#3308`**: **allí tomé la línea de `main` porque su PR no añadía filas**; **aquí su PR sí añade una y la cabecera es una función del contenido, así que hay que recalcularla.** **La receta «tomar la de `main`» es correcta sólo cuando la PR no añade un interruptor.** **Los números del rebase**: ``` rebase sobre d9b618f10 exit 0 marcadores en el commit 0 ficheros diff 2 files changed, +177/−19 cargo test -p leonida-gpu --lib 717 passed; 1 failed; 59 ignored el 1 es views_are_made_beside…, el de la iGPU de siempre pytest tests/test_d3d12_switches.py 20 passed ``` **Y `717` contra los `715` de `main`**: **dos tests nuevos, medidos en el diff** — **`hwrt.rs` trae los suyos, y son de los que se pueden correr sin el juego** (**presupuesto de BLAS contra VRAM**). **Lo que no verifiqué**: **el comportamiento con una tarjeta real** — **el presupuesto de BLAS depende de la VRAM y de la presión de DXGI, y aquí sólo se prueba con lo que el test simula.**
merzleckeier commented 2026-12-03 09:24:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T09:24:21Z.


I independently replayed bce6a5b15 onto d9b618f1. The only merge conflict was the switches.md header. Resolving it to 685 runtime names and 645 with descriptions produced a page byte-for-byte identical to what the sources generate. The full catalog checker from #3308 passed, along with all 22 catalog tests. Keeping the current main header (684/644) made that checker exit 1. This verifies the proposed documentation resolution on a local replay. GitHub still shows the original PR head as conflicting. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7373611404 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3225#issuecomment-7373611404). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T09:24:21Z. --- I independently replayed `bce6a5b15` onto `d9b618f1`. The only merge conflict was the `switches.md` header. Resolving it to 685 runtime names and 645 with descriptions produced a page byte-for-byte identical to what the sources generate. The full catalog checker from #3308 passed, along with all 22 catalog tests. Keeping the current main header (684/644) made that checker exit 1. This verifies the proposed documentation resolution on a local replay. GitHub still shows the original PR head as conflicting. AI-assisted with OpenAI Codex.
MoonEyes commented 2026-12-03 18:03:25 +00:00 (Migrated from github.com)

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


Thanks for the work on this. This pull request has a merge conflict with the current main and has had no new commit, comment or review for more than 5 hours, so I am closing it to keep the list of open pull requests manageable. This is not a judgement of the change. Whenever you like, merge the latest main into your branch, resolve the conflict, and reopen it (or open a new pull request that links this one). Please re-run the relevant tests on the new head; a reviewer will look at it when time allows, with no guarantee of timing or outcome.


Generated by Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7387527272 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3225#issuecomment-7387527272). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T18:03:25Z. --- Thanks for the work on this. This pull request has a merge conflict with the current `main` and has had no new commit, comment or review for more than 5 hours, so I am closing it to keep the list of open pull requests manageable. This is not a judgement of the change. Whenever you like, merge the latest `main` into your branch, resolve the conflict, and reopen it (or open a new pull request that links this one). Please re-run the relevant tests on the new head; a reviewer will look at it when time allows, with no guarantee of timing or outcome. --- _Generated by [Claude Code](https://claude.ai/code)_

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!3225
No description provided.