You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 7, 2021. It is now read-only.
Describe the feature
The comparision between using transferring a single stream (ReadableStream; WritableStream) and transferring hundreds of thousands of TypedArrays using MessagePort.postMessage() is not even close.
AudioWorklet invariably outputs multiple gaps of silence at both Chromium and Firefox when thousands of messages are posted/TypedArrays transferred.
Posting a single ReadableStream, e.g., from a TransformStream substantially reduces observable gaps in playback to 1 (that bug is currently isolated to being observable at the end of reading/writing the stream, not the underlying network request in the code used to get the stream) from multiple gaps randomly occurring during playback https://bugzilla.mozilla.org/show_bug.cgi?id=1629384#c24.
Describe the feature
The comparision between using transferring a single stream (
ReadableStream
;WritableStream
) and transferring hundreds of thousands ofTypedArray
s usingMessagePort.postMessage()
is not even close.AudioWorklet
invariably outputs multiple gaps of silence at both Chromium and Firefox when thousands of messages are posted/TypedArray
s transferred.Is there a prototype?
Yes.
Describe the feature in more detail
See https://bugs.chromium.org/p/chromium/issues/detail?id=910471#c11.
Posting a single
ReadableStream
, e.g., from aTransformStream
substantially reduces observable gaps in playback to 1 (that bug is currently isolated to being observable at the end of reading/writing the stream, not the underlying network request in the code used to get the stream) from multiple gaps randomly occurring during playback https://bugzilla.mozilla.org/show_bug.cgi?id=1629384#c24.Compare for yourself https://plnkr.co/edit/nECtUZ (transferable streams implemented at Chromium behind
--enable-experimental-web-platform-features
); https://plnkr.co/edit/yh5A66UhMnlpq0JF (thousands ofpostMessage(<TypedArray>, [<TypedArray.buffer>])
calls).The text was updated successfully, but these errors were encountered: