Re: [android-developers] Re: stopping the GC from kicking in

2010-10-20 Thread Miguel Morales
No, it's not wrong. It's just the best way of avoiding GC runs in your code. A game is not like most software out there. A lot of the time modern design patterns have to be thrown out the window just for performance and usability. Sure it would be nice if the GC were faster and more efficient (

Re: [android-developers] Re: stopping the GC from kicking in

2010-10-19 Thread Dianne Hackborn
On Tue, Oct 19, 2010 at 6:16 PM, Miguel Morales wrote: > Sometimes, on devices such as a G1 there is still a GC that occurs > once around every minute due to background system services. > Those GCs are not in your process; as of 1.6 such GCs in a background process can not together take more than

Re: [android-developers] Re: stopping the GC from kicking in

2010-10-19 Thread Miguel Morales
Sometimes, on devices such as a G1 there is still a GC that occurs once around every minute due to background system services. However, there is plenty you can do in your own code to avoid GC runs. The first thing I recommend watching is this google presentation: http://www.google.com/events/io/20