用FPS测试iOS上的CoreGraphics性能

时间:2023-01-09 04:02:25

Is there any canonical way to measure the performance of a CATiledLayer on iOS? In opengl land, it's pretty straightforward to track the FPS, is there any similar trick with UIScrollViews and CATiledLayers?

有什么标准的方法可以衡量iOS上CATiledLayer的性能吗?在opengl的土地上,追踪FPS很简单,是否有类似的方法使用UIScrollViews和CATiledLayers?

For context, we're tweaking the images going into a CATiledLayer and noticing severe differences in the zooming FPS and panning FPS with the UIScrollView. It's subjective but obvious and I was hoping there was a way to measure this so we can stop saying "wow, this seems a lot faster".

对于上下文,我们正在调整进入CATiledLayer的图像,并注意到与UIScrollView一起缩放FPS和平移FPS的严重差异。这是主观的,但很明显,我希望有一种方法来衡量它,这样我们就不会再说“哇,这看起来快多了”。

1 个解决方案

#1


10  

You can profile your app with Instrument's Core Animation tool. It will give you the FPS reading.

你可以使用乐器的核心动画工具来配置你的应用。它会给你FPS的读数。

用FPS测试iOS上的CoreGraphics性能

Note that this is only available on device and not on simulator.

注意,这只能在设备上使用,而不能在模拟器上使用。

#1


10  

You can profile your app with Instrument's Core Animation tool. It will give you the FPS reading.

你可以使用乐器的核心动画工具来配置你的应用。它会给你FPS的读数。

用FPS测试iOS上的CoreGraphics性能

Note that this is only available on device and not on simulator.

注意,这只能在设备上使用,而不能在模拟器上使用。