nautilus at February 21st, 2005 08:49 — #1
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?
anubis at February 21st, 2005 09:43 — #2
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.
anubis at February 21st, 2005 09:47 — #3
this is what msdn had to say about it :
nautilus at February 21st, 2005 10:02 — #4
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...