[mono-android] Possible GC Bug?

Jonathan Pryor jpryor at novell.com
Wed Mar 30 10:54:46 EDT 2011


On Mar 29, 2011, at 7:36 PM, Konaju Games (Dev) wrote:
> A common scenario on Windows Phone 7 games is to explicitly call GC.Collect() between menu screens and just prior to starting gameplay to minimize the chances of a GC happening in the middle of the game and causing a 1-2 frame stall in the game (because the GC in WP7 does a full sweep).  I understand the GC in MonoDroid may be different, but is calling GC.Collect() in this manner a good or bad thing in MonoDroid?

This would be good, though you should call GC.Collect(0), not GC.Collect(). We now have some GC guidelines:

	http://mono-android.net/Documentation/GC

If you have any further GC-related questions, please ask so that we can address them at the above page.

 - Jon



More information about the Monodroid mailing list