How can I avoid garbage collection delays in Java games? (Best Practices)
- by Brian
I'm performance tuning interactive games in Java for the Android platform. Once in a while there is a hiccup in drawing and interaction for garbage collection. Usually it's less than one tenth of a second, but sometimes it can be as large as 200ms on very slow devices.
I am using the ddms profiler (part of the Android SDK) to search out where my…