When to unload graphics object from main memory?

Posted by piotrek on Game Development See other posts from Game Development or by piotrek
Published on 2012-11-22T21:29:43Z Indexed on 2012/11/22 23:10 UTC
Read the original article Hit count: 179

I writing my resource mangaer, and I consider about how it can work for graphics objects (like textures, meshes).
I think about this :
I want to load texture (in pseudocode):

Texture t = resMgr.GetTex("image.png");

and GetTex make something like this:

  1. load texture from disk to main memory
  2. create texture object (load it to gpu memory)
  3. unload texture from main memory

I consider about 3 step, does game engines that you know unload meshes/textures after load them into gpu memory ?

© Game Development or respective owner

Related posts about architecture

Related posts about resource-management