Sign in to follow this  

query video mem???

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

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

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