This method of the DirectDraw Class retrieves the amount of display memory currently free.
public int getFreeMem(int [] ddsCaps);
Returns the amount of free display memory.
ddsCaps | An array of the values found in the DDSCaps class. |
This method provides only a snapshot of the current display-memory state. The amount of free display memory is subject to change as surfaces are created and released. Therefore, you should use the free memory value only as an approximation.