Genius-x / genius-x

An Entity Component System framework based on Cocos2d-x
http://genius-x.org
165 stars 69 forks source link

optimize the allocation of Components and Systems #2

Open ElvisQin opened 10 years ago

ElvisQin commented 10 years ago

All componments and systems should be store in memory together, which make memory access more effective. Store like Struct of Array, not Array of Struct

ElvisQin commented 10 years ago

http://t-machine.org/index.php/2014/03/08/data-structures-for-entity-systems-contiguous-memory/