Repository navigation
Conversation
…SLOW-READER) A title that reads a pad with GetCurrentReading once a frame, at a few frames a second, never sees a press that came and went between two reads. A pad now keeps the newest reading that pressed a button the last read did not report; a read more than kSlowReaderUs (50 ms) after the previous one answers that press once, and the next read the pad's real state. Carried from DadaCap's boot-prototype fa497b9, split to the GameInput part (runtime/shims/gameinput.cpp and its test in runtime/test/gameinput_test.cpp); the other shims in that commit are not included. Applied unchanged. AI-assisted. Run on Windows 11, RTX 5080. No game data. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SR1Fv7eQNgZjM6miWPKjHf
|
[KEEP]
|
|
Thanks @ytsodacan, fair points:
AI-assisted (Claude Code, Claude Opus 5.5). |
… wider slow-reader margin Review follow-up for the kSlowReaderUs missed-press logic: - close_pad: a press missed by a slow reader, then an unplug/replug, must not come back on the first slow read after reconnecting. - two pads: a missed press on the Xbox pad and one on the DualSense are each reported only on their own pad, once. - the slow-reader sleeps are now 150 ms (3x kSlowReaderUs) for slow CI. Tested: ctest -R ^gameinput passes plain and with LEONIDA_VK_VALIDATION=1 (VS 2022, Ninja). Against the pre-fix shim the slow-reader and both two-pad checks fail (the close_pad check passes trivially there); with the fix minus close_pad's missed reset, the close_pad check fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SR1Fv7eQNgZjM6miWPKjHf
|
Added the coverage asked for, in 045bb0f (DadaCap's commit is untouched):
AI-assisted (Claude Code, Claude Opus 5.5). |
|
Independent RTX 3070 Ti / Linux Wine 11.22 integration validation starting for exact head 045bb0f. Main 42537e7 + owned #1558 / FSPX translator fixes now reaches the rendered first-run setup. With two ordinary scripted A presses, each logged by GameInput (60 s and 100 s), the first moves from the player prompt to Navigation Experience, but the second does not visibly advance it by the 160-second bound. Presented captures after the first press are ~36 seconds apart, so this is consistent with your slow-reader diagnosis, not yet proof of the exact consumption path. I have preserved that build and am adding only your two commits before synthetic GameInput checks and the identical bounded two-press retest. Runtime assertions/watchdog stay enabled; no legal agreement acceptance is scripted. No duplication of implementation ownership; raw images/logs stay local. AI-assisted. |
|
Retest update: exact head 045bb0f applied locally as a14a691b7 builds; gameinput passes 369 checks and gameinput_script passes 10. gameinput_host fails the same three checks on both this candidate and unmodified 42537e7 under the same Wine prefix (host GameInputCreate returns E_NOTIMPL), so that host-comparison limitation is not counted as a shim pass. The identical 160-second retail probe with A@60/A@100 still ends visually on Navigation Experience. Both scripted presses are logged; 25,450 native graphics PSOs succeed, no fatal title exception, and late captures are ~45 seconds apart per 300 frames. This does NOT establish that the fix is ineffective generally, nor that this title read used the covered explicit-pad path. I am adding opt-in local GetCurrentReading return-path/button-state logging, with no behavior change, to distinguish actual delivery from a mere poll-thread press log. The diagnostic will not be submitted as a competing implementation. No legal acceptance or world claim; raw evidence remains local. AI-assisted. |
|
Diagnostic/caveat update: the local trace confirms this title uses the explicit-pad GetCurrentReading path, predominantly one caller/thread. A press delayed beyond its real 300 ms hold is returned once by the fix, then the current released state is returned on the next read; a press sampled while held appears in repeated reads. That matches the intended policy. It does not by itself prove the UI consumes the one-shot replay. Important configuration caveat: I found that my local launcher used --run rather than the documented --first-run-ui profile, so it omitted the profile’s graphics-layout, GPU-label and frame-pacing defaults. Treat the earlier setup-page symptom as evidence from that incomplete/custom configuration, NOT a confirmed failure of this PR under the supported UI profile. I am correcting the launcher/profile and refreshing the independent main baseline before further attribution. No delivery policy was changed in the diagnostic build; no legal agreement was accepted. AI-assisted; raw traces/images remain local. |
…get-in-order GPU: the indirect budget is charged in record order and no longer wraps
Claimed in the coordination issue as: RT-GAMEINPUT-SLOW-READER (#14 (comment))
Carries DadaCap's
kSlowReaderUsfrom theirboot-prototypebranch (commit fa497b9), with DadaCap's authorship and date kept, as agreed in #14 (comment 7151032887).What and why
The title reads each pad with
GetCurrentReadingonce a frame. At a few frames a second, a press can start and end between two reads, so it's lost. That's why the first-run pages need several presses to advance at low frame rates (#233 fills the history, which the title doesn't read). Each pad now remembers the newest reading that pressed a button the last read didn't report. A read that comes more thankSlowReaderUs(50 ms) after the previous one is given that press once, and the next read gets the pad's real state.close_padclears it.Scope: only the GameInput part of fa497b9 (
runtime/shims/gameinput.cpp+32,runtime/test/gameinput_test.cpp+16), unchanged apart from line positions. The prototype's other changes in that commit aren't included. It doesn't conflict with #1074'sLEONIDA_INPUT_SCRIPT: scripted presses go through the same path, so a short scripted press now also reaches a slow reader.Tested
Windows 11, RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja, RelWithDebInfo, on main 2213d5c:
gameinput,gameinput_hostandgameinput_scriptpass, both plain and withLEONIDA_VK_VALIDATION=1.gameinput_testruns 365 checks with 0 failures, including "a slow reader sees a missed press once".test_runtime_paths, which is red on main since [integration] Windows offline boot to the first-run UI (RT-WINDOWS-FIRST-RUN-UI) #939 (tools/conformance/**missing inruntime.yml; reported on [integration] Windows offline boot to the first-run UI (RT-WINDOWS-FIRST-RUN-UI) #939). That's unrelated to this PR.GPUs tested: NVIDIA GeForce RTX 4070 SUPER, driver 621.24, Windows 11
AI-assisted: yes
Checklist
mainand merges cleanly.docs/design.md. (n/a)AI-assisted (Claude Code, Claude Opus 5.5).
🤖 Generated with Claude Code
https://claude.ai/code/session_01SR1Fv7eQNgZjM6miWPKjHf