apotapov / gdx-artemis

Fork of artemis entity-system (http://gamadu.com/artemis/) refactored to integrate with Libgdx (http://libgdx.badlogicgames.com/)
Other
53 stars 5 forks source link

Reduce the use of Pools class for pooling #19

Closed apotapov closed 10 years ago

apotapov commented 10 years ago

SystemEvents and ComponentManager use Pools to do pooling instead of instantiating their own purpose specific pools. Pools uses reflection in the obtain method, which is not as efficient as calling a constructor directly.

apotapov commented 10 years ago

Unfortunately there is no easy way to do that because of generic events and components that need instantiating.