From 99a11d2bb19d74f6cc8584ac16838062af4fb301 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 03 四月 2026 11:24:07 +0800
Subject: [PATCH] webgl 优化
---
Main/System/SpineUpdateManager.cs | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/Main/System/SpineUpdateManager.cs b/Main/System/SpineUpdateManager.cs
index ad594de..38186c3 100644
--- a/Main/System/SpineUpdateManager.cs
+++ b/Main/System/SpineUpdateManager.cs
@@ -67,15 +67,12 @@
continue;
}
if (!sg.isActiveAndEnabled) continue;
- // 鎵嬪姩椹卞姩鍔ㄧ敾鏇存柊锛歎pdate(float)涓嶆鏌reeze锛岀洿鎺ユ洿鏂板姩鐢荤姸鎬�
sg.Update(dt);
}
}
void LateUpdate()
{
- // 闅斿抚鏇存柊Mesh锛氬姩鐢荤姸鎬佹瘡甯ф洿鏂颁繚璇佷簨浠跺噯纭紝浣哅esh閲嶅缓锛堝紑閿�澶э級闅斿抚鍗冲彲
- // 鏁伴噺灏戞椂姣忓抚閮芥洿鏂帮紝鏁伴噺澶氫簬8涓椂闅斿抚鏇存柊浠ュ噺灏慍PU璐熸媴
bool skipMesh = managedSpines.Count > 8 && (frameCount & 1) == 0;
for (int i = managedSpines.Count - 1; i >= 0; i--)
@@ -89,7 +86,6 @@
}
if (!sg.isActiveAndEnabled) continue;
if (skipMesh) continue;
- // 鎵嬪姩椹卞姩Mesh鏇存柊锛氱洿鎺ヨ皟鐢║pdateMesh()锛屼笉缁忚繃LateUpdate()鐨刦reeze妫�鏌�
sg.UpdateMesh();
}
}
--
Gitblit v1.8.0