Advance scripted input and improve boot diagnostics #2372

Merged
ZroIsHere merged 2 commits from upstream-pr/2372 into main 2026-11-26 18:30:10 +00:00
ZroIsHere commented 2026-11-26 16:21:06 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ZroIsHere on 2026-11-26T16:21:06Z.


## Summary

  • Advance scripted input on an 8 ms clock in builds without SDL3, retaining state edges for GetNextReading.
  • Report exact A-button readings in optional input statistics and make the first 128 reading calls visible with input tracing.
  • Add a -FirstRunUi option to the Windows boot script.

Validation

  • Built gta6rt with SDL3 and without SDL3.
  • Ran the first-run profile with timed A presses; logs recorded A in readings and captured frames advanced from the splash to the profile selector and intro artwork.
  • git diff --check
  • Tests not run.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5513570799 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2372). Originally posted by [ZroIsHere](https://github.com/ZroIsHere) on 2026-11-26T16:21:06Z. --- ## Summary - Advance scripted input on an 8 ms clock in builds without SDL3, retaining state edges for `GetNextReading`. - Report exact A-button readings in optional input statistics and make the first 128 reading calls visible with input tracing. - Add a `-FirstRunUi` option to the Windows boot script. ## Validation - Built `gta6rt` with SDL3 and without SDL3. - Ran the first-run profile with timed A presses; logs recorded A in readings and captured frames advanced from the splash to the profile selector and intro artwork. - `git diff --check` - Tests not run.
aslan2142 commented 2026-11-26 18:30:12 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-26T18:30:12Z.


Merged through the integration PR #2395, together with #2315.

Changed on top, in one maintainer commit:

  • The 8 ms clock thread is replaced. update() now adds one reading for every start and end of a scripted press since the last update, stamped with the script's time. A press that begins and ends between two reads of the title is still in the history for GetNextReading. The readings no longer depend on how often a thread gets scheduled, and no thread runs.
  • LEONIDA_INPUT_TRACE is documented in docs/gameinput.md and runtime/README.md, as tests/test_docs_env_vars.py requires.
  • gameinput_no_sdl_script has a new y@10 press that the test never reads while it is down. It fails on main and passes with the change.
  • The trace lines, the A count in LEONIDA_INPUT_STATS and -FirstRunUi in boot.ps1 are kept as you wrote them.

Thank you for the trace and the boot-script option.

AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7200535763 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/2372#issuecomment-7200535763). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-26T18:30:12Z. --- Merged through the integration PR #2395, together with #2315. Changed on top, in one maintainer commit: - The 8 ms clock thread is replaced. `update()` now adds one reading for every start and end of a scripted press since the last update, stamped with the script's time. A press that begins and ends between two reads of the title is still in the history for `GetNextReading`. The readings no longer depend on how often a thread gets scheduled, and no thread runs. - `LEONIDA_INPUT_TRACE` is documented in `docs/gameinput.md` and `runtime/README.md`, as `tests/test_docs_env_vars.py` requires. - `gameinput_no_sdl_script` has a new `y@10` press that the test never reads while it is down. It fails on `main` and passes with the change. - The trace lines, the `A` count in `LEONIDA_INPUT_STATS` and `-FirstRunUi` in `boot.ps1` are kept as you wrote them. Thank you for the trace and the boot-script option. AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)
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!2372
No description provided.