Sign in to follow this  
psykr

Effects of SwapChain::Present()

Recommended Posts

I'm using IDirect3DSwapChain9::Present() over the Present() method provided by IDirect3DDevice9::Present() because there's a flag that allows SwapChain::Present() to return early, if the video card is still doing processing. My question is, if it does return early, has my request to flip buffers been acknowledged? Do I have to keep calling Present() until it works? If I called SwapChain::Present, and it returned early, would a subsequent call to DrawPrimitive() be rendered to the current frame (the one Present was supposed to present), or the next frame?

Share this post


Link to post
Share on other sites
The normal Present can also return early. Most drivers allow the queueing of commands (usually 3-4 frames). You might be making things harder for yourself than they need to be.

To answer your question, probably the next frame, but I'm not sure.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this