   Memory Management When Loading Meshes
  how to manage memory when loading a lot of diffrent mesh beside never loading the same texture twice   
  Your question is a bit vague...Firstly how are you loading the models? Using D3DX or your own structures? Secondly are you talking about GFX card memory management or CPU memory management?Mike.;  I'm not sure what you mean, though as well as not loading the same texture twice don't load the same mesh twice.   ;  A really simple way to do this is just create a texture manager class that loads and textures for you.It keeps a list of the file name of textures it has loaded, when a new texture is requested, the manager checks the new name against this list to see if its already loaded.  If so, just return a pointer to the already loaded resource.  You can use something else besides the file name to identify textures, its just real easy to use them.Same can be done with meshes, have a mesh manager that loads and manages meshes when you request them.Benny;  i know all that stuff and i did it all iam talking about CPU memory when i use CreateTextureFromFile it takes a lot of memory and when i use the extended command it uses less i know about the parametars and i tried suitng the texture as to be mapped on the mesh what i want is there is any other way to cut back on memory when loading the mesh   