Video RAM

D619d95cddb1edb227f51ef539d15cdc
0
Nautilus 103 Feb 21, 2005 at 13:49

Hi all,
do you know a way to retrieve the amount of RAM on board the Video Card?

Through Windows I can tell my card comes with 64 MB (old card).
But how can my program retrieve this number?

Regards :)

3 Replies

Please log in or register to post a reply.

F7a4a748ecf664f189bb704a660b3573
0
anubis 101 Feb 21, 2005 at 14:43

under opengl you can probably parse the information from the glGetString function, allthough i’m not entirely sure if that directly tells you something about the video mem but it will allow you to find out about the memory size because a certain model usually only comes in two configurations. i’m sure there is a way to query card specs in directx.

F7a4a748ecf664f189bb704a660b3573
0
anubis 101 Feb 21, 2005 at 14:47
D619d95cddb1edb227f51ef539d15cdc
0
Nautilus 103 Feb 21, 2005 at 15:02

Thanks a lot Anubis :)
That msdn article is ok to retrieve the RAM left for allocation. Will help.

What about, instead, retrieving the total amount present on the card?
I need to know this amount to judge if the card is suited or not for my application and take actions based on it.
I guess I could just invoke the “GetAvailableTextureMem” at the very beginning.
But if there’s another method -not bound to DirectX-, I’d like to use that.

Do you know if Windows stores that value somewhere in the registry?
I searched mine, but haven’t found anything.
Now I’m trying with google. No luck so far though…

Best regards.