GPU优化

This commit is contained in:
SoulliesOfficial
2026-02-27 08:21:00 -05:00
parent 0109878661
commit a635ec4221
872 changed files with 197615 additions and 2054 deletions

View File

@@ -27,6 +27,7 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
{
hold.trackPositioner.SetPercent(startPercent);
noteVisualHold.meshGenerator.SetClipRange(startPercent, endPercent);
//noteVisualHold.extrude.Range = new Vector2(startPercent, endPercent);
noteVisualHold.headPoint.SetPercent(startPercent);
noteVisualHold.tailPoint.SetPercent(endPercent);
}

View File

@@ -6,6 +6,7 @@ using Ichni.RhythmGame.Beatmap;
using Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse.Beatmap;
using UniRx;
using UnityEngine;
using UnityEngine.Splines;
namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
{
@@ -16,6 +17,8 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
public MeshGenerator meshGenerator;
public SplinePositioner headPoint, tailPoint;
public SplineExtrude extrude;
public new static DTMNoteVisualHold GenerateElement(string elementName, Guid id, List<string> tags,
bool isFirstGenerated, string themeBundleName, string objectName, GameElement parentElement, bool isHighlighted)
{
@@ -37,6 +40,7 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
this.headPoint = notePartList[0].GetComponent<SplinePositioner>();
this.meshGenerator = notePartList[1].GetComponent<MeshGenerator>();
this.extrude = notePartList[1].GetComponent<SplineExtrude>();
this.tailPoint = notePartList[2].GetComponent<SplinePositioner>();
this.hold.trackPositioner.autoUpdate = false;
@@ -44,6 +48,9 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
headPoint.spline = hold.track.trackPathSubmodule.path;
meshGenerator.spline = hold.track.trackPathSubmodule.path;
tailPoint.spline = hold.track.trackPathSubmodule.path;
//meshGenerator.enabled = false;
//extrude.Container = hold.track.trackPathSubmodule.container;
}
public override void AfterInitialize()
@@ -96,6 +103,8 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
hold.trackPositioner.SetPercent(startPercent);
meshGenerator.SetClipRange(startPercent, endPercent);
//Debug.Log("Range: " + startPercent + " - " + endPercent);
//extrude.Range = new Vector2(startPercent, endPercent);
headPoint.SetPercent(startPercent);
tailPoint.SetPercent(endPercent);
}
@@ -115,6 +124,9 @@ namespace Ichni.RhythmGame.ThemeBundles.DepartureToMultiverse
transformSubmodule.positionDirtyMark = false;
willRefresh = true;
transformSubmodule.positionOffset = Vector3.zero;
//extrude.transform.localPosition = Vector3.zero - hold.transform.localPosition;
//extrude.transform.localEulerAngles = Vector3.zero - hold.transform.localEulerAngles;
}
if (refreshAll && willRefresh)