I was trying to see how much memory my game uses by using this code...
This shows 515.995mb, right clicking my computer icon and going to properties shows that I have 768mb of ram. The task manager shows that I am using 18mb of Page file memory and about 50% of cpu usage.
I added some code that copies my model and randomly places it in the scene. I have added 3k copies of my model and the AvailMemory() didnt change, nor did the cpu usage. The Page file memeory increased to around 490mb and the number of tris rendered was around 1.2mill.
My questions are...
I am supposed to have an ATI radeon 1150 integrated with 256mb of hypermemory(Steals from ram)
1024mb of system ram(Could be wrong, 768mb may be correct)
Where is the game getting 515mb of video memory from?
Why is the paging file memory, the only memory affected when adding a bunch of models?(Rendered stuff is stored in VRam, loaded stuff not drawn is stored in system ram?)
thanks for any help, Im going to play with loading a bunch of textures, different sizes, then drawing a bunch of textures, just to see how the memory gets affected.
totalmem#=Float(TotalVidMem())/1000000 ;get memory in mb's availmem#=Float(AvailVidMem())/1000000 Text 600,80," Tot Vid: "+Totalmem+"mb, Text 600,100,"Avl Vid: "+availmem+"mb"
This shows 515.995mb, right clicking my computer icon and going to properties shows that I have 768mb of ram. The task manager shows that I am using 18mb of Page file memory and about 50% of cpu usage.
I added some code that copies my model and randomly places it in the scene. I have added 3k copies of my model and the AvailMemory() didnt change, nor did the cpu usage. The Page file memeory increased to around 490mb and the number of tris rendered was around 1.2mill.
My questions are...
I am supposed to have an ATI radeon 1150 integrated with 256mb of hypermemory(Steals from ram)
1024mb of system ram(Could be wrong, 768mb may be correct)
Where is the game getting 515mb of video memory from?
Why is the paging file memory, the only memory affected when adding a bunch of models?(Rendered stuff is stored in VRam, loaded stuff not drawn is stored in system ram?)
thanks for any help, Im going to play with loading a bunch of textures, different sizes, then drawing a bunch of textures, just to see how the memory gets affected.