Music Problem
Piero1987
Member Posts: 38
Hello, i try to add a music to my game, but when i try the game to game salad viewer the fps it's very low 44, 40, 49...how i can improve it?...how should be the file audio?...bitrate ecc?
Comments
is it a song you are adding?
Did you import it as sound or song?
I use mp3 files, mono, bit rate of 320 and when I drag them into GS, it will convert them for me (or I do that with Audacity and save an .ogg file right away)
Let us know how big the sound file is?
Which attribute do you use?
Play "Sound" or play "Music"?
For an audio file any longer than a few seconds, play music is the right choice
make a new scene,
import the audio just as you did and watch the framerate.
If there should be something wrong with the file (which is possible, but I don't expect it) than you can fix it and if not, you need to optimize your game where ever you can.
Do you have actors that don't need to be visible?
Do you have "Movable" (under Attributes > Physics) unchecked for each actor that does not need to move.
Are you instancing your actors or do you use an actor only once?
How many actors are there in your scene?
Unfortunately, I don't make or play games ....
Also, just for reference, an enemy I have plays a sound file when it enters the scene. This would create a 'lag' as the sound was imported.
By playing all sounds in the scene at 0 volume when the scene starts, this problem was eliminated!
Hope that helps in case you have issues with sound files later!
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io