On Wed, Mar 25, 2009 at 11:02 PM, Romain Guy <[email protected]> wrote: > > The trick is simple: avoid any allocation that might trigger a GC. >
It's not that simple at all. In fact, it is *impossible* on Android, or any other mobile OS which allows background processes. I've already said this once -- even though your game can be tuned to the max, nothing prevents *other* apps from triggering GC. That is, in my game, I *never*, *ever* do any allocation after startup. However, other background processes do trigger GC, and voila - my game stutters for a bit when GC kicks in. Compare to iPhone, which disallows background processing and the foreground app is never interrupted. Cheers --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

