Hi,
I'm running into a situation in my application where I have to clear a
bunch of objects and redraw from scratch on every frame. What's the
best way to clear my objects? Right now I'm doing this -
for (var j:uint = 0; j < myObjectContainer.children.length; j++) {
myObjectContainer.removeChild(myObjectContainer.children[j]);
}
This doesn't seem very elegant to me. Are there any good techniques -
in general - for away3d scenes with lots of "dynamic" content (with
objects that must be created and deleted constantly)...? Or, maybe I
should be asking how costly object creation is to the rendering
pipeline.. I want to make sure I know where my bottlenecks are.
Thanks very much - the questions just keep coming but you guys have
been very helpful to me already.
Matt