Skip to content

selectively destroying an object from the pooling system #187

@gsynuh

Description

@gsynuh
Member

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)

Activity

gsynuh

gsynuh commented on Nov 17, 2016

@gsynuh
MemberAuthor

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.

self-assigned this
on Nov 17, 2016
added this to the V3.2.0 milestone on Nov 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @gsynuh

      Issue actions

        selectively destroying an object from the pooling system · Issue #187 · DaVikingCode/Citrus-Engine