Mr-Bullfrog
11-26-2010, 08:33 AM
Howdy all!
I'm writing a tool for creating billboarded trees, and am running into an issue with memory usage when generating the materials.
I'm generating a new material every time the user confirms a property change, and assigning it to the selected objects of supported type. I'm noticing the memory usage goes up each time. This makes sense, since it's loading the textures each time. I've been trying to find a way to clear / remove a texture from memory but haven't had any luck.
I found freeSceneBitmaps() which sounded like what I wanted, but doesn't appear to help. Any suggestions?
Thanks!
I'm writing a tool for creating billboarded trees, and am running into an issue with memory usage when generating the materials.
I'm generating a new material every time the user confirms a property change, and assigning it to the selected objects of supported type. I'm noticing the memory usage goes up each time. This makes sense, since it's loading the textures each time. I've been trying to find a way to clear / remove a texture from memory but haven't had any luck.
I found freeSceneBitmaps() which sounded like what I wanted, but doesn't appear to help. Any suggestions?
Thanks!
