D3D12-INPUT-PAD-TAPE: gameinput records and replays the pads (carry of #2657) #3119

Open
MoonEyes wants to merge 7 commits from upstream-pr/3119 into main
MoonEyes commented 2026-12-02 11:52:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T11:52:46Z.


Claimed in the coordination issue as: D3D12-INPUT-PAD-TAPE (the claim of the original author, https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7263544990)

Depends on: none

What and why

Carry of #2657 (Bloh09), which has no conflict with main; this branch is main (40ac04183) merged with its head (c16b0424e), so the author's three commits are kept. It adds record/replay tapes of the pads to gameinput: LEONIDA_INPUT_RECORD=<file> writes every change of the pads the title is handed, LEONIDA_INPUT_REPLAY=<file> hands the title those readings at those times, and a wait line holds the replay until <file>.go exists. The author already fixed the earlier review points (late polls keep each taped edge and its own tape time).

One small commit of mine answers the review left open on #2657 (KelboLive, and merzleckeier's reproduction through the hub): while a leading wait holds, Replay::apply replaced the live pads with its still-empty readings, so with LEONIDA_ONE_PAD=0 a pad used to load the save looked disconnected until <file>.go appeared. Now, until the first step is due, the live pads stay. a_leading_wait_leaves_the_live_pads_until_go pins it, and docs/gameinput.md says so and that each wait re-bases the spacing (the other minor point of the review). Nothing else changed.

Tested

Windows 11, native MSVC, Rust 1.98.1, no GPU, no game files:

  • cargo test -p leonida-hle --lib gameinput --release (in d3d12/): 60 passed, 0 failed (the 57 of #2657 plus the new test and the two main has gained).
  • Red: with the old *pads = self.now; in Replay::apply and the rest unchanged, 59 passed and a_leading_wait_leaves_the_live_pads_until_go fails (all slots None instead of the live pad); restored, 60 pass.
  • python -I -m unittest discover -s tests -p "test_docs_*.py": 57 tests OK.
  • python -I scripts/check_no_game_data.py on the two changed files: clean.
  • rustfmt --edition 2024 --check on tape.rs: clean.
  • CI on #2657's head: the only failures are semantic-tests (ubuntu-latest) (test_interp_computed_ij_fallback) and macos-python (an f16 rounding case); neither touches these files.
  • Not run: the full suite, a run in the game.

In-game run still needed: this touches the input path of the render runs, so a run in the game of at least 300 s on the head is still needed before merging.

GPUs tested: n/a (CPU only, no GPU code touched)

AI-assisted: yes (Claude Code)

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).
  • A new translator rule is in the contract table of docs/design.md. (n/a: input tapes, no translator rule)

Supersedes #2657 once merged; the original stays open until a maintainer decides.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5605830296 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3119). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-02T11:52:46Z. --- Claimed in the coordination issue as: D3D12-INPUT-PAD-TAPE (the claim of the original author, https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7263544990) Depends on: none ### What and why Carry of #2657 (Bloh09), which has no conflict with `main`; this branch is `main` (`40ac04183`) merged with its head (`c16b0424e`), so the author's three commits are kept. It adds record/replay tapes of the pads to `gameinput`: `LEONIDA_INPUT_RECORD=<file>` writes every change of the pads the title is handed, `LEONIDA_INPUT_REPLAY=<file>` hands the title those readings at those times, and a `wait` line holds the replay until `<file>.go` exists. The author already fixed the earlier review points (late polls keep each taped edge and its own tape time). One small commit of mine answers the review left open on #2657 (KelboLive, and merzleckeier's reproduction through the hub): while a leading `wait` holds, `Replay::apply` replaced the live pads with its still-empty readings, so with `LEONIDA_ONE_PAD=0` a pad used to load the save looked disconnected until `<file>.go` appeared. Now, until the first step is due, the live pads stay. `a_leading_wait_leaves_the_live_pads_until_go` pins it, and `docs/gameinput.md` says so and that each `wait` re-bases the spacing (the other minor point of the review). Nothing else changed. ### Tested Windows 11, native MSVC, Rust 1.98.1, no GPU, no game files: - `cargo test -p leonida-hle --lib gameinput --release` (in `d3d12/`): 60 passed, 0 failed (the 57 of #2657 plus the new test and the two `main` has gained). - Red: with the old `*pads = self.now;` in `Replay::apply` and the rest unchanged, 59 passed and `a_leading_wait_leaves_the_live_pads_until_go` fails (all slots `None` instead of the live pad); restored, 60 pass. - `python -I -m unittest discover -s tests -p "test_docs_*.py"`: 57 tests OK. - `python -I scripts/check_no_game_data.py` on the two changed files: clean. - `rustfmt --edition 2024 --check` on `tape.rs`: clean. - CI on #2657's head: the only failures are `semantic-tests (ubuntu-latest)` (`test_interp_computed_ij_fallback`) and `macos-python` (an f16 rounding case); neither touches these files. - Not run: the full suite, a run in the game. In-game run still needed: this touches the input path of the render runs, so a run in the game of at least 300 s on the head is still needed before merging. GPUs tested: n/a (CPU only, no GPU code touched) AI-assisted: yes (Claude Code) ### 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). - [ ] A new translator rule is in the contract table of `docs/design.md`. (n/a: input tapes, no translator rule) Supersedes #2657 once merged; the original stays open until a maintainer decides. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Kal0s-design commented 2026-12-02 12:33:40 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-02T12:33:40Z.


Ran natively on Windows 11 (MSVC, Rust 1.98.1), head c6c4b2ebe merged into current main, no conflicts.

The red CI is this PR's: both check and linux-python-and-viewer stop at tests/test_d3d12_switches.py. Locally:

FAIL: test_the_tracked_switches_page_matches_the_sources
d3d12/docs/switches.md is out of date (regenerate with `python -I tools/d3d12_switches.py --out d3d12/docs/switches.md`):
missing from the page: LEONIDA_INPUT_RECORD
missing from the page: LEONIDA_INPUT_REPLAY

The same file passes on main alone, so regenerating switches.md with the two new switches should turn CI green.

Rust:

  • cargo test -p leonida-hle --lib --locked in a debug build, the whole crate rather than the gameinput filter in release, ran 258 passed and 2 ignored.
  • cargo clippy -p leonida-hle --lib has no warning in gameinput.rs or gameinput/tape.rs.

Replay with odd tapes, using a throwaway test (not pushed): written to a temp folder, with the .go file present, then apply at a few clocks.

Tape Result
CRLF line endings and a comment (Notepad-saved) plays, 1 step
ffffffffffffffff 0 - plays
a NaN trigger (7fc00000) plays
wait, then 8000000000000000 0 - debug panic: attempt to subtract with overflow

The panic comes from self.shift = ms as i64 - next.unwrap_or(0) as i64: a step time of 2^63 or more turns negative as i64. In release it wraps instead. Only a hand-written tape gets there, so it is a nit. ms as i64 with checked_sub or saturating_sub, or refusing step times above i64::MAX in step(), would close it. at as i64 + self.shift in the Set arm has the same shape.

Not run: a recording or a replay in the game.

GPUs tested: n/a (CPU-only tests).

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7345523581 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3119#issuecomment-7345523581). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-12-02T12:33:40Z. --- Ran natively on Windows 11 (MSVC, Rust 1.98.1), head `c6c4b2ebe` merged into current `main`, no conflicts. **The red CI is this PR's:** both `check` and `linux-python-and-viewer` stop at `tests/test_d3d12_switches.py`. Locally: ``` FAIL: test_the_tracked_switches_page_matches_the_sources d3d12/docs/switches.md is out of date (regenerate with `python -I tools/d3d12_switches.py --out d3d12/docs/switches.md`): missing from the page: LEONIDA_INPUT_RECORD missing from the page: LEONIDA_INPUT_REPLAY ``` The same file passes on `main` alone, so regenerating `switches.md` with the two new switches should turn CI green. **Rust:** - `cargo test -p leonida-hle --lib --locked` in a **debug** build, the whole crate rather than the `gameinput` filter in release, ran 258 passed and 2 ignored. - `cargo clippy -p leonida-hle --lib` has no warning in `gameinput.rs` or `gameinput/tape.rs`. **Replay with odd tapes**, using a throwaway test (not pushed): written to a temp folder, with the `.go` file present, then `apply` at a few clocks. | Tape | Result | |---|---| | CRLF line endings and a comment (Notepad-saved) | plays, 1 step | | `ffffffffffffffff 0 -` | plays | | a NaN trigger (`7fc00000`) | plays | | `wait`, then `8000000000000000 0 -` | **debug panic**: attempt to subtract with overflow | The panic comes from `self.shift = ms as i64 - next.unwrap_or(0) as i64`: a step time of 2^63 or more turns negative as `i64`. In release it wraps instead. Only a hand-written tape gets there, so it is a nit. `ms as i64` with `checked_sub` or `saturating_sub`, or refusing step times above `i64::MAX` in `step()`, would close it. `at as i64 + self.shift` in the `Set` arm has the same shape. Not run: a recording or a replay in the game. GPUs tested: n/a (CPU-only tests). AI-assisted: yes (Claude Code).
Kal0s-design commented 2026-12-02 13:19:57 +00:00 (Migrated from github.com)

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


A second pass on the tape file itself (parsing, encodings, paths and size), following my earlier comment here. Ran natively on Windows 11, #2657's head c16b0424e merged into current main (d0bf821fa, clean merge). This PR carries that head and does not change the parser, so all of this applies here. The leading-wait timing fix, CRLF, ffffffffffffffff times, NaN triggers and the i64 overflow are already covered in this thread and are left out. I used throwaway tests calling steps/step/text/Replay/Tape directly.

Tests on the merge:

Run Result
cargo test -p leonida-hle --locked --lib gameinput 59 passed, 0 failed
cargo test -p leonida-hle --locked --lib 257 passed, 0 failed, 2 ignored
cargo clippy -p leonida-hle --all-targets --locked nothing in gameinput
tests/test_docs_links.py, test_docs_env_vars.py, test_docs_table_rows.py OK

Round trip. 200,000 random lines through text -> step, all slots and ms up to 2^63, including NaN with payloads, -0.0, ±inf and subnormals: 0 mismatches, bit for bit.

What a hand-edited or damaged tape does:

Input Parsed as Effect
UTF-8 BOM before wait wait dropped, 1 bad line replay starts at once without <file>.go (probe: the taped A is handed out at a 5 ms poll with no go file; plain wait holds)
UTF-8 BOM before a step that step dropped, 1 bad line first reading lost
UTF-8 BOM before the header 1 bad line only a spurious "lines that are not a step" warning
UTF-16 file not read (stream did not contain valid UTF-8) warns, live pads
wait # after the load dropped, 1 bad line replay starts at once
WAIT dropped, 1 bad line replay starts at once
lines out of time order (two tapes spliced) kept in file order a later line waits behind an earlier, later-timed one, then both play at that poll. Poll at 100 ms on 100 A / 50 B / 200 C: Replay::apply returns (100, A), (50, B), so times go backwards in passed (the stamping in State::poll read in code, not run through the hub)
last line cut mid-word (... 0 3f8) a valid step with the wrong last float silently wrong value (only if the cut leaves all 9 words)
10 words, slot 5, slot ffff, 0x10, ms > u64 rejected, counted fine
inf / 2.0 / -2.0 in triggers and sticks accepted handed to the title unchecked

The BOM case is the one most likely to happen. That is how Windows PowerShell 5.1 writes text: checked here, Set-Content -Encoding UTF8 gives ef bb bf, and Out-File and > give UTF-16 (ff fe). A cut tape made by prepending wait in a 5.1 script then plays from the start of the run, and the only sign is the bad-line count. Skipping a leading \u{feff} in steps would fix the first three rows. A warning when a non-comment line is neither a step nor wait, and names wait, would catch the comment and case cases. Rejecting or warning on a time that goes backwards would make splicing safe.

Paths (Windows): a non-ASCII name with spaces records and replays, and .go becomes <name>.go. A name without an extension gives no_ext.go. Recording to a folder or a missing folder fails with a warn (os error 5 / os error 3) and the run goes on live. Replaying a tape still open for recording in another handle works (shared read). A trailing dot (x.tape.) is stripped by Windows on create, so the tape is x.tape but the go file it waits for is x.tape..go. That is an edge case.

Size and cost (debug build):

Case Measured
record, all 5 slots change every poll 25.9 µs per poll, 65 bytes per line
record, nothing changes 0.17 µs per poll
record, a NaN trigger held rewritten every poll (NaN != NaN in the change check): 2,800 bytes per 100 polls
1 h worst case (60 polls/s x 5 slots, 1.08 M lines, 74 MB) replay open + parse 4.1 s, Vec<Step> about 100 MB, all read up front
one poll 10 s late in that tape 626 readings returned, 144 µs

There is no version field, so a later format change can't be told apart from a damaged file.

Not checked: any run with the game or a real controller; a release build's parse time; how the title reacts to NaN or out-of-range stick values.

GPUs tested: n/a (CPU-only tests).

AI-assisted: yes (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7346707700 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3119#issuecomment-7346707700). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-12-02T13:19:57Z. --- A second pass on the tape file itself (parsing, encodings, paths and size), following my earlier comment here. Ran natively on Windows 11, #2657's head `c16b0424e` merged into current `main` (`d0bf821fa`, clean merge). This PR carries that head and does not change the parser, so all of this applies here. The leading-`wait` timing fix, CRLF, `ffffffffffffffff` times, NaN triggers and the `i64` overflow are already covered in this thread and are left out. I used throwaway tests calling `steps`/`step`/`text`/`Replay`/`Tape` directly. **Tests on the merge:** | Run | Result | | --- | --- | | `cargo test -p leonida-hle --locked --lib gameinput` | 59 passed, 0 failed | | `cargo test -p leonida-hle --locked --lib` | 257 passed, 0 failed, 2 ignored | | `cargo clippy -p leonida-hle --all-targets --locked` | nothing in `gameinput` | | `tests/test_docs_links.py`, `test_docs_env_vars.py`, `test_docs_table_rows.py` | OK | **Round trip.** 200,000 random lines through `text` -> `step`, all slots and `ms` up to 2^63, including NaN with payloads, -0.0, ±inf and subnormals: 0 mismatches, bit for bit. **What a hand-edited or damaged tape does:** | Input | Parsed as | Effect | | --- | --- | --- | | UTF-8 BOM before `wait` | `wait` dropped, 1 bad line | **replay starts at once without `<file>.go`** (probe: the taped A is handed out at a 5 ms poll with no go file; plain `wait` holds) | | UTF-8 BOM before a step | that step dropped, 1 bad line | first reading lost | | UTF-8 BOM before the header | 1 bad line | only a spurious "lines that are not a step" warning | | UTF-16 file | not read (`stream did not contain valid UTF-8`) | warns, live pads | | `wait # after the load` | dropped, 1 bad line | replay starts at once | | `WAIT` | dropped, 1 bad line | replay starts at once | | lines out of time order (two tapes spliced) | kept in file order | a later line waits behind an earlier, later-timed one, then both play at that poll. Poll at 100 ms on `100 A / 50 B / 200 C`: `Replay::apply` returns `(100, A), (50, B)`, so times go backwards in `passed` (the stamping in `State::poll` read in code, not run through the hub) | | last line cut mid-word (`... 0 3f8`) | a valid step with the wrong last float | silently wrong value (only if the cut leaves all 9 words) | | 10 words, slot 5, slot `ffff`, `0x10`, `ms` > u64 | rejected, counted | fine | | inf / 2.0 / -2.0 in triggers and sticks | accepted | handed to the title unchecked | The BOM case is the one most likely to happen. That is how Windows PowerShell 5.1 writes text: checked here, `Set-Content -Encoding UTF8` gives `ef bb bf`, and `Out-File` and `>` give UTF-16 (`ff fe`). A cut tape made by prepending `wait` in a 5.1 script then plays from the start of the run, and the only sign is the bad-line count. Skipping a leading `\u{feff}` in `steps` would fix the first three rows. A warning when a non-comment line is neither a step nor `wait`, and names `wait`, would catch the comment and case cases. Rejecting or warning on a time that goes backwards would make splicing safe. **Paths (Windows):** a non-ASCII name with spaces records and replays, and `.go` becomes `<name>.go`. A name without an extension gives `no_ext.go`. Recording to a folder or a missing folder fails with a `warn` (`os error 5` / `os error 3`) and the run goes on live. Replaying a tape still open for recording in another handle works (shared read). A trailing dot (`x.tape.`) is stripped by Windows on create, so the tape is `x.tape` but the go file it waits for is `x.tape..go`. That is an edge case. **Size and cost** (debug build): | Case | Measured | | --- | --- | | record, all 5 slots change every poll | 25.9 µs per poll, 65 bytes per line | | record, nothing changes | 0.17 µs per poll | | record, a NaN trigger held | rewritten every poll (`NaN != NaN` in the change check): 2,800 bytes per 100 polls | | 1 h worst case (60 polls/s x 5 slots, 1.08 M lines, 74 MB) | replay open + parse 4.1 s, `Vec<Step>` about 100 MB, all read up front | | one poll 10 s late in that tape | 626 readings returned, 144 µs | There is no version field, so a later format change can't be told apart from a damaged file. Not checked: any run with the game or a real controller; a release build's parse time; how the title reacts to NaN or out-of-range stick values. GPUs tested: n/a (CPU-only tests). AI-assisted: yes (Claude Code).
fiestorra commented 2026-12-02 23:20:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T23:20:59Z.


VERIFY-3119 — Windows nativo: las catorce pruebas del tape pasan y el control muerde el BOM

Own commit 6097c033c — leonida-hle/src/modules/gameinput/tape.rs (+142), docs/switches.md, docs/gameinput.md
Merge base recent

Ran at the head

cargo test -p leonida-hle tape     14 passed; 0 failed
  modules::gameinput::tape::tests::a_byte_order_mark_does_not_hide_the_first_line ... ok
  modules::gameinput::tape::tests::a_step_taped_before_the_one_ahead_of_it_plays_with_that_one ... ok
  modules::gameinput::tape::tests::a_held_nan_reading_is_written_once ... ok
  modules::gameinput::tape::tests::lines_that_are_not_steps_are_skipped_and_counted ... ok

Negative control (synthetic): I removed the one line that strips the byte-order mark (text.strip_prefix('\u{feff}')), rebuilt and ran:

FAILED. 13 passed; 1 failed

The test bites.

What the change is: a tape with a byte-order mark — which Windows editors add and which would otherwise turn wait into an unreadable first token — no longer hides its first line; lines that are not steps are skipped and counted instead of failing the tape; a step taped out of order plays with the step ahead of it; and a held NaN reading is written once, not every poll. docs/switches.md and docs/gameinput.md list the switches.

Why this matters for this repository's own method: the tape is how an input sequence is replayed without the title and without a person at the keyboard — which is the same thing I have been unable to do all night for the runs several pull requests are waiting on. A tape that silently drops its first line or its malformed steps is a replay that measures something other than what it claims, so making it refuse-and-count instead of fail is the right direction.

What I could not test

  • A real replay inside the title: the tests drive the tape parser and the timing queue; playing it into the game needs the game.

Written with an AI assistant.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7361881402 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3119#issuecomment-7361881402). Originally posted by [fiestorra](https://github.com/fiestorra) on 2026-12-02T23:20:59Z. --- ## VERIFY-3119 — Windows nativo: las catorce pruebas del *tape* pasan y el control muerde el BOM | | | |---|---| | Own commit | `6097c033c` — `leonida-hle/src/modules/gameinput/tape.rs` (+142), `docs/switches.md`, `docs/gameinput.md` | | Merge base | recent | **Ran at the head** ``` cargo test -p leonida-hle tape 14 passed; 0 failed modules::gameinput::tape::tests::a_byte_order_mark_does_not_hide_the_first_line ... ok modules::gameinput::tape::tests::a_step_taped_before_the_one_ahead_of_it_plays_with_that_one ... ok modules::gameinput::tape::tests::a_held_nan_reading_is_written_once ... ok modules::gameinput::tape::tests::lines_that_are_not_steps_are_skipped_and_counted ... ok ``` **Negative control (synthetic)**: I removed the one line that strips the byte-order mark (`text.strip_prefix('\u{feff}')`), rebuilt and ran: ``` FAILED. 13 passed; 1 failed ``` **The test bites.** **What the change is**: a tape with a **byte-order mark** — which Windows editors add and which would otherwise turn `wait` into an unreadable first token — **no longer hides its first line**; lines that are not steps are **skipped and counted** instead of failing the tape; a step **taped out of order plays with the step ahead of it**; and **a held `NaN` reading is written once**, not every poll. `docs/switches.md` and `docs/gameinput.md` list the switches. **Why this matters for this repository's own method**: the *tape* is how an input sequence is replayed **without the title and without a person at the keyboard** — which is the same thing I have been unable to do all night for the runs several pull requests are waiting on. **A tape that silently drops its first line or its malformed steps is a replay that measures something other than what it claims**, so making it refuse-and-count instead of fail is the right direction. ## What I could not test - **A real replay inside the title**: the tests drive the tape parser and the timing queue; playing it into the game needs the game. Written with an AI assistant.
enlight3d commented 2026-12-03 00:54:36 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-12-03T00:54:36Z.


RUN (in game, gate-style): head 6097c033c tested in a batch of nine pull requests: #2609 (3fbcacc4e), #2654 (f4ae7b922), #2686 (4ce795127), #2823 (854796496), #2841 (24ff8f24c), #2890 (262439781), #3154 (854fc3441), #2588 (598930e5b) and #3119 (6097c033c), merged in that order with git merge --no-ff onto main f3865cae8. One conflict, in the credit table of d3d12/README.md when #2588 went in (both rows kept); no code conflict. Files touched by more than one of the nine: d3d12/docs/switches.md (#2686, #3119, #3154) and d3d12/README.md (#2588, #3119). Built with diagnostics,mimalloc, target x86_64-pc-windows-msvc. RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro (build 26300).

Launcher defaults except -PrecompileUsed, Series S settings, -NoDlss -NoFrameGen, standing at the save. On this main the launcher precompiles every recorded pipeline by default (88,671 here: a first warm-up with the plain defaults had made 9,000 of them after 660 s when it was stopped), so the runs use -PrecompileUsed (the 2,455 pipelines earlier runs drew with). A warm-up run first (#2686 changes the translator, so everything was translated again), then one run with the memory safety stop, ended 330 s after reaching the world:

Reached the world 75 s
Time in the world 331 s
Device losses 0
Crashes 0
Frame median 35.0 ms (28.2 fps rendered)
Card busy 85 %
Private memory, max 28.1 GB

Warnings: only kinds that a run on the same main with another pull request (#3128) printed too, in about the same numbers; no new kind. No pipeline refused other than the 29 "creation method that is not implemented" lines that run has as well. The last frame saved (8192) shows the world drawn normally.

This pull request's own lines: the tapes are off by default (LEONIDA_INPUT_RECORD and LEONIDA_INPUT_REPLAY unset), as in this run, and input went through as usual (the run's Enter presses reached the title: the world after 9). Recording and replaying a tape were not tried.

Verdict: PASS for the batch (a pass covers each of the nine; a failure would not have said which). Not covered here: -RayTracing, DLSS and frame generation, other GPUs, Wine/Proton.

AI-assisted: Claude Code (Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7363732830 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/3119#issuecomment-7363732830). Originally posted by [enlight3d](https://github.com/enlight3d) on 2026-12-03T00:54:36Z. --- RUN (in game, gate-style): head 6097c033c tested **in a batch** of nine pull requests: #2609 (3fbcacc4e), #2654 (f4ae7b922), #2686 (4ce795127), #2823 (854796496), #2841 (24ff8f24c), #2890 (262439781), #3154 (854fc3441), #2588 (598930e5b) and #3119 (6097c033c), merged in that order with `git merge --no-ff` onto `main` f3865cae8. One conflict, in the credit table of `d3d12/README.md` when #2588 went in (both rows kept); no code conflict. Files touched by more than one of the nine: `d3d12/docs/switches.md` (#2686, #3119, #3154) and `d3d12/README.md` (#2588, #3119). Built with `diagnostics,mimalloc`, target `x86_64-pc-windows-msvc`. RTX 3090 24 GB, NVIDIA 621.40, Windows 11 Pro (build 26300). Launcher defaults except `-PrecompileUsed`, Series S settings, `-NoDlss -NoFrameGen`, standing at the save. On this `main` the launcher precompiles every recorded pipeline by default (88,671 here: a first warm-up with the plain defaults had made 9,000 of them after 660 s when it was stopped), so the runs use `-PrecompileUsed` (the 2,455 pipelines earlier runs drew with). A warm-up run first (#2686 changes the translator, so everything was translated again), then one run with the memory safety stop, ended 330 s after reaching the world: | | | |---|---| | Reached the world | 75 s | | Time in the world | 331 s | | Device losses | 0 | | Crashes | 0 | | Frame median | 35.0 ms (28.2 fps rendered) | | Card busy | 85 % | | Private memory, max | 28.1 GB | Warnings: only kinds that a run on the same `main` with another pull request (#3128) printed too, in about the same numbers; no new kind. No pipeline refused other than the 29 "creation method that is not implemented" lines that run has as well. The last frame saved (8192) shows the world drawn normally. This pull request's own lines: the tapes are off by default (`LEONIDA_INPUT_RECORD` and `LEONIDA_INPUT_REPLAY` unset), as in this run, and input went through as usual (the run's Enter presses reached the title: the world after 9). Recording and replaying a tape were not tried. Verdict: **PASS** for the batch (a pass covers each of the nine; a failure would not have said which). Not covered here: `-RayTracing`, DLSS and frame generation, other GPUs, Wine/Proton. AI-assisted: Claude Code (Claude Opus 5.5)
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/3119:upstream-pr/3119'
git switch 'upstream-pr/3119'

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