Skip to content

perf(renderer): a nebula of patches stays under the opacity ceiling; Cassiopeia A's zoom goes from a 291 ms frame to 51 ms on an iPad - #1359

Merged
alowpoly merged 1 commit into
mainfrom
perf/patches-under-ceiling
Oct 5, 2026
Merged

alowpoly merged 1 commit into
mainfrom
perf/patches-under-ceiling

Conversation

@alowpoly

@alowpoly alowpoly commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

A nebula drawn as patches (Cassiopeia A, the Homunculus) sat at opacity 1 since the Eta Carinae change, so its bank crossed 1 on every zoom out and Safari repainted every patch in one frame. Patches go back under the 0.999 ceiling that sheets already keep, on the stack and on the bank's root.

Proves the change: iPad, the zoom program: Cassiopeia A's longest frame 291 ms as served, 51 ms under the ceiling; the Homunculus's 133 ms zoom-out frame is gone.

The reason patches were at 1 was a wedge of the Homunculus going black for a step of a drag at its nearest view, seen in headless Chrome. I looked for it and did not find it: at the nearest view, on the nebula's page and around its star, the picture under the ceiling matched the picture at 1 at every step (580 steps in Chrome on a GPU, 90 in the software-rendered shell, 11 on an iPad).

Clean: the image-layer and catalogue-bank tests (12 pass), lint on the two files.

Limits: the iPad numbers come from the ceiling applied to the live page, not from this build. The Homunculus still drops 94 to 106 ms zooming in. The wedge's original camera places are not known, so this is "not reproduced", not "cannot happen".

…Cassiopeia A's zoom out repainted every patch in one 291 ms frame
@alowpoly
alowpoly enabled auto-merge October 5, 2026 21:28
@alowpoly
alowpoly merged commit 4d64300 into main Oct 5, 2026
19 of 20 checks passed
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