Hello, we are currently processing around 10k-15k Graphics on the map, the Graphics are distributed among several GraphicOverlay elements. We wonder if operations to remove and add graphics in the different GraphicOverlay are required and recommended to be done in the main queue thread or is it possible to do this processing in a different queue than the main thread?
Thanks in advance
It should be possible to add/remove graphics from the graphics overlay from any queue/actor/thread that you need to. GraphicsOveraly is Sendable and if you are compiling with Swift 6.0 or greater, you will see that the compiler lets you do as much. That being said, the thread-safe nature of GraphicsOverlay is the same no matter what version of Swift you are using. I recommend updating to Swift 6 or greater, however, because the compiler will let you know if you are violating thread-safety. You can find more information on our journey in Sensibility here: https://www.esri.com/en-us/software-engineering/blog/articles/full-send-how-data-race-safety-was-add...