Sign in to follow this  
Climax777

DirectDraw flipping...

Recommended Posts

Hey I've been starting again with DirectDraw, as I find it to be the fastest software rasterizer for pixel plotting. The problem is that when I lock the backbuffer when in fullscreen mode with flipping, even if I unlock it straight after the lock, the flip method makes artifacts on the screen. The whole screen flashes gray and black. I've tested this on different pc's and the same result in each appears. When I disable vsync This only happens when I call flip (regardless of the flags). If I use Blt or Bltfast there is no artifacts! Any ideas PLEASE?

Share this post


Link to post
Share on other sites
When you're using the flip method you are not working with ONE buffer, but with at least two.

Thus you have to make sure that you either draw over the whole screen or make sure that changes get also applied to the other buffers as well (which is difficult).

Flip is good if you redraw the whole screen. Otherwise copy is the better method to use.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this