When I try to animate a polygon by changing the height repeatedly, it works great for 10fps (100ms interval), but when I want to do it more frequently(f.e. 100fps, 10ms interval) it doesnt show any height change at all. Is this a bug or am i just doing it wrong?
var viewer = new Cesium.Viewer('cesiumContainer');
var polygon100 = viewer.entities.add({
name : 'Green extruded polygon',
polygon : {
hierarchy : Cesium.Cartesian3.fromDegreesArray([-108.0, 42.0,
-100.0, 42.0,
-104.0, 40.0]),
extrudedHeight: 500000.0,
material : Cesium.Color.GREEN,
}
});
var polygon10 = viewer.entities.add({
name : 'Green extruded polygon',
polygon : {
hierarchy : Cesium.Cartesian3.fromDegreesArray([-118.0, 42.0,
-110.0, 42.0,
-114.0, 40.0]),
extrudedHeight: 500000.0,
material : Cesium.Color.RED,
}
});
window.setInterval(() => {
polygon10._polygon.extrudedHeight += 300;
}, 10);
window.setInterval(() => {
polygon100._polygon.extrudedHeight += 3000;
}, 100);
viewer.zoomTo(viewer.entities);
Context: In my application i have an extruded polygon, where you can change the height with drag and drop. When i just change the height on mouse move event, its the same problem as when i update with 100fps.
I use Cesium 1.39 with chrome on mac os x.