The graphics card I have has 256Mb of video memory onboard.
The following lines of code prints the string “Avail Mem: 379129088”.
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment ();
GraphicsDevice default_device = ge.getDefaultScreenDevice ();
System.out.println ("Avail Mem: "+default_device.getAvailableAcceleratedMemory ());
Reading up on the javadocs, this value is the “number of bytes available in accelerated memory on this device”.
So, am I right to assume my OS uses some of this 256Mb for its own purposes and then allocates some system RAM for the card’s purposes?
Anyone know how? I’m using JOGL, but tried the above to try and determine how much I have to play around with on the card itself.
- Pete