When I using 10 “Cesium.CustomDataSource” s , it become slow

When I using 10 “Cesium.CustomDataSource” s , dragging the map becomes slow.

Anybody give any suggestions, I will be appreciate.

It sounds like there might be lots of entities in the CustomDataSources. A couple of things you might try while the drag is taking place:

  1. Enable clustering on the data sources.
  2. Disable the showing each of the data sources and show a bounding box in their place.

Thank you. I know how to set the custtomdatasource ‘s show = false. But I don’t know that " 1. Disable the showing each of the data sources and show a bounding box in their place.’, how to “show a bounding box in their place” for a customdatasource?

You would need to iterate over the Entitys in the CustomDataSource’s entityCollection to extract their cartographic position at the current time and use that to expand a BoundingRectangle created for this purpose. Drawing the resulting rectangle should be straightforward.