Skip to content

Navigation frame drops: invisible walks stop doing visible-walk work - #312

Merged
GLinnik21 merged 2 commits into
mainfrom
lane/nav-frame-drops
Sep 29, 2026
Merged

GLinnik21 merged 2 commits into
mainfrom
lane/nav-frame-drops

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

Cuts navigation hitches in the push / modal / deep TV benches by removing work nobody sees.

  • Only the visible walk records focus stops. Detail, Home, Library, player, Person, Search, Collection and Filmography placed stops in the backdrop discovery walk, every blur-source replay and the text-prewarm walk too (51 stops for a 24-episode show in discovery alone). DrawFrame::records_stops() gates them at one shared point.
  • A held modal surface records its text instead of rasterising it on the frame that renders the host snapshot (Settings drew 21 strings there). ui::record_walk makes every painter record for a prewarm walk, including screen-built Painter::root()s; the held surface drains the text on the following held frames within the shared prewarm budget, bounded by SURFACE_TEXT_HOLD_MAX_MS (100 ms).
  • New FRAMEDROP spans (text, host, src, warm, warmdrain) for TV attribution.

TV result (interleaved A/B, same session, each set freshly deployed and verify-deploy matched)

Missed refreshes per 100-cycle bench:

bench base ed2654d this change
push-100 8, 7 4, 5, 6
modal-100 5, 8 2, 3, 4
deep-100 9, 7 6, 7

detail-transition and show-detail stay at 60 fps. The benches are still not at 0 missed: the remainder is mostly GPU backlog (clear waits after a backdrop blur-source refilter) and is out of scope here.

Verification (pre-rebase commit 8eb3892; this is a clean rebase onto main)

  • cargo +nightly test --lib: test result: ok. 5126 passed; 0 failed; 7 ignored
  • cargo +nightly check --lib --no-default-features: clean
  • make check: test result: ok. 5186 passed; 0 failed; 7 ignored, test result: ok. 102 passed; 0 failed
  • ARM make: OK
  • Red→green: screens::detail::tests::record_stops_places_nothing_outside_the_visible_walk, ui::containers::tests::a_held_surface_warms_its_text_instead_of_rasterising_it

🤖 Generated with Claude Code

GLinnik21 and others added 2 commits September 30, 2026 00:03
Stops are placed only by the visible walk. Detail, Home, Library, the player, Person, Search,
Collection and Filmography placed their focus stops in the backdrop discovery walk, in every
blur-source replay and in the text recorder as well. Those stops never reach the hit map
(51 stops for a 24-episode show in discovery alone). DrawFrame::records_stops now gates them.

A held modal surface records its text instead of rasterising it. A presented surface sits at
appear 0 on the frame that renders the host snapshot, and it drew live there: Settings
rasterised and uploaded 21 strings in the heaviest GPU frame a modal has (modal-100's cold
cycle). ui::record_walk makes every painter record for the length of a prewarm walk, including
the Painter::root() that Settings and every panel build for themselves. The page-dip prewarm
walk uses it too. A held surface's text is queued on its capture frame and drained on the held
frames after it, within the frame's one shared prewarm budget. PopoverMotion extends the hold
while text is pending, bounded by SURFACE_TEXT_HOLD_MAX_MS (100 ms).

New FRAMEDROP spans (text, host, src, warm, warmdrain) let the television attribute what remains.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…312)

6-settings-family and 12-filmography-detail-return diverged at frames 77 and 76
(all other counters zero) against PR #312's navigation-frame-drops commit;
1-boot-home-chip-grid stayed SAME. Both anchors present a held modal/panel.
Attributed by replaying with each of the commit's two behaviour changes
switched off individually: disabling DrawFrame::records_stops' gating left
the divergence unchanged (and broke a second frame), ruling it out; reverting
the held surface's text-recording path (PopoverMotion::tick no longer
extending its hold while text is pending, the surface loop always drawing
with Painter::root()) reproduced SAME with every counter zero on both. The
hold extension moves PopoverMotion's own state on exactly the frame each
anchor recorded a modal opening — the shape did not move (schema 3, state_fp
10638452537178981056 unchanged), so neither `rerecord` nor `rebaseline`
applied to these anchors.

Owner approved re-anchoring 2026-09-30 ("rerecord"). Both fixtures were
recorded afresh, the old anchors removed and reimported with
tools/plxnative-rec import, and anchor:true restored by hand in each
manifest.json. Targets and Resolve pass with every difference counter at
zero for all three committed fixtures. The closed alphabet did not move.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21
GLinnik21 merged commit 41216da into main Sep 29, 2026
5 checks passed
@GLinnik21
GLinnik21 deleted the lane/nav-frame-drops branch September 29, 2026 22:19
GLinnik21 added a commit that referenced this pull request Oct 1, 2026
…nel (#340)

Fixture 12 diverged on frames 76-77 on the macOS CI runner (diverged=2, every named
counter zero). The only changed term was the Filmography modal's surface phase:
Opening -> Open two frames later than recorded. A presented surface stays held at
appear 0 while text::prewarm_pending() (#312), and that queue drains under a
wall-clock budget (text::drain_prewarm), so a slower CPU held the panel for more
frames. Reproduced locally on efficiency cores (taskpolicy -c background): 3/4
replays DIVERGED at f=76/77 with the CI hashes.

The observation is now an environmental input like the page capture's GPU
readiness: the product loop samples the queue once before dispatch, the recorder
records it (capture row gains "text", CaptureReadinessV2) or supplies the recorded
one, and PopoverMotion::tick reads the latched value (text::surface_text_pending).
The shape bump refuses the old recordings; all three anchors re-recorded with
tools/plxnative-rec rerecord.

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant