Can any body make me clear why this code is showin...
# compose
f
Can any body make me clear why this code is showing GPU overdraw for one time? Instead of no overDraw?
e
the activity itself may have a background (check the xml theme)
👆 1
f
No full compose.
Copy code
<resources>
    <style name="AppTheme" parent="android:Theme.Material.NoActionBar"/>
</resources>
Thanks!! I tried android:Theme.Material.Light.NoActionBar in styles.xml and background color of composable to Color.Transparent and it reduced overdraw.
c
I think you do typically still want to have a theme as you need it for launch (unless i suppose you're using androidx.splash). I think I also heard @romainguy say that overdraw in compose isn't really an issue.
r
Yes on both counts
Keep a window background/theme
Don't worry too much about overdraw
f
But it can be considered as performance improvement doesn’t it have effects on compose?
r
Nah, not really on today's GPUs
(also the rendering piepline can optimize this specific use case)