GameInput: retain recent gamepad readings between polls #565
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!565
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-565"
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?
@ZekkJJ on GitHub · 2026-11-24 01:53 UTC · original
ZekkJJ:codex/gameinput-reading-history→main· +408 −73 · 2 files · 1 commits · openGameInput retains recent gamepad readings so titles that poll between frames can recover short taps. The rebase keeps upstream's DualShock 4 and DualSense fallback when no XInput controller is present.
What is in it
crates/xcl/src/hle/gameinput.rsshares immutable, reference-counted readings among current reads, history traversal, and callback delivery. The fixture covers idle taps, expiry, filters, reading ownership, and callback overrun.README.mddocuments the half-second history alongside XInput and PlayStation controls.Tested
f9e6ac5f71372ef8420850cf63bad5715c3b5736on Windows 11 build 26200.9974, Ryzen 7 8845HS, NVIDIA GeForce RTX 4060 Laptop GPU (616.56), Rust 1.98.1 MSVC, debug.cargo test --offline --locked -p xcl --lib hle::gameinput:: -- --nocapture --test-threads=1passed 12 tests with zero failures, ignores, or runtime skips. This includes all three history fixtures.1902a91.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output. There were 26 explicit GPU skip markers (21 no native wave64, 3 refused wave32 per-lane operation, 1 Windows Developer Mode unavailable, 1 no heap windows). Clean main atb49be183passed 1,435 with 0 failures, 47 ignores, and 26 runtime skip markers.Regression run
Clean release builds on the same RTX 4060 Laptop GPU and retail workload. XCL used a separate title state and DXIL cache for each run.
Main
PR head
Not tested
AI use
OpenAI Codex (
gpt-6.2-sol) resolved the rebase conflicts, ran validation, and updated this description.@futurepro62 on GitHub · 2026-11-24 07:05 UTC · original
Full-suite run, since this PR has no test report yet. Tested exact head
1902a91(on its base7ebf1b8).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 680 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.adjacent_readings_check_inputs_and_keep_caller_references_alive,adjacent_readings_preserve_a_tap_after_idle,callback_history_filters_old_readings_and_reports_overrun.Not tested
AI use
@Anon64 on GitHub · 2026-11-24 07:27 UTC · original
Regression runs for this PR's head
1902a91and for its basemain7ebf1b8, on a retail title (same title, 60 s each), made withscripts/smoke.ps1(release, clean tree at each commit) and pasted unedited, for Regression run.main:
this PR:
Tested
Not tested
Report written with Claude Code (Claude Opus 5.5) from runs on this machine.
@DavidM1911 on GitHub · 2026-11-25 13:18 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.1902a91d00tof9e6ac5f71@ZekkJJ on GitHub · 2026-11-26 09:08 UTC · original
@DavidM1911 The conflicts are resolved at
f9e6ac5fon mainb49be183. Upstream PlayStation controller fallback remains in the shared polling path.At this head, the 12 focused GameInput tests passed, including the three history regressions. The full RTX 4060 Laptop workspace rerun passed 1,438 with 0 failures, 47 ignores, and 26 runtime skip markers. The synthetic-title D3D12 memory error from the first run did not recur on clean main or on the PR rerun.
Paired retail smoke recorded 703 frames against main's 560, peak commit 14,839 MB against 14,812 MB, and zero crashes or device removals. The unedited smoke blocks are in the description. The runtime tests use synthetic controller input.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.