OGeek|极客世界-中国程序员成长平台

标题: ios - 如何在 CPU 上同时运行 Core Animation 和 Core Image? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 13:38
标题: ios - 如何在 CPU 上同时运行 Core Animation 和 Core Image?

Apple 的核心镜像编程指南,在“Getting the Best Performance”部分下说

Avoid Core Animation animations while rendering CIImage objects with a GPU context.

If you need to use both simultaneously, you can set up both to use the CPU.

谁能解释这个说法?为什么在 CPU 上同时运行 Core Animation 和 Core Image 比使用 GPU 更高效?

如何设置 Core Animation 在 CPU 上运行?



Best Answer-推荐答案


我有同样的问题,并遇到了这个 WWDC 2013 session 509 评论,http://asciiwwdc.com/2013/sessions/509 :

“还要注意,Core Animation 和 Core Image 都大量使用了 GPU。

因此,如果您希望您的核心动画流畅,您需要错开核心图像操作或使用 CPU CIContext,这样它们就不会同时对 GPU 造成压力。”

关于ios - 如何在 CPU 上同时运行 Core Animation 和 Core Image?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34867883/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4