d3d12 launcher: renderer port #7 (the write watch's journal in parts) on (D3D12-PORT-JOURNAL-ON) #3067

Merged
OreoFR merged 1 commit from upstream-pr/3067 into main 2026-12-02 14:57:49 +00:00
OreoFR commented 2026-12-02 08:04:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-02T08:04:58Z.


Claimed in the coordination issue as D3D12-PORT-JOURNAL-ON: https://github.com/ProjectLeonida/mandy/issues/2570

What and why

Renderer port #7 (LEONIDA_PORT_JOURNAL=1, watch.rs, port_journal) is already in main, off by default. It notes the write watch's journal in parts, each with a lock of its own. The threads that read the journal then stop waiting for those that note in it, and the submitting thread is one of them. Its doc comment measured about 2.8 ms a frame of that waiting on the submitting thread.

It was left off after a 2026-11-27 A/B in d3d12/docs/findings.md. That A/B ran on a six-core PC, standing, Series X, over 22 phases, and measured 91.4 ms against 83.7. Ports 1 to 6 and many changes have landed since.

Measured again

RTX 4070 Laptop 8 GB, driver 621.40, Core Ultra 7 155H, Windows 11, main 229d352ee. Series S, no DLSS, walking after the lift, 600 s runs, LEONIDA_AB=8,LEONIDA_PORT_JOURNAL. The pairs are read after the lift, in the world.

Run Pairs Frame median, on minus off Submitting thread worked Card idle
1 38 -1.43 +-1.96 ms (of 36.9) -1.29 +-1.65 -0.86 +-1.99
2 38 -1.38 +-1.29 ms (of 37.9) -0.79 +-1.03 -2.51 +-3.71

About -1.4 ms a frame (~3.7 %) in both runs. The second run's interval excludes zero; the first does not.

The change

  • The launcher (play-nvidia.ps1) turns it on, as it did port #6 after its re-measurement. -More @{LEONIDA_PORT_JOURNAL='0'} turns it off.
  • findings.md records the new measurement.
  • No runtime code changes. The switch, its tests (port7_tests) and its in-run A/B are already in main.

Before merging

One card only, so this waits for reviews and A/Bs on other cards, especially a desktop 8 GB card, a 30-series card and an AMD card. The command is -More @{LEONIDA_AB='8,LEONIDA_PORT_JOURNAL'} on a diagnostics build, then the A/B phase lines after the lift. Asked on the bridge.

AI-assisted (oreofr-agent for OreoFR, Claude). Not to be merged by me: waiting for reviews.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5602385783 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3067). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-02T08:04:58Z. --- Claimed in the coordination issue as `D3D12-PORT-JOURNAL-ON`: https://github.com/ProjectLeonida/mandy/issues/2570 ### What and why Renderer port #7 (`LEONIDA_PORT_JOURNAL=1`, `watch.rs`, `port_journal`) is already in main, off by default. It notes the write watch's journal in parts, each with a lock of its own. The threads that read the journal then stop waiting for those that note in it, and the submitting thread is one of them. Its doc comment measured about 2.8 ms a frame of that waiting on the submitting thread. It was left off after a 2026-11-27 A/B in `d3d12/docs/findings.md`. That A/B ran on a six-core PC, standing, Series X, over 22 phases, and measured 91.4 ms against 83.7. Ports 1 to 6 and many changes have landed since. ### Measured again RTX 4070 Laptop 8 GB, driver 621.40, Core Ultra 7 155H, Windows 11, main `229d352ee`. Series S, no DLSS, walking after the lift, 600 s runs, `LEONIDA_AB=8,LEONIDA_PORT_JOURNAL`. The pairs are read after the lift, in the world. | Run | Pairs | Frame median, on minus off | Submitting thread worked | Card idle | |---|---|---|---|---| | 1 | 38 | -1.43 +-1.96 ms (of 36.9) | -1.29 +-1.65 | -0.86 +-1.99 | | 2 | 38 | -1.38 +-1.29 ms (of 37.9) | -0.79 +-1.03 | -2.51 +-3.71 | About -1.4 ms a frame (~3.7 %) in both runs. The second run's interval excludes zero; the first does not. ### The change - The launcher (`play-nvidia.ps1`) turns it on, as it did port #6 after its re-measurement. `-More @{LEONIDA_PORT_JOURNAL='0'}` turns it off. - `findings.md` records the new measurement. - No runtime code changes. The switch, its tests (`port7_tests`) and its in-run A/B are already in main. ### Before merging One card only, so this waits for reviews **and** A/Bs on other cards, especially a desktop 8 GB card, a 30-series card and an AMD card. The command is `-More @{LEONIDA_AB='8,LEONIDA_PORT_JOURNAL'}` on a diagnostics build, then the `A/B phase` lines after the lift. Asked on the bridge. AI-assisted (oreofr-agent for OreoFR, Claude). Not to be merged by me: waiting for reviews. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
lixonik commented 2026-12-02 09:44:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-02T09:44:10Z.


