Re: NSOpenGLView in NSSplitView, redraw problems
Re: NSOpenGLView in NSSplitView, redraw problems
- Subject: Re: NSOpenGLView in NSSplitView, redraw problems
- From: arekkusu <email@hidden>
- Date: Fri, 20 Jun 2003 20:47:11 -0700
On Friday, June 20, 2003, at 08:35 PM, Brent Gulanowski wrote:
On Friday, June 20, 2003, at 01:29 PM, Umed Zokirov wrote:
Have you tried calling glFlush() in your OpenGL view instead of
flushBuffer ?
The engineers at Apple say "NO!" flushBuffer has an implicit glFlush()
so why bother with that?
There are actually cases where you want to glFlush instead of
flushBuffer though.
For example, if I am moving the window containing the GL view in the
same frame that I update the GL view, the window manager will flush the
view for me. So it would actually be two swaps (with degraded
performance) if I swap myself. glFlush will rasterize the content but
leave it on the back buffer, waiting for the window manager in this
case.
Another example is during live resize. Again, the window manger will do
the swap for you.
But, in this case with the splitview, glFlush was not the answer. The
answer was Carbon's disableScreenUpdates().
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.