Air StageWebView html5内容与本机浏览器性能(Air StageWebView html5 content vs native browser performance)

我正在使用StageWebView在AIR移动应用程序中显示html5内容(一个简单的游戏)。 在某些设备上,StageWebView中的Nexus 4,例如html5在相同设备上的移动Google Chrome中有10 FPS而不是50-60! 但是StageWebView在设备上使用相同的Chrome版本......

怎么可能? 如何提高StageWebView的性能?

I am using StageWebView for displaying the html5 contents (a simple game) in AIR mobile app. On some devices, Nexus 4 for ex., html5 in StageWebView has 10 FPS istead of 50-60 in mobile Google Chrome on same device! But StageWebView uses same Chrome version on device...

How its possible? How improve performance in StageWebView?

最满意答案

在stagewebview中,他们可以选择使用Native webkit或System webkit。 webkit是在视口中呈现html内容或任何内容的引擎。

对于Eg:我将使用Native Webkit在StageWebView中打开一个index.html,它需要adobe的webkit来呈现html。 如果使用System webkit,该页面将使用系统浏览器引擎(如Internet explore / Safari等)进行渲染。基于操作系统。

但是,在移动阶段,webview总是选择系统webkit。 为了获得更好的信誉,请在初始化StageWebView时通过这些方法打开www.html3test.com网站。

StageWebView(true) - 用于本机浏览器支持 StageWebView(false) - 用于嵌入式浏览器支持。

本机浏览器引擎总是比嵌入式浏览器更快。

In stagewebview, their is an option to use Native webkit or System webkit. Here the webkit is the engine to render the html content or anything inside the viewport.

For Eg: Am going to open one index.html in StageWebView using Native Webkit, it takes adobe's webkit to render the html. If am using System webkit that page will render by using systems browser engine like internet explore / Safari etc.. based on the OS.

But, in mobile stagewebview always pick the system webkit. For better under standing, open www.html3test.com website by these methods while initializing StageWebView.

StageWebView( true ) - For native browser support StageWebView( false ) - For Embedded browser support.

Native browser engine is always faster than Embedded browser.

更多推荐