开发者

When should I use the CPU or or the GPU compiler option in Flash?

I've read through this section of Adobe's excellent 10.1 optimizatio开发者_如何学编程n tips. I found the statement below to be very helpful. Is there anything else to look out for? Is the dumbed-down difference just: use the GPU for raster and CPU for vector graphics?

The GPU is only effective for bitmaps, solid shapes, and display objects that have the cacheAsBitmap and cacheAsBitmapMatrix set. When the GPU is used in tandem for other display objects and this generally results in poor rendering performance.


Just notice it that you want to run in GPU and not CPU by this line on your Manifest.xml

<renderMode>gpu</renderMode>

dan


I would generally say that if you are going to make use of the new molehill api then gpu is a must, or if you are making a mobile application with any kind of animation then you should rasterize it and enable gpu mode.

Other than that, you probably wont notice too much difference from CPU mode on a standard desktop pc.


See GPU rendering in mobile AIR applications. Basically, if you need smooth animation of static DisplayObjects, want to take the time to optimize everything, and don't have video, use GPU. Otherwise, use CPU.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