Smart pointers instead of GC?

develop32 develop32 at gmail.com
Sat Feb 1 05:34:03 PST 2014


On Saturday, 1 February 2014 at 13:16:02 UTC, JR wrote:
> On Saturday, 1 February 2014 at 12:20:33 UTC, develop32 wrote:
>> If I turn on GC on the game I'm making, it takes 80ms every 
>> frame when memory usage is 800mb (shown on task manager). This 
>> was actually surprising, previously it was 6ms, good that I 
>> made my engine GC independent.
>
> You wouldn't happen to have a blog post someplace with 
> reflections on the steps you took to avoid the GC, by any 
> chance? Hint hint! I'm genuinely curious.
>
> Or is it merely a matter of manual allocation?

I don't have a blog...

It is mostly a matter of memory reuse (LOTS of it) and manual 
freeing when needed.


More information about the Digitalmars-d mailing list