Skip to content

Conversation

@ragoune
Copy link
Contributor

@ragoune ragoune commented Mar 17, 2025

  • Improve the AddComponentsN performances, reusing the entityRecord instead of fetching it multiple times.
  • Fix the AddComponentsN: when called multiple times on one entity, we correctly set the Archetype and move all the components to it.

ragoune added 2 commits March 17, 2025 17:05
Re use the entityRecord instead of fetching it in all sub functions
AddComponentsN were not meant to be used multiple time on the same
entity. But in the Arche benchmark it is required to add 10 components
(AddComponents8 and AddComponents3). This resulted to the entity having
only 3 components and being attache to the archetype of those 3
components. The 8 other components were lost in memory, in their
storage.
@ragoune ragoune merged commit 1cb15ef into master Mar 17, 2025
3 of 4 checks passed
@ragoune ragoune deleted the feat/add-performances branch March 17, 2025 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants