Graphics

Applications can spend a lot of time drawing things on the screen. Whether it is a 3D game using the GPU or simply a Calendar application using the CPU for most of its rendering, the idea is to do as little work as possible while still getting the desired results on the screen in order to preserve battery life.

As we saw earlier, the CPU uses less power when it is not running at full speed. Modern CPUs use dynamic frequency scaling and dynamic voltage scaling to conserve power or reduce heat. Such techniques are usually used together and referred to as DVFS (Dynamic Voltage and Frequency Scaling) and the Linux kernel, Android, and modern processors support such techniques.

Similarly, modern GPUs are able to turn off internal components, ...

Get Pro Android Apps Performance Optimization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.