Hello, thank you all for many helpful posts.

I tried to replace all getters and setters with member variables and
"asteroids[i]", "bullets[i]"... with corresponding "asteroid",
"bullet"... variables.
Though this is very important issue, as I supposed, this doesn't
improve FPS in my case.
I agree, that keeping an array of all objects, is not a good practice.
But I want to keep my example as simple as possible, of course in real
game this all should be replaced with more reliable code.
But, when I only draw a few objects on the screen, and when I see big
difference between update and draw methods, I realise that main source
of performance impact is Canvas's affine transforms and draws.

Best Regards, Andre
-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to