Hello skink, thanks for advice

I agree, my array manipulations is not quite well.

And I think you right about getters too...(this is
one of the key principles in "designing for performance"
document), I don't yet replace them with members,
just becouse my updatePhysics is take ~1ms to execute...

Best Regards, Andre

On 18 янв, 14:25, skink <[email protected]> wrote:
> On Jan 18, 10:16 am, Andre <[email protected]> wrote:> From this 
> output I can assume, that my main problem here is "draw game
> > stuff" wich includes:
> >   - draw 1 spaceship
> >   - draw 5 asteroids
> >   - draw from 1 to 30 bullets
>
> in drawAsteroids() i would assign GameEntity asteroid = asteroids[i]
> once where the loop body starts and get rid of getters: just refer
> members directly (GameEntity could be a private inner class so it
> isn't that bad practice)
>
> > private void drawBullets()
>
> ditto
>
> pskink
-- 
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