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
We could either sort the array again after every removal, which would beO(nlogn) or instantiate the systems array as sorted, which makes removals O(n).
I'd be inclined to choose the second option.
Will try to reproduce this reliable in a test case and fix it.
Engine.class line 80:
systems = new Array<EntitySystem>(false, 16);
In the comments of the Array it says:
thus, after removing a system it may or may not change order. I think in the Engine.removeSystem(EntitySystem system) a re-sorting would be in order.
The text was updated successfully, but these errors were encountered: