Archived

This topic is now archived and is closed to further replies.

TheLameDuck

Vertical blank?

Recommended Posts

TheLameDuck    122
I''m using D3D to draw a scene, and i''m getting that split picture effect, and i think it''s because its drawing a new frame while the monitor is still outputting. how do you tell D3D to wait for a vertical blank? thanks for your help, i''m just too used to 2D.

Share this post


Link to post
Share on other sites
Dave Hunt    4872
Assuming you''re using DX9 in fullscreen or windowed mode, set the PresentationInterval member of the D3DPRESENT_PARAMTERS structure to D3DPRESENT_INVERVAL_ONE.

If it''s DX8.x and fullscreen, the member is FullScreen_PresentationInterval and the value is the same.

If it''s DX8.x and windowed, the member must be set to D3DPRESENT_INTERVAL_DEFAULT. I think you can specify a SwapEffect value of D3DSWAPEFFECT_COPY_VSYNC to get the desired effect.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Are you sure you''re using double buffering and that you are rendering to the back buffer.

If not you could try playing with the SwapEffect that is set in
the D3DPRESENT_PARAMETERS that is used to initialize the device.

SwapEffect = D3DSWAPEFFECT_DISCARD;
should cause it to only flip the buffer on a retrace.


Share this post


Link to post
Share on other sites