GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sound Lag problem on 0.94

AppsRacKAppsRacK Posts: 346Member
edited November -1 in Tech Support
I've noticed this problem when i import the game to my iPhone4. I have 1 scene and when its loaded after 2 sces i set it to play 1 of the 3 random ambience sound that i have. Each sound has a 7 secs duration. Then i set it to play sounds again every 10 secs. Now i noticed that whenever it play a sound a sudden lag will appear. It's quite obvious on my game coz i have a bit of snow particles falling. I tried to turn off the sound behavior and the lag is gone. I only use simple rules in playing the sound file and i didnt use timers.

Anyone experienced this as well?

Thanks.

Comments

  • gamesmoldgamesmold Posts: 277Member, PRO
    Hi drahc,

    I know this issue, but it occurs only once for each sound per scene.
    So I guess it's simply due to loading/decoding the sound into ram. My solution: One actor that loads all sounds at once at the beginning of a scene, but with zero volume and running only for 1 second.
    Then all my sounds played instantly without any lag.

    Best,
    Thomas
  • AppsRacKAppsRacK Posts: 346Member
    Thanks Gamesmold im gonna try this workaround later.
  • AppsRacKAppsRacK Posts: 346Member
    Ok just tested it and i think it works but sometimes i can still see some lag when the sound is playing again. Anyway i hope this bug will be fix on the next release.
This discussion has been closed.