You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it meaningful to have dynamically created archetypes?
Currently isotope components work like "dynamic columns" for an entity, but they waste a lot of memory for entities that don't use all isotope components if they use storage::Vec for storage.
If we allow isotope archetypes, entities that use a particular isotope component can be abstracted out.
The problem with this approach is, in that case, we have multiple archetypes with the same combination of components anyway. In that case, why not just store them together?
Therefore, it seems isotope archetypes don't really make sense, since the root problem of isotope components is the need for a dynamic number of components without creating new entities.
This discussion was converted from issue #10 on September 03, 2022 07:13.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it meaningful to have dynamically created archetypes?
Currently isotope components work like "dynamic columns" for an entity, but they waste a lot of memory for entities that don't use all isotope components if they use
storage::Vec
for storage.If we allow isotope archetypes, entities that use a particular isotope component can be abstracted out.
The problem with this approach is, in that case, we have multiple archetypes with the same combination of components anyway. In that case, why not just store them together?
Therefore, it seems isotope archetypes don't really make sense, since the root problem of isotope components is the need for a dynamic number of components without creating new entities.
Leaving this issue open for future reference.
Beta Was this translation helpful? Give feedback.
All reactions