CoreAnimation jerky with a large window

I have a very simple CA demo. It creates a layer with the contents of the image file and displays that image. When you click in a window, it uses implicit animation to smoothly move the image to the mouse point. It works great, works with perfect smoothness. But, when the window gets bigger, the smoothness gets smaller. This is acceptable below about 75% of the screen size. With a maximized window or full screen, it is very rude and jerky.

I am running OSX 10.5.7 on an Intel Mac Mini. It has an Intel GMA950 GPU. My screen is 1920 x 1200.

I don’t have a drawRect method at all. Everything happens by setting the position CALayer property using implicit animation.

May I suspect that the hardware here is to blame?

Neil Baileys

+3
source share
1 answer

Your equipment is just fine and affordable - no implementation.

You are not allowed to animate or even touch the Position property. This property is processed by the view if the layer is supported. Not you. And recounted on numerous occasions. Therefore, if you start revitalizing and changing this property, there will be problems. At least according to Apple ...

Here is an excerpt

Apple β†’ OS X, . , -, , NSView . AppKit . , . layer:   β€’ anchorPoint   β€’   β€’ compositingFilter   β€’   β€’   β€’ geometryFlipped   β€’   β€’   β€’ shadowColor   β€’ shadowOffset   β€’ shadowOpacity   β€’ shadowRadius   β€’

0

Source: https://habr.com/ru/post/1713805/


All Articles