Sign in to follow this  
ehmdjii

monitoring gpu ram

Recommended Posts

hello, is there a way or a tool to monitor the current size of the graphic card's RAM? using this, i could know when to dispose unneeded texture objects from the card. thanks!

Share this post


Link to post
Share on other sites
What API?

If you're using Direct3D, then the managed pool already does this for you. The only function availiable is IDirect3DDevice9::GetAvailiableTextureMem(), but that returns AGP memory too, and isn't usually too accurate.
The best bet is to only remove resources from VRAM when you get a D3DERR_OUTOFVIDEOMEMORY error, which is what D3D does.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this