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
I have a question.
Since I am also trying to implement ECS myself, I would like to offer the following suggestions. I have attempted to analyze the code by observing it to see if there are any unreasonable aspects, but my brain capacity is not sufficient, so I have tried to directly ask questions. Please forgive my being unreasonable.
Is there a mechanism like (entities) that creates an index when the component changes and the entity changes, so that the system can directly traverse (omitting the step of filtering before each traversal) this dynamically conforming and rule-compliant collection every time?
Also, when querying, use the mask (indexer, there are many optimization methods for this mask-based filtering approach) method to perform batch filtering. When obtaining components, you can optionally directly use the digital index (I found that the efficiency difference between digital indexing and string indexing is too large).
Also, for example, when obtaining the value of a component, store the data of the entity in a continuous array. For instance, query the index of the component in the ready stage of the system, and directly obtain the data of the component through the index in the process stage, etc.
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
Uh oh!
There was an error while loading. Please reload this page.
[5.0.0-rc4] - 2025-10-14 - Query Performance Optimization
🚀 Performance Improvements
Massive Query Cache Key Optimization
85% faster cache key generation leading to dramatic query performance improvements:
Technical Details:
str(comp)fallbacks with directget_instance_id()callsImpact:
See performance test results in
reports/perf/for detailed metrics.Full Changelog: v5.0.0-rc3...v5.0.0-rc4
This discussion was created from the release GECS 5.0.0-rc4 - Query Performance Optimization.
All reactions