PDA

View Full Version : How to get the VRAM size.



Floyd
11-02-2000, 10:56 AM
hi,

How can I have the memory size of the installed video card?
..and does it have any info how to manage video memory when using opengl?

Phil

DFrey
11-02-2000, 11:43 AM
OpenGL does not have any particular way of telling you this. However, some OpenGL drivers have put such information in the GL_RENDERER or GL_VERSION string.

11-02-2000, 12:52 PM
Keep loading textures and test if they are
resident, until you run out?

mcraighead
11-02-2000, 01:17 PM
In theory, you should not have to know the size of video memory, since there are so many issues involved in video memory management that apps getting involved will just cause trouble.

I doubt you actually just want to know the size of video memory. What are you really trying to do?

[If you _really_ need to know the size of video memory, and nothing more (so, for example, you could print out how much there is somewhere), you can query with DirectDraw. However, I caution you against using this number for anything.]

- Matt