Choppy animation using NSAnimation

Hi there,

I am using NSAnimationContext / animator to animate scaling up an borderless NSWindow and noticed that it's a bit choppy when scaling to more than about 50% of my screen (24" iMac, so visibleFrame of 1920x1200). I'm wondering if these animations actually make use of Quartz Extreme, do they? Haven't found out yet if NSAnimation uses hardware acceleration per default, but it should as the compositor uses it automagically, right?

What do you think about my way to scale the window up anyway? Is there a better, more performant way to do this simple operation?

Thanks in advance and passing a nice greeting with my first post here

Arne


[self setHasShadow:NO];
[NSAnimationContext beginGrouping];
[[NSAnimationContext currentContext] setDuration:CBMAKELARGEDURATION];
[[self animator] setAlphaValue:CBLARGEWINALPHA];
[[self animator] setFrame:targetDimensions display:YES];
[NSAnimationContext endGrouping];
[self setHasShadow:YES];


Message was edited by: arnekolja (finally got formatting right)

iMac early 2008, Mac OS X (10.5.7)

Posted on May 22, 2009 1:50 PM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Choppy animation using NSAnimation

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.