|
Post by bizzthegreat on Jan 8, 2017 19:23:15 GMT
It seems that my Audio Scene (in which master audio game object and its playlists exist) is responsible for about 60% of loading time of the game.
I thought about breaking it down into multiple gameobjects but then I thought 2 instances of MasterAudio cannot exist in a scene.
The problem is I will have many many more dialogues in the next release and I'm concerned about increased loading time. (we have 2 main characters to choose from, each have 60 dialogues, and it will increase to 5 soon means 300 dialogues)
I don't want to preload all sounds. I want to preload only some of the groups and don't load others unless player changes his/her character.
And I don't want them to cause latency either. I know I can turn preload off but we just can't afford any lag.
How can I separate my sounds and groups in Master Audio in order to load them separately.
I have a bootstrap mechanism for loading parts of the game in unity, they are organized as scenes. My bootstrapper loads scenes with additive parameter.
e.g. When I start the game, loading scene shows up in no time and then starts to load other scenes additively until it reaches menu. and when I press play it unloads menu and starts to load other scenes additively until it reaches the game scene.
The only option I can think of is have two highly redundant instances and make sure they never are in one scene. and create and destroy them when user navigates through different parts of game. which overall is awefully dangerous and unprofessional.
|
|
|
Post by DarkTonic Dev on Jan 8, 2017 19:39:31 GMT
You should use Dynamic Sound Group Creators for each dialog to load / unload temporary sounds. They dump things into the Master Audio game obec. Please read the DGSC page on the readme website here: dl.dropboxusercontent.com/u/40293802/DarkTonic/MA_OnlineDocs/DynamicSoundGroupCreators.htmYou can spawn the DGSC and when it becomes enabled those Sound Groups are copied from DGSC into MA. When the dialog is done and despawns, the Groups will be removed.
|
|
|
Post by bizzthegreat on Jan 12, 2017 16:07:21 GMT
Thank you for your awesome support =) I will try that
|
|
|
Post by DarkTonic Dev on Jan 12, 2017 16:38:39 GMT
Sounds good.
|
|