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

Loading music is slow, especially in debug builds #51

Open
avelican opened this issue Sep 10, 2023 · 0 comments
Open

Loading music is slow, especially in debug builds #51

avelican opened this issue Sep 10, 2023 · 0 comments

Comments

@avelican
Copy link

The music for our game is 9 minutes long.
In debug mode, it takes 30 seconds to load the .ogg file, and 10 seconds to load the .wav.

In release mode (and with the hack below) it loads in 3 seconds.
Not terrible, but perhaps a "streaming" solution would be better for music?

Adding this to Cargo.toml eliminates the lag in debug builds:

[profile.dev.package.quad-snd]
opt-level = 2
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