小编Mat*_*ato的帖子

使用WebBrowser控件时IE 11 WebGL性能变慢

我正在尝试将Cesium嵌入到WinForms或WPF应用程序内的WebBrowser控件中(使用IE 11).作为测试我正在使用此链接:

http://cesiumjs.org/Cesium/Build/Apps/CesiumViewer/index.html?stats=true

它"有效",但比直接使用IE 11要慢得多.在IE 11中,一切都以60fps运行; 在具有WebBrowser控件的简单WPF或WinForms应用程序中,它以4-6 fps运行.我一直无法追查问题的原因.这是一个空白的窗体或WPF面板,其中WebBrowser控件设置为填充整个窗格.我无法想象没有透明度或其他问题.我注意到,在Visual Studio嵌入式浏览器中访问上述链接具有相同的效果.WebBrowser是否控制不是JIT JavaScript?这是一个WebGL问题吗?有没有办法我可以调试这个来弄清楚发生了什么?任何帮助将不胜感激.

wpf internet-explorer webbrowser-control winforms webgl

10
推荐指数
1
解决办法
7290
查看次数

如何在Cesium地图中更改EllipseOutlineGeometry的宽度?

我正在关注沙堡椭圆轮廓几何.我想知道是否有任何方法可以使椭圆线宽更宽?有一些使用width属性使折线更宽的例子,但似乎没有办法制作一个ellipseOutlineGeometry对象.sandcastle示例在末尾有一个lineWidth设置,但是对此的更改似乎不会影响椭圆轮廓的宽度.

沙箱代码:

// Create the ellipse geometry.  To extrude, specify the
// height of the geometry with the extrudedHeight option.
// The numberOfVerticalLines option can be used to specify
// the number of lines connecting the top and bottom of the
// ellipse.
ellipseOutlineGeometry = new Cesium.EllipseOutlineGeometry({
    center : Cesium.Cartesian3.fromDegrees(-95.0, 35.0),
    semiMinorAxis : 200000.0,
    semiMajorAxis : 300000.0,
    extrudedHeight : 150000.0,
   rotation : Cesium.Math.toRadians(45),
   numberOfVerticalLines: 10
});
// Create a geometry instance using the ellipse geometry
// created above.
var extrudedEllipseOutlineInstance …
Run Code Online (Sandbox Code Playgroud)

javascript map ellipse webgl cesium

5
推荐指数
1
解决办法
2065
查看次数