• Advertisement

Archived

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

Blitting from memory vs. from ddraw surface

This topic is 6055 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement