If I CGLFlushDrawable()...

w_reade
Unregistered
 
Post: #1
...is there any reason to glFlush() as well? I don't seem to need to, and by the name you'd think I wouldn't have to, but I've just been looking at some code that does both (with a glFinish() to boot), and I was wondering if there was any reason to.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
You should neither glFlush() nor glFinish() if you have a double-buffered context. The glFlush() will be a relatively cheap no-op (since CGLFlushDrawable() will call that for you); the glFinish() will be very expensive, because it won't return until all your rendering is done.
Quote this message in a reply
w_reade
Unregistered
 
Post: #3
Cheers. I've been avoiding glFinish() anyway.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Optimizing CGLFlushDrawable Nick 3 4,006 Nov 27, 2006 06:48 PM
Last Post: OneSadCookie