xember icon indicating copy to clipboard operation
xember copied to clipboard

Need to be able to release collections of nodes that are no longer required.

Open alecmce opened this issue 13 years ago • 1 comments

We reference collections of nodes in a system using

System.onRegister { nodes = game.getNodes(NodeClass); }

we should probably do the inverse in onRemove, or at least offer the functionality:

System.onRemove { game.releaseNodes(nodes); }

This functionality would probably actually sit in NodesManager.release

alecmce avatar Oct 16 '11 10:10 alecmce

That sounds like a good idea. You'll want reference counting on the collections in case multiple systems use the same collection.

richardlord avatar Oct 19 '11 09:10 richardlord