[Mono-devel-list] Limit Garbage Collection

Andreas Nahr ClassDevelopment at A-SoftTech.com
Tue Jul 19 13:38:41 EDT 2005


As long as you don't do any "stupid" things a gen0 garbage collection is far
faster than what you need for a game (MUCH shorter than 20ms)
In fact there are at least two commercial games out there that are based on
.net and none of them has issues getting 100++ fps.
Also tons of 3d apps exist and none of them have any perf-issues related to
GCing, so dont worry about the GC.

Greets
Andreas

----- Original Message ----- 
From: "Cedric Le Dressay" <cledressay at hotmail.com>
To: <mono-devel-list at lists.ximian.com>
Sent: Tuesday, July 19, 2005 12:22 PM
Subject: [Mono-devel-list] Limit Garbage Collection


> Dear all,
>
> Please accept my apologies if a similar question has been asked, I have 
> not been able to find a question to it.
>
> .Net is an incredible step in the interroperability of languages. Nearly 
> all software developpements can use garbage collection. Unfortunately, 
> some others cannot like game developpement. Typically, a game cannot be 
> reasonnably freezed more than 20 ms (50 frames per second). Sometimes 
> requirements are even higher.
>
> Is there a way with mono to disable garbage collection and use the old 
> desalloc model?
> Is there a way to "cheat" and instead of really desollocating an objet of 
> a particuliar type to put it in a garbage list. This garbage list will be 
> used for the next allocation of the same type...
>
> What are your thoughts?
>
> Thanks for your time,
>
> Cedric
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 




More information about the Mono-devel-list mailing list