Advertisement

Flickering with fast moving image

Started by December 06, 1999 05:40 PM
1 comment, last by dlanicek 25 years ago
probably a silly question but have you included the DDBLT_WAIT flag in all your calls to Blit and Flip?
That can cause this problem, esp if your video card is too fast.

------------------

I'm creating a Breakout clone and having a problem with the ball. When the ball moves fast, it appears to move to the current position before the previous position is fully erased causing a flickering or tracer effect.

I'm using DX with double buffering and calling Flip(). Any way to fix this?

Advertisement
have you used:

lpdd->WaitForVerticalBlank(DDWAITVB_BLOCKBEGIN,0);

...in your code, befor you flip your page?

This topic is closed to new replies.

Advertisement