Re: Core Animation and Run Loops

2009-10-12 Thread Oleg Krupnov
Well, I have found it to be even more weird. On Leopard, the Core Animation animation sometimes can run simultaneously with the blocking NSAnimation. In fact, I have done something to my app, don't know what, and now CA runs in parallel with the blocking NSAnimation causing the latter to jitter. I

Re: Core Animation and Run Loops

2009-10-02 Thread Scott Anguish
On Sep 28, 2009, at 3:12 AM, Kyle Sluder wrote: Do you mean I should avoid using blocking animations and only use non-blocking? Never tried to use animator proxies, only NSAnimation directly, so I don't know if the proxies are blocking or non- blocking. The animator proxies are related to

Re: Core Animation and Run Loops

2009-09-28 Thread Kyle Sluder
On Sun, Sep 27, 2009 at 10:51 PM, Oleg Krupnov oleg.krup...@gmail.com wrote: Or is there a workaround, beside using non-blocking animation, which is often too tedious and sometimes not smooth enough? AppKit 10.6 release notes say that the core of the problem is that the animator proxy would run

Re: Core Animation and Run Loops

2009-09-28 Thread Oleg Krupnov
Thanks, AppKit 10.6 release notes say that the core of the problem is that the animator proxy would run the animation in NSDefaultRunLoopMode. Now it's done in NSRunLoopCommonModes. I guess you could run the run loop once in NSDefaultRunLoopMode whenever you're running in a different

Re: Core Animation and Run Loops

2009-09-28 Thread Kyle Sluder
On Sun, Sep 27, 2009 at 11:38 PM, Oleg Krupnov oleg.krup...@gmail.com wrote: Not sure I understand your idea and why it is bad. Could you elaborate? Because it will cause delayed performs and other default-mode things to execute when they might not expect to. Do you mean I should avoid using

Core Animation and Run Loops

2009-09-27 Thread Oleg Krupnov
Hi, Today I read this in wikipedia: (http://en.wikipedia.org/wiki/Core_Animation) Animated sequences execute in a thread independent from the main run loop, allowing application processing to occur while the animation is in progress. However, in my experience, Core Animation animations do not

Re: Core Animation and Run Loops

2009-09-27 Thread Shlok Datye
Take a look at this movie, which was taken on Leopard: http://shlok.s3.amazonaws.com/20090927-ca-problem.mov The blue rectangle is a layer-backed NSView that is animated using Core Animation. The problem is that the animation halts while the main loop waits for the mouse to get released.

Re: Core Animation and Run Loops

2009-09-27 Thread Oleg Krupnov
Thanks! You are right, I have tested it on Snow Leopard, and the CA animation runs simultaneously with the blocking NSAnimation, as claimed in the Wikipedia. What a revelation! I'd say, what an ANNOYING revelation! It means that this ability of CA animation of running in a separate thread is