• 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: Smooth OpenGL animation possible, even if main thread blocks?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Smooth OpenGL animation possible, even if main thread blocks?


  • Subject: Re: Smooth OpenGL animation possible, even if main thread blocks?
  • From: vincent habchi <email@hidden>
  • Date: Fri, 25 Jun 2010 21:18:30 +0200

> So what are we supposed to do? Is there something I'm overlooking here or should we maybe stop using CALayers and instead use NSOpenGLView or maybe even manage our own OpenGL Context, render into a background buffer (e.g. some kind of image) and then directly paint this image from within the background thread into the view whenever we want to? If so, what image is most effective for such a task? NSImage, CGImage, CIImage? Any advise is highly appreciated.


As far as my experience goes, it was perfectly possible to update a CALayer from a background thread as long as you make this thread run its own runloop. That's what I did some time ago before reverting to the classical method for the sake of complexity.

No guarantee though, I'd rather let the specialists speak.

Cheers!
Vincent
Sent from my iPhone4 ;)

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Smooth OpenGL animation possible, even if main thread blocks?
      • From: Markus Hanauska <email@hidden>
References: 
 >Smooth OpenGL animation possible, even if main thread blocks? (From: Markus Hanauska <email@hidden>)

  • Prev by Date: Smooth OpenGL animation possible, even if main thread blocks?
  • Next by Date: Custom Toolbar
  • Previous by thread: Smooth OpenGL animation possible, even if main thread blocks?
  • Next by thread: Re: Smooth OpenGL animation possible, even if main thread blocks?
  • Index(es):
    • Date
    • Thread