Skip to content

Reduce alpha conversion work in player menus - #1453

Merged
GLinnik21 merged 3 commits into
mainfrom
codex/player-alpha-coverage
Nov 18, 2026
Merged

GLinnik21 merged 3 commits into
mainfrom
codex/player-alpha-coverage

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

The player track menu paints a black dim over the whole video frame and a black gradient behind its transport. Both draws used to book their whole area for the final premultiplied-to-straight alpha conversion. On a rooted webOS 4.5 TV, bypassing that pass restored a 60 FPS median on a scene that ran at about 41 FPS with conversion enabled.

The dedicated flat and ramp shaders now leave existing conversion coverage intact when both endpoints have exactly zero RGB. Their GL draws and alpha values are unchanged. Previously drawn coloured content still gets converted after the scrim is blended, and subsequent coloured draws still book their own coverage. Tinted fills and shader fallbacks retain their usual coverage.

The regression test covers a black gradient on a clear frame, a black scrim over coloured content, and a nonzero colour channel at either gradient endpoint.

@GLinnik21 GLinnik21 added the backport release/v0.10 When merged into main, also cherry-pick onto release/v0.10 (backport.yml) label Nov 18, 2026
@GLinnik21
GLinnik21 enabled auto-merge (squash) November 18, 2026 01:09
@GLinnik21
GLinnik21 merged commit 233a948 into main Nov 18, 2026
15 checks passed
@GLinnik21
GLinnik21 deleted the codex/player-alpha-coverage branch November 18, 2026 01:16
GLinnik21 added a commit that referenced this pull request Nov 18, 2026
* Keep black player scrims out of alpha conversion coverage

* Describe conversion coverage over black scrims

* Include player menus in the 0.10.1 patch notes

(cherry picked from commit 233a948)

Co-authored-by: Gleb Linnik <[email protected]>
nphil pushed a commit to nphil/Marquee that referenced this pull request Nov 18, 2026
Dedicated flat and ramp fills of exact black leave RGB at zero over the transparent clear, so they book no coverage for the straighten pass.

Adapted from plx-native 233a948 (plxnative#1453).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport release/v0.10 When merged into main, also cherry-pick onto release/v0.10 (backport.yml)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant