Bitblt and vertikal sync
Posted on 2001-06-27
I have written a program that displays very large bitmaps (>100Mbyte). I'm using standaard software like StretchDIBits.
The problem is the following: When i pan through the image, the display of the image gets cracked. The reason is that the function is still drawing the bits in the window, when the monitor already updates the displayed image, and there what i'm seeing is half of the new image and half of the old image.
In 3D graphics we use double buffering for this problem. My questions are:
- Is there something like double buffering in MFC?
- How do i know when there is vertical retrace?