Entity Component Architecture

Lurker via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 26 16:59:05 PDT 2016


On Friday, 26 August 2016 at 19:55:30 UTC, vladdeSV wrote:
> What I can conclude so far is my approach uses a lot of 
> processing power. I did a test where I generated 10000 entities 
> and it drained my CPU to 50%.
>
> All feedback is appreciated. Thank you for your input :)

hasComponent()/getComponent() should be O(1) and preferrably 
CTFEable.

You could turn Entity into a template, or store a bitmask of 
applied Components etc.


More information about the Digitalmars-d mailing list