On 1/7/2012 3:30 PM, Manu wrote:
On 7 January 2012 23:26, Walter Bright <newshou...@digitalmars.com
<mailto:newshou...@digitalmars.com>> wrote:

    There are more options with D:

    3) Disable GC from collecting during critical parts of the code, i.e. you
    can still new all you want, it just won't run collection cycles.


This may be nice, but there is never a 'non-critical' part of a game where I can
spare 5...10...15ms (I hear 15ms quoted often, that's a *whole* frame) to let
the GC do its thing.

It should also be possible to do the gc in another thread running at low priority, if the only other running thread is doing the critical stuff and is not the sole holder of references to any GC allocated memory it is using.

Reply via email to