My Godot is in its early prototype phase so I’m looking for optimization for my project idea
I wanted the project to be a sort of like a text based mini website type game, where it displays characters and other stuff like that, however I wanted music to play in the game while you browse.
But very quickly I was faced with 300+ MegaBytes for the music I put in (20-ish songs), and that kinda makes the whole thing unplayable.
My question is, Is it possible to have lots of music files in godot web exports?
I’ve heard audio files takes up lots of space but is it possible to maintain a low size while still having audio files?
Is certain file formats better than the other? If so I’m looking for music that play from a Audiostreamplayer that is in a playlist of like 10 or more songs in an array, and most of them are a minute or longer.
I recommend converting your music files into OGG files, they take a bit more CPU to play, but they are incredibly small in size, and Godot fully supports them.
Agree with this, and also check your audio format. Modern music software can handle 24/96 or higher, but in a game I wouldn’t go higher than 16/48 (which is already technically better than CD quality).
You also can choose the compression level when converting to ogg, though that can cause audible artifacts if you squeeze the file size down too much.
Thanks a bunch, you were not lying when you said they ogg’s can be tiny, the size also helps with loading the music itself. Switching music track is unnoticeable now! While with mp3’s they were slow as heck to load up!
Its a bit slow to convert all of the files but its very much worth it and they don’t even sound altered
I still have some optimization ahead of me but this is great information!