菜鸟教程小白 发表于 2022-12-13 13:38:20

ios - 如何在 CPU 上同时运行 Core Animation 和 Core Image?


                                            <p><p>Apple 的核心镜像编程指南,在“<a href="https://developer.apple.com/library/ios/documentation/GraphicsImaging/Conceptual/CoreImaging/ci_performance/ci_performance.html#//apple_ref/doc/uid/TP30001185-CH10-SW2" rel="noreferrer noopener nofollow">Getting the Best Performance</a>”部分下说</p>
<blockquote>
<p>Avoid Core Animation animations while rendering CIImage objects with a GPU context.</p>
<p>If you need to use both simultaneously, you can set up both to use the CPU.</p>
</blockquote>
<p>谁能解释这个说法?为什么在 CPU 上同时运行 Core Animation 和 Core Image 比使用 GPU 更高效?</p>
<p>如何设置 Core Animation 在 CPU 上运行?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>我有同样的问题,并遇到了这个 WWDC 2013 session 509 评论,<a href="http://asciiwwdc.com/2013/sessions/509" rel="noreferrer noopener nofollow">http://asciiwwdc.com/2013/sessions/509</a> :</p>

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

<p>因此,如果您希望您的核心动画流畅,您需要错开核心图像操作或使用 CPU CIContext,这样它们就不会同时对 GPU 造成压力。”</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 如何在 CPU 上同时运行 Core Animation 和 Core Image?,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/34867883/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/34867883/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 如何在 CPU 上同时运行 Core Animation 和 Core Image?