O'Reilly logo

OpenGL ES 2 for Android by Kevin Brothaler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Playing Nicely with the Rest of the System

Users tend to have fairly high expectations of a live wallpaper—not only does it need to look great on their home screen, but it also needs to be frugal with the device’s resources. People tend to get pretty upset if a live wallpaper drains half of their battery in an hour or if it lags their device. They also expect a live wallpaper to stop consuming the battery when it gets sent to the background and quickly start back up when they return to the home screen.

Limiting the Frame Rate

By default, Android will ask OpenGL to render the frames in line with the display refresh rate, usually at around 60 frames per second. This can chew through battery power pretty quickly, so to reduce the impact on the battery ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required