Sign in to follow this  

how to calculate the memory used in the video card?

This topic is 4543 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Add up the size of your textures and vertex buffers, that should give you a rough idea. Because of the strange way VRAM is stored it is difficult to get a correct answer to how much is actually being used.

Share this post


Link to post
Share on other sites
There are multiple ways depending on what API/hardware you use. If you're using DirectX, then you can use a program called PIX (which I think comes with the SDK, but you can download it too) with any DX-supported hardware, which should tell you about mem usage among many other things. If you're using OpenGL, then I can't help you, but I'm certain that utilities exist. Both ATI and NVIDIA also have utilities available for their specific cards.

Share this post


Link to post
Share on other sites
As Holy Fuzz said, PIX comes with the DX SDK.

The available video card memory is always a fuzzy information.

Using DX you can use IDirect3DDevice9::GetAvailableTextureMem (OGL should have an equivalent one) to have an idea of what memory is available. The return value is a gross estimate, and thus you can't use it to have precise informations.

HTH,

Share this post


Link to post
Share on other sites

This topic is 4543 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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