Skip to content

detectCycles performance #996

@gerardsmyth

Description

@gerardsmyth

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions