Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HTML5] Refactor audio drivers. Implement AudioWorklet w/o threads. #52649

Merged

Conversation

Faless
Copy link
Collaborator

@Faless Faless commented Sep 14, 2021

In this PR:

Performances are not great in general, bad on Firefox, on Chrome, well, it's an improvement compared to the way they broke ScriptProcessorNode.

Works by sending chunks via postMessage, which is really slow.
I'm actually surprised this works, it involves so many allocations, but there's no way around it when SharedArrayBuffer is not available :(.

Related to #47453

Performances are not great in general, bad on Firefox, on Chrome, well,
it could be an improvement. Leave it as a fallback for now, but can be
forced via project settings if desired (or custom JavaScript logic via
the "args" option).

I'm actually surprised this works, it involves so many allocations, but
there's no way around it when SharedArrayBuffer is not available :(.
@Faless Faless force-pushed the js/4.x_audioworklet_nothreads_pr branch from f1dda50 to 246334b Compare September 15, 2021 18:53
@akien-mga akien-mga merged commit bd75235 into godotengine:master Sep 21, 2021
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants