Jump to content
  • Advertisement
Sign in to follow this  
Susan-gt

query video mem???

This topic is 4901 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

Advertisement
I never used it, but there is IDirect3DDevice9::GetAvailableTextureMem() that returns an estimate of the available texture memory. But as stated in the SDK, this function cannot be used to know the exact amount of memory left since all HW have different alignment, internal format and overhead in their resources.

Share this post


Link to post
Share on other sites
This may not be exactly what you are looking for, but you can use hardware queries to determine a lot of current info about the graphics card. Check out the queries page at:

DirectX Graphics -> Programming Guide -> Advanced Topics -> Queries

Specifically, create a RESOURCEMANAGER query, and then check your D3DDEVINFO_RESOURCEMANAGER structure. There, you can find stats pertaining to video memory usage. However, the RESOURCEMANAGER query is only enabled in the debug runtime.

There are lots of other really useful queries, too. I believe PIX uses a lot of them to get some of it's information.

Share this post


Link to post
Share on other sites
the direct draw device caps include some informations about the video memory:

dwVidMemTotal, dwVidMemFree, etc.
(take a look at them in the directx caps viewer).

The results are great for debugging, but it's no longer recommended to use dd in release builds. You also have to link the ddraw.lib if you want to use this function.

----
dma

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!