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

FR: preloader for "change-soundtrack" sexp #6397

Open
skdKitsune opened this issue Oct 15, 2024 · 2 comments
Open

FR: preloader for "change-soundtrack" sexp #6397

skdKitsune opened this issue Oct 15, 2024 · 2 comments

Comments

@skdKitsune
Copy link

From my experience, soundtracks that are called via the "change-soundtrack" sexp don't get preloaded on mission load, which can lead to a stutter (or micro freeze) when the soundtrack change occurs in mission.

Goober5000 has confirmed that there's currently no preload function for the sexp.

@Goober5000
Copy link
Contributor

Goober5000 commented Nov 18, 2024

I looked into this briefly, and it would probably be quite a bit of work to implement a preloader. To the extent that audio files are loaded ahead of time, it is only for the current soundtrack. There are no data structures to preload other files. It's not like model files where they are loaded even if the ship class hasn't arrived yet.

@skdKitsune
Copy link
Author

I looked into this briefly, and it would probably be quite a bit of work to implement a preloader. To the extent that audio files are loaded ahead of time, it is only for the current soundtrack. There are no data structures to preload other files. It's not like model files where they are loaded even if the ship class hasn't arrived yet.

Ahh, that's a shame. The stutter that's introduced by a soundtrack change is pretty noticeable imo.
Welp, guess this'll take a while, then.

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

2 participants