The MASM Forum Archive 2004 to 2012

General Forums => The Laboratory => Topic started by: Astro on March 02, 2010, 11:52:17 PM

Title: Get available video memory
Post by: Astro on March 02, 2010, 11:52:17 PM
Hi,

I've got a 7 sreies GeForce card, and I'm trying to get the video memory available on it (total, free and used).

I downloaded the latest DX SDK and tried a sample in there that apparently provides texture memory free, but on my card it reports a video memory size of 2288 Mb free with FSX running, and 2293 Mb free when it is not running. I know my card only has 512 Mb of RAM, and the memory usage value seemed rather low.

Does anyone know of any way to interrogate the card or the drivers? I'm running standard nVidia drivers, V169.25.

I've not dug into the SDK yet, but the sample doesn't make it look too promising. :(

Best regards,
Robin.
Title: Re: Get available video memory
Post by: Farabi on March 04, 2010, 01:45:06 AM
I cant see any other option except you filled the video memory until it return memory insufficient return value.
Title: Re: Get available video memory
Post by: GregL on March 04, 2010, 04:20:30 AM
I think you would need to use WMI.
Title: Re: Get available video memory
Post by: cmpxchg on March 06, 2010, 06:26:48 AM
Wrong forum my friend.
"This is the place to post assembler algorithms "
Title: Re: Get available video memory
Post by: donkey on March 07, 2010, 05:01:02 PM
Quote from: Greg Lyon on March 04, 2010, 04:20:30 AM
I think you would need to use WMI.


Yup, I agree with Greg, the Win32_VideoController class would be a good place to start:

http://msdn.microsoft.com/en-us/library/aa394512%28VS.85%29.aspx