Game and GC
Leonardo
leotada523 at gmail.com
Fri Feb 23 02:34:30 UTC 2018
On Friday, 23 February 2018 at 02:16:38 UTC, Jonathan M Davis
wrote:
> The GC won't slow down your code in general (in fact, it will
> probably speed it up in comparison to reference counting), but
> whenever the GC does a collection, that means that it stops all
> threads that it manages. So, you could suddenly have everything
> stop for 100ms (the actual length of a collection is going to
> depend on how much memory the GC has to scan, and I don't know
> what the typical length of a collection is; that will depend on
> the program). For programs that can afford to occasionally stop
> like that, that's not a problem. For a game that's trying to
> maintain 60fps, that's likely a really big deal.
> - Jonathan M Davis
That's what I thought for a game, but probably no one tested yet
to see the impact. Thanks, I'll read on.
More information about the Digitalmars-d-learn
mailing list