GameInput: retain recent gamepad readings between polls #560
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by ZekkJJ on 2026-11-24T01:53:40Z.
GameInput 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.Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T07:05:55Z.
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
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-24T07:27:20Z.
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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T13:18:42Z.
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.Imported from ivall/xcl. Originally posted by ZekkJJ on 2026-11-26T09:08:39Z.
@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.