When starting our OCC-based application with an older graphics card (Nvidia Quadro FX 1700 with 500 MB GPU memory) a user received an error message that the application requested more GPU memory than is available.
When checking we realized that the main reason for the hight GPU memory consumption is that we activated 8x MSAA (anti-aliasing).
So, we had the idea to check the total amount of GPU memory and if it is low then we would limit MSAA to 4x or switch it off. A low total amount of memory indicates that it is an older graphics card.
OpenGl_Context provides a method for AvailableMemory() but unfortunately not for the total memory. MemoryInfo() returns a string with total memory for NVidia but not for ATI.
Here is a description of how to retrieve the total memory for ATI also:
Would it be good to add a function to OpenGL_Context returning the total gpu memory. Or do you have other thoughts on this matter?