AutoPoolFast and flexible object pooling.
|
Features:
|
Introducing AutoPool
AutoPool is a fast and flexible object pooling solution that allows for the dynamic and automatic creation of object pools during runtime, several modes of operation and management, tidy organization in the object hierarchy, and even includes logging features to better optimize and evaluate pool usage. AutoPool is available as a stand-alone asset, but also comes included with other MobFarm packages. Why Object Pools? Two of the most time consuming and processing intensive operations for a game engine, are the creation and destruction of objects in the scene. Memory has to be allocated and unallocated, garbage collection routines run, and lots of other things happen behind the scenes. A few Instantiates and Destroys here and there probably won't hurt. But do that with a large number of bullets and hordes of enemies, and your framerate will suddenly come to a crawl. The solution? Recycle! By creating the objects to be used before hand and storing them in a "pool", you can avoid all that messy creating and deleting of objects when you need maximum performance. And when an object is to be destroyed, it instead goes back into the pool, waiting to be reused. Your game will run faster and smoother, and AutoPool does all the hard work for you. |