Concurrency safety during frame updates in Swift
I have a method named render
that’s called on every frame to draw something on screen using Metal. It is rendering some array of points stored inside the class. However, I occasionally need to update this array of points. I’m struggling to come up with a solution that could update these points in a concurrency safe manner.