Replies: 3 comments 2 replies
-
ImageSharp already stores larger buffers using discontiguous chunks so it's likely already split up. It should be thread safe though so your approach should work. |
Beta Was this translation helpful? Give feedback.
-
I've come back to Imagesharp and noticed that Just as in my OP, i have a big image and use many smaller images (using Image.Wrap onto a RgbaVector Memory) to draw onto the bigger image. The result when using C#'s the Result when not locking the big image: Of course this is highly dependent on what I do and how many threads I use and like all race conditions this is not easy to reproduce. however, I get fairly consistent "artifacts" when removing the lock. |
Beta Was this translation helpful? Give feedback.
-
You’ll need to share some code here so I can replicate. |
Beta Was this translation helpful? Give feedback.
-
I generate "Buckets" which represent a small portion of a bigger image. The bucket images have their own memory.
Each bucket belongs to a thread.
Each Thread then uses
The bucket dimensions (Bucket.X,Bucket.Y,Bucket.W,Bucket.H) do not overlap.
Beta Was this translation helpful? Give feedback.
All reactions