优化对象池释放逻辑,计数器仅作为对象池复用封装

This commit is contained in:
2026-07-30 08:26:11 +08:00
parent 541053c170
commit 353cedcf1c
9 changed files with 459 additions and 304 deletions
@@ -120,10 +120,6 @@ namespace XericUI.XTable.Rendering.Component
ReleaseTracked(pair.Value);
m_Tracked.Clear();
m_Rendered.Clear();
if (ActivePrefabMap == null) return;
var keys = new List<(int, int)>();
foreach (var pair in ActivePrefabMap) keys.Add(pair.Key);
foreach (var key in keys) ActivePrefabMap.Remove(key);
}
private void ReleaseExcept(HashSet<(int, int)> target)