我想知道,即使我没有做任何动画,我可以使用CADisplayLink计时器而不是NSTimer吗?
我想调用某种方法就像使用NSTimer时一样,只是在更高的频率下(60 Hz会很好),所以我想知道CADisplayLink Timer是否可以工作,即使该方法只是进行了一些计算和不是任何动画......
PS我在iPhone 4上测试
I was wondering, can I use a CADisplayLink Timer instead of an NSTimer even though I'm not doing any animation?
I'd like to call a certain method much like when using an NSTimer, only just at a much higher frequency (60 Hz would be nice), so I was wondering if a CADisplayLink Timer would work even though the method simply does some calculations and not any animation...
P.S. I'm testing on an iPhone 4
最满意答案
我不明白为什么不。 您甚至可以从CADisplayLink获得更好的性能,因为它没有执行任何动画。 您可能遇到的唯一问题是Apple Review Board将如何使用它。
我建议在使用之前查看Class Reference以及提供的avTouch示例代码。
I don't see why not. You may even receive better performance from CADisplayLink because it is not performing any animation. The only problem you might run into is how the Apple Review Board will like your use of it.
I would suggest looking over the Class Reference along with the avTouch Sample Code provided before using it.
更多推荐
发布评论