Is overdraw still something to try to optimize in Compose world?
➕ 1
z
Zach Klippenstein (he/him) [MOD]
05/31/2021, 3:27 PM
I forget where I heard this, but I think a googler said a while back that it’s not even something to try to optimize in the Android view world these days.
Zach Klippenstein (he/him) [MOD]
05/31/2021, 3:28 PM
Anyway, even if that weren’t the case, I wouldn’t think you’d need to worry about it in compose. Compose has a lot finer-grained invalidations.
r
romainguy
05/31/2021, 4:33 PM
It’s only worth optimizing in the view world insofar as inflation, memory, etc. are concerned
romainguy
05/31/2021, 4:34 PM
Drawing itself is not an issue really
t
Tolriq
05/31/2021, 4:49 PM
Thanks so it's not an issue to add a Surface to a reusable component to ensure Text colors for example even if this component will already be drawn on a surface?