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

audio worklets performance problems #479

Open
Tracked by #671
felixroos opened this issue Feb 25, 2023 · 1 comment
Open
Tracked by #671

audio worklets performance problems #479

felixroos opened this issue Feb 25, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@felixroos
Copy link
Collaborator

felixroos commented Feb 25, 2023

while testing strudel on a raspberry pi, I found out that even the most simplest pattern (just a single sine wave melody) crackles..
It turns out the problem goes away when await loadWorklets() is commented out.. so even when the worklets are not used, just loaded via getAudioContext().audioWorklet.addModule(workletsUrl), they seem to create some problematic side effects. This is probably also a problem on stronger machines, just not as noticeable. Further investigation is needed..

@felixroos felixroos added the bug Something isn't working label Feb 25, 2023
@felixroos felixroos changed the title audio worklets performance drain audio worklets performance problems Feb 25, 2023
@felixroos
Copy link
Collaborator Author

felixroos commented Aug 11, 2023

with c6095fd you can now do initAudio({disableWorklets:true}) or initAudioOnFirstClick({disableWorklets:true) to.. disable the worklets.
with this, it's now easier to test both setups:

I can already notice a difference on my phone: with worklets it crackles sometimes, without it does not.
The fact that these examples only use superdough and no patterns also shows that there seems to be a clear performance problem with the worklets.. I'll have to also test this on a raspberry pi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant