d3d12-gpu: time card-copy sends, hashes, cross-copies, and compares in LEONIDA_GPU_TIMING (D3D12-GPU-TIMING-OWN-PASSES) #3323

Open
lixonik wants to merge 3 commits from upstream-pr/3323 into main
lixonik commented 2026-12-03 11:06:58 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-03T11:06:58Z.


Claimed in the coordination issue as: D3D12-GPU-TIMING-OWN-PASSES

What and why

Addresses the GPU timing gap noted in #3311 ("What the timing does not see"): the ~770+ per-frame card-copy hash and compare passes (Host::card_before and post-submission record_compare_passes) previously carried no timestamps under LEONIDA_GPU_TIMING=1, LEONIDA_OWN_STAMPS=1 lumped sends and hash passes into a single Kind::Sends pair, ownstamps::line was unreachable when late() was false (including under LEONIDA_GPU_TIMING=1 or LEONIDA_RELAY=0), and PendingCompare::record under LEONIDA_COMPARE_ON_SENDER=1 took no timestamps at all.

Changes:

  • d3d12/crates/leonida-gpu/src/host/ownstamps.rs:
    • Split Kind into four distinct phases (Sends, Hash, Cross, Compare) and track pass counts alongside list counts and GPU microseconds.
    • Auto-enable ownstamps under LEONIDA_GPU_TIMING=1 in diagnostics builds and feed each completed phase into copystat::command_took_many under own [card sends], own [card hash], own [card cross], and own [card compare].
    • Add reserve / mark_begin / mark_end (zeroing the readback slot on reserve and bumping PAIRS to 8192) so PendingCompare::record on leonida-send is timed cleanly too.
    • Guard ownstamps::line emission so LEONIDA_GPU_TIMING=1 without card buffers does not log all-zero lines.
  • d3d12/crates/leonida-gpu/src/host.rs:
    • Stamp Sends (copies + barrier, only when has_sends) and Hash (CARD_COMPARE mode 0, only when total_hash_passes > 0) separately in Host::card_before.
    • Wire reserve / mark_begin / mark_end through PendingCompare and move ownstamps::line(frames) from late_line into Meter::lines so it runs in both asynchronous and synchronous (LEONIDA_GPU_TIMING=1, LEONIDA_RELAY=0) modes.
  • d3d12/crates/leonida-gpu/src/copystat.rs:
    • Add command_took_many(op, count, us) (delegating command_took to it) so batched passes report accurate per-frame pass counts and total/max microseconds in the LEONIDA_GPU_TIMING summary.
  • d3d12/docs/switches.md: regenerated with python -I tools/d3d12_switches.py --out d3d12/docs/switches.md.

Tested

  • python -I scripts/check_no_game_data.py -- PASS
  • python -I tools/d3d12_switches.py --check d3d12/docs/switches.md -- PASS
  • python -I tests/test_d3d12_switches.py -- 20/20 OK
  • cargo test -p leonida-gpu --lib --locked ownstamps:: (default features) -- 2/2 PASS (ticks_to_us_rejects_unwritten_or_backwards_pairs, own_timing_ops_cover_all_four_phases)
  • cargo test -p leonida-gpu --lib --features diagnostics --locked ownstamps:: -- 3/3 PASS (including command_took_many_sums_passes_and_keeps_all_four_own_keys_distinct)
  • cargo build --profile diag --features "diagnostics,dlss,mimalloc" --locked -- PASS
  • In-game LEONIDA_GPU_TIMING=1 + LEONIDA_D3D12_DRED=1 measurement (90 s in world, Series S, DLSS, no FG, 0 errors / 0 device lost):
    • Total timed commands: 28.1-28.3 ms/frame (indirect 13.0 ms in ~4,760, dispatch 9.4 ms in ~3,210, mesh 3.1-3.2 ms in 349, own 1.2 ms in ~850 (4.3%)):
      • own [card compare]: 0.68-0.70 ms/frame in 439-444 passes (longest batch 0.34-0.43 ms)
      • own [card hash]: 0.26-0.27 ms/frame in 383-385 passes (longest batch 0.04 ms)
      • own [card sends]: 0.24 ms/frame in 25 lists (longest batch 0.06 ms)
    • Takeaway for #3311: on this RTX 5070 12 GB, the ~825 compare+hash passes take < 1.0 ms/frame combined (~1.2 ms including sends), so the larger unaccounted GPU wait in LEONIDA_GPU_TIMING=1 comes from synchronous per-list submission/wait overhead rather than compare/hash compute cost.
  • In-game 315 s gate run (LEONIDA_OWN_STAMPS=1, LEONIDA_COMPARE_ON_SENDER=1, Series S, DLSS, no FG, 315 s in world, 437.6 s total, 64 world samples, max 5,312 draws):
    • Runtime errors: 0; device lost: 0; median 24.7 fps (40.5 ms; 3000-4999 draws bucket: 24.7 fps across 57 samples)
    • Live LEONIDA_OWN_STAMPS steady-state output (with LEONIDA_COMPARE_ON_SENDER=1 active): sends 0.58-0.67 ms (8.0 lists), hash passes 0.07 ms (133-136 passes / 7.9 lists), copies between copies 0.01 ms (2.4-2.7 lists), compares behind submissions 0.52-0.53 ms (435-444 passes / 14.5 lists) -- ~1.21 ms/frame total.

