D3D12-INPUT-PAD-TAPE: gameinput tapes the pads the title sees and replays them #2657
Closed
Bloh09 wants to merge 3 commits from
upstream-pr/2657 into main
pull from: upstream-pr/2657
merge into: ProjectLeonida:main
ProjectLeonida:main
ProjectLeonida:claude/loop-total
ProjectLeonida:claude/pops-collision-seed
ProjectLeonida:claude/dstorage-hold-page-reads
ProjectLeonida:claude/host-image-copy-switch
ProjectLeonida:feat/gdk-lifecycle-window-hook
ProjectLeonida:claude/d16s8-uav-nvidia-fallback
ProjectLeonida:feat/mfplat-offline-shim
ProjectLeonida:claude/gameinput-slow-reader
ProjectLeonida:fix/rt-null-barrier-clear
ProjectLeonida:claude/depth-resolve-sample-positions
ProjectLeonida:integration/palmetto-parity
ProjectLeonida:claude/valu-literal-sext
ProjectLeonida:claude/slot74-pool-handle
ProjectLeonida:claude/rgb9e5-uint-alias-view
ProjectLeonida:claude/fssm-root-layout-tables
ProjectLeonida:feat/gdk-speech-display-lifecycle
ProjectLeonida:asset-audio-skip-current
ProjectLeonida:qemmhd/old-9940-rectangle-quad-lists
ProjectLeonida:feat/ws2-offline-shim
ProjectLeonida:qemmhd/rt-d16-unorm-uav
ProjectLeonida:feat/xs-device-stops-7-9
ProjectLeonida:qemmhd/rt-depth-same-base-shapes
ProjectLeonida:qemmhd/rt-lazy-attachment-variant
ProjectLeonida:feat/acphal-xma2-decoder
ProjectLeonida:asset-audio-skip
ProjectLeonida:codex/coord-claim-check-20261124-7e48
ProjectLeonida:feat/xs-frame-pacing-presentx
ProjectLeonida:feat/xs-device-vm-options
ProjectLeonida:old-pr/9844
ProjectLeonida:old-pr/9978
ProjectLeonida:old-pr/9815
ProjectLeonida:old-pr/10057
ProjectLeonida:old-pr/9874
ProjectLeonida:old-pr/9965
ProjectLeonida:old-pr/9863
ProjectLeonida:old-pr/10068
ProjectLeonida:old-pr/10066
ProjectLeonida:old-pr/10067
ProjectLeonida:old-pr/10007
ProjectLeonida:old-pr/10061
ProjectLeonida:old-pr/10065
ProjectLeonida:old-pr/10059
ProjectLeonida:old-pr/10063
ProjectLeonida:old-pr/10055
ProjectLeonida:old-pr/10062
ProjectLeonida:old-pr/10042
ProjectLeonida:old-pr/10041
ProjectLeonida:old-pr/10049
ProjectLeonida:old-pr/10047
ProjectLeonida:old-pr/10046
ProjectLeonida:old-pr/10045
ProjectLeonida:old-pr/10056
ProjectLeonida:old-pr/10043
ProjectLeonida:old-pr/10036
ProjectLeonida:old-pr/10034
ProjectLeonida:old-pr/9984
ProjectLeonida:old-pr/10052
ProjectLeonida:old-pr/10038
ProjectLeonida:old-pr/10033
ProjectLeonida:old-pr/10028
ProjectLeonida:old-pr/10050
ProjectLeonida:old-pr/9891
ProjectLeonida:old-pr/9889
ProjectLeonida:old-pr/10051
ProjectLeonida:old-pr/10019
ProjectLeonida:old-pr/10027
ProjectLeonida:old-pr/10029
ProjectLeonida:old-pr/10031
ProjectLeonida:old-pr/10026
ProjectLeonida:old-pr/9941
ProjectLeonida:old-pr/10030
ProjectLeonida:old-pr/10040
ProjectLeonida:old-pr/9990
ProjectLeonida:old-pr/10021
ProjectLeonida:old-pr/9962
ProjectLeonida:old-pr/10022
ProjectLeonida:old-pr/10020
ProjectLeonida:old-pr/10015
ProjectLeonida:old-pr/10025
ProjectLeonida:old-pr/9886
ProjectLeonida:old-pr/10048
ProjectLeonida:old-pr/10014
ProjectLeonida:old-pr/10011
ProjectLeonida:old-pr/9861
ProjectLeonida:old-pr/10010
ProjectLeonida:old-pr/10008
ProjectLeonida:old-pr/9860
ProjectLeonida:old-pr/10006
ProjectLeonida:old-pr/9920
ProjectLeonida:old-pr/9995
ProjectLeonida:old-pr/10000
ProjectLeonida:old-pr/10016
ProjectLeonida:old-pr/10004
ProjectLeonida:old-pr/10023
ProjectLeonida:old-pr/9982
ProjectLeonida:old-pr/9981
ProjectLeonida:old-pr/9983
ProjectLeonida:old-pr/9970
ProjectLeonida:old-pr/9969
ProjectLeonida:old-pr/9968
ProjectLeonida:old-pr/9971
ProjectLeonida:old-pr/9972
ProjectLeonida:old-pr/9942
ProjectLeonida:old-pr/9963
ProjectLeonida:old-pr/9960
ProjectLeonida:old-pr/9964
ProjectLeonida:old-pr/9985
ProjectLeonida:old-pr/9973
ProjectLeonida:old-pr/9862
ProjectLeonida:old-pr/9953
ProjectLeonida:old-pr/10017
ProjectLeonida:old-pr/9952
ProjectLeonida:old-pr/9955
ProjectLeonida:old-pr/9946
ProjectLeonida:old-pr/9954
ProjectLeonida:old-pr/9938
ProjectLeonida:old-pr/9956
ProjectLeonida:old-pr/9856
ProjectLeonida:old-pr/9947
ProjectLeonida:old-pr/9924
ProjectLeonida:old-pr/9961
ProjectLeonida:old-pr/9927
ProjectLeonida:old-pr/9979
ProjectLeonida:old-pr/10032
ProjectLeonida:old-pr/9926
ProjectLeonida:old-pr/5237
ProjectLeonida:old-pr/9951
ProjectLeonida:old-pr/9931
ProjectLeonida:old-pr/9902
ProjectLeonida:old-pr/9921
ProjectLeonida:old-pr/9994
ProjectLeonida:old-pr/9775
ProjectLeonida:old-pr/9768
ProjectLeonida:old-pr/9905
ProjectLeonida:old-pr/9936
ProjectLeonida:old-pr/9901
ProjectLeonida:old-pr/9904
ProjectLeonida:old-pr/9906
ProjectLeonida:old-pr/9988
ProjectLeonida:old-pr/9908
ProjectLeonida:old-pr/9909
ProjectLeonida:old-pr/9911
ProjectLeonida:old-pr/9912
ProjectLeonida:old-pr/9913
ProjectLeonida:old-pr/9887
ProjectLeonida:old-pr/9916
ProjectLeonida:old-pr/9919
ProjectLeonida:old-pr/9925
ProjectLeonida:old-pr/9933
ProjectLeonida:old-pr/9935
ProjectLeonida:old-pr/9918
ProjectLeonida:old-pr/9879
ProjectLeonida:old-pr/9880
ProjectLeonida:old-pr/9881
ProjectLeonida:old-pr/9996
ProjectLeonida:old-pr/9876
ProjectLeonida:old-pr/9892
ProjectLeonida:old-pr/9899
ProjectLeonida:old-pr/9915
ProjectLeonida:old-pr/9914
ProjectLeonida:old-pr/9872
ProjectLeonida:old-pr/9869
ProjectLeonida:old-pr/9866
ProjectLeonida:old-pr/9819
ProjectLeonida:old-pr/10012
ProjectLeonida:old-pr/9857
ProjectLeonida:old-pr/9893
ProjectLeonida:old-pr/9897
ProjectLeonida:old-pr/9928
ProjectLeonida:old-pr/9868
ProjectLeonida:old-pr/9917
ProjectLeonida:old-pr/9940
ProjectLeonida:old-pr/9873
ProjectLeonida:old-pr/9816
ProjectLeonida:old-pr/10009
ProjectLeonida:old-pr/9900
ProjectLeonida:old-pr/9966
ProjectLeonida:old-pr/9859
ProjectLeonida:old-pr/9843
ProjectLeonida:old-pr/9991
ProjectLeonida:old-pr/10058
ProjectLeonida:old-pr/9883
ProjectLeonida:old-pr/9838
ProjectLeonida:old-pr/9835
ProjectLeonida:old-pr/9959
ProjectLeonida:old-pr/9895
ProjectLeonida:old-pr/9837
ProjectLeonida:old-pr/9858
ProjectLeonida:old-pr/9865
ProjectLeonida:old-pr/9864
ProjectLeonida:old-pr/9840
ProjectLeonida:old-pr/9820
ProjectLeonida:old-pr/4669
ProjectLeonida:old-pr/9848
ProjectLeonida:old-pr/9850
ProjectLeonida:old-pr/9810
ProjectLeonida:old-pr/9799
ProjectLeonida:old-pr/9853
ProjectLeonida:old-pr/9875
ProjectLeonida:old-pr/9831
ProjectLeonida:old-pr/9796
ProjectLeonida:old-pr/9801
ProjectLeonida:old-pr/9813
ProjectLeonida:old-pr/9794
ProjectLeonida:old-pr/7417
ProjectLeonida:old-pr/9781
ProjectLeonida:old-pr/9806
ProjectLeonida:old-pr/9958
ProjectLeonida:old-pr/9809
ProjectLeonida:old-pr/9791
ProjectLeonida:old-pr/9792
ProjectLeonida:old-pr/10053
ProjectLeonida:old-pr/9784
ProjectLeonida:old-pr/9789
ProjectLeonida:old-pr/9849
ProjectLeonida:old-pr/9846
ProjectLeonida:old-pr/9773
ProjectLeonida:old-pr/9785
ProjectLeonida:old-pr/9803
ProjectLeonida:old-pr/9826
ProjectLeonida:old-pr/9839
ProjectLeonida:old-pr/9922
ProjectLeonida:old-pr/9948
ProjectLeonida:old-pr/7189
ProjectLeonida:old-pr/9957
ProjectLeonida:old-pr/9823
ProjectLeonida:old-pr/9807
ProjectLeonida:old-pr/9851
ProjectLeonida:old-pr/9774
ProjectLeonida:old-pr/9830
ProjectLeonida:old-pr/9836
ProjectLeonida:old-pr/9822
ProjectLeonida:old-pr/9783
ProjectLeonida:old-pr/9833
ProjectLeonida:old-pr/9890
ProjectLeonida:old-pr/9770
ProjectLeonida:old-pr/9769
ProjectLeonida:old-pr/9772
ProjectLeonida:old-pr/9787
ProjectLeonida:old-pr/9852
ProjectLeonida:old-pr/9834
ProjectLeonida:old-pr/9845
ProjectLeonida:old-pr/9871
ProjectLeonida:old-pr/9771
ProjectLeonida:old-pr/9776
ProjectLeonida:old-pr/10005
ProjectLeonida:old-pr/9949
ProjectLeonida:old-pr/9923
ProjectLeonida:old-pr/9805
ProjectLeonida:old-pr/9829
ProjectLeonida:old-pr/9790
ProjectLeonida:old-pr/9827
ProjectLeonida:old-pr/9929
ProjectLeonida:old-pr/9855
ProjectLeonida:old-pr/9934
ProjectLeonida:old-pr/9907
ProjectLeonida:old-pr/9910
ProjectLeonida:old-pr/9779
ProjectLeonida:old-pr/9780
ProjectLeonida:old-pr/9885
ProjectLeonida:old-pr/9882
ProjectLeonida:old-pr/9877
ProjectLeonida:old-pr/9998
ProjectLeonida:old-pr/4251
ProjectLeonida:old-pr/9987
ProjectLeonida:old-pr/9989
ProjectLeonida:old-pr/9950
ProjectLeonida:old-pr/9777
ProjectLeonida:old-pr/10044
ProjectLeonida:old-pr/9884
ProjectLeonida:old-pr/2906
ProjectLeonida:old-pr/5076
ProjectLeonida:old-pr/9937
ProjectLeonida:old-pr/9986
ProjectLeonida:old-pr/3014
ProjectLeonida:old-pr/9943
ProjectLeonida:old-pr/9939
ProjectLeonida:old-pr/4682
ProjectLeonida:old-pr/4765
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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!2657
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2657"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by Bloh09 on 2026-11-29T23:05:14Z.
Claimed in the coordination issue as: D3D12-INPUT-PAD-TAPE (https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7263544990)
What and why
Game runs on the d3d12 path can't be repeated input for input today:
LEONIDA_KEYSandLEONIDA_KEYS_FILEpress keys, but nothing can capture real play (analog sticks, triggers, timing) and play it back. #2464's A/Bs and the 300 s runs asked of rendering PRs need the same input in both arms.LEONIDA_INPUT_RECORD=<file>writes every change of the pads the title is handed: host slots 0-3 and the keyboard/mouse stand-in (slot 4), after the merge, so keyboard play is taped too. One hex line per change, written unbuffered so a crash keeps the tape.LEONIDA_INPUT_REPLAY=<file>hands the title those readings at those times instead of the live pads, in eitherLEONIDA_ONE_PADmode.waitline holds the replay until<file>.goexists. The next line plays then, and later lines keep their spacing, so a recording can be cut to start after a save loads.Adapted from trustno1-coder/VIctory-NVIDIA 1082df39e (GPL-3.0, credited in the module, README and docs), which only taped the host pads and had no tests. New code is
gameinput/tape.rs, plus a short hook inState::pollthat keeps the update order the same. Docs:d3d12/README.mdanddocs/gameinput.md.Tested
cargo xwin test --target x86_64-pc-windows-msvc -p leonida-hle --lib gameinput(Rust 1.98.1, run under Wine 10.0 on Linux): 54 passed, 6 of them new. The new tests cover line round-trip, bad lines, replay timing, wait/go gating and spacing, record-then-replay, and a hub test in both pad modes.leonida-hle --lib: 222 passed, 2 failed (net::only_loopback_is_reachable,xgamesave::a_kept_blob_past_the_link_limit_is_copied). Both fail the same way on main under Wine.cargo xwin check -p leonida --features diagnosticsbuilds. clippy shows nothing new and rustfmt is clean on the new file.tests/test_docs_links.py,test_docs_env_vars.py,test_docs_table_rows.py,test_docs_encoding.py,test_docs_cli_flags.pypass.python -I scripts/check_no_game_data.pyis clean.GPUs tested: n/a (CPU only, no GPU code touched)
AI-assisted (Grok Bot), reviewed by me.
Skipped/risky: not run in-game; replay times count from input start, so boot drift needs a
waitline; only pads are replayed.Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-29T23:13:43Z.
I tested
8ac4255don the exact GitHub merge23e6eb66into452d1d1b6, Win64 under Wine 11.22.GetNextReadingreturned both transitions. With the first post-start poll at 16 ms,GetNextReadingreturnedREADING_NOT_FOUNDafter the initial neutral reading, and the current pad was already neutral. Both outcomes repeated on all three runs in eachLEONIDA_ONE_PADmode.Replay::applyconsumes every due step and handsState::pollone final snapshot. A scheduling delay can therefore erase a recorded tap even from the reading history. Keeping separate history entries for distinct tape times would preserve the edges forGetNextReading. Clients that only read the current state would still depend on their sampling cadence. Replay loop · History updateCPU-only fixture with a test-controlled clock. AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by Bloh09 on 2026-11-29T23:28:45Z.
Fixed in
ebe5768c9: each tape time that comes due in one poll now gets its own history entry, soGetNextReadingsees both edges of the 8/16 ms tap (new test fails on8ac4255d).Clients that only read the current state still depend on how often they sample.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-29T23:38:37Z.
Thanks, the original missing tap is fixed in my reproducer. I retested
ebe5768con GitHub merge0de96f60into452d1d1b6.GetNextReadingin 3/3 runs per pad mode.passedrestored the 16 ms release timestamp and a neutral temporal reading in all three runs per mode. The GameInput filter passed 57/57 in that build, including the probe.Replay::applyemits the preceding time groups intopassed.State::pollwrites the final snapshot withnow. Appending the last due group before returning lets it use the same timestamp clamp as the earlier ones. Replay return · History timestampsSynthetic pad and controlled poll clock. AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by ecox982745 on 2026-11-29T23:53:18Z.
Native Windows follow-up for the late poll. I tested
ebe5768c9merged onto452d1d1b6(tree3c52674e0), Windows 11 build 26300, MSVC and Rust 1.98.1. The exact GameInput filter passed 56/56.A local synthetic test submitted neutral at 0 ms, a press at 8 ms, and a release at 16 ms, then made the first poll after 24 ms. The public temporal vtable call at 16 ms still returned the held button with an 8 ms timestamp, in both pad modes. The current reading was already neutral but carried the poll timestamp. Returning the final due snapshot with its tape timestamp restored the neutral 16 ms temporal reading in both pad modes. With that local change and the updated tape assertion, the filter passed 57/57.
This is independent native coverage of the preceding Wine result. The test uses an unpolled fake input hub and synthetic tape. It does not use game files, a real controller, or GPU rendering. AI-assisted with OpenAI Codex (GPT-6.2 Sol).
Windows retest on
c16b0424(GitHub mergef7696213). The exact GameInput filter passed 57/57 on native Windows 11 build 26300 (MSVC, Rust 1.98.1), including the new late-poll timestamp regression. This was the published source with the synthetic fixtures. No GPU rendering was involved.Imported from ubiquitarianism/leonida. Originally posted by Bloh09 on 2026-11-29T23:54:18Z.
Fixed in
c16b0424e: the final due snapshot now takes the same clamped tape-time stamp as the earlier ones, so the 24 ms poll stamps the release at 16 ms.Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-30T00:04:16Z.
Confirmed the timestamp fix on
c16b0424(GitHub mergef7696213).waitbefore a timestamp that switches A to B across different slots. After creating.go, the 249 ms poll left the tape held. At 250 ms both slot updates got the same timestamp. In one-pad mode this exposed one direct A-to-B change. B went neutral at 258 ms, even though the next poll arrived at 260 ms. Both modes passed in 3/3 runs.Synthetic pad inputs, a controlled poll clock, and the real record/replay and GameInput vtable paths. AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by Bloh09 on 2026-11-30T02:25:14Z.
Retested at
c16b0424on Wine (merzleckeier) and native Win11 (ecox982745), 57/57; ready for review.Imported from ubiquitarianism/leonida. Originally posted by KelboLive on 2026-12-01T14:19:40Z.
Review: COMMENTED
Reviewed at
c16b0424e; the core claim holds.seenis built after the pad/stand-in/look merge and handed toTape::apply(gameinput.rs:670-685), recording writes only changed slots to an unbuffered file (tape.rs:98-108,text():190-204), and replay yields one reading per due tape time with per-edge late polls (tape.rs:140-186, integrated atgameinput.rs:686-700).wait/<file>.gois throttled at 250 ms (tape.rs:147-162), malformed lines are counted and skipped (:207-253), and keyboard/mouse stay live (gameinput.rs:701).leonida-hleis 227/0/2 here (57 gameinput), merge-tree clean against current main.The
slot <= PADSbound is load-bearing, not decoration: removing it lets aslot=5line through (lines_that_are_not_steps_are_skipped_and_countedfails with the extraSet{slot:5}), which would then indexself.now[5]out of range. Good that it is covered.One case to check before merge: while a
waitholds,Replay::applyunconditionally ends with*pads = self.now(tape.rs:181), andself.nowstarts allNone— so it replaces live pads withNone. In the default one-pad modeunwrap_or_default()(gameinput.rs:693) hides it, but withLEONIDA_ONE_PAD=0theupdatepath then reports real disconnects (:695-698) until<file>.goappears. If that is not intended, keep the previous pads until the first step is due. The tests driveReplay::applydirectly, so they do not see it.Minor: multiple
waitlines silently recomputeshift, which is undocumented.The two CI failures on this head are shader/Python (
test_interp_computed_ij_fallback, a macOS f16 rounding case) and touch none of these four files.Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-01T14:37:48Z.
I reproduced the leading-wait behavior from the review through the actual GameInput hub at
c16b0424+cd0c52fcf. The fake host exposes a connected pad in slot 1, multi-pad mode is on, and the tape starts withwaitfollowed by a different reading for slot 1. Before.go, the live pad does not appear connected to the client and no live reading comes through. After.go, the recorded reading arrives normally.If a leading wait is intended to let the user navigate to a save with the controller, one narrow implementation is to leave the incoming pads untouched while
self.at == 0and the first step isWait. That local change kept the live pad visible during the wait, then handed over to the taped value when.goappeared. All 58 GameInput tests passed with the added integration case, including the existing test that holds an already-taped reading through a later wait.MEASURED with a synthetic pad source, Win64 MSVC target and Wine 11.22. AI-assisted (Codex).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T11:52:59Z.
For information: this pull request is carried in #3119, which merges your head
c16b0424e(your commits are kept) into currentmainand fixes the open review point (a leading wait replaced the live pads with none), with a test and a docs note. If you rebase this one yourself, say so and #3119 can be closed.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:29:04Z.
Verification triage of #2657
Head
c16b0424e: this work is carried by MoonEyes' #3119. Verdict: superseded by #3119.AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T21:34:47Z.
RUN (independent run on Windows, head
c16b0424e33a8d66bcbf7e63525745fdd3b0f897, merged intomainb41763227aeed2d23c98af84bcbc1bddc7acdc90withgit merge --no-ff)The merge is clean, no conflict. The PR touches
leonida-hle(gameinput) and docs, notleonida-gpu, so I ran theleonida-hlelib tests instead of the GPU ones. Windows 11, native MSVC, Rust 1.98.1, no GPU, no game files.Green
cargo test -p leonida-hle --release --locked --lib(ind3d12/): 257 passed, 0 failed, 2 ignored.--lib gameinputfilter: 59 passed, 0 failed. The 9 new tests (6 intape.rs, 3 ingameinput.rs) all pass.--features diagnosticswas not run.python -I scripts/check_no_game_data.pyontape.rs,docs/gameinput.mdandd3d12/README.md: clean.python -I tests/test_d3d12_switches.py: 1 failure out of 20,test_the_tracked_switches_page_matches_the_sources:d3d12/docs/switches.mdis out of date, withLEONIDA_INPUT_RECORDandLEONIDA_INPUT_REPLAYmissing from the page. Regenerating withpython -I tools/d3d12_switches.py --out d3d12/docs/switches.mdadds exactly those two rows (684 names instead of 682) and nothing else.Red
The new tests live in a new file and in new test functions, so "main's version of the changed files" has no tests to fail. I used 6 targeted mutations of the new code instead (each applied alone, then restored with
git checkout HEAD --):Replay::applyno longer replaces the pads with the tape's.golook removeda_wait_holds_until_the_go_file_...)waitre-base (shift) set to 0a_recording_writes_only_changes_and_replays_the_same)a_later_poll_stamps_each_taped_edge_at_its_tape_time)No mutation survived. I also checked the one known gap with a throw-away test (not kept): a tape that starts with
wait, polled before.goexists, hands the title no pad at all instead of the live one. The test fails, so the open review point below is real on this head.Review
Tape::from_env, andNonemeansapplyis skipped andpassedis empty. Off is really off. If both are set, replay wins, as the docs say.Tape::apply, and the due tape readings go throughupdatein order, ending with the poll's own reading. Timestamps are clamped between the last poll and now, so they never go back. Covered by the two late-poll tests.waitholds,Replay::applystill does*pads = self.now, so withLEONIDA_ONE_PAD=0a live pad used to load the save looks disconnected until<file>.goappears (reproduced by merzleckeier through the hub and by my probe). #3119 carries this head plus that fix.d3d12/docs/switches.mdnot regenerated although two new switches were added: this failstests/test_d3d12_switches.pyon currentmain(see Green). It was not red on the PR's own base because that test came later.d3d12/README.mdanddocs/gameinput.mddescribe both switches and the file format; thewaitre-basing of the spacing is only half said there (#3119 adds a note).D3D12-INPUT-PAD-TAPE, with the link to the comment in issues/2570. NoDepends on, none needed.semantic-tests (ubuntu-latest)andmacos-python, in translator and f16 tests this PR does not touch.Not covered
LEONIDA_INPUT_REPLAYwith the real host pads (XInput, Sony) is untested here.leonida-hlewas run; the rest of the workspace and the semantic suite were not.Verdict
PARTIAL. The code and its 9 new tests are solid (all 6 mutations killed, 257 of 257 hle tests green), but on current
mainit fails the switches page test (two missing rows) and it still has the leading-waitbug that the review left open; both are fixed or fixable in the carry #3119. In-game run still required: none is posted on this head, and this touches the input path of the render runs.AI-assisted (Claude Code), models: Claude Opus 5.5 (checker), separate Claude Opus 5.5 judge.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T23:32:36Z.
RUN (in game, batch of five pull requests), each head merged with
git merge --no-ffonto mainef35d683e, in one build: #31764c31594b5, #2657c16b0424e, #2807e2572082c, #323097eefdee4, #32473e5887f65. 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.For reference, the same machine and route rendered 13.3 to 17.2 fps on other batches today. These fps are 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. #3247 has since moved to
3dc6c58b3, which only mergesmain(81efe4566) into the head above:git diff 3e5887f65 3dc6c58b3leavesd3d12/scripts/play-nvidia.ps1andtests/test_win_launchers.pyunchanged. If another 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;
-PrecompileUsedwas used becausemainnow precompiles every known pipeline by default (88,631 for a new executable, over an hour on this card). The default start was therefore not exercised, and the F1 SAVE AND RESTART path of #3247 was not exercised in game. An earlier attempt of this batch is not counted: the run script gave up waiting while that full precompile ran.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T05:49:39Z.
VERIFY-2657 — 57 tests de
gameinputen verde, y el fichero de 430 líneas sí trae tests (mi primer conteo decía 0 y estaba mal)Primero la corrección de mi propia medida, porque importa más que el resultado: conté «tests nuevos» con
^\+\s*fny dio 0 — ytape.rses un fichero nuevo con#[test]dentro. El patrón no los ve porque en un fichero nuevo las líneas no llevan+delante de la indentación de la misma forma. Lo medí otra vez sobre el contenido y hay al menos tres:a_line_reads_back_as_written,lines_that_are_not_steps_are_skipped_and_counted,a_replay_hands_out_each_reading_at_its_time.El cambio:
D3D12-INPUT-PAD-TAPE— el tape de los mandos: graba lo que el juego ve y lo reproduce. Y es hermano delLEONIDA_KBM_BINDSde#3276(que entró esta noche): el mismo módulo,gameinput, y la misma idea — que el input sea un fichero y no un periférico.Y los nombres de los tests son el contrato de una cinta: «una línea se lee como se escribió», «las líneas que no son pasos se saltan y se cuentan» (la misma regla que el
skippedde#3276), y «una repetición entrega cada lectura a su tiempo». Las tres juntas son lo que hace que un tape grabado en una máquina sirva en otra.Lo que verifiqué: 57 tests de
gameinputen verde, con los tres del tape dentro.Lo que no: la grabación y la reproducción de verdad — necesitan el título y un mando; lo que el test cubre es el formato y el reparto temporal, que es exactamente la parte que no necesita hardware.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T18:02:27Z.
Thanks for the work on this. This pull request has a merge conflict with the current
mainand 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 latestmaininto 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
Pull request closed