Jump to content
  • Advertisement


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


DirectDraw Surface Memory Types

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

Recently I've been having trouble with getting a game that displays fine on my computer, to display correctly on other computers. I think that I found the cause in my choice of what type of memory I use to store the DirectDraw surface on. My problem is that the game only works on the other computer if I store the images in system memory which of course is pretty slow. If I store them in VRAM everything displays fine and runs fast on my computer, but on the other computer the sprites are distorted. I guess what I want to ask is if anyone knows a remedy for this problem or a way around it like detecting the capabilites of the video card at runtime and then choosing the appropriate memory type. I'm basing my code off of the libraries in Tricks of the Windows Game Programming Gurus for those of you who are familiar with it. I'm running a 98 Laptop and I've been testing on desktops running 98, XP, ME, and 2000 if that helps any. Here's the line of code in question. ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN|DDSCAPS_VIDEOMEMORY; Thanks for taking a look. [edited by - NolanJ on November 8, 2002 10:00:01 AM]

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!