Jump to content

  • Log In with Google      Sign In   
  • Create Account


glClear with glFlush


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Seabolt   Members   -  Reputation: 610

Like
0Likes
Like

Posted 10 April 2011 - 11:33 PM

I recently started playing around with OpenGL because I got a job where we use OpenGL almost exclusively. I have a DirectX background and I love rendering, so I figured I might as well see how OpenGL works too. I have set up a little test app where I'm just trying to clear the screen. Now I can set up my HDC and HGLRC with no problems, and SwapBuffers no problem with no errors being thrown, but it when I call clear, the game slows down immensely, to the point where it takes 10 - 45 seconds for a close to register. I fixed this issue with a glFlush() call, but I read that glFlush() can cause a number of issues and shouldn't be used really. My question is then, why did glFlush make glClear work?
Perception is when one imagination clashes with another

Sponsor:

#2 haegarr   Crossbones+   -  Reputation: 3723

Like
1Likes
Like

Posted 11 April 2011 - 01:41 AM

Never heard that glFlush "can cause a number of issues". What do you mean?

BTW: Please stop to ask the same question in multiple forums at the same time. I've given a possible explanation in one of your other threads already.

#3 Seabolt   Members   -  Reputation: 610

Like
0Likes
Like

Posted 11 April 2011 - 07:45 PM

I've been reading that glFlush can cause a lot of issues especially in the area of multi-threading and cause huge slowdowns on some cards, so I'm trying to avoid it.

And yes you have and I thank you for responding to both. I'm only trying to get my question out to as many people as possible because even though you look through both forums, doesn't mean that someone else who has an idea does :)

Though I responded on the other post and we can continue there if you will.


Perception is when one imagination clashes with another




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS