优化对象池释放逻辑,计数器仅作为对象池复用封装
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user