lightning-js / renderer

Lightning 3 Renderer
Apache License 2.0
57 stars 23 forks source link

Boundary calculation when clipping is enabled ignores parent boundaries #426

Closed wouterlucas closed 2 weeks ago

wouterlucas commented 2 weeks ago

Issue: When displaying a large grid of blocks an individual cell enables clipping for excess text Individual cells boundaries are based off of the clipping area and ignore parent boundary status.

This causes the grid with cells to load all clipping enabled cells to load textures, ignoring boundaries.

With the test page:

grid

Expected texture usage: grid_expected

Current result: grid_actual

All textures of the cells are loaded, even though the majority of the cells are not within the visible area.