Hi
I was trying to:
* Receive websocket messages containing images (1MB messages at 60 Hz - or multiples thereof). I use native code using cpprestsdk for this.
* Copy into an arraybuffer created by the native code.
* Use arraybuffer in Javascript to populate a canvas
* Inform native code that arraybuffer is no longer in use. So arraybuffer gets reused - which avoids JS Garbage Collection causing latency spikes in playback. Avoiding the GC is critical for us.
In other words I'm using an approach similar to for sharing a buffer between JS and native code:
https://www.magpcss.org/ceforum/viewtop ... 1&start=30
This works when using the main JS thread.
But I may have as many as 6 canvases and we have found that performance is much better when we handle each canvas in a separate web worker.
I have just noticed that there is no support for integrating native and webworker JS like I need:
https://bitbucket.org/chromiumembedded/ ... indings-or
I doubt that using postMessage from the main thread will be fast enough...
Any thoughts?
Is there any chance that web workers will get support for tighter closer/JS integration?
ben