I was creating a general function, so that it draw multiple routes when i run through the list of routes. However, as I draw more routes, Cesium starts to slow down, and eventually crashes. On using the browser task manager in Chrome, I noticed that there are a lot of dedicated workers created. The memory utilisation reaches as high as 500mb, and does not reduce over time.
Is there a way to reduce the dedicated workers, and also use garbage collector to remove them and reduce the memory space?
Thank you.