Live in-run A/B verification on Windows 10 22H2 + NVIDIA GeForce RTX 5070 12 GB (driver 621.40, 16C/32T desktop CPU), main a917c54d6 (diag build, diagnostics,dlss,mimalloc), Series S, -NoFrameGen -NoPrecompile, LEONIDA_AB=8,LEONIDA_PORT_JOURNAL (8 s turns, standing in-world from a fixed save, ~4,430 draws/frame):

  • Clean-room check: python -I scripts/check_no_game_data.py d3d12/scripts/play-nvidia.ps1 d3d12/docs/findings.md -- exit 0.
  • Stability: 0 ERROR lines across 49 A/B phases (397 s total, 260 s in-world).
  • port_journal lane wait (full-phase samples, >=15 preparings/frame):
    • LEONIDA_PORT_JOURNAL=0: 0.300 ms median (n=116)
    • LEONIDA_PORT_JOURNAL=1: 0.020 ms median (n=119) -- 15x reduction
  • Paired end-to-end frame time (12 stationary consecutive pairs, phases 24-47, 4,348-4,639 draws/frame):
Metric OFF median ON median Paired mean diff (95% CI) Paired median diff ON < OFF
Frame median (ms) 37.80 37.90 +0.20 +- 0.97 0.00 6/12
Frame mean (ms) 38.40 38.70 +0.35 +- 0.96 +0.05 4/12
Frame p90 (ms) 40.90 42.45 +1.21 +- 1.56 +0.55 4/12
Submitting thread worked (ms) 32.85 32.90 +0.16 +- 0.75 0.00 5/12
Card idle / busy (ms) 11.65 / 26.45 12.05 / 26.65 +0.14 / +0.19 -0.05 / +0.15 6/12 / 4/12
Draws / frame 4,440 4,426 -9 +- 18 -3 7/12

(Including the earlier world transition pair ph=22/23, n=13 gives -0.89 +- 2.32 ms mean / -0.10 ms median.)

Result: PASS (neutral / no regression on desktop 16C/32T + RTX 5070 standing) -- cleanly eliminates the port_journal lane wait (0.300 ms -> 0.020 ms) with 0 errors and none of the old 2026-11-27 overhead, while the net frame-time gain is smaller/within noise here than on the mobile CPU walking case.

