IE 11 WebGL performance slow when using WebBrowser control

前端 未结 2 1306
既然无缘
既然无缘 2020-12-16 01:27

I\'m trying to embed Cesium in a WebBrowser control inside of a WinForms or WPF application (using IE 11). As a test I\'m using this link:

http://cesiumjs.org/Cesi

2条回答
  •  执笔经年
    2020-12-16 01:54

    Take a look at this article:

    As it turns out, the embedded browser uses the IE7 rendering engine by default, even if a newer version of IE is installed. Also, GPU rendering is switched off, so the browser uses software rendering only.

    This was fixed by setting the following feature control registry keys:

    • FEATURE_BROWSER_EMULATION – set to the desired version of the IE rendering engine
    • FEATURE_GPU_RENDERING – set to 1 to enable GPU rendering.

    These keys can be set under HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER for a specific program (executable name), which uses the embedded browser. HKCU is preferred since the program won’t need administrator privileges to write to HKCU.

    So when I set FEATURE_BROWSER_EMULATION to 10000 (for IE10) and set FEATURE_GPU_RENDERING to 1, the performance improved to ~850 fishies @ 60 fps. Still not as good as standalone IE with its 1000+ fishies, but quite an improvement!

提交回复
热议问题