I've found that system_server will always GC occasionally... Don't know if there is a way around this but my current fix for the game is to average out the delta time I'm passing to my physics loop. Another way to do it, as I've read else where, is to put a low-pass filter on it. My game still stutters due to the GC but the stutter won't make my draw objects "teleport" so dramatically, it's at least bearable now.
On Sun, Dec 26, 2010 at 10:29 PM, broody <[email protected]> wrote: > Hi all, > > I have a game that requires continuous touch to track user movement > and draws in SurfaceView. I've noticed that at about 30sec intervals > system_server will kick in with a GC and cause the game to stutter. If > I don't touch the screen at all system_server will be not GC. I'm > wondering if anyone else has encountered this problem before. I'm > using Canvas to draw around 30+ objects on screen at once and it runs > pretty smoothly (56fps) until system_server steps in... Is this > something inherit to Canvas? It looks like 3D games (using > GLSurfaceView) don't have this problem. > > I'm developing on a Samsung Vibrant. > > Thanks! -- 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

