DataSource.load() vs DataSource.process()

1. A concise explanation of the problem you’re experiencing.

I initially call Datasource.load(czml), where I load the czml data, then anytime i make changes I call DataSource.process(czml)

So the problem is, I’m now adding so much data that the internal buffer for Cesium (some assumptions made here) that the processed czml goes into to be rendered fills up to such a long array that it slows down the UI framerate.

So I’m attempting to call Datasource.load(czml) every 15seconds to clear out any lingering data in the buffer to put more data in it. But apparently it doesn’t work like that, Cuz after the first 15seconds, the UI stops rendering any new cmzl data after the second DataSource.load(czml) call.

How do I clear out that internal rendering buffer for more data if DataSource.load() doesn’t do that?

2. A minimal code example.

For how I acquire the data go visit the other ticket I posted, but the main problem is shown below:!topic/cesium-dev/-p8OKRAeaME

if (load_layer1) { //load_layer1 is set to true every 15seconds by a setInterval call
load_layer1 = false;
} else {


3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

I’m trying to process a lot of data via websockets, I processing approx. 4000 PNT (position, navigation, timing) packets every minute.

4. The Cesium version you’re using, your operating system and browser.

Running 1.41 on chrome (windows 10) with a developer grade laptop.

Hi Alex,

I think my response in your main ticket is still relevant:!topic/cesium-dev/-p8OKRAeaME

Since you are updating a large amount of data often, there are more efficient ways to update your data, I listed a few in that post.