Closed Bug 1853597 Opened 1 year ago Closed 1 year ago

unswitch loop over AudioParam values for a single event

Categories

(Core :: Web Audio, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: karlt, Assigned: karlt)

References

Details

Attachments

(3 files)

From bug 1184057 comment 1:

We should determine, in the 128 ticks block, the boundaries for which to compute which event, and then compute the actual values in one pass after

Depends on: 1853598
Depends on: 1853855

Unswitching the loop over AudioParam values for a single event improves performance by 24 - 30% on Granular synthesis, 17 - 28% on Substractive synth, 12 - 16% on Periodic Wave with Automation, and 5 - 16% on Stereo Panning with Automation. Those results do not include changes for bug 1171441, but some of those improvements would also be provided by fixing that bug. i.e. Not all of these benchmark improvements are additional to those from fixing bug 1171441, but unswitching the loops also helps with bug 1851755, and these results show that unswitching makes a big difference on some workloads.

See Also: → 1171441

The differences in biquad-automation.html results are because
v1 - v0 is now calculated in double precision.

Depends on D189100

Pushed by ktomlinson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/02eea545be15 simplify initial and final SetValueCurve value calculations r=padenot
Pushed by ktomlinson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b04d04a848ba annotate bug tracking BiquadFilterNode a-rate automation failure r=padenot
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
Pushed by ktomlinson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cf5fe9331b89 unswitch loop over AudioParam values for a single event r=padenot
Blocks: 1856738
Regressions: 1864450
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: