Bug 217969 - [Media in GPU Process] Reduce the number of RequestBuffer IPC messages for AudioDestination
Summary: [Media in GPU Process] Reduce the number of RequestBuffer IPC messages for Au...
Status: RESOLVED DUPLICATE of bug 219818
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Audio (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Peng Liu
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-10-20 10:34 PDT by Peng Liu
Modified: 2020-12-16 13:52 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peng Liu 2020-10-20 10:34:44 PDT
Currently, for every rendering request (to render 128 samples) from the audio output unit, RemoteAudioDestination::render() sends an IPC message RemoteAudioDestinationProxy::RequestBuffer to RemoteAudioDestinationProxy in the Web process. That is unnecessary and inefficient. Since RemoteAudioDestination and RemoteAudioDestinationProxy use a ring buffer to transfer audio samples, we can "combine" multiple rendering requests in one IPC message. Hopefully, that will significantly reduce the number of IPC messages.
Comment 1 Radar WebKit Bug Importer 2020-10-27 10:35:15 PDT
<rdar://problem/70728404>
Comment 2 Peng Liu 2020-12-16 13:52:32 PST

*** This bug has been marked as a duplicate of bug 219818 ***