Rules causing scene to loads 6 times slower
zzap64
Member Posts: 405
I have many audio files being played by variables referencing a table in a project on a second scene.
Worked fine in GS until I created my adhoc and played on the iPad. The second scene with the audio now loads 6 times slower.
I thought that putting the rules that activate the SFX in actors that spawn & destroy off screen when needed would be less burden but to no avail.
If I remove the rules to play the audio from the scene it loads the second scene at normal speed.
Nothing fancy with the rules, basically when variable 1 = a row & column table position it plays the audio file.
Hopefully that makes some sense but I'm a little stuck what to try next ?
Answers
Also, I am uncertain that putting them off-screen would be less of a burden... Hopefully when they go full native some of the memory allocation issues will be fixed.
Let me know if that helps. I am using a lot of audio in my project as well, but am using the standard function in gamesalad to play so I am interested to see how the tables work out for you.
I introduced 300 sounds that are individually triggered (only one at a time). I have 300 rules that each play the sound behavior via a variable that calls from a table. So it's not a new technique that allows to play sounds from a table i'm afraid .
However, the sound rules are on my scene 2 of 2, when I added these simple rules the scene transition slows down, exponentially.
e.g. 50 rules = 1 second scene load delay, 300 rules = 6 second delay.
Remember, it only plays 1 sound at a time.
I tried bundling a bunch of these rules into spawning actors that are in turn destroyed but it had no effect on the scene load speed.
I'm thinking now to combine both scenes into one and having the 'delay' added into the initially loading of the app.
I have everything on one scene now, just need some more work before I test it. Ill let you know,
Submitted the new version to apple today!