Skip to content
Discussion options

You must be logged in to vote

Great question! There are two good reasons to use bundles + smaller components over a single large component:

  1. Systems automatically detect and report the data they require access to at the component (well, archetype / resource) level. Compatible systems can automatically run in parallel. By sticking your data into large components, systems that want to operate on your object must wait on each other, even if they're accessing different fields.
  2. By splitting your data into small components, you can make systems that apply across object types. Rather than having a gravity system for every type of object, you can search for the AffectedByGravity marker component + the Transform component and …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@haasal
Comment options

@haasal
Comment options

@alice-i-cecile
Comment options

Answer selected by haasal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
A-ECS Entities, components, systems, and events
2 participants