That can cause this problem, esp if your video card is too fast.
------------------
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
------------------
I'm using DX with double buffering and calling Flip(). Any way to fix this?
lpdd->WaitForVerticalBlank(DDWAITVB_BLOCKBEGIN,0);
...in your code, befor you flip your page?