This method of the DirectDraw Class retrieves the total available amount of display memory.
public int getAvailableTotalMem(int[] ddsCaps);
Returns the amount of memory.
ddsCaps | An array of the values found in the DDSCaps class. |
A display adapter card can make no distinction between two different memory types.
For example, the adapter might use the same portion of display memory to store z-buffers and textures. So, allocating one type of surface (for example, a z-buffer) can affect the amount of display memory available for another type of surface (for example, textures). Therefore, it is best to first allocate an application's fixed resources (such as front, back, and z-buffers) before determining how much memory is available for dynamic use, such as texture mapping.