Friday, July 27, 2012

[android-developers] Is there an altenative method for animation to lockCanvas / unlockCanvasAndPost

Hi!

I've made a program that runs at 60 fps on most device, but on my GalaxyTab 2 7.0 It runs at 30 fps.
I've search for the reason and found that lockCanvas can take up to 10ms  and unlockCanvasAndPost can take up to 15ms !

I don't understand why these 2 functions are so slow (sometimes) !

Is there an alternative method to make a 60 fps animation ! (i.e not using a separate thread calling lockCanvas and unlockCanvasAndPost)

Rem: all the job made with the ndk into a bitmap before I blit it on the sceen !

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

No comments:

Post a Comment