Annyce Davis

Helping you write beautiful code

  • Home
  • Public Speaking
  • About Me
  • Courses
  • Life

Android: Overdraw, What is it and Why Should You Care?

March 23, 2015 by Annyce Davis Leave a Comment

I recently read this blog post,  Android Performance Case Study by Romain Guy, on profiling an application that he used regularly to determine why there were occasional hiccups.  I used one of the tools he recommended, Debug GPU Overdraw, to see how the PostTV Application was behaving. With one minor tweak I was able to reduce the overdraw by 1x.  So what does overdraw mean anyway?

Overdraw is when you draw pixels on top of each other potentially effecting the speed with which your application draws views on the screen.  Ideally you don’t want to have more than “2.5 times the number of pixels on screen per frame.”  And the different colors each represent how many times the pixel has been painted on the screen.

Taken directly from Romain’s post:


So by simply removing the background color that was assigned to my main layout, I was able to get a 1x overdraw instead of a 2x. Which is why most of the app is now a happy blue color!

 

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)

Related

Filed Under: Android Tagged With: Overdraw, Performance

Newsletter

Start a new tech group on Meetup

Follow Me

Dev Machine Setup – Mobile Development

A new machine. Now what? Time to set it all up. Inevitably I end up going back and forth from my old machine or worse yet, my memory, to figure out what needs … [Read More...]

Dagger Multibinding in Dynamic Feature Modules

We're adding the use of dynamic feature modules to our app. This will help us to improve build speeds, conditionally include features and decouple our code. As … [Read More...]

Categories

  • Android (49)
  • Career (2)
  • Communication (4)
  • Flutter (1)
  • Git (4)
  • Gradle (4)
  • Grails (23)
  • Java (8)
  • JavaScript (6)
  • Kotlin (11)
  • Life (4)
  • Public Speaking (22)
  • RxJava (1)
  • Software Development (3)
  • Twitter (3)
  • Uncategorized (11)
  • Video Course (4)

Copyright © 2021 · Beautiful Pro Theme on Genesis Framework · WordPress · Log in