perf
This commit is contained in:
@@ -57,7 +57,7 @@ namespace Ichni.RhythmGame
|
||||
public IntReactiveProperty remainingElementAmount;
|
||||
|
||||
public int loadAmount = 0;
|
||||
public int loadMaximumAmountPerFrame = 500;
|
||||
public int loadMaximumAmountPerFrame = 100;
|
||||
|
||||
public BeatmapContainer_BM()
|
||||
{
|
||||
@@ -96,7 +96,8 @@ namespace Ichni.RhythmGame
|
||||
GameManager.instance.beatmapContainer.matchedBM = this;
|
||||
|
||||
remainingElementAmount = new IntReactiveProperty(elementList.Count);
|
||||
|
||||
GameElement_BM.identifier.Clear();
|
||||
|
||||
GameManager.instance.StartCoroutine(ExecuteLoadElements());
|
||||
}
|
||||
|
||||
@@ -119,7 +120,7 @@ namespace Ichni.RhythmGame
|
||||
GameElement_BM.identifier.Add(gameElement.elementGuid, gameElement);
|
||||
}
|
||||
|
||||
Debug.Log(element.attachedElementGuid);
|
||||
//Debug.Log(element.attachedElementGuid);
|
||||
|
||||
element.ExecuteBM();
|
||||
remainingElementAmount.Value--;
|
||||
@@ -167,6 +168,8 @@ namespace Ichni.RhythmGame
|
||||
gameElement.Refresh();
|
||||
});
|
||||
|
||||
GameManager.instance.noteManager.AllNotesRegistered();
|
||||
|
||||
Debug.Log("All elements loaded.");
|
||||
GameManager.instance.gameLoadingCanvas.FadeOut();
|
||||
GameManager.instance.audioManager.isLoading = false;
|
||||
@@ -178,7 +181,7 @@ namespace Ichni.RhythmGame
|
||||
{
|
||||
public static readonly List<Type> LowPriorityGameElementTypes = new()
|
||||
{
|
||||
typeof(NoteJudgeSubmodule_BM),
|
||||
//typeof(NoteJudgeSubmodule_BM),
|
||||
};
|
||||
|
||||
public static readonly List<Type> LowPriorityDataTypes = new()
|
||||
|
||||
Reference in New Issue
Block a user