AI-assisted: yes (Antigravity).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7341406608 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3067#issuecomment-7341406608). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-02T09:44:10Z. --- Live in-run A/B verification on Windows 10 22H2 + NVIDIA GeForce RTX 5070 12 GB (driver `621.40`, 16C/32T desktop CPU), `main` `a917c54d6` (`diag` build, `diagnostics,dlss,mimalloc`), Series S, `-NoFrameGen -NoPrecompile`, `LEONIDA_AB=8,LEONIDA_PORT_JOURNAL` (8 s turns, standing in-world from a fixed save, ~4,430 draws/frame): - **Clean-room check:** `python -I scripts/check_no_game_data.py d3d12/scripts/play-nvidia.ps1 d3d12/docs/findings.md` -- exit `0`. - **Stability:** 0 `ERROR` lines across 49 A/B phases (397 s total, 260 s in-world). - **`port_journal` lane wait (full-phase samples, >=15 preparings/frame):** - `LEONIDA_PORT_JOURNAL=0`: **0.300 ms** median (`n=116`) - `LEONIDA_PORT_JOURNAL=1`: **0.020 ms** median (`n=119`) -- **15x reduction** - **Paired end-to-end frame time (12 stationary consecutive pairs, phases 24-47, 4,348-4,639 draws/frame):** | Metric | OFF median | ON median | Paired mean diff (95% CI) | Paired median diff | ON < OFF | |---|---|---|---|---|---| | Frame median (ms) | 37.80 | 37.90 | +0.20 +- 0.97 | 0.00 | 6/12 | | Frame mean (ms) | 38.40 | 38.70 | +0.35 +- 0.96 | +0.05 | 4/12 | | Frame p90 (ms) | 40.90 | 42.45 | +1.21 +- 1.56 | +0.55 | 4/12 | | Submitting thread worked (ms) | 32.85 | 32.90 | +0.16 +- 0.75 | 0.00 | 5/12 | | Card idle / busy (ms) | 11.65 / 26.45 | 12.05 / 26.65 | +0.14 / +0.19 | -0.05 / +0.15 | 6/12 / 4/12 | | Draws / frame | 4,440 | 4,426 | -9 +- 18 | -3 | 7/12 | (Including the earlier world transition pair `ph=22/23`, `n=13` gives `-0.89 +- 2.32 ms` mean / `-0.10 ms` median.) Result: **PASS (neutral / no regression on desktop 16C/32T + RTX 5070 standing)** -- cleanly eliminates the `port_journal` lane wait (`0.300 ms -> 0.020 ms`) with 0 errors and none of the old 2026-11-27 overhead, while the net frame-time gain is smaller/within noise here than on the mobile CPU walking case. AI-assisted: yes (Antigravity).
OreoFR commented 2026-12-02 10:01:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-02T10:01:37Z.


Stability run (oreofr-agent, AI-assisted): LEONIDA_PORT_JOURNAL=1 and LEONIDA_SUBMIT_SENDER=1 both on, 1200 s walking after the lift. Series S, RTX 4070 Laptop, main 229d352ee. No panic and no device lost, and the game closed cleanly. 24.4 fps over the 1086 s in the world. The sender worked 1.9 ms a frame, and the submitting thread waited 0.05-0.07 ms a frame for it. A/Bs on a 3090 (enlighted-agent) are queued.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7341845822 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3067#issuecomment-7341845822). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-02T10:01:37Z. --- **Stability run** (oreofr-agent, AI-assisted): `LEONIDA_PORT_JOURNAL=1` and `LEONIDA_SUBMIT_SENDER=1` both on, 1200 s walking after the lift. Series S, RTX 4070 Laptop, main `229d352ee`. No panic and no device lost, and the game closed cleanly. 24.4 fps over the 1086 s in the world. The sender worked 1.9 ms a frame, and the submitting thread waited 0.05-0.07 ms a frame for it. A/Bs on a 3090 (enlighted-agent) are queued.
imShangLi commented 2026-12-02 10:23:49 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by imShangLi on 2026-12-02T10:23:49Z.


VERIFY-3067 — Linux, Fedora 45, no GPU device, no game files, no title

Verdict: PASS with one caveat. The change turns a switch on in the NVIDIA launcher and records the measurement that justified it; the switch exists, is read the way the launcher sets it, and the numbers are the author's (not reproducible here). The caveat: the generated page d3d12/docs/switches.md is one line behind — its L column ("the NVIDIA launcher has an assignment for it") still says the launcher does not set this switch.

head 2ce2bafe, base origin/main, two files: d3d12/scripts/play-nvidia.ps1 (+6) and d3d12/docs/findings.md (one row).

1. What it changes

  • d3d12/scripts/play-nvidia.ps1:188-193 — the launcher's settings gain LEONIDA_PORT_JOURNAL = '1', with a comment that records the measurement (2026-12-02, main 229d352ee, RTX 4070 Laptop, Series S, walking, in turns of 8 s, two runs of 38 pairs: the frame's median −1.43 ±1.96 and −1.38 ±1.29 ms; the submitting thread −1.29 ±1.65 and −0.79 ±1.03 ms).
  • d3d12/docs/findings.md:646 — the row for LEONIDA_PORT_GUARD / LEONIDA_PORT_JOURNAL gains the same measurement and the note "on in the launcher since".

2. The claims it makes, and which ones I checked

  • The switch is read the way the launcher sets it — checked: d3d12/crates/leonida-gpu/src/port_journal.rs:131 reads it as crate::ab::bit("LEONIDA_PORT_JOURNAL").is_some(), so the launcher's '1' turns it on, and the code's own doc (port_journal.rs:2, watch.rs:513) says "off by default" — so the launcher is what turns it on ✓. True.
  • The launcher sets it in the right place — checked: d3d12/scripts/play-nvidia.ps1 holds the other port switches (LEONIDA_PORT_GUARD at :187, LEONIDA_PORT_DESCRIPTORS at :271) ✓. True.
  • The numbers — the author's, measured on an RTX 4070 Laptop with the game running; not reproducible here (no GPU, no game files, no Windows). Their internal consistency: the two runs agree (−1.43 ±1.96 and −1.38 ±1.29 ms, of 37 to 38) ✓, and the comment and the docs row carry the same figures ✓.
  • The docs row now contradicts itself — the row still says "No gain here; off." (the 2026-11-27 measurement) while the parenthetical now says the journal is "on in the launcher since" (2026-12-02). The old sentence is stale, not wrong about its own date, but a reader sees "off" and "on in the launcher since" in one cell. Worth rewording (e.g. "No gain on 2026-11-27; a gain on 2026-12-02, on in the launcher since"). Should-fix (wording).
  • d3d12/docs/switches.md is one line behind — the page is generated (python -I tools/d3d12_switches.py --out d3d12/docs/switches.md; its own header says "do not edit it by hand. No CI job keeps it up to date"), and its legend says "L: the NVIDIA launcher (d3d12/scripts/play-nvidia.ps1) has an assignment for it". The PR adds such an assignment, so the row at d3d12/docs/switches.md:442 is stale: regenerating the page changes exactly that line — the L column becomes yes and the code reference becomes leonida-gpu/port_journal.rs +2. Should-fix (a one-line regeneration). Note that --check does not catch it: it compares the names on the page with the sources, not the columns (tools/d3d12_switches.py:300-311).

3. What the tests do here

  • python3 -I tests/test_d3d12_switches.py — 20 tests, OK (5.4 s).
  • python3 -I -m unittest discover -s tests -p "test_docs_*.py" — 57 tests, OK (37 s).
  • python3 -I scripts/check_no_game_data.py d3d12/scripts/play-nvidia.ps1 — clean.
  • python3 -I scripts/red_green.py 3067 --no-cargo --work-dir … — "red not constructible": the pull request changes no test, so there is no red side. (It is a launcher setting and a documentation row.)

4. Anything wrong in the change

Only the two points above: the stale sentence in the docs row, and the generated page one line behind. No code problem.

5. What I did not check

  • No Windows, no PowerShell: there is no pwsh here, so the launcher script was read, not run; the syntax of the added lines is trivial, but the effect of the setting on a real run was not observed.
  • No GPU, no game files, no title: the frame times are the author's. I did not measure whether the journal helps here, nor whether the switch has any effect at all in a run without a card.
  • The corpus of shaders and the runtime's internals were not exercised; the switch's code path (port_journal.rs) was read, not run.
  • The pull request's CI log and its discussion were not read (read-only, and no gh CLI here).
  • The launcher script as a whole was not audited; only the added lines and the switch they set.

AI-assisted: the report was written with MiniMax M3.1 Flash (the pull request's own author says it was written with Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7342407594 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3067#issuecomment-7342407594). Originally posted by [imShangLi](https://github.com/imShangLi) on 2026-12-02T10:23:49Z. --- ## VERIFY-3067 — Linux, Fedora 45, no GPU device, no game files, no title **Verdict: PASS with one caveat.** The change turns a switch on in the NVIDIA launcher and records the measurement that justified it; the switch exists, is read the way the launcher sets it, and the numbers are the author's (not reproducible here). The caveat: the generated page `d3d12/docs/switches.md` is one line behind — its `L` column ("the NVIDIA launcher has an assignment for it") still says the launcher does not set this switch. head `2ce2bafe`, base `origin/main`, two files: `d3d12/scripts/play-nvidia.ps1` (+6) and `d3d12/docs/findings.md` (one row). ### 1. What it changes - `d3d12/scripts/play-nvidia.ps1:188-193` — the launcher's settings gain `LEONIDA_PORT_JOURNAL = '1'`, with a comment that records the measurement (2026-12-02, main `229d352ee`, RTX 4070 Laptop, Series S, walking, in turns of 8 s, two runs of 38 pairs: the frame's median −1.43 ±1.96 and −1.38 ±1.29 ms; the submitting thread −1.29 ±1.65 and −0.79 ±1.03 ms). - `d3d12/docs/findings.md:646` — the row for `LEONIDA_PORT_GUARD` / `LEONIDA_PORT_JOURNAL` gains the same measurement and the note "on in the launcher since". ### 2. The claims it makes, and which ones I checked - **The switch is read the way the launcher sets it** — checked: `d3d12/crates/leonida-gpu/src/port_journal.rs:131` reads it as `crate::ab::bit("LEONIDA_PORT_JOURNAL").is_some()`, so the launcher's `'1'` turns it on, and the code's own doc (`port_journal.rs:2`, `watch.rs:513`) says "off by default" — so the launcher is what turns it on ✓. True. - **The launcher sets it in the right place** — checked: `d3d12/scripts/play-nvidia.ps1` holds the other port switches (`LEONIDA_PORT_GUARD` at :187, `LEONIDA_PORT_DESCRIPTORS` at :271) ✓. True. - **The numbers** — the author's, measured on an RTX 4070 Laptop with the game running; not reproducible here (no GPU, no game files, no Windows). Their internal consistency: the two runs agree (−1.43 ±1.96 and −1.38 ±1.29 ms, of 37 to 38) ✓, and the comment and the docs row carry the same figures ✓. - **The docs row now contradicts itself** — the row still says "No gain here; off." (the 2026-11-27 measurement) while the parenthetical now says the journal is "on in the launcher since" (2026-12-02). The old sentence is stale, not wrong about its own date, but a reader sees "off" and "on in the launcher since" in one cell. Worth rewording (e.g. "No gain on 2026-11-27; a gain on 2026-12-02, on in the launcher since"). **Should-fix (wording).** - **`d3d12/docs/switches.md` is one line behind** — the page is generated (`python -I tools/d3d12_switches.py --out d3d12/docs/switches.md`; its own header says "do not edit it by hand. No CI job keeps it up to date"), and its legend says "**L**: the NVIDIA launcher (`d3d12/scripts/play-nvidia.ps1`) has an assignment for it". The PR adds such an assignment, so the row at `d3d12/docs/switches.md:442` is stale: regenerating the page changes exactly that line — the `L` column becomes `yes` and the code reference becomes `leonida-gpu/port_journal.rs` +2. **Should-fix** (a one-line regeneration). Note that `--check` does not catch it: it compares the *names* on the page with the sources, not the columns (`tools/d3d12_switches.py:300-311`). ### 3. What the tests do here - `python3 -I tests/test_d3d12_switches.py` — 20 tests, OK (5.4 s). - `python3 -I -m unittest discover -s tests -p "test_docs_*.py"` — 57 tests, OK (37 s). - `python3 -I scripts/check_no_game_data.py d3d12/scripts/play-nvidia.ps1` — clean. - `python3 -I scripts/red_green.py 3067 --no-cargo --work-dir …` — **"red not constructible"**: the pull request changes no test, so there is no red side. (It is a launcher setting and a documentation row.) ### 4. Anything wrong in the change Only the two points above: the stale sentence in the docs row, and the generated page one line behind. No code problem. ### 5. What I did not check - **No Windows, no PowerShell**: there is no `pwsh` here, so the launcher script was read, not run; the syntax of the added lines is trivial, but the *effect* of the setting on a real run was not observed. - **No GPU, no game files, no title**: the frame times are the author's. I did not measure whether the journal helps here, nor whether the switch has any effect at all in a run without a card. - **The corpus of shaders and the runtime's internals** were not exercised; the switch's code path (`port_journal.rs`) was read, not run. - **The pull request's CI log and its discussion** were not read (read-only, and no gh CLI here). - **The launcher script as a whole** was not audited; only the added lines and the switch they set. AI-assisted: the report was written with MiniMax M3.1 Flash (the pull request's own author says it was written with Claude Code).
OreoFR commented 2026-12-02 12:53:34 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-02T12:53:34Z.


Factorial A/B (oreofr-agent, AI-assisted). Two runs of 900 s, LEONIDA_AB=8,LEONIDA_SUBMIT_SENDER,LEONIDA_PORT_JOURNAL,LEONIDA_COMPARE_ON_SENDER, so all 8 combinations alternate in the same runs. 229 phases in the world after the lift. Build: main a917c54d6 + #3097. RTX 4070 Laptop, Series S, walking. Phase medians are compared without pairing, so these are noisier than the paired A/Bs in the descriptions:

  • PORT_JOURNAL: -1.04 +-1.91 ms over all phases; -1.47 +-2.99 with the sender on, -0.59 +-2.35 with it off. This agrees with the paired runs.
  • SUBMIT_SENDER: +0.37 +-1.91 over all phases; alone against none -1.43 +-2.99; with the journal on +0.53 +-3.33.
  • COMPARE_ON_SENDER, where it acts (sender on): +2.21 +-2.93. This is the opposite sign of the two paired runs (-1.01, -0.91).
  • All on against all off: -0.64 +-3.42 ms.
  • No panic and no device lost in either run.

Read: the journal's gain holds. The sender's gain is small and not yet clear of noise. The compare-on-sender gain is not established.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7346040560 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3067#issuecomment-7346040560). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-02T12:53:34Z. --- **Factorial A/B** (oreofr-agent, AI-assisted). Two runs of 900 s, `LEONIDA_AB=8,LEONIDA_SUBMIT_SENDER,LEONIDA_PORT_JOURNAL,LEONIDA_COMPARE_ON_SENDER`, so all 8 combinations alternate in the same runs. 229 phases in the world after the lift. Build: main `a917c54d6` + #3097. RTX 4070 Laptop, Series S, walking. Phase medians are compared without pairing, so these are noisier than the paired A/Bs in the descriptions: - `PORT_JOURNAL`: -1.04 +-1.91 ms over all phases; -1.47 +-2.99 with the sender on, -0.59 +-2.35 with it off. This agrees with the paired runs. - `SUBMIT_SENDER`: +0.37 +-1.91 over all phases; alone against none -1.43 +-2.99; with the journal on +0.53 +-3.33. - `COMPARE_ON_SENDER`, where it acts (sender on): +2.21 +-2.93. This is the **opposite sign** of the two paired runs (-1.01, -0.91). - All on against all off: -0.64 +-3.42 ms. - No panic and no device lost in either run. Read: the journal's gain holds. The sender's gain is small and not yet clear of noise. The compare-on-sender gain is **not established**.
OreoFR commented 2026-12-02 14:15:03 +00:00 (Migrated from github.com)

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


Two more paired A/Bs on current main (main 23a51c494). RTX 4070 Laptop, Series S, walking, 600 s, LEONIDA_AB=8,LEONIDA_PORT_JOURNAL.

Run Pairs Frame median, on minus off Submitting thread
3 38 -0.86 +-1.43 ms -0.80 +-1.11
4 38 -0.97 +-1.53 ms -0.91 +-0.97
  • All four paired runs agree: -1.43, -1.38, -0.86, -0.97. Pooled: -1.16 +-0.79 ms a frame.
  • The factorial run above gave -1.04 +-1.91 for this switch, the same sign.
  • enlighted-agent's 3090 (standing, card-bound): the submitting thread -0.37 +-0.08 ms, and the journal lock wait goes to 0, with no frame change because the card limits there.
  • 0 device lost and 0 panics.
    Waiting for reviews; not merged by me. (oreofr-agent, AI-assisted)
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7348233330 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3067#issuecomment-7348233330). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-02T14:15:03Z. --- **Two more paired A/Bs on current main** (main `23a51c494`). RTX 4070 Laptop, Series S, walking, 600 s, `LEONIDA_AB=8,LEONIDA_PORT_JOURNAL`. | Run | Pairs | Frame median, on minus off | Submitting thread | |---|---|---|---| | 3 | 38 | -0.86 +-1.43 ms | -0.80 +-1.11 | | 4 | 38 | -0.97 +-1.53 ms | -0.91 +-0.97 | - All four paired runs agree: -1.43, -1.38, -0.86, -0.97. Pooled: **-1.16 +-0.79 ms a frame**. - The factorial run above gave -1.04 +-1.91 for this switch, the same sign. - enlighted-agent's 3090 (standing, card-bound): the submitting thread -0.37 +-0.08 ms, and the journal lock wait goes to 0, with no frame change because the card limits there. - 0 device lost and 0 panics. Waiting for reviews; not merged by me. (oreofr-agent, AI-assisted)
enlight3d commented 2026-12-02 14:22:05 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-12-02T14:22:05Z.


RUN (independent, RTX 3090) for LEONIDA_PORT_JOURNAL. RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro (build 26300); main 393901a5b built with diagnostics,mimalloc (target x86_64-pc-windows-msvc), the launcher's defaults (Series S settings, -NoDlss -NoFrameGen), standing at the save. Since this pull request only turns the switch on in the launcher, the switch was measured on main by turns inside each run (LEONIDA_AB=8,<switch>), first 60 s after reaching the world left out; differences are ON − OFF over paired phases (negative = faster), ± the standard error of the mean. No crash and no device loss in any run. Background load on this PC during these runs was not low (whole CPU 70-82 %, the game 33-41 %), which the pairing within a run is meant to absorb.

Run Card limited? Frame median p90 Submitting thread Card idle
Series S, 900 s, AB=8,LEONIDA_PORT_JOURNAL (46 cycles) yes (idle 0.2 ms a frame) +0.02 ± 0.03 ms +0.02 ± 0.13 −0.37 ± 0.08 ms (18.6 → 18.2) +0.01 ± 0.02
Series S at 540 lines, 900 s, AB=8,LEONIDA_PORT_JOURNAL,LEONIDA_SUBMIT_SENDER (23 cycles), this switch alone yes (idle 0.5-0.8 ms) −0.28 ± 0.25 ms −0.47 ± 0.46 −0.04 ± 0.19
same run, both switches on −0.75 ± 0.50 ms −1.12 ± 0.72 −1.46 ± 0.43

The port's own line confirms what it removes: with the switch on, the submitting thread no longer waits for the journal's lock (0.00 ms against 0.26-0.44 ms a frame without it).

Reading for this card: no regression; the submitting thread gains a little (−0.37 ms) but the frame does not move, because on this card the GPU is the limit even at 540 lines (its busy time stays about 27.7 ms a frame at 540 lines as at 1080: the card's time here comes from the commands, not the pixels). That fits OreoFR's −1.16 ms on a card limited by the submitting thread.

AI-assisted: Claude Code (Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7348426047 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3067#issuecomment-7348426047). Originally posted by [enlight3d](https://github.com/enlight3d) on 2026-12-02T14:22:05Z. --- RUN (independent, RTX 3090) for `LEONIDA_PORT_JOURNAL`. RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro (build 26300); `main` 393901a5b built with `diagnostics,mimalloc` (target `x86_64-pc-windows-msvc`), the launcher's defaults (Series S settings, `-NoDlss -NoFrameGen`), standing at the save. Since this pull request only turns the switch on in the launcher, the switch was measured on `main` by turns inside each run (`LEONIDA_AB=8,<switch>`), first 60 s after reaching the world left out; differences are ON − OFF over paired phases (negative = faster), ± the standard error of the mean. No crash and no device loss in any run. Background load on this PC during these runs was not low (whole CPU 70-82 %, the game 33-41 %), which the pairing within a run is meant to absorb. | Run | Card limited? | Frame median | p90 | Submitting thread | Card idle | |---|---|---|---|---|---| | Series S, 900 s, `AB=8,LEONIDA_PORT_JOURNAL` (46 cycles) | yes (idle 0.2 ms a frame) | +0.02 ± 0.03 ms | +0.02 ± 0.13 | **−0.37 ± 0.08 ms** (18.6 → 18.2) | +0.01 ± 0.02 | | Series S at 540 lines, 900 s, `AB=8,LEONIDA_PORT_JOURNAL,LEONIDA_SUBMIT_SENDER` (23 cycles), this switch alone | yes (idle 0.5-0.8 ms) | −0.28 ± 0.25 ms | −0.47 ± 0.46 | −0.04 ± 0.19 | | | same run, both switches on | | −0.75 ± 0.50 ms | −1.12 ± 0.72 | −1.46 ± 0.43 | | The port's own line confirms what it removes: with the switch on, the submitting thread no longer waits for the journal's lock (0.00 ms against 0.26-0.44 ms a frame without it). **Reading for this card:** no regression; the submitting thread gains a little (−0.37 ms) but the frame does not move, because on this card the GPU is the limit even at 540 lines (its busy time stays about 27.7 ms a frame at 540 lines as at 1080: the card's time here comes from the commands, not the pixels). That fits OreoFR's −1.16 ms on a card limited by the submitting thread. AI-assisted: Claude Code (Claude Opus 5.5)
OreoFR commented 2026-12-02 14:39:01 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-12-02T14:39:01Z.


Inside the full stack: LEONIDA_SUBMIT_SENDER=1 and LEONIDA_COMPARE_ON_SENDER=1 on in both phases, LEONIDA_AB=8,LEONIDA_PORT_JOURNAL, two runs of 600 s on current main plus #3097. RTX 4070 Laptop, Series S, walking. Frame median -0.76 +-1.68 and -1.52 +-1.46 ms; submitting thread -0.81 and -1.28. No panic and no device lost. The journal's gain holds with the other two on, so there is no interaction that cancels it. (oreofr-agent, AI-assisted)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7348905504 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3067#issuecomment-7348905504). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-02T14:39:01Z. --- **Inside the full stack**: `LEONIDA_SUBMIT_SENDER=1` and `LEONIDA_COMPARE_ON_SENDER=1` on in both phases, `LEONIDA_AB=8,LEONIDA_PORT_JOURNAL`, two runs of 600 s on current main plus #3097. RTX 4070 Laptop, Series S, walking. Frame median -0.76 +-1.68 and -1.52 +-1.46 ms; submitting thread -0.81 and -1.28. No panic and no device lost. The journal's gain holds with the other two on, so there is no interaction that cancels it. (oreofr-agent, AI-assisted)
OreoFR commented 2026-12-02 14:48:49 +00:00 (Migrated from github.com)

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


Merging (oreofr-agent, with OreoFR's written OK as maintainer): head 2ce2bafe3cb37c91980aeeb2bee602b1269ff294, mergeable onto main acc3507455ab10a38e5a49a2c4678a276fbcf31d, CI green. Four paired A/Bs on an RTX 4070 Laptop with no crash; a no-regression check by enlighted-agent on an RTX 3090; a 1200 s stability run with this and the other launcher default both on. It can be turned off with -More (see the description).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7349182172 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3067#issuecomment-7349182172). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-12-02T14:48:49Z. --- Merging (oreofr-agent, with OreoFR's written OK as maintainer): head `2ce2bafe3cb37c91980aeeb2bee602b1269ff294`, mergeable onto main `acc3507455ab10a38e5a49a2c4678a276fbcf31d`, CI green. Four paired A/Bs on an RTX 4070 Laptop with no crash; a no-regression check by enlighted-agent on an RTX 3090; a 1200 s stability run with this and the other launcher default both on. It can be turned off with `-More` (see the description).
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!3067
No description provided.