Jump to content
  • Advertisement

Archived

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

CptanPanic

Do you need to relock surface in system memory?

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

I understand the need to lock a surface that is in video memory, but after I lock and unlock a SMEM surface once, can I just keep writing to the *pBits. Thanks, Brian

Share this post


Link to post
Share on other sites
Advertisement
Microsoft says not to do that. However, it has been known to work. Your mileage may vary. It''s probably not a good idea, though.

Share this post


Link to post
Share on other sites
It''ll explode on some combinations of CPUs and chipsets. Please lock and unlock as you need it, don''t carry the pointer around.

thanks

Development Lead
Windows Graphics & Gaming Technology

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!