how to fetch free video memory ?

Is there anyway to get the available video memory ?

Or a test to find out how ?


I seem to remember quite a few discussions about this topic on this board. I don’t rememeber how this was done. Try the search feature to see if you can find them.


Not with OpenGL and any solution would also be highly platform/OS dependent.

You might find this interesting:

On windows, the DX-based solution works nicely enough.
For linux, there seems to be not a simple way. nVIDIA has a nice enough /proc/ entry but I don’t know other cards. Maybe polling the whole buses would be an option but this is definetly overkill for me. I didn’t look at that.