Yeah, so my use case is that I have my tool (
https://hub.virtamate.com/resources/vam-evolutionary-character-creation.17382/ ) and I've added a "variate" button which allows users to load 20 different appearances. If you click on a button, it triggers the load appearance action. This all works. But since each appearance is different, skins and everything need to be loaded, so there is like a 5 second loading time for each appearance. In this case, I have 1 Person, and each button loads a different appearance for that 1 Person.
My idea was, to solve the loading times for each preset, by "pre loading" all 20 appearances on 20 Persons. That all worked fine, except that there is no way to know when Vam is finished. So what I did was, have 20 persons, (without collission) at the same spot, and load all 20 appearances on each of the 20 persons. This would give a long loading time of maybe 30 seconds, but, after that, by using atomcontrol: Off on each of the 20 persons and letting the 20 buttons choose which of the 20 person to turn on (Atomcontrol: on) I had a situation where the loading time was 0 during usage. So clicking on different numbers, would instantly switch between characters. But: telling vam to load all the appearances, and then also telling vam to turn all AtomControl off for each person, resulted in Vam not loading the appearances. Since vam apparently is smart enough to not load appearance for atoms that are invisible. So now I have the problem: when do I know that VAM has finished loading the appearance for all the active persons, so I can turn them off.
But, long story short, it turns out that having a save file with 20 persons is a problem by itself. So that approach is not gonna work. Loading a savefile with 20 persons takes FOREVER.
So, what is my question:
How can I pre-load appearances for 20 persons or reduce loading time or use caching of some sort?