Repository navigation
fix(pad): timestamp fresh controller samples when read - #6337
Conversation
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
I opened #6485 for a separate touch-contact identity bug. The changes meet at the two fresh-sample I propose #6485 first, after its shared Windows build prerequisite #6452, then rebasing this timestamp change while retaining both I manually composed this PR at Would this integration order work for you? AI-assisted: yes (Codex). |
|
I agree with the proposed order if the touch-ID change is reopened or resubmitted: #6452, then the touch-contact fix, then #6337 rebased to preserve both the captured touch IDs and Your four-test Linux composition result is useful evidence; I have not independently repeated that touch-ID combination or claimed a combined Windows result. |
|
Temporarily closing to stay within the 20-open-PR author cap while submitting a verified Cocoon startup fix. This timestamp work is preserved at 279fee8 on JJenkx/AnyPS5 branch fix/pad-read-timestamps-upstream; it is not withdrawn on technical grounds. The ordering notes already in the description remain applicable when a slot is available. |
279fee8 to
05878ce
Compare
05878ce to
90b204c
Compare
90b204c to
554b813
Compare
554b813 to
3ca580f
Compare
3ca580f to
bb56f95
Compare
bbd9164 to
8e30de0
Compare
Current state and an empty-queue read reused the last input-change timestamp while reporting a fresh sample. Timestamp those samples at the read, preserving capture timestamps of queued input. Add a held-state regression covering both APIs and queued chronology. Full integration build, guest_pad and patched_libraries pass; the new regression fails before the change. Sample-time meaning follows device-tested PS5 input research bda3543a; host sampling cadence is still approximate and documented.
8e30de0 to
92f795b
Compare
|
OK 1. Freshness Envelope
2. Findings
3. Cross-PR Ledger
|
MarcZX10
left a comment
There was a problem hiding this comment.
Re-checked — new head, looks good
I reviewed head 92f795b3420f7e82088af97decba5796167e566d; its only commit since the previously tested 8e30de03174899b4aa104cdf52c44bf12bdb9b98 changes the two regression failure messages, while the timestamp implementation and assertions are unchanged. The author-reported focused Linux tests and negative control are for 8e30de0, not this exact head; the the latest reported merge preview against current main (f7f03daf52f11191174b1be089a56e268390a707) and conventions check are clean, and I did not independently build or run CTest. No blocking issue is visible in this diagnostic-only update.
|
Merged main Resolved Linux Release exact-head Evidence: frozen source and qualification receipts (SHA-256 |
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (4, not counted against this PR)Validation IDs already present on main (4 IDs in 487 tests)Skipped (9)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
# Conflicts: # docs/dev/debt/libScePad.md
|
Merged The only conflict was Linux 7.2.11, GCC 16.2.1, Release: the 30 libScePad, AI-assisted: yes |
|
Re-checked the new head: it only merges main, and the only conflict was the |
What
Fresh
scePadReadStatesamples and the empty-queue fallback ofscePadReadreuse the timestamp of the last input change. Holding a button or stick therefore returns a frozen timestamp across later reads. Stamp these newly generated samples with the current process time; queued samples retain their capture timestamps and order.Two production lines change. The regression checks advancing timestamps with unchanged buttons/sticks in both paths and verifies that draining the queued sample retains its earlier capture time. Existing latched presses, trigger values and latch reset are preserved. The refresh retains merged #8138 touchpad resolution changes and its controller regressions, including both
<cstdio>and<cstring>in the fixture and both functional debt entries. This does not implement hardware sampling cadence or idle sample batching; those limits remain in the library debt file.Based on main
2dc85609fc1f70965ca88829560a73ad3c363493, head8e30de03174899b4aa104cdf52c44bf12bdb9b98, with two linear topic commits and no merge commits. Current main has per-controller slots: the two fresh-sample calls now usenowinBuildData(slot, slot.state, now, now, injected, port). Resolution preserves all current-main slot discovery, initialization, latched input and queued/scripted-overlay timestamp handling. The existing regression and main's added controller cases are retained. No new Windows run is claimed.Open overlap review (2026-10-22): #7881 rewrites both paths for per-port state. Either merge order must keep current-time timestamps for fresh samples and capture-time timestamps for queued entries. Author coordination. The #7881 author reports a local combination passing all 15 pad/user-service tests, including
CheckHeldSampleTimes; I have not independently repeated that combined run. #9878 adds disconnected special-port handling and does not change either timestamp site inPadState.cpp. ItsCheckSpecialPorttest and this PR'sCheckHeldSampleTimesare inserted at the same position inGuestPad.cpp; a three-way fixture merge at headsbdd7a52cand7678df54conflicts there. Resolve by retaining both function definitions and both calls; neither replaces the other. This is a static overlap review, not a combined build/runtime result. Neither PR is a code dependency. #9770, which included the sameReadStatecorrection, was closed without merging as an accidental fork sync; its implementation is not a dependency.Tested
Current Linux x86-64 Release validation on
8e30de03174899b4aa104cdf52c44bf12bdb9b98: fresh build oflibScePad,guest_pad_testsandguest_pad_vibration_mode_tests; both focused groups pass. With only the two production timestamp edits reverted,guest_padfails with the expected stale-held-input diagnostic while vibration-mode checks pass. Restoring the exact clean head and rebuilding gives 2/2 passes on three consecutive runs. Conventions against current main and origin/main and whitespace checks pass. Logs, patch and negative-control receipt (SHA-2568218028ba0e3951182f4a5a475fd714fb0708558e7c70576fdaf186773720009). No new Windows, title, GPU or FPS result is claimed.Historical Windows 11, GCC 15.2 (UCRT), Release evidence on previous head
bbd9164413ae23a90bac2ad2eb90d26cb8d3f693/ main938812df1403f9616dba71744216725891ca4979:guest_pad_testsandguest_pad_vibration_mode_testsin a fresh build directory;ctest -R '^guest_pad(_vibration_mode)?$'three times: 2/2 pass each run, 0 not run, no skips.core/libs/prx/libScePad/src/PadState.cpprestored from main, built in a separate fresh directory:guest_padfails withscePadReadState returned a stale timestamp for held input(abort).python tools/check_conventions.py --base 938812df14 --head HEAD: passed.Earlier Linux results on base
a6646f8464, kept for history:Linux x86-64, GCC 16.2.1, Ryzen 9 7950X, previous head
bdd7a52c1b:guest_pad_tests.SDL_VIDEODRIVER=dummy ctest --test-dir build -R '^guest_pad$' -V --timeout 60 --repeat until-fail:3: all three runs pass, no skips. The fixture covers held-input timestamps, captured queue timestamps and the existing touchpad/latch regressions.PadState.cppwith the base revision, rebuilt, and reran the fixture. It failed atscePadReadState returned a stale timestamp for held input. Restoring the candidate source, rebuilding and rerunning passed. Source is clean and still at the tested head.python3 tools/check_conventions.py --base a6646f8464140180351e4c08694dccdd55b2814dandgit diff --check: passed during the linear rebase review.Earlier revisions had broader controller/library checks and independent negative controls for both production lines; those are historical evidence, not tests of this refreshed head. No native game, Windows runtime, full runtime suite, GPU or performance result is claimed for this head.
Pinned validation logs and negative control, SHA-256
264ef40273a4e022f4409e01b6c8c9e02106e6c3896c924b43fedb988ce25686.The touch-ID ordering agreement in the review remains applicable if #6485 is reopened or resubmitted: merge its prerequisite and touch-ID change first, then retain both captured touch IDs and
nowfor fresh samples. That closed PR is not a current code dependency; queued samples retain their captured IDs and times.Supplemental qualification (2026-11-01)
Merged main
93dbd0f82aeainto the branch, preserving the original history. New head:ee1696711b51fce4473a501c3524a53c29cb7d70.Resolved
PadState.cppby keeping main's withdrawn-port decision andWithdrawnData(slot.timestamp)path; only fresh non-withdrawnBuildDatacalls usenowfor the sample timestamp. Queued samples retain their capture timestamps. Main's injected-title-input handling and the combined fixture, includingCheckSpecialPortandCheckHeldSampleTimes, remain.Linux Release exact-head
guest_padandguest_pad_vibration_modepass three times each. A production-only negative replacingPadState.cppwith current main failsguest_padwith “scePadReadState returned a stale timestamp for held input”. Restoring the candidate rebuilds and both focused groups pass. Conventions and whitespace checks pass; submodule pins match main. No new Windows or title execution is claimed; previous Windows/title reports remain historical.Evidence: frozen source and qualification receipts (SHA-256
e40b9e4b51b918651e5061b7ca78903741cf1886e27a6def8ec6565b8fb7acd2, downloaded bytes and internal manifest verified).AI-assisted: yes.
Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)