hi,
i am using entity api for rendering multi polygons with data more than 30 mb.
after rendering cpu usage goes to 100% .
please let me know if there is any solution to this.
i have also tried explicit rendering by following
requestRenderMode: true,
maximumRenderTimeChange : Infinity,
below is sample code for adding polygons and polylines
this.viewer.entities.add({
id: 2,
name: "anyname",
description: description,
polygon: {
hierarchy: Cesium.Cartesian3.fromDegreesArray(positions),
material: Cesium.Color.fromCssColorString(color).withAlpha(alpha),
outline: true,
outlineColor: Cesium.Color.fromCssColorString(polygonOutlineColor),
outlineWidth: width,
fill: true,
height: 0
},
polyline: {
width: width,
positions: Cesium.Cartesian3.fromDegreesArray(positions),
material: Cesium.Color.fromCssColorString(polygonOutlineColor).withAlpha(1)
},
label: {
text: entityName,
font: '14pt monospace',
style: Cesium.LabelStyle.FILL_AND_OUTLINE,
outlineWidth: 2,
verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
pixelOffset: new Cesium.Cartesian2(0, -9)
}
});