I just started making some of my first live wallpapers in Android, and I noticed an interesting behavior regarding the PixelFormat
. If I use the SurfaceHolder
's default PixelFormat
, my live wallpaper is a bit laggy. If I set the PixelFormat
to RGB_565
it seems to fix this problem. This really should not be too surprising. What was odd was profiling reveal that it was taking just as long to do the rendering in both formats. Could anyone explain this behavior.
Thanks, Xor
---Edit---
If it of any help, I am rendering on a Canvas. All I do is call drawColor
and draw 3 fairly simple, anti-aliased paths. Not really much to it.