views:

109

answers:

0

Possible Duplicate:
Report Direct3D memory usage

I want to know how much video memory a graphic card has. I want to preload textures based on that information. There are many cards which don't have own memory (or very little) and share systems RAM. Those cards sometimes return gigantic numbers (>1GB) but that is misleading because access to shared mem is so slow that I'd like to avoid using it.

How do I determine the amount of video memory a graphic card has distinguishing real and shared memory? My application uses DirectX 9.