Search Issue Tracker

Active

Planned for 2020.3.X, 2021.3.X, 2022.1.X, 2022.2.X

Votes

5

Found in

2020.3.0f2

2021.3.0f1

2022.1.0f1

2022.2.0a1

Issue ID

UUM-404

Regression

No

Large delay on SoundHandle.Instance.Destructor when disabling AudioSource

--

-

How to reproduce:
1. Open the attached project's Scene labeled "SampleScene"
2. Open the Profiler (Window->Analysis->Profiler)
3. Enter the Play Mode
4. In the Profiler Window, observe the performance

Expected result: There's no high impact on performance when disabling a single AudioSource
Actual result: There's a large delay on SoundHandle.Instance.Destructor

Reproducible with: 2018.4.31f1, 2019.4.21f1, 2020.2.3f1, 2021.1.0b4, 2021.1.0a4

Note: In Unity 2018.4.31f1, delay is on PostLateUpdate.UpdateAudio instead

Comments (1)

  1. MylesLambert

    Nov 26, 2021 01:04

    Any response from Unity as to what can be done to avoid this? I have a case where it's taking almost 8ms (half of my frametime) to run SoundHandle.Instance.Destructor.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.