nes-rust icon indicating copy to clipboard operation
nes-rust copied to clipboard

Optimize JS-WASM data transfer and API

Open takahirox opened this issue 5 years ago • 1 comments

We should optimize JS-WASM data transfer and API. Currently pixel data and audio sample buffer are copied twice each. One in WASM side and another onc in JS side.

takahirox avatar Nov 29 '19 11:11 takahirox

Optimized. Buffers are copied once.

If I could dynamically share buffer between WASM and JS, no copy is needed.

takahirox avatar Aug 27 '20 06:08 takahirox