So, I am using D3D in a windowed application.
I enabled D3D with the following options:
windowed: true;
backbufferformat: D3DFMT_X8R8G8B8;
presentinterval: D3DPRESENT_INTERVAL_ONE;
swapeffect: DISCARD
Each time OnPaint is called, I render the image to the buffer and present it in the foreground.
As far as I know (and so MSDN says), as soon as I install D3DPRESENT_INTERVAL_ONE, vsync will work.
But in this case, the image branches when dragged horizontally.
(It seems that the image shows a line, the image below the line is displayed on the monitor, and the above part).
Some sites say that D3DPRESENT_INTERVAL_ONE will not work in windowed applications.
How to enable vsync?
p.s. , D3D vsync , , , , . , .