Citrus-Engine icon indicating copy to clipboard operation
Citrus-Engine copied to clipboard

selectively destroying an object from the pooling system

Open gsynuh opened this issue 11 years ago • 1 comments

or just reducing the pool size is not easily doable as of now. It should be clearly available for better memory management (instead of having to clear everything and recreate a pool mid state for example)

gsynuh avatar Jan 13 '14 19:01 gsynuh

The current implementation of PoolObject doesn't even make use of the main feature/purpose of a DoublyLinkedList. It is even weird as it extends DoublyLinkedList and contains a DoublyLinkedList as a property.

A cleaner implementation :

two linked lists (http://jacksondunstan.com/articles/1288) and get rid of the "data" and "node" arguments the user has to deal with. And that would help just destroying single pool or active elements. since the current implementation is too dirty.

gsynuh avatar Nov 17 '16 22:11 gsynuh