Hi Patrick,
What's the current recommended way to draw a large Polyline (with glow material), which updates often (adding / showing elements at the end of the line)?
I know this is an old thread, but across the forum / github / SO I still see quite some people with related issues. Is good performance for this use-case still dependent on https://github.com/AnalyticalGraphicsInc/cesium/issues/932?
Sorry, I'll elaborate a little more.
I'm looking for the best way in terms of performance to add points to a path / polyline. The use-case is indeed similar to the example you sent. The coordinates are known beforehand, so a solution could also be to hide the line initially, and change points to "visible" on-the-fly.
I've experimented with several ways, but so-far all of them are quite CPU-intensive.
1. Use a Path. Profiling http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=CZML%20Path.html&label=CZML: many cycles in PolylineUpdater.updateObject -> subSampleSampledProperty.
2. When directly updating a Polyline (not a path), so similar to Randie's solution in this thread, many cycles are spent in PolylineCollection.update -> createCommandLists - similar to what Randie describes.
Similar issues are described in:
https://groups.google.com/forum/#!msg/cesium-dev/ZSCnAQF5RIM/StigNPBMCQAJ
https://groups.google.com/forum/#!topic/cesium-dev/KIafPg_vZdg
https://github.com/AnalyticalGraphicsInc/cesium/issues/932
Most of these threads are quite old, and the solutions proposed look more like "workarounds"; bringing the performance to a reasonable, but far from optimal level. Therefor, I'm wondering what the current recommended way is, or whether there's something we can contribute (without having deep knowledge of the Cesium engine).