Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What automatic overdraw elimination capabilities does Android provide?

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?

like image 856
Foxichu Avatar asked Sep 27 '22 07:09

Foxichu


People also ask

What is overdraw in Android?

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.

How to Reduce GPU overdraw Android?

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.

What is overdraw in graphics?

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.


1 Answers

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.

like image 117
Foxichu Avatar answered Oct 03 '22 21:10

Foxichu