About GPU memory usage

it’s possible to get current GPU memory usage?

Right…

I will no longer be using gamedev,net… their site is full of viruses and bad ads… got one of those stupid pages that lock your browser and give popups saying you have a virus… I am saying this because I just did a search for XNA GPU memory usage code and well… just avoid any pages on their site on this search…

https://www.bing.com/search?q=xna+gpu+memory+usage+code&form=EDGENT&qs=PF&cvid=58b37f3e3fe04082aa47c1793e7471d3&pq=xna+gpu+memory+usage+code

There are other options, depending on your GPU, NVidia has PerfKit and such https://developer.nvidia.com/gameworks-tools-overview and you also have GPUZ https://www.techpowerup.com/gpuz/

Remember to utilise PerfMon too for other aspects…

A bit of curiosity took me here: https://software.intel.com/en-us/gpa

Who knew eh?

Hope this helps…

1 Like

Old topic, I know.

I’ve been wondering too the memory usage of my game and the only solution I’ve found is modifying MG and exposing the _resources field, then calculating the memory usage of each element. Not a trivial work.

However I’ve found an easy way to get a rough estimate of GPU memory used in Windows’ Task Manager if you don’t need that data to be accessed from the game: Just go to the Task Manager, Details tab, Dedicated GPU memory. If the dedicated GPU memory does not appear (usually won’t appear) right click on the column list and select it.