ios - List all living nodes / actions / animations in a Cocos2D app -
is possible list living nodes (actions , animations of interest me too) in cocos2d app?
currently fighting memory issues in app , though profiler helps try other approaches too.
you can recursively list child nodes. start node scene. actions, know can number of actions given node, don't know if possible list actions in way.
also, may use cctexturecache check if of unused textures removed memory. has no public methods access data, can see loaded textures names in debugger or add dumping method.
to prevent memory leak scheduling action on node, want remove parent, send cleanup message of nodes before removing parent. or if instance of class, make [self cleanup]; in it's onexit() method.
i don't think, can receive list of created nodes. sounds garbage collection in .net =) in objective-c must watch leaked objects yourself.
Comments
Post a Comment