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 ...
Get OpenGL ES 2 for Android 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.