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: 269
        
architecture
|resource-management
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:
- load texture from disk to main memory
- create texture object (load it to gpu memory)
- 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