着重优化调度

Signed-off-by: TRADER_FOER <lhf190@outlook.com>
This commit is contained in:
2026-07-21 09:58:21 +08:00
parent 04ec368a59
commit 02617c1385
117 changed files with 107322 additions and 1326 deletions

View File

@@ -35,6 +35,7 @@ namespace Ichni.RhythmGame
this.path.sampleRate = 8;
this.path.updateMode = SplineComputer.UpdateMode.LateUpdate;
this.path.enabled = false;
SetUpSplineComputer(this.trackSpaceType, this.trackSamplingType);
//闭合路径在PathNode生成时执行在初始化的情况下PathNode数量为0不会执行闭合操作
@@ -109,4 +110,4 @@ namespace Ichni.RhythmGame
}
#endregion
}
}

View File

@@ -52,12 +52,12 @@ namespace Ichni.RhythmGame
this.materialThemeBundleName = materialThemeBundleName;
this.materialName = materialName;
Material mat = ThemeBundleManager.instance.GetObject<Material>(materialThemeBundleName, materialName);
if(mat != null)
if (mat != null)
{
renderMaterial = mat;
meshRenderer.material = renderMaterial;
}
meshRenderer.InitializeShader();
}
@@ -88,7 +88,7 @@ namespace Ichni.RhythmGame
}
return;
}
track.dirtyMarkSubmodule?.MarkDirty();
/*if (forceImmediateRebuild)
{
meshGenerator.RebuildImmediate();

View File

@@ -36,6 +36,7 @@ namespace Ichni.RhythmGame
this.uvMode = MeshGenerator.UVMode.UniformClip;
SetMesh();
this.splineRenderer.enabled = false;
}
#endregion

View File

@@ -35,6 +35,7 @@ namespace Ichni.RhythmGame
this.uvMode = MeshGenerator.UVMode.UniformClip;
SetMesh();
this.pathGenerator.enabled = false;
}
#endregion

View File

@@ -34,6 +34,7 @@ namespace Ichni.RhythmGame
this.surface.uvMode = MeshGenerator.UVMode.UniformClip;
SetMesh();
this.surface.enabled = false;
}
#endregion

View File

@@ -37,6 +37,7 @@ namespace Ichni.RhythmGame
this.tubeGenerator.uvMode = MeshGenerator.UVMode.UniformClip;
SetMesh();
this.tubeGenerator.enabled = false;
}
#endregion

View File

@@ -110,7 +110,7 @@ namespace Ichni.RhythmGame
return Mathf.Clamp01(per);
}
#endregion
#region [] Behavior Overrides
public override void Refresh()
{
@@ -149,7 +149,7 @@ namespace Ichni.RhythmGame
//timeDurationSubmodule 根据下辖Note的时间来设置
}
#endregion
#region [] Behavior Overrides
public override void Refresh()
{