0
我目前正在研究一个项目,我们正在实施一些核心动画来调整大小/移动元素。我们已经注意到,在这些动画中,许多Mac上的帧速率显着下降,尽管它们相当简单。这里有一个例子:核心动画:帧率
// Set some additional attributes for the animation.
[theAnim setDuration:0.25]; // Time
[theAnim setFrameRate:0.0];
[theAnim setAnimationCurve:NSAnimationEaseInOut];
// Run the animation.
[theAnim startAnimation];
[self performSelector:@selector(endAnimation) withObject:self afterDelay:0.25];
是否明确说明的帧速率(比如60.0,而不是0.0离开它)把更多的优先考虑线程等等,为此可能提高帧速率?有没有更好的方法来完成这些动画?
真棒!伟大的技巧大卫感谢 - 实施这个后,性能甚至不能与NSAnimation相提并论。更快,更快 – Zakman411