   Direct3D Excessive memory usage on init.
  Hi.I recently started learning Direct3D, and got some questions..I'm running a basic Direct3D app, displaying a single triangle, rotating a cube etc..When i open the program it's at 7.8 - 8.2mb memory.1) I minimize it drops to 500k2) I re-open and it raises to 700kThe highest i got it to after a minimize was 1.2mb when switching lights, but only in debug mode.Running the .exe file normally i can't get it above 800k after a minimize.Why does minimizing the program permanently reduce ram usage?A drop from 8mb to 700k is quite drastic, are any optimization functions run upon minimization? What could be done to reduce it to ~700 upon start?Thanks.[Edited by - marius1930 on September 13, 2007 6:42:20 PM]
  Can't answer your question, but as a tip: Give you're thread a title to get more responses. You can edit it by editing you're first post.   ;Quote:Original post by cemediasCan't answer your question, but as a tip: Give you're thread a title to get more responses. You can edit it by editing you're first post.Thanks, i must have forgotten ;)   ;  This is typical Windows behavior.  It is the same as executingSetProcessWorkingSetSize(GetCurrentProcess(), -1, -1);It basically, AFAIK, trims the heap.Edit:  And it should be mentioned that this is mostly cosmetic as far as RAM usage is concerned.  Your app will still consume the same amount of RAM.   ;  But is the app consuming the now listed 4mb or the previously listed ~8mb?Or is it in fact running at ~700k the whole time?I gotta say the 'mostly cosmetics' threw me off, is it using the amount of ram listed in the task manager, or is it simply incorrect?   ;  The numbers you see in TaskMan are not the actual usage figures for your application.  This merely represents what is reserved for your application.Two keywords here:  reserve, commit.So the numbers are correct, but not consistant with your interpretation.   ;  Thanks, that cleared things up.   