优化不必要的GC
This commit is contained in:
何冠峰
2025-07-23 11:07:29 +08:00
parent 33907ea967
commit 268792b576
5 changed files with 42 additions and 69 deletions
@@ -1,4 +1,6 @@
using System.Collections;
using System.Collections.Generic;
namespace YooAsset
{
internal interface IBundleQuery
@@ -11,21 +13,11 @@ namespace YooAsset
/// <summary>
/// 获取依赖的资源包信息集合
/// </summary>
BundleInfo[] GetDependBundleInfos(AssetInfo assetPath);
List<BundleInfo> GetDependBundleInfos(AssetInfo assetPath);
/// <summary>
/// 获取主资源包名称
/// </summary>
string GetMainBundleName(int bundleID);
/// <summary>
/// 获取主资源包名称
/// </summary>
string GetMainBundleName(AssetInfo assetInfo);
/// <summary>
/// 获取依赖的资源包名称集合
/// </summary>
string[] GetDependBundleNames(AssetInfo assetInfo);
}
}