Changes between Initial Version and Version 1 of Ticket #1860, comment 14
- Timestamp:
- May 16, 2013, 6:47:29 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1860, comment 14
initial v1 1 Could it becomes a entityDB template ? 1 Could we go toward an "entityDB" template ? 2 Where you store data per entity_id and retrieve it by entity_id or can iterate over all the data stored there ? 3 2 4 It would lead to reusable tool across components, avoiding code duplication and ensure performance code. 3 5 4 Idea is given a struct/object of entity/component related data, the templateyou get a fast iterator and a fast finder (using two vector a filled and a sparse entity_id indexed as explained in my comment here http://trac.wildfiregames.com/ticket/1707 ) 6 Using two vector a filled and a sparse entity_id indexed as explained in my comment here (http://trac.wildfiregames.com/ticket/1707) 7 You get a fast iterator and a fast finder, and a single code base.