Jump to content
  • Advertisement
Sign in to follow this  
yelz

How to get local video memory size on Windows XP Platform

This topic is 3386 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 know there is a DX10 function IDXGIAdapter::GetDesc() which can do this. But how can I get local video memory size by DX9 or any other windows platform sdk? I want to get local video memory size so that I can decide the default rendering configuration for my game.

Share this post


Link to post
Share on other sites
Advertisement
Hey

The "VideoMemory" sample form the DirectX SDK (located in "\Samples\C++\Misc\VideoMemory") could help you. It describe some ways to get the video memory size (Not only DirectX ways).

Share this post


Link to post
Share on other sites
Thank you so much, I can not find directory named "VideoMemory", but all samples for dxdiag is really useful!!

Share this post


Link to post
Share on other sites
Well, there's IDirect3DDevice9::GetAvailableTextureMem(). But it's not accurate due to alignment issues, and can include stuff like AGP video memory (which means system RAM used by the video card when it runs out of dedicated RAM).

Besides, the amount of VRAM is a pretty poor indicator of performance. You can get low-end cards with 512mb+ of memory that run an order of mangnitude slower than a high-end card with the same amount of memory.

Share this post


Link to post
Share on other sites
I tried Dxdiag and WMI functions on a laptop with 64M local video memory (reporting by "GPU-Z", a tool).

However, all these functions give me 512M!!! I think it includes the AGP memory size.

Share this post


Link to post
Share on other sites
I have just asked a friend in AMD about how on earth GPU-Z can work. She told me ATI and NVIDIA all give the BIOS potion which store the VRAM size to GPU-Z, so that GPU-Z can work.

So, I give up

Share this post


Link to post
Share on other sites
There really isn't a good way. But one method you might try is to create progressively larger hardware buffers until failure is reported.

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!