Hello guysngirls! :)

Lately I've started to implement my first livewallpaper.

Basically it just fades one bitmap into another by reducing alpha of
one image and increasing alpha of another (while drawing). Bitmaps are
not very small, 800x480 in size.

Currently the drawing is done by continuously posting a Runnable with
a call to a drawFrame() function, once in a 1000/25 msecs - just as
suggested by a livewallpaper sample from SDK samples.

But I notice that the transitions are somewhat "step-like" - not very
smooth. I think it can be smoother.

The question is this: can this be due to a posting overhead? Would It
get smoother if I would implement drawing in a separate thread? Then
it would run on its own, all the time, and call drawFrame().

Also, is this acceptable for a live wallpapers?

I have a game in which I use the paint thread to draw on a
SurfaceView, just as I described above, and i have got a good
performance :)

Thanks in advance,
Dmitry.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to