Avoid allocations. Allocations = garbage collection.
On Tue, Jun 15, 2010 at 5:43 AM, lishali <[email protected]> wrote: > I'm developing some games too, but when I want to find some articles > about the code optimisation, I find nothing. > I'm very interesting about how you can make your games has no GC when > it's running. > Thank you very much! > > On Jun 15, 5:28 pm, Neilz <[email protected]> wrote: > > Hi Charlie. > > > > Funny, I have exactly the same issue as you. I'm developing a game, > > where the sprite rendering is based loosely upon the google example > > SpriteMethodTest (using 2D Canvas drawing). I've gone through the code > > with a fine tooth comb, and applied all the tips for game > > optimisation, used DDMS, used the apd tracking tool, and still there > > are occasional stutters. > > > > Like you, I get no GC during the game. Also, I've tested on two > > devices (Hero 1.5 and Nexus 2.1) and it's the same. > > > > The game is looking playable, but it could be improved. > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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

