Skip to content
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

[Unity] Potential Optimizations in SteamAudioSource #393

Open
Kulgann opened this issue Dec 13, 2024 · 0 comments
Open

[Unity] Potential Optimizations in SteamAudioSource #393

Kulgann opened this issue Dec 13, 2024 · 0 comments

Comments

@Kulgann
Copy link
Contributor

Kulgann commented Dec 13, 2024

I noticed that in the Update() of SteamAudioSource the parameters are updated every frame regardless of whether there was a change to them. The individual cost is minuscule but with enough sources in the scene it can add up
AudioSourceCost

Is there a reason that the params are being updated like this every frame or would it be okay to refactor the code so that the params are only updated when dirty ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant