D for Game Development

rsw0x via Digitalmars-d digitalmars-d at puremagic.com
Sat Aug 1 22:03:32 PDT 2015


On Thursday, 30 July 2015 at 14:44:30 UTC, CraigDillabaugh wrote:
> On Thursday, 30 July 2015 at 14:18:21 UTC, Brandon Ragland 
> wrote:
>> On Thursday, 30 July 2015 at 13:44:41 UTC, deadalnix wrote:
>>> On Thursday, 30 July 2015 at 13:43:35 UTC, karabuta wrote:
>>>> D is really cool and makes a good candidate for developing a 
>>>> game. Are there any guys out there using D for indie games?
>>>>
>>>> For some time I have been seeing some cool game engine being 
>>>> developed in the DUB repo. What more is happening? I don't 
>>>> see derelictSDl and derelictSFML activities much. Whatup?
>>>
>>> GC's up.
>>
>> Minecraft, written in java which has a GC does perfectly fine.
>>
>> A GC is not a reason a game cannot be developed.
>>
>> Look at how many browser-based games there are, which use a GC 
>> somewhere from the interpreted Flash or JS.
>
> Minecraft is a dog though ... I always have to kill my kids 
> ongoing game
> if I ever want to do any real work on the same machine.

This is because of java

most allocations in D are on the stack, not the heap. Java has no 
concept of stack allocations outside of basic types.

Furthermore, more often than not allocations in D on the heap 
contain no pointers/references at all(>60% of all allocated 
memory in nearly every D program I tested that wasn't optimized 
to not use the GC contained no pointers/references.) and AFAIK 
the current GC makes no use of this fact.


More information about the Digitalmars-d mailing list