HexiDave
03-03-2006 18:51:08
I probably missed it, but can I destroy TreeCollision data and have it removed from memory? I've got OgreNewt integrated with PLSM2 and it creates a TreeCollision from the terrain. That all works fine, but when I unload the tile I do this:
I've confirmed that it does indeed detach everything from the node, but I get no resources back. Each of the TreeCollisions take about 500k space on the harddrive, so I'd expect to see SOME memory returned, yet I don't get any back at all. It is my assumtion that the TreeCollision data is packed into the world and staying there. I keep trying to check the collision lines with the Debugger, but there's so much on screen that I get "out of video memory" errors.
Any suggestions?
tile->getSceneNode()->removeAndDestroyAllChildren();
I've confirmed that it does indeed detach everything from the node, but I get no resources back. Each of the TreeCollisions take about 500k space on the harddrive, so I'd expect to see SOME memory returned, yet I don't get any back at all. It is my assumtion that the TreeCollision data is packed into the world and staying there. I keep trying to check the collision lines with the Debugger, but there's so much on screen that I get "out of video memory" errors.
Any suggestions?