Just curious what other devs have discovered or revealed in regards to cleaning up (nil’ing) out image sheets and image groups using Director or Storyboard.
Jonathan’s blog post mentions that to clear image sheets, you should first remove all of the objects (children images) that use it, then nil out the sheet itself. But because the sheet isn’t part of a display group (i.e. Director’s “localGroup”), will Director catch and clear the sheet after clearing its child objects? Perhaps it’s no problem at all, and Lua will simply garbage-collect the sheet after the scene is voided from the Lua “package.loaded” table?
What about image groups? These can be inserted into display groups, so maybe Director will nil those out as it recursively cleans a scene’s “localGroup”. But if they’re not inserted into that display group (doing so is totally optional), then I wonder what will happen to them.
I know this whole new imageSheet API is very new and only part of Daily Builds, but I’m curious what (if anything) others have learned about using these with Director and Storyboard, and how specifically we can ensure that all traces are cleaned and cleared from memory on scene exit/remove.
Brent Sorrentino
Ignis Design [import]uid: 9747 topic_id: 23139 reply_id: 323139[/import]
