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?
Hey Piero, 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)
just to eliminate the audio file, let's isolate it for a moment?
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?
ok now i try to make the audio file of 32Kbs..the minimum, the file is 750Kb...and the game it's more speed than first, but the frame is however low, i notice that when i destroy my principle actor, the frame return normal 60fps...i just set the actor visible and not visible and movable or not...how i can make it better?...I stress that I'm still doing a template ... so the pictures are still those provissorie with standard colors, I do not want to think about when I'll put the right designs...
ok, than what you could do is find the "name" of the template" and post it so that others, who have downloaded it too can tell you what to do and how to improve.
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
QS