It’s a topic about the best practice to manage a lot of snapshots.
A very straightforward way is to create snapshots manually by createInstance / start / stop / release. Which leading to another problem is how to manage all those snapshots path strings.
Another way is, wrapping snapshots as nested events in an event. Just like p.1. We first create a label param to indicate which snapshots to be activated. Then during the game, we instantiate this wrapper event and call .start() (its a persistent event). By setting parameter, we could then be able to start snapshots easily. Which pretty much avoid the chaos of managing so many path strings.
p.1
So, my question is :
- Is there any other way to manage and play snapshots?
- Is it good to create a persistent event to manage snapshots? Or shall we start it everytime we change the parameter?
- How our method work in behind? I mean, usually a snapshot instance will be created → start() → stop() → release(). So when snapshots are nested in an event, will this sequence be the same? Would there be a chance that snapshots instances are created duplicatedly and not being release?
Thankyou