Jump to content
  • Advertisement
Sign in to follow this  
Sol Blue

ID3DXSprite::Flush()

This topic is 3925 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
Advertisement
No, calling Flush() submits the batches to the card, but it doesn't make it render them instantly. Items only get rendered once you call Present()

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!