benreid24 / BLIB

Small organized collection of common code I have accumulated over the years that has amassed into a proper 2d game engine
1 stars 0 forks source link

Implement paged ECS component storage for stable addresses #163

Closed benreid24 closed 11 months ago

benreid24 commented 1 year ago

Creating fixed size pages for components allows growable pools while still providing address stability. Cache performance is not hurt too badly on average.

Consider leveraging skip fields to optimize direct component iteration. Also consider adding the skip field approach to ObjectPool.