Skip to content

Home: a hero that leaves the pool hands the billboard to its successor, never a bare frame - #793

Merged
GLinnik21 merged 1 commit into
mainfrom
player/post-back-frames
Oct 15, 2026
Merged

GLinnik21 merged 1 commit into
mainfrom
player/post-back-frames

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

What the owner saw

After exiting playback, the Home hero "reloads": the billboard blinks through a black placeholder, and the logo and the rest of the hero change.

Cause (reproduced on the mock)

Returning from the player refetches the hubs (HubsCmd::RefetchHubs). If the item on the billboard changed in Continue Watching, for example it was finished or scrobbled and dropped off, the refreshed landing rebuilt the hero pool. reconcile_carousel then found the carousel's hero missing, so it:

  • restarted at hero 0 with outgoing = None, a hard cut;
  • showed the bare wash for as long as hero 0's art was not resident (the black blink);
  • switched the logo, title and text to an unrelated title.

Evidence:

  • Simulator with the demo mock. Play hero 101, scrobble it on the mock, BACK. The log showed reconcile_carousel reset from Some("101") → bind changed 101 -> 102, and the billboard went to Sintel (slide 1).
  • Unchanged data. A partial play (identity kept) and an unchanged refetch caused no rebind, and the texture stayed steady.
  • No eviction. No HIDDEN or residency-lost image lines on any return (imgtrace armed on the TV).

Fix

  • HomeScreen keeps a CarouselAnchor (index and show of the hero on the billboard). It is refreshed every tick so it follows auto-flips.
  • A hero that leaves the pool is replaced by the next episode of the same show if one is in the pool, otherwise by the hero now at the same index.
  • If the replacement's art is not resident yet, Backdrop keeps the art it replaces drawn underneath (held) until the new art is up, then crossfades. The billboard is never bare.
  • A refetch that changes nothing leaves the billboard exactly as it was.

Tests (failing first)

rust-modules/screens/src/home/tests.rs, using the new edit_first_shelf_for_test hook in data/src/pms.rs:

Test Result before the fix
a_finished_hero_hands_the_billboard_to_its_successor_without_a_bare_frame FAILED: landed on "1", cover 0.0
a_replacement_hero_without_resident_art_loads_over_the_art_it_replaces FAILED
a_watched_episode_hands_the_billboard_to_the_shows_next_episode passed: a guard
an_unchanged_refetch_leaves_the_billboard_exactly_as_it_was passed: a guard

After the fix, make test-crate C=plx_screens T=home:: gives test result: ok. 165 passed; 0 failed.

Simulator after the fix: play Spring (101, slide 2), scrobble it, BACK. The billboard lands on its successor Tears of Steel, still slide 2, with full art in the first capture after BACK.

Post-BACK frames on the TV

Conditions: ARM_PROFILE=release, --guest --mock, panel and sound off.

Max frame (CPU legs) in the window after BACK:

r1 r2 r3 r4 r5 r6
before (fbab7cf29) 25.5 28.9 23.0 24.4 24.7 – (run aborted)
after 22.2 22.4 24.8 25.7 27.4 26.4
  • Present-to-present frame_max in the first heartbeat after BACK was 37.6, 32.4, 37.2, 37.7, 36.1 and 48.7 ms.
  • Three detail → play → BACK cycles: max 22.8, under 20, and 31.8 ms. All released off-frame, 173–185 ms after the stop.
  • No THREADJOIN line in any return or cycle log.

Attribution:

  • Sched trace. Six returns were traced. The slow Home frames are of two kinds:
    • back-buffer waits of 14–20 ms with the CPU idle;
    • commit phases of about 20 ms with 18–28 Mali IRQs and an 11–12 ms block in poll woken by surface-manager. Their draw CPU time is about 5–7 ms.
  • Mali HWCNT. Five returns were captured; in return 1 playback never started on that boot. Home frames after BACK are fragment-bound at a median of 21–25 ms of GPU per frame (max 34.3 ms) in four of the five returns, and 15.6 ms in the fifth. FRAG_ACTIVE is about 19–23M cycles, the tiler does no work, and frames cover 4,100–7,100 tiles. The steady hero-flip frames seconds later cost the same: 51 samples, mean 22.4 ms.

So the ≥33 ms intervals after BACK come from Home's animated-frame GPU cost, which is not specific to BACK. That cost is not changed by this PR. The 51/40 ms frames from the original report did not reproduce in 6 + 6 returns.

🤖 Generated with Claude Code

…r, never a bare frame

Returning from playback refetches the hubs. When the item that was on the
billboard left Continue Watching (finished, scrobbled) or moved, the refreshed
landing rebuilt the hero pool and reconcile_carousel restarted the carousel at
hero 0 with a hard cut. If hero 0's art was not resident, the billboard drew
the bare wash (the black blink the owner saw), and the logo and text switched
to an unrelated title.

reconcile_carousel now keeps an anchor (the index and show of the hero on the
billboard, refreshed every tick so it follows auto flips). A hero that left
the pool is replaced by the next episode of the same show if there is one,
else by the hero now at the same index. A replacement whose art is not yet
resident keeps the art it replaces drawn underneath (Backdrop::held) until
the new art is up, then crossfades. A refetch that changes nothing leaves
the billboard exactly as it was.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@GLinnik21
GLinnik21 enabled auto-merge (squash) October 15, 2026 22:46
@GLinnik21
GLinnik21 merged commit 8ae3a28 into main Oct 15, 2026
17 checks passed
@GLinnik21
GLinnik21 deleted the player/post-back-frames branch October 15, 2026 23:17
GLinnik21 added a commit that referenced this pull request Oct 22, 2026
* Release notes and audit for v0.9.0

Action-required evaluation (README trigger list, read from the PRs, grep not run on a built tree): no hits that need a reader action. Launch links (#853) add an inbound surface (any app that can launch apps), stated in What's new; the 3.4 image cache writes to /media/developer/temp (#667); crash/error reports gain fixed-value fields with POLICY_VERSION unchanged (#632), stated under Changed; Watchlist and PMS notifications use hosts the app already reaches.

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

* Release notes v0.9.0: coverage and accuracy pass

Note: correct the Collections surfaces (no TYPE menu; collection shelf
headings live on Home and a library's Recommended page), the Watchlist
hold-menu rows, the launch-link sign-in behaviour and platform-release
numbering, the notification-feed sentence and the per-profile settings
list (no stale "nine"). Add #832, #808, #750/#762, #709 (#628), #641,
#647, #793, #871, #877 (#679), #876 and the key-press frame work;
credit RichiL10 and Shakil Choudhury. #862 moves from Known issues to
the webOS 3.x lines as fixed by #578; the 3.9.3 source-build report
(#700) is kept in Compatibility. Compatibility links reports, not
reporters' profiles.

Audit: #862 provenance (attributed usage-report reading, no counts),
contributor list wording.

Action-required section: not owed. The README grep over
v0.8.0..origin/main (rust-modules/src src ci) hits only CI tooling,
test-only loopback listeners and fixture tokens, and the dev-only
/tmp/plxnative-trackmemory trigger; the audit's PR-by-PR reading in
"Deliberately not done" stands.

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

* Release audit v0.9.0: name the toolchain by its pin file, not its version

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

---------

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