GPUs tested: NVIDIA GeForce RTX 5070 12 GB, Windows 10 x64 (native).

AI-assisted: yes. Author: Antigravity (Gemini 4 Neon). Reviewer: separate read-only Pro reviewer subagent (two passes; caught ownstamps::line being skipped when late() is false under LEONIDA_GPU_TIMING=1 and empty-Sends stamping, then approved).

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 (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)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5625222579 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3323). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-03T11:06:58Z. --- Claimed in the coordination issue as: [D3D12-GPU-TIMING-OWN-PASSES](https://github.com/ProjectLeonida/mandy/issues/3312#issuecomment-7375672644) ### What and why Addresses the GPU timing gap noted in #3311 ("What the timing does not see"): the ~770+ per-frame card-copy hash and compare passes (`Host::card_before` and post-submission `record_compare_passes`) previously carried no timestamps under `LEONIDA_GPU_TIMING=1`, `LEONIDA_OWN_STAMPS=1` lumped sends and hash passes into a single `Kind::Sends` pair, `ownstamps::line` was unreachable when `late()` was false (including under `LEONIDA_GPU_TIMING=1` or `LEONIDA_RELAY=0`), and `PendingCompare::record` under `LEONIDA_COMPARE_ON_SENDER=1` took no timestamps at all. Changes: - **`d3d12/crates/leonida-gpu/src/host/ownstamps.rs`**: - Split `Kind` into four distinct phases (`Sends`, `Hash`, `Cross`, `Compare`) and track pass counts alongside list counts and GPU microseconds. - Auto-enable `ownstamps` under `LEONIDA_GPU_TIMING=1` in `diagnostics` builds and feed each completed phase into `copystat::command_took_many` under `own [card sends]`, `own [card hash]`, `own [card cross]`, and `own [card compare]`. - Add `reserve` / `mark_begin` / `mark_end` (zeroing the readback slot on reserve and bumping `PAIRS` to `8192`) so `PendingCompare::record` on `leonida-send` is timed cleanly too. - Guard `ownstamps::line` emission so `LEONIDA_GPU_TIMING=1` without card buffers does not log all-zero lines. - **`d3d12/crates/leonida-gpu/src/host.rs`**: - Stamp `Sends` (copies + barrier, only when `has_sends`) and `Hash` (`CARD_COMPARE` mode 0, only when `total_hash_passes > 0`) separately in `Host::card_before`. - Wire `reserve` / `mark_begin` / `mark_end` through `PendingCompare` and move `ownstamps::line(frames)` from `late_line` into `Meter::lines` so it runs in both asynchronous and synchronous (`LEONIDA_GPU_TIMING=1`, `LEONIDA_RELAY=0`) modes. - **`d3d12/crates/leonida-gpu/src/copystat.rs`**: - Add `command_took_many(op, count, us)` (delegating `command_took` to it) so batched passes report accurate per-frame pass counts and total/max microseconds in the `LEONIDA_GPU_TIMING` summary. - **`d3d12/docs/switches.md`**: regenerated with `python -I tools/d3d12_switches.py --out d3d12/docs/switches.md`. ### Tested - `python -I scripts/check_no_game_data.py` -- PASS - `python -I tools/d3d12_switches.py --check d3d12/docs/switches.md` -- PASS - `python -I tests/test_d3d12_switches.py` -- 20/20 OK - `cargo test -p leonida-gpu --lib --locked ownstamps::` (default features) -- 2/2 PASS (`ticks_to_us_rejects_unwritten_or_backwards_pairs`, `own_timing_ops_cover_all_four_phases`) - `cargo test -p leonida-gpu --lib --features diagnostics --locked ownstamps::` -- 3/3 PASS (including `command_took_many_sums_passes_and_keeps_all_four_own_keys_distinct`) - `cargo build --profile diag --features "diagnostics,dlss,mimalloc" --locked` -- PASS - **In-game `LEONIDA_GPU_TIMING=1` + `LEONIDA_D3D12_DRED=1` measurement (90 s in world, Series S, DLSS, no FG, 0 errors / 0 device lost):** - Total timed commands: **28.1-28.3 ms/frame** (`indirect` 13.0 ms in ~4,760, `dispatch` 9.4 ms in ~3,210, `mesh` 3.1-3.2 ms in 349, **`own` 1.2 ms in ~850 (4.3%)**): - `own [card compare]`: **0.68-0.70 ms/frame** in **439-444 passes** (longest batch 0.34-0.43 ms) - `own [card hash]`: **0.26-0.27 ms/frame** in **383-385 passes** (longest batch 0.04 ms) - `own [card sends]`: **0.24 ms/frame** in **25 lists** (longest batch 0.06 ms) - Takeaway for #3311: on this RTX 5070 12 GB, the ~825 compare+hash passes take **< 1.0 ms/frame** combined (~1.2 ms including sends), so the larger unaccounted GPU wait in `LEONIDA_GPU_TIMING=1` comes from synchronous per-list submission/wait overhead rather than compare/hash compute cost. - **In-game 315 s gate run (`LEONIDA_OWN_STAMPS=1`, `LEONIDA_COMPARE_ON_SENDER=1`, Series S, DLSS, no FG, 315 s in world, 437.6 s total, 64 world samples, max 5,312 draws):** - Runtime errors: 0; device lost: 0; median **24.7 fps** (40.5 ms; `3000-4999` draws bucket: 24.7 fps across 57 samples) - Live `LEONIDA_OWN_STAMPS` steady-state output (with `LEONIDA_COMPARE_ON_SENDER=1` active): `sends 0.58-0.67 ms` (8.0 lists), `hash passes 0.07 ms` (133-136 passes / 7.9 lists), `copies between copies 0.01 ms` (2.4-2.7 lists), `compares behind submissions 0.52-0.53 ms` (435-444 passes / 14.5 lists) -- ~1.21 ms/frame total. GPUs tested: NVIDIA GeForce RTX 5070 12 GB, Windows 10 x64 (native). AI-assisted: yes. Author: Antigravity (Gemini 4 Neon). Reviewer: separate read-only Pro reviewer subagent (two passes; caught `ownstamps::line` being skipped when `late()` is false under `LEONIDA_GPU_TIMING=1` and empty-`Sends` stamping, then approved). ### 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 (`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)
merzleckeier commented 2026-12-03 11:12:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T11:12:59Z.


Review of 1dbec378 on 6e979905. The catalog check, 20 catalog tests, and all three existing ownstamps tests passed. I also ran a synthetic D3D12 query/readback on AMD RADV through Wine/vkd3d-proton.

  • Label the duration of a batch as a batch duration. command_took_many puts the entire interval into the maximum field. My 112 µs synthetic interval with a batch count of seven was recorded as (7, 112, 112). The report presents that maximum next to the command count as “the longest”. For the new own keys that value is the longest batch, so it cannot identify the longest individual hash or compare pass. Please label it explicitly in the per-key report.
  • Keep a timestamp pair reserved through readback. In ownstamps::reserve, the modulo counter clears a pair before checking whether its previous owner has collected it. In the synthetic test I completed a real query, left its result unread, and reserved a full turn of pairs. The next reservation zeroed the first sample, so the subsequent read silently skipped it. This exercises the allocator directly. The default 256-list limit stays well below 8,192 pairs, but LEONIDA_LATE_WAIT_LISTS accepts larger values. Could the allocator skip an occupied pair and release it at retirement, or could the submission path enforce a bound covering all live stamps?

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7376377197 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3323#issuecomment-7376377197). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T11:12:59Z. --- Review of `1dbec378` on `6e979905`. The catalog check, 20 catalog tests, and all three existing `ownstamps` tests passed. I also ran a synthetic D3D12 query/readback on AMD RADV through Wine/vkd3d-proton. - **Label the duration of a batch as a batch duration.** `command_took_many` puts the entire interval into the maximum field. My 112 µs synthetic interval with a batch count of seven was recorded as `(7, 112, 112)`. The report presents that maximum next to the command count as “the longest”. For the new `own` keys that value is the longest batch, so it cannot identify the longest individual hash or compare pass. Please label it explicitly in the per-key report. - **Keep a timestamp pair reserved through readback.** In `ownstamps::reserve`, the modulo counter clears a pair before checking whether its previous owner has collected it. In the synthetic test I completed a real query, left its result unread, and reserved a full turn of pairs. The next reservation zeroed the first sample, so the subsequent read silently skipped it. This exercises the allocator directly. The default 256-list limit stays well below 8,192 pairs, but `LEONIDA_LATE_WAIT_LISTS` accepts larger values. Could the allocator skip an occupied pair and release it at retirement, or could the submission path enforce a bound covering all live stamps? AI-assisted with OpenAI Codex.
lixonik commented 2026-12-03 11:21:27 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-03T11:21:27Z.


@merzleckeier Thanks for the thorough review and the synthetic RADV query/readback test! Both points are addressed in 0c836e32e:

  • Explicit batch duration label (copystat.rs): COMMANDS_BY_WORK now tracks batched: bool (false for command_took, true for command_took_many), so batched own [card ...] entries log the longest batch {:.2} ms while individual commands keep the longest {:.2} ms.
  • Keep timestamp pairs reserved through readback (host/ownstamps.rs, host.rs): added an atomic IN_USE: [AtomicBool; PAIRS] table. claim_slot skips occupied slots and returns None when all 8192 pairs are in flight instead of zeroing/clobbering an unread slot; ownstamps::read(&mut Vec<Stamp>) drains and releases each slot (Ordering::Release) after read_volatile(), and CardPlan::drop releases any unread stamps as a safety net.
  • Re-tested: cargo test -p leonida-gpu --lib --locked ownstamps:: (3/3 PASS) and --features diagnostics (4/4 PASS, including claim_slot_skips_occupied_pairs_and_returns_none_when_full and verifying batched for both command_took_many and command_took); separate read-only Pro reviewer approved.

AI-assisted: yes (Antigravity -- Gemini 4 Neon; Pro reviewer subagent).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7376585643 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3323#issuecomment-7376585643). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-03T11:21:27Z. --- @merzleckeier Thanks for the thorough review and the synthetic RADV query/readback test! Both points are addressed in `0c836e32e`: - **Explicit batch duration label (`copystat.rs`)**: `COMMANDS_BY_WORK` now tracks `batched: bool` (`false` for `command_took`, `true` for `command_took_many`), so batched `own [card ...]` entries log `the longest batch {:.2} ms` while individual commands keep `the longest {:.2} ms`. - **Keep timestamp pairs reserved through readback (`host/ownstamps.rs`, `host.rs`)**: added an atomic `IN_USE: [AtomicBool; PAIRS]` table. `claim_slot` skips occupied slots and returns `None` when all `8192` pairs are in flight instead of zeroing/clobbering an unread slot; `ownstamps::read(&mut Vec<Stamp>)` drains and releases each slot (`Ordering::Release`) after `read_volatile()`, and `CardPlan::drop` releases any unread stamps as a safety net. - Re-tested: `cargo test -p leonida-gpu --lib --locked ownstamps::` (3/3 PASS) and `--features diagnostics` (4/4 PASS, including `claim_slot_skips_occupied_pairs_and_returns_none_when_full` and verifying `batched` for both `command_took_many` and `command_took`); separate read-only Pro reviewer approved. AI-assisted: yes (Antigravity -- Gemini 4 Neon; Pro reviewer subagent).
merzleckeier commented 2026-12-03 11:24:40 +00:00 (Migrated from github.com)

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


Re-tested 0c836e32e on AMD RADV through Wine/vkd3d-proton. The real GPU sample survived a full timestamp ring. Reservation returned None at capacity, the 112 µs batch was counted after readback, and the same slot could then be claimed and cleared for reuse. All four existing ownstamps tests and the added local GPU probe passed. The report now explicitly labels the batch maximum. This resolves both of my review points.

AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7376661793 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3323#issuecomment-7376661793). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-12-03T11:24:40Z. --- Re-tested `0c836e32e` on AMD RADV through Wine/vkd3d-proton. The real GPU sample survived a full timestamp ring. Reservation returned `None` at capacity, the 112 µs batch was counted after readback, and the same slot could then be claimed and cleared for reuse. All four existing `ownstamps` tests and the added local GPU probe passed. The report now explicitly labels the batch maximum. This resolves both of my review points. AI-assisted with OpenAI Codex.
MoonEyes commented 2026-12-03 12:46:35 +00:00 (Migrated from github.com)

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


RUN (in game, third party, batch of four pull requests), each head merged with git merge --no-ff onto main 6e9799050, in one build: #2642 4b4d99a82, #3151 8894c5812, #3323 0c836e32e, #3324 02f37bcf8. RTX 4060 8 GB, driver 610.88, Windows 11. Series S, -Resolution 1080, frame generation 2x, -PrecompileUsed, the same walking route as the other runs on this machine, 330 s after reaching the world.

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

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

Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it.

Limits: one run; arrival in the world was driven by keys and not checked on pictures. The precompile before the world took 529 s, against about 110 s for main alone: the translator change in #3324 left the pipeline cache cold. Switches that are off by default (for example #3323's own-pass timing) were not turned on: this run covers their default path only. #2642 targets Wine and was run on Windows only. #3151 changes what happens on a lost device; no device was lost, so that path was not exercised.

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7378818453 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3323#issuecomment-7378818453). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T12:46:35Z. --- RUN (in game, third party, batch of four pull requests), each head merged with `git merge --no-ff` onto main `6e9799050`, in one build: #2642 `4b4d99a82`, #3151 `8894c5812`, #3323 `0c836e32e`, #3324 `02f37bcf8`. RTX 4060 8 GB, driver 610.88, Windows 11. Series S, `-Resolution 1080`, frame generation 2x, `-PrecompileUsed`, the same walking route as the other runs on this machine, 330 s after reaching the world. | What | Result | |---|---| | Device lost / device removed | 0 | | Exceptions, panics, hang watchdog, GPU stall, title suspended | 0 | | Process alive at the end | yes, stopped by the time limit | | Rendered fps, last 240 s (45 samples) | median 17.6, mean 17.1 | | Rendered fps, last 120 s | median 17.2 | | Time under 5 fps in the world | 0 % | For reference, the same machine and route rendered 13.3 to 17.4 fps on other runs in the last day: a check that nothing fell over, not a measurement of a gain. Verdict: PASS for the in-game gate (300 s or more in the world, no device loss) for this batch, on the heads listed above. If one of these pull requests changes its head, this run no longer covers it. Limits: one run; arrival in the world was driven by keys and not checked on pictures. The precompile before the world took 529 s, against about 110 s for main alone: the translator change in #3324 left the pipeline cache cold. Switches that are off by default (for example #3323's own-pass timing) were not turned on: this run covers their default path only. #2642 targets Wine and was run on Windows only. #3151 changes what happens on a lost device; no device was lost, so that path was not exercised. AI-assisted (Claude Code, Claude Opus 5.5).
EdenBendheim commented 2026-12-03 12:54:10 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by EdenBendheim on 2026-12-03T12:54:10Z.


RUN (RTX 3090 24 GB) — both instrumented 300 s gates PASS, including the sender and per-command batch telemetry.

  • Head 0c836e32e290062f5fdf7adb9b1c9d63a456ecd5 merged locally onto main b053a1813c8980c4357d51bbe6e69a35dc8c476c, merge 4c271d26872546ee9b6176f0b5cae900d96e7bdf. Exe SHA-256 e950ca622d9029835fcf204e02281ea5ca3ba8007eb928470d36cc990b4f51d8; diagnostics,dlss,mimalloc.
  • Windows 11 Home 26200, RTX 3090 driver 610.88, Ryzen 9 5900X, 32 GiB RAM, Profile L. Series S DLSS 720p→1080p, no FG/precompile, separate byte-matched warm pipeline seeds, stock gate, card buffers enabled. A: OWN_STAMPS=1 and COMPARE_ON_SENDER=1; B: GPU_TIMING=1 and D3D12_DRED=1, OWN_STAMPS unset.
MEASURED (world+60 report medians unless stated) Sender Synchronous timing
World seconds 303.995 302.503
Actual exit / crashes / device losses 0 / 0 / 0 0 / 0 / 0
Median/p5 FPS 14.00 / 4.38 6.32 / 3.91
p95/p99 frame ms 228.18 / 752.84 255.87 / 694.88
Longest world gap s 4.210 1.910
Peak private / min commit MiB 23251 / 6172 20124 / 9412
Peak VRAM MiB 6614 5548
Own timing reports 196 217
Sends ms/frame / lists/frame 0.77 / 9.6 1.87 / 35.1
Hash ms/frame / passes/frame 0.11 / 166.45 0.54 / 511.7
Cross ms/frame / lists/frame 0.01 / 1.9 0 / 0
Compare ms/frame / passes/frame 0.545 / 456.7 1.19 / 506.7
Median per-report joint own ms/frame 1.45 3.58

The sender arm had 197 sender reports, median 18.2 sends/frame, 4.96 ms working, 0.70 ms waiting. Synchronous command table recorded 44 entries per send/hash/compare phase in the measured window, all labeled longest batch; medians of longest batch 0.915/0.070/0.250 ms (maxima 2.15/0.73/1.81 ms). Cross and sender table entries absent in this synchronous recipe as expected. No malformed own rows.

Both gates passed and saved cache; sender had a suspend-late warning. Native placement in sender held for 12 marks, 120.218 s after the first stable mark; synchronous run rendered in-world but control/placement was not established. Different instrumentation/workloads/locations, no matched performance attribution. Live ring occupancy/reuse and separate identification of each sender-recorded compare were not measured.

Targeted ownstamps tests: 3/3 default, 4/4 diagnostics; switch checks 21/21, clean-room/diff/catalog passed. Capacity/reuse covered synthetically. AI-assisted: Codex GPT-6.2 Sol (tester and independent numeric check). No game content attached.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7379014271 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3323#issuecomment-7379014271). Originally posted by [EdenBendheim](https://github.com/EdenBendheim) on 2026-12-03T12:54:10Z. --- **RUN (RTX 3090 24 GB) — both instrumented 300 s gates PASS, including the sender and per-command batch telemetry.** - Head `0c836e32e290062f5fdf7adb9b1c9d63a456ecd5` merged locally onto main `b053a1813c8980c4357d51bbe6e69a35dc8c476c`, merge `4c271d26872546ee9b6176f0b5cae900d96e7bdf`. Exe SHA-256 `e950ca622d9029835fcf204e02281ea5ca3ba8007eb928470d36cc990b4f51d8`; diagnostics,dlss,mimalloc. - Windows 11 Home 26200, RTX 3090 driver 610.88, Ryzen 9 5900X, 32 GiB RAM, Profile L. Series S DLSS 720p→1080p, no FG/precompile, separate byte-matched warm pipeline seeds, stock gate, card buffers enabled. A: OWN_STAMPS=1 and COMPARE_ON_SENDER=1; B: GPU_TIMING=1 and D3D12_DRED=1, OWN_STAMPS unset. | MEASURED (world+60 report medians unless stated) | Sender | Synchronous timing | |---|---:|---:| | World seconds | 303.995 | 302.503 | | Actual exit / crashes / device losses | 0 / 0 / 0 | 0 / 0 / 0 | | Median/p5 FPS | 14.00 / 4.38 | 6.32 / 3.91 | | p95/p99 frame ms | 228.18 / 752.84 | 255.87 / 694.88 | | Longest world gap s | 4.210 | 1.910 | | Peak private / min commit MiB | 23251 / 6172 | 20124 / 9412 | | Peak VRAM MiB | 6614 | 5548 | | Own timing reports | 196 | 217 | | Sends ms/frame / lists/frame | 0.77 / 9.6 | 1.87 / 35.1 | | Hash ms/frame / passes/frame | 0.11 / 166.45 | 0.54 / 511.7 | | Cross ms/frame / lists/frame | 0.01 / 1.9 | 0 / 0 | | Compare ms/frame / passes/frame | 0.545 / 456.7 | 1.19 / 506.7 | | Median per-report joint own ms/frame | 1.45 | 3.58 | The sender arm had 197 sender reports, median 18.2 sends/frame, 4.96 ms working, 0.70 ms waiting. Synchronous command table recorded 44 entries per send/hash/compare phase in the measured window, all labeled **longest batch**; medians of longest batch 0.915/0.070/0.250 ms (maxima 2.15/0.73/1.81 ms). Cross and sender table entries absent in this synchronous recipe as expected. No malformed own rows. Both gates passed and saved cache; sender had a suspend-late warning. Native placement in sender held for 12 marks, 120.218 s after the first stable mark; synchronous run rendered in-world but control/placement was not established. Different instrumentation/workloads/locations, no matched performance attribution. Live ring occupancy/reuse and separate identification of each sender-recorded compare were not measured. Targeted ownstamps tests: 3/3 default, 4/4 diagnostics; switch checks 21/21, clean-room/diff/catalog passed. Capacity/reuse covered synthetically. AI-assisted: Codex GPT-6.2 Sol (tester and independent numeric check). No game content attached.
lixonik commented 2026-12-03 14:39:15 +00:00 (Migrated from github.com)

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


Merged origin/main (128579e9e) into 22517bbae to resolve the d3d12/docs/switches.md conflict (#3318 / #3293 / #3333) and regenerated d3d12/docs/switches.md.

There are zero Rust code changes vs 0c836e32e (same 4 files changed, 334 insertions(+), 102 deletions(-) diff against origin/main).

Local verification (22517bbae)

  • python -I tools/d3d12_switches.py --check d3d12/docs/switches.md -> PASS
  • python -m unittest tests/test_d3d12_switches.py -> 21/21 PASS
  • python -I scripts/check_no_game_data.py -> PASS
  • cargo test -p leonida-gpu --lib --locked ownstamps:: -> 3 passed, 0 failed
  • cargo test -p leonida-gpu --features diagnostics --lib --locked ownstamps:: -> 4 passed, 0 failed

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

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7381806632 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3323#issuecomment-7381806632). Originally posted by [lixonik](https://github.com/lixonik) on 2026-12-03T14:39:15Z. --- Merged `origin/main` (`128579e9e`) into `22517bbae` to resolve the `d3d12/docs/switches.md` conflict (`#3318` / `#3293` / `#3333`) and regenerated `d3d12/docs/switches.md`. There are zero Rust code changes vs `0c836e32e` (same `4 files changed, 334 insertions(+), 102 deletions(-)` diff against `origin/main`). ### Local verification (`22517bbae`) - `python -I tools/d3d12_switches.py --check d3d12/docs/switches.md` -> **PASS** - `python -m unittest tests/test_d3d12_switches.py` -> **21/21 PASS** - `python -I scripts/check_no_game_data.py` -> **PASS** - `cargo test -p leonida-gpu --lib --locked ownstamps::` -> **3 passed, 0 failed** - `cargo test -p leonida-gpu --features diagnostics --lib --locked ownstamps::` -> **4 passed, 0 failed** AI-assisted: yes (Antigravity -- Gemini 4 Neon).
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.

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

git switch 'main'
git merge --no-ff 'upstream-pr/3323'
git switch 'upstream-pr/3323'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3323'
git switch 'upstream-pr/3323'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3323'
git switch 'main'
git merge --squash 'upstream-pr/3323'
git switch 'main'
git merge --ff-only 'upstream-pr/3323'
git switch 'main'
git merge 'upstream-pr/3323'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!3323
No description provided.