Re: Smooth OpenGL animation possible, even if main thread blocks?
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