Gif recording, fixes, performance changes

Added gif recording using modified uGif (simonwittber/uGIF).
Added resolution and transparency settings.
Split AB list into smaller lists that are faster to search.
This commit is contained in:
katboi01
2022-10-30 22:00:56 +01:00
parent 745b243a6e
commit 4368b043f3
21 changed files with 5470 additions and 264 deletions
+6 -2
View File
@@ -18,7 +18,9 @@ public class UmaViewerMain : MonoBehaviour
public List<CharaEntry> Characters = new List<CharaEntry>();
public List<LiveEntry> Lives = new List<LiveEntry>();
public List<UmaDatabaseEntry> AbList = new List<UmaDatabaseEntry>();
public List<UmaDatabaseEntry> Motions = new List<UmaDatabaseEntry>();
public List<UmaDatabaseEntry> AbMotions = new List<UmaDatabaseEntry>();
public List<UmaDatabaseEntry> AbSounds = new List<UmaDatabaseEntry>();
public List<UmaDatabaseEntry> AbChara = new List<UmaDatabaseEntry>();
[Header("Asset Memory")]
public bool ShadersLoaded = false;
@@ -29,7 +31,9 @@ public class UmaViewerMain : MonoBehaviour
Instance = this;
Application.targetFrameRate = -1;
AbList = UmaDatabaseController.Instance.MetaEntries.ToList();
Motions = AbList.Where(ab => ab.Name.StartsWith(UmaDatabaseController.MotionPath)).ToList();
AbChara = AbList.Where(ab => ab.Name.StartsWith(UmaDatabaseController.CharaPath)).ToList();
AbMotions = AbList.Where(ab => ab.Name.StartsWith(UmaDatabaseController.MotionPath)).ToList();
AbSounds = AbList.Where(ab => ab.Name.EndsWith(".awb") || ab.Name.EndsWith(".acb")).ToList();
}
IEnumerator Start()