Repository navigation
Reduce alpha conversion work in player menus - #1453
Merged
Merged
Conversation
GLinnik21
enabled auto-merge (squash)
November 18, 2026 01:09
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).
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 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.