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

Async sound loading #115

Open
in0finite opened this issue Aug 8, 2021 · 0 comments
Open

Async sound loading #115

in0finite opened this issue Aug 8, 2021 · 0 comments
Assignees
Labels
audio feature New feature importing Related to importing orginal game assets into Unity improvement performance radio

Comments

@in0finite
Copy link
Owner

Make sound loading async - sound should be loaded in background thread.

Vehicle.Update() can take up to 120 ms (on my machine, on average machine it will take maybe 2x-3x as much) due to radio sound loading. This produces high stuttering.

Adapt all code to it.

Maybe use buffer for loading sound file data (eg. 8 MB buffer to be enough for radio songs) to reduce memory allocations, but it's not really needed because radio sound loading is not done very often.

@in0finite in0finite added feature New feature improvement performance audio importing Related to importing orginal game assets into Unity radio labels Aug 8, 2021
@in0finite in0finite self-assigned this Aug 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audio feature New feature importing Related to importing orginal game assets into Unity improvement performance radio
Projects
None yet
Development

No branches or pull requests

1 participant