Smart pointers instead of GC?

Jonathan M Davis jmdavisProg at gmx.com
Tue Jan 1 15:23:23 PST 2013


On Monday, December 31, 2012 15:05:00 Kiith-Sa wrote:
> I think you're overthinking this way too much.
> 
> I'm writing a game engine, where latency is much more important
> than in your case. Even 10ms would translate to visible jitter.
> GC's not an issue, and disabling it permanently is very
> counterproductive _unless_ you've exhausted all other options
> (which you're unlikely to, as you can do everything you can do in
> C++).  All you have to do is care about how you allocate and, if
> GC seems to be an issue, profile to see _where_ the GC is being
> called most and optimize those allocations.
> 
> Basic rules:
[snip]

If you've got this much figured out with reasonably clear guidelines, you 
should consider writing a blog post or article about it.

- Jonathan M Davis


More information about the Digitalmars-d mailing list