Jump to content
  • Advertisement


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


Blitting from memory vs. from ddraw surface

This topic is 6202 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
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

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!