I recommend seeing this lecture from GoogleIO on the same subject:
http://code.google.com/events/io/sessions/WritingRealTimeGamesAndroid.html

To your question, GC can pause real-time games, unfortunately. Two
ways to minimize this are:
1) reuse objects, rather than allocating new ones and letting GC take
care of old ones
2) don't use others' classes, like the Java container classes, for
example, which can trigger GC


Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Jul 29, 11:58 pm, f_heft <delphik...@gmail.com> wrote:
> > "float" is a primitive type, not an object.  It sits in a register,
> > not on the heap.
>
> > "Float" is an object that can be used to "box" a float.  Hopefully
> > you're not using Float for values used in calculations.
>
> I'm using "float" not "Float".
> I'll try out the allocation tracker, thanks!
--~--~---------~--~----~------------~-------~--~----~
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