Skip to content

Conversation

@ragoune
Copy link
Contributor

@ragoune ragoune commented Feb 24, 2025

Reducing the map access to EntityRecords, we can improve the performances up to ~10% the creation of entities with CreateEntityWithComponentsN.

We can also reduce the number of calls to getStorage when calling addComponentsToArchetype, improving around ~10% again.

around 10% faster after refactoring and removing duplicated map access to entities records
around 10% faster after refactoring and removing duplicated calls to getStorage
@ragoune ragoune merged commit 3a15543 into master Feb 24, 2025
4 checks passed
@ragoune ragoune deleted the feat/optimize_entities_creation branch February 24, 2025 11:05
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