Jump to content
  • Advertisement


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


Difference between glFlush and glFinish()?

This topic is 5792 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

I was wondering what the difference between glFlush() and glFinish() is. I tried the documentation, but couldn''t grasp the difference. What is it and when do you use one or the other?

Share this post

Link to post
Share on other sites
From the MSDN docs that accompany VS.NET Pro (and probably can be found online):

The glFinish function does not return until the effects of all previously called OpenGL functions are complete.

The glFlush function can return at any time. It does not wait until the execution of all previously issued OpenGL functions is complete.

That''s the dif. Both functions force execution of all previous graphics calls, but one delays execution and the other doesn''t (i.e. glFinish is a blocking call).


//email me.//zealouselixir software.//msdn.//n00biez.//
miscellaneous links

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!