Repository navigation
fps: real hold and tap scenes, and the bench counts a present deferred by the capture fence - #562
Merged
Merged
Conversation
…tion (holdbench, home/collection-hold and -tap scenes) The item-menu scene opens the menu directly and grades the settled panel after a warmup, and plxnative-press taps a card and navigates away, so nothing measured the dip, the hold capsule's fill, the menu opening out of the hold, or its dismissal. plxnative-holdbench[=n[,period[,tap]]] runs counted cycles through the remote's own key path on a Home, Library or Collection card: OK-down and nothing else for a hold (never a key-up, never an OK while a menu is up), Back only while the item menu is up; the tap variant sends a direction key before press::LONG_MS, the app's real cancel path. Each cycle logs a bench: kind=hold line, and grade_bench fails a cycle that pressed nothing or opened no menu. Scenes home-hold, collection-hold, home-tap and collection-tap run under --fps --mock; their limits are the frame budget and are not yet measured on the television. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ps menu open grades as missed refreshes The bench's missed count uses the present-to-present interval, but any skipped loop iteration cleared it, so a deliberate fence deferral looked like an idle skip and a 47 ms open (14 ms of work) read as 0 missed. The loop now tells a deferral (fence held, window active) from an idle skip and only seeds the stamps for the former. Deferrals before a half's first present are reported as defer_first, later ones count in missed; scenes may cap the worst interval with bench_iv_max_ms. The press scenes get provisional target limits. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ction-hold, home/collection-tap) Measured 2026-10-08, one run each, debug build with ARM_PROFILE=release, mock, panel on. Hold scenes depend on the item-menu opener-lift fix (#561); the unfixed tree reads 525 / 498 / 12. Co-Authored-By: Claude Opus 5.5 <[email protected]>
GLinnik21
force-pushed
the
cards-press-scenes
branch
from
October 8, 2026 19:19
251be60 to
5ed8b0d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The fps harness could not see a card's own click and long-press animation, and its bench scored a menu that opened at 21 fps as zero missed frames. Companion to #561, which fixes the regression these scenes found.
New scenes
A dev trigger
plxnative-holdbench[=<n>[,<period_ms>[,tap]]]drives real presses through the remote's input path:bench::press_allowed,bench::press_close_key, pinned by tests).Scenes, all
--fps --mock:home-hold,collection-hold(30 holds),home-tap,collection-tap(40 taps). A cycle that found no card or opened no menu fails the scene.Bench metric
misseduses the present-to-present interval, but any skipped loop iteration cleared the previous present stamp, so the bench fell back to work time. A present held back by the capture fence was indistinguishable from an idle skip. Now a skip caused only by the fence (Frame::deferred) keeps the cadence (defer_present_phases), so the next presented frame's interval spans it and counts inmissedandiv. Deferrals before a half's first presented frame are reported asdefer_first(latency) and not graded. Idle skips behave as before. Scenes can set abench_iv_max_msceiling.This only changes diagnostic bookkeeping:
fr.presentis computed before and never reads the new flag, and the fence, frame budget and framedump hooks are untouched.Effect on existing numbers: every bench scene (push, modal, deep, hero-pong, grid-pong) and the heartbeat's frame pacing now include fence holds they used to drop. Under the new metric hero-pong and grid-pong read 10-12 missed per 60 cycles (iv max 37-47 ms), the same with and without #561; their limits are unchanged, so the earlier 7-18 band is not comparable.
Limits, measured on the television (2026-10-08, one run each, debug build with
ARM_PROFILE=release, mock, panel on)The hold scenes fail on a tree without #561. The tap scenes carry
bench_drift_ms4.0 (one run tripped the 2.0 default at +2.87 ms).defer_firstread 0 in every run, so that field is exercised by unit tests only.Tests
bench_iv_max_ms, a ceiling that fails the 21 fps open, the scenes' mock blocks and limits.Not host-tested: a hold on a Collection page card (covered by the television run).
Verification
make check:==== check: 78 steps — all ok (115s wall, 251s cpu, 4 at once; ...) ====cargo +nightly check --lib --no-default-features: finished cleanmake check-replay:3 fixtures, 6 replays, 0 failures🤖 Generated with Claude Code