I have a shared array buffer, I'm currently putting the shared array buffer into a Unit8ClampedArray, then I copy it's contents into a non-shared buffer which is slow and inefficient is there a faster way of doing this? I'm using ctx.putimagedata to render to the canvas, all that is important is that the canvas renders the sharedarraybuffer.
the thing being renderered is at a resolution of 175x87
edit: I don't care what context the canvas is in as the SharedArrayBuffer the only thing being rendered. I'm only looking to support desktop chrome. the reason why I'm using SAB is web workers won't make a copy of it rather they'll all share that memory. I'm doing this to leave the main thread open to do other operations other than the workers sending information in bulk and throwing out a ton of large arrays.