Hey folks, I was reading this article about reduci...
# compose
v
Hey folks, I was reading this article about reducing overdraw in Jetpack Compose especially around Scaffold usage. It mentions that Scaffold can introduce unnecessary background layers and lead to overdraw if combined with Surface or other full-screen backgrounds. I wanted to get your thoughts: - How accurate is this in real-world apps? - Is this something we should actively optimize for, or is the impact usually negligible? Just trying to validate how much this actually matters from a performance standpoint vs being more of a theoretical concern. Thanks!
r
A few things about overdraw:
• It matters a lot less on the type of GPUs used in pretty much all Android devices today (tilers) • Android introduced an optimization that automatically gets rid of backgrounds when they are fully covered by other opaque backgrounds • It can still be an interesting tool indicating that your UI hierarchy might be too complicated (so it's more about complexity/layout performance, etc.)
u
Android introduced an optimization that automatically gets rid of backgrounds when they are fully covered by other opaque backgrounds
Is that a compose thing or lower level?
r
Lower-level. It was added in Android 4.x
👍 1