• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOpenGLView in NSSplitView, redraw problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Re: NSOpenGLView in NSSplitView, redraw problems (From: Brent Gulanowski <email@hidden>)

  • Prev by Date: Re: TrollTech releases QT for Mac under GPL
  • Next by Date: Re: Advice needed for properties editor
  • Previous by thread: Re: NSOpenGLView in NSSplitView, redraw problems
  • Next by thread: Creating A Package?
  • Index(es):
    • Date
    • Thread