diff --git a/Runtime/XChart/Mesh/XChartMeshFillRenderer.cs b/Runtime/XChart/Mesh/XChartMeshFillRenderer.cs index c6596be..15e5429 100644 --- a/Runtime/XChart/Mesh/XChartMeshFillRenderer.cs +++ b/Runtime/XChart/Mesh/XChartMeshFillRenderer.cs @@ -26,10 +26,10 @@ namespace XericUI.XChart.Mesh /// /// 顶点预算(纯算,离线可验)。 /// - /// 为什么要有它:UGUI 的 65535 顶点上限是每个 Graphic 各自的 - /// (`VertexHelper.FillMesh` 超了就抛 `Mesh can not have more than 65000 vertices`,他 2026-10-23 - /// 现场中过一次),而有些元素是按记录数长网格的(散点一个点 1 个四边形、圆柱填充一片轮廓) - /// ⇒ 数据一多就会撞。 + /// 为什么要有它:UGUI 的顶点上限是每个 Graphic 各自的,而且门槛是 + /// 65000 不是 65535(`VertexHelper.FillMesh`:`if (m_Positions.Count >= 65000) throw`, + /// 他 2026-10-23 与 2026-11-11 各现场中过一次),而有些元素是按记录数长网格的 + /// (散点一个点 1 个四边形、圆柱填充一片轮廓)⇒ 数据一多就会撞。 /// /// 填充这一侧不分块(2026-11-08 他要求:自己写简单填充,不要那套 chunk 子物体), /// 所以判据从"切成几块"换成"装不下的那部分必须整段放弃、并且必须报出来"—— @@ -37,8 +37,12 @@ namespace XericUI.XChart.Mesh /// public static class XChartMeshBudget { - /// UGUI 每个 Graphic 的硬上限(`VertexHelper.FillMesh` 超过就抛) - public const int GraphicVertexCap = 65535; + /// + /// UGUI 每个 Graphic 的硬上限:`VertexHelper.FillMesh` 的判据是 + /// `if (m_Positions.Count >= 65000) throw`(ugui 1.0.0,VertexHelper.cs:214), + /// 所以能装的是 64999,不是 65535——写 65535 会让 65000..65535 这一段必然抛。 + /// + public const int GraphicVertexCap = 64999; /// /// 按提交顺序能装进 的前缀面数。