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
The static fields in ComponentType are a recipe for disaster in testing. When creating a multitude of different components and tests executed later, with fewer different components, use _forComponentsOfEntity in ComponentManager then they will run into out of bounds exceptions when accessing components (as is already happening in coverage where 4b8a029 doesn't help because of parallel execution of tests).
Maybe make the indexBit-creation/management of the component type part of the world. That should also make if possible to have multiple worlds if that's needed at some point.
The text was updated successfully, but these errors were encountered:
The static fields in ComponentType are a recipe for disaster in testing. When creating a multitude of different components and tests executed later, with fewer different components, use
_forComponentsOfEntity
inComponentManager
then they will run into out of bounds exceptions when accessing components (as is already happening in coverage where 4b8a029 doesn't help because of parallel execution of tests).Maybe make the indexBit-creation/management of the component type part of the world. That should also make if possible to have multiple worlds if that's needed at some point.
The text was updated successfully, but these errors were encountered: