Romain Guy mentions that automatic overdraw elimination was introduced in Android 4.4/5.0 (see http://www.curious-creature.com/2015/03/25/android-performance-case-study-follow-up/comment-page-1/#comment-52600) but I haven't been able to find documentation or talks referring to it. Does anyone know any details?
Overdraw refers to the system's drawing a pixel on the screen multiple times in a single frame of rendering. For example, if we have a bunch of stacked UI cards, each card hides a portion of the one below it. However, the system still needs to draw even the hidden portions of the cards in the stack.
On your device, go to Settings and tap Developer Options. Scroll down to the Hardware accelerated rendering section, and select Debug GPU Overdraw. In the Debug GPU overdraw dialog, select Show overdraw areas.
Overdraw occurs in graphics applications where scenes are built using multiple layers of objects that overlap, and are rendered in a back-to-front order. High levels of overdraw can cause poor performance on some devices, where pixels are unnecessarily shaded multiple times.
I found the code that does this and verified it with Romain Guy: http://www.curious-creature.com/2015/03/25/android-performance-case-study-follow-up/comment-page-1/#comment-52608
It’s mostly just good at removing full screen backgrounds. See the linked code to see exactly how it works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With