I’ve found that a call to viewer.entities.removeAll() takes over 10 seconds to complete when there are about 30000 or more billboards on the map. This time is longer than it takes to show them in the first place.
Here is a sandcastle to reproduce:
-
Select “Add billboards” and wait a few seconds to see half the world covered with 180x180 (32400 total) billboards. On my Windows machine, I count about 5 seconds.
-
Select “Remove billboards” and wait even longer to see the billboards removed. I count about 11 seconds.
I found this issue for performance of removing points, which looks similar. Is billboards performance a dupe of that?
Any advice on workarounds?
Thanks,
Jacob