Archived

This topic is now archived and is closed to further replies.

Gilzu

Blitting from memory vs. from ddraw surface

Recommended Posts

just wondering, whats the difference (especially speed) when you blit from memory bitmap against ddraw surface? and another thing that bugs me, when you load a bitmap (LoadImage) where exactly in the memory does it get stored? (and how much space do i have) never tested it before, maybe u experienced guys know Gil

Share this post


Link to post
Share on other sites
Guest Anonymous Poster

Blitting from a surface in system memory is generally slower than blitting from a surface in video memory.

When you load a bitmap using LoadImage() you are using a Win32 API call. Win32 will automatically allocate memory for the bitmap, and load the bitmap into that allocated memory. It most likely loads the bitmap into system memory. This is why (if you want faster blits) you should copy the bitmap into a direct draw surface in video memory.

Share this post


Link to post
Share on other sites