StScrollViewFade is too slow
Scrolling my icon grid (GNOME 41 master) the render time is 20ms average and 23ms peak. If I remove StScrollViewFade
however, it becomes 13ms average, 15ms peak.
The effect shader itself seems pretty simple so it would appear the main problem is the offscreening. This means roughly two thirds of the screen is painted three times per frame:
- The
overviewGroup
background. - The icon grid gets painted offscreen.
- The offscreen gets painted on screen.
Painting most pixels three times per frame seems suboptimal. Maybe we can remove the effect with a different design, like fading out the whole BaseIcon
s on the edge, or just filling the whole screen width with icons.
Edited by Daniel van Vugt