-
Notifications
You must be signed in to change notification settings - Fork 404
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
String Oscillator allocates/deallocates on voice on #4840
Labels
Bug Report
Item submitted using the Bug Report template
Infrastructure
Issues related to repository, CI/CD, installers, etc.
Milestone
Comments
mkruselj
added
the
Infrastructure
Issues related to repository, CI/CD, installers, etc.
label
Aug 16, 2021
baconpaul
added a commit
to baconpaul/surge
that referenced
this issue
Oct 17, 2021
This commit gives an API which allows us to reuse rather than reallocate the memory buffers that objects need at play time. Right now it only deals with the string oscillator and still does 'extra' allocation on the audio thread, but has a reasonable pre-allocate and re-use strategy. In the future the overflow allocs could be off thread but for now it's a simple save and reuse approach. Closes surge-synthesizer#4840
baconpaul
added a commit
to baconpaul/surge
that referenced
this issue
Oct 17, 2021
This commit gives an API which allows us to reuse rather than reallocate the memory buffers that objects need at play time. Right now it only deals with the string oscillator and still does 'extra' allocation on the audio thread, but has a reasonable pre-allocate and re-use strategy. In the future the overflow allocs could be off thread but for now it's a simple save and reuse approach. Closes surge-synthesizer#4840
baconpaul
added a commit
to baconpaul/surge
that referenced
this issue
Oct 17, 2021
This commit gives an API which allows us to reuse rather than reallocate the memory buffers that objects need at play time. Right now it only deals with the string oscillator and still does 'extra' allocation on the audio thread, but has a reasonable pre-allocate and re-use strategy. In the future the overflow allocs could be off thread but for now it's a simple save and reuse approach. Thanks to Luna for a review, and also glad I added that test! Closes surge-synthesizer#4840
baconpaul
added a commit
that referenced
this issue
Oct 17, 2021
This commit gives an API which allows us to reuse rather than reallocate the memory buffers that objects need at play time. Right now it only deals with the string oscillator and still does 'extra' allocation on the audio thread, but has a reasonable pre-allocate and re-use strategy. In the future the overflow allocs could be off thread but for now it's a simple save and reuse approach. Thanks to Luna for a review, and also glad I added that test! Closes #4840
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug Report
Item submitted using the Bug Report template
Infrastructure
Issues related to repository, CI/CD, installers, etc.
After resolving #805 I end up with two oscillators which still allocate in their startup/shutdown path.
String is the easier to tackle since it is using the delay line and we can pool those off thread.
The text was updated successfully, but these errors were encountered: