简体   繁体   English

如何使用GPU渲染模式提高Flex Mobile性能?

[英]How to increase Flex Mobile performance with GPU render mode?

I'm developing an app with Flex and Air (Mobile) and the Flash Builder and, despite some other problems I had, the most worrying issue for me right now is that I need to embed a SWF Flash animation into the interface. 我正在使用Flex和Air(移动)和Flash Builder开发应用程序,尽管遇到了其他一些问题,但现在对我而言最令人担忧的问题是我需要将SWF Flash动画嵌入到界面中。 The app must run in a Retina Display iPhone 4 so I turned the GPU render mode on, in order to gain some performance in the "Flex part". 该应用必须在Retina Display iPhone 4上运行,因此我打开了GPU渲染模式,以便在“ Flex部件”中获得一些性能。 It works very well (I've got a better performance rendering big resolution assets rather than using CPU mode) but the problem comes with the "embeded Flash part", which is showing nice in CPU mode but very slow and with some vector artifacts in GPU. 它工作得很好(与使用CPU模式相比,我具有更好的性能来呈现高分辨率的资产而不是使用CPU模式),但问题出在“嵌入式​​Flash部件”上,该部件在CPU模式下显示良好,但速度很慢,并且在其中存在一些矢量伪像GPU。

From my limited skills (I'm relatively new to Flex) I think having the option to switch between rendering modes at runtime would be the perfect solution (I mean GPU for the menus and overall Flex interface, and CPU for the embedded vectorial movie) but I've been told this is not possible by now. 从我有限的技能(我对Flex来说还比较陌生)中,我认为可以选择在运行时在渲染模式之间进行切换是一个完美的解决方案(我的意思是菜单和整体Flex界面使用GPU,嵌入式矢量电影使用CPU)但有人告诉我,目前尚不可能。

Is it true? 是真的吗 Is there any other way to achieve it and make the two parts run correctly and fluently? 还有其他方法可以实现并使两个部分正确流畅地运行吗? Why the GPU mode is making the Flash movie so painful? 为什么GPU模式使Flash电影如此痛苦?

Thank you very much for advance! 非常感谢您的提前!

The quick answer is that Flex isn't developed to run on the GPU. 快速的答案是Flex并非开发为可在GPU上运行。 As such you aren't really gaining anything by putting the application in GPU Mode. 因此,将应用程序置于GPU模式并不会带来任何好处。 If you are REALLY wanting to run on the GPU you may want to look at feathersui.com and try that. 如果您真的想在GPU上运行,则可能需要查看feathersui.com并尝试一下。 Other than that I would leave your application's mode as "auto". 除此之外,我会将您的应用程序模式保留为“自动”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM