Game and GC

Leonardo leotada523 at gmail.com
Fri Apr 6 02:08:20 UTC 2018


On Friday, 23 February 2018 at 03:25:33 UTC, Norm wrote:
> On Friday, 23 February 2018 at 01:54:07 UTC, Leonardo wrote:
>> Hi, I'm new to language and games.
>> Many people say that GC is bad and can slow down your project 
>> in some moments.
>> What can happen if I create a game using D without worrying 
>> with memory management?
>> (using full GC)
>
> Have a look at https://github.com/gecko0307/atrium and see how 
> memory is handled there.
>
> TBH though every game I've written I have not worried about the 
> GC and just code it up. This works fine for 2d games, 
> platformers etc. If it ever does bite you can always schedule 
> the pauses (they are deterministic in the sense a collect will 
> occur on allocation) or do pretty much what every game does in 
> C++/C and allocate in pools.
>
> Cheers,
> Norm

Atrium game use Dlib, more specific this module to manually 
manage memory.
Appears to be very easy to use. Thanks.
https://github.com/gecko0307/dlib/wiki/dlib.core.memory


More information about the Digitalmars-d-learn mailing list