I'm using Away3D stats window for RAM monitoring.
And I'm using FlashDevelop as development environment.

On 7 янв, 04:10, Stephen Hopkins <[email protected]> wrote:
> What are you using to look at the ram? I have a similar kind of
> application for viewing the models and there does not seem to be any
> major leaks if any when clicking many items in my list in succession.
> Yes, the memory does go up each time I click a new one, But when I
> click the garbage collect button in the flex profiler, the memory
> usage goes back down to the original before I clicked on other models.
>
> On Jan 6, 2:41 pm, dimanjy <[email protected]> wrote:
>
>
>
> > Yes, Peter, I already tried it but with no effect :(
> > I did
>
> > removeChild(view);
> > view = null;
>
> > and then reinit the view with
>
> > view = new View3D();
> > addChild(view);
>
> > but the memory is still rising :(
>
> > On 7 янв, 01:25, Peter Kapelyan <[email protected]> wrote:
>
> > > Hi! (Quick?) easy fix is to remove the view, and add the view and models 
> > > etc
> > > again. I think there was a post where someone found the leak, but I don't
> > > think it's been implemented yet.
> > > -Pete
>
> > > On Wed, Jan 6, 2010 at 5:19 PM, dimanjy <[email protected]> wrote:
> > > > Hello guys and Happy New Year! :)
> > > > Let's come back to work :)
>
> > > > I have some problems with RAM when using Loader3D with Collada parser.
> > > > I'm creating an app with collection of 3D models. When user select
> > > > some model from ListBox then new Collada model loaded and parsed.
> > > > Something like this:
>
> > > > class {
>
> > > >  var loader3D:Loader = new Loader3D();
> > > >  var model:ObjectContainer3D;
>
> > > >  function init():void{
> > > >      loader3D.addOnSuccess(onModelParsed);
> > > >  }
>
> > > >  function onListItemSelected():void {
> > > >      view.scene.removeChild(model);
> > > >      model = null;
> > > >      loader3D.parser = null;
> > > >      loader3D.loadTextures(colladaFiles[selected_item + '.DAE'], new
> > > > Collada( { materials: materialsLibrary }));
> > > >  }
>
> > > >  function onModelParsed(e):void{
> > > >      model = e.target.handle as ObjectContainer3D;
> > > >      view.scene.addChild(model);
> > > >  }
>
> > > > }
>
> > > > Every time user select an item RAM grows +2Mb. I'm afraid to imagine
> > > > if user wish to look at 100 models or more :)
> > > > Maybe someone had the same problem and already solve it?
>
> > > --
> > > ___________________
>
> > > Actionscript 3.0 Flash 3D Graphics Engine
>
> > > HTTP://AWAY3D.COM

Reply via email to