Microsoft Windows CE 3.0  

Storing Bitmaps in Display Memory

This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Blitting from display memory to display memory is usually much more efficient than blitting from system memory to display memory. As a result, you should store as many of the sprites your application uses as possible in display memory.

Most display adapter hardware contains enough extra memory to store more than the primary surface and the back buffer. Call the IDirectDraw4::GetAvailableVidMemmethod to determine the amount of total and available memory for storing bitmaps in the display adapter's memory. After the call, the lpdwTotalparameter contains the total amount of display memory, minus the primary surface and any private caches held by driver, and lpdwFreecontains the amount of display memory currently free that can be allocated for a surface that matches the capabilities specified by the structure at lpDDSCaps2.

 Last updated on Tuesday, May 18, 2004

© 2004 Microsoft Corporation. All rights reserved.