Remove files from Parse3DScripts ()

Everything related to 3D programming
maslobojik
User
User
Posts: 36
Joined: Thu Jul 11, 2013 11:17 pm

Remove files from Parse3DScripts ()

Post by maslobojik »

How it is possible to remove files from Parse3DScripts() added by Add3DArchive()?
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 755
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: Remove files from Parse3DScripts ()

Post 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.
maslobojik
User
User
Posts: 36
Joined: Thu Jul 11, 2013 11:17 pm

Re: Remove files from Parse3DScripts ()

Post by maslobojik »

Ok. Thanks.
Post Reply