Sign in to follow this  

ID3DXSprite::Flush()

This topic is 3740 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, a quick question: when one calls the Flush() method of an ID3DXSprite object, do the batched draws get "presented"? IE, does the adapter try to draw them to the screen right then, or does it wait until the End() call? I have multiple flush calls in my code and wondering if it might be the source of some visual stuttering/jerkiness. TIA for any answer you can give.

Share this post


Link to post
Share on other sites
I guess the way I worded it was a bit confusing. I apologize. It was really late at night when I wrote that.

They are submitted to the card, but they won't appear instantly on the screen after that (this is why I made a reference to Present()). This was what I understood he was wondering about--that the Flush() doesn't suddenly make the images appear on the display once called, thus causing some jagged animation or whatnot because it would be "out of sync" with other stuff.

The only benefit to calling Flush is if you have an order in which you want to render things, without ID3DXSprite sorting it out of the order you want. Calling Flush repeatedly isn't something to be worried about in general, but calling it too many times /may/ begin to degrade performance some.

Share this post


Link to post
Share on other sites

This topic is 3740 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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