-
Notifications
You must be signed in to change notification settings - Fork 37
Description
Hi there,
We have a complex application using Tone.js, which in turn uses standardized-audio-context underneath.
During performance testing we’ve noticed that a large amount of time is being spent inside a detectCycles recursive loop. For example, we are seeing that a triggerAttackRelease call on a synth can spend 80% of the processing time inside detectCycles.
Is there anything we can do to improve the performance of this functionality?
If we strip out standardized-audio-context completely the performance seems much improved, but obviously we are then losing the cross-browser standardisation provided.
Are you able to explain a bit more about when the detectCycles functionality is needed, and the browsers/problems it helps with? Can we do anything to reduce the number of times it gets called?
Many thanks for any info you can provide.
Regards,
Gerard
www.dappledark.com