My display keeps tearring...

Started by
1 comment, last by Mike 24 years, 8 months ago
Use double buffering. Read the official DX help, there is a double buffering example there.
Advertisement
For some odd reason my display keeps tearring. I believe that the problem comes from DirectX. I do not believe that I am setting up DirectX correctly. If you would like to see the problem you can download the program from:
http://mike010.hypermart.net/demo.zip
If you think that you can help email me at Mike010@netZero.net and I will send you the source code.
I didn't have a chance to review the code..
But check your buffering.

if you have your own blit routines...like locking, blitting, and unlocking video memory then try erasing your background before blitting the new one.

You could always do dirty rects and make sure you memmove your screen and only draw the changes. But if using color 0 routines on the dirty sections then erase those sections first then draw over.

Sorry I don't have a real answer..its been a while since I did 2d stuff.

-DeadLine

This topic is closed to new replies.

Advertisement