Jump to content
  • Advertisement


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


Renderstates for Bit()

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

All I want to do is stretch a portion of a DirectDraw surface onto a window using MFC, however it does it really slowly - but I don''t think it''s due to MFC. I assume that it''s because some of the default render states isn''t optimal for just 2D scaling. Is this a correct assumption? I''m using DX 7.0a. Does the render states have to be set to something in particular to get it to go faster? I''m not using color keying or anything like that, just want to do plain scaling with a DirectDraw surface. My surface which represents the world is kinda large though (1000x500) and I have a viewport that scrolls through it.

Share this post

Link to post
Share on other sites

Try to use the Blit fUnctions of the DirectDraw Surfaces, they are very fast espacially when streching because they use the graphicscard Hardware todo this ( i asume that one of the surfaces lies in Video Memory).
As far as i know, the Render states don''t affect 2D Operations at all, only Operations with DrawPrimitive and so on.


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!