Page 1 of 1

Remove files from Parse3DScripts ()

Posted: Mon Jun 02, 2014 12:07 am
by maslobojik
How it is possible to remove files from Parse3DScripts() added by Add3DArchive()?

Re: Remove files from Parse3DScripts ()

Posted: Mon Jun 02, 2014 1:01 am
by Samuel
As far as I know you can't and I'm not sure if one would need to anyways.

From what I understand parsing shouldn't load the heavier resources into memory.
Only when we use GetScriptMaterial() the materials should be loaded into memory and then FreeMaterial() should free up those materials.
The same rules should apply to particle and compositor scripts too.
http://www.ogre3d.org/docs/manual/manual_14.html wrote: It’s important to realize that materials are not loaded completely by this parsing process: only the definition is loaded, no textures or other resources are loaded. This is because it is common to have a large library of materials, but only use a relatively small subset of them in any one scene. To load every material completely in every script would therefore cause unnecessary memory overhead.

Re: Remove files from Parse3DScripts ()

Posted: Mon Jun 02, 2014 11:02 am
by maslobojik
Ok. Thanks.