Does Resource.unload free its memory?

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
white_waluigi
Goblin
Posts: 253
Joined: Sat Sep 28, 2013 3:46 pm
x 10

Does Resource.unload free its memory?

Post by white_waluigi »

Just a simple question. Does unload free memory? And if not, how can i properly unload the ressource? And how can I unload a Mesh, its Texture, its Skeleton, etc...?
I'm trying to implement a simple asset streamer.
white_waluigi
Goblin
Posts: 253
Joined: Sat Sep 28, 2013 3:46 pm
x 10

Re: Does Resource.unload free its memory?

Post by white_waluigi »

I thought this was a simple question. Or did I break any rules.
Just in case I wasn't clear:
I want to know, if the unload method of a ressource (mesh for example) frees the memory of that ressource, or if it just overwrites it. And if theres a way to recursively delete its textures, materials etc.. automaticly with it.
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 138

Re: Does Resource.unload free its memory?

Post by c6burns »

Ogre::ResourceManager::unload remarks: Unloaded resources are not removed, they simply free up their memory as much as they can and wait to be reloaded.
white_waluigi
Goblin
Posts: 253
Joined: Sat Sep 28, 2013 3:46 pm
x 10

Re: Does Resource.unload free its memory?

Post by white_waluigi »

K, thx.Have a nice weekend!
Post Reply