Skip to content

qml: improve batch rendering of GridView

Pierre Lamot requested to merge chub/vlc:qml/batch-grid-item into master

Items in the grid view overlaps each other due to their shadow effect, by grouping them every even index (vertically and horizontally), we can ensure that items with the same Z index won't overlaps. This allows items of the same group to be batch rendered by the engine.

before:

Screenshot_20220718_105820

every shadow is rendered in its own batch

after

batching

shadows are rendered by group (orange, magenta, red, raspberry)

Merge request reports

Loading