Sign in to follow this  
yelz

How to get local video memory size on Windows XP Platform

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
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

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