On Thu, Mar 26, 2009 at 3:23 PM, Incognito <[email protected]> wrote: > > > You will have the same problem in a computer if too many apps are running. > The solution in a computer is to uninstall and dump those programs that hug > too much memory. Same thing will happen in android. Those background > processes that cannot play nice will get a bad reputation and be uninstalled. > People must write their background processes so that they consume as little > resources as possible or face an early death. The game will only stutter if > there is excessive gc.
No, this is wrong. A game will stutter *even* if it doesn't trigger GC *at all*. I'll repost my android-developers post. Running multiple processes is not a problem. If, however, a process triggers GC you'll see stuttering in the picture viewer as well, and *any* application, no matter how great was it implemented. Let me explain what I'm talking about: There's a myFaves service on the G1. Apparently it tries to send an MMS once, or once in a while to T-Mobile. Because my G1 is unlocked and running on a different network, the MMS transmission fails. However, myFaves won't give up and will try sending the MMS. When I got my unlocked G1 December last year, it had the 1.0 firmware. Perhaps the myFaves service was running very very rarely because I've never seen my game stutter, even though many background processes were in fact running. That is, perhaps I was testing the game on the device when myFaves was not trying to send the MMS. When the OTA updated the firmware to 1.1, the myFaves service started to attempt to send an MMS to T-Mobile more often. This triggers GC for exactly 110 objects and N bytes of memory, and my game stutters *every* time the myFaves service is attempting to send an MMS (apparently, it will *always* try sending the god damn MMS because I'm not on T-Mobile's network). So, my point is not that background processes per se are the problem, but these who actually perform any work which might trigger GC. Cheers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Discuss" 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-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
