Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于资源收集太多导致编辑器启动卡顿问题 #314

Open
lzy3760 opened this issue Jun 19, 2024 · 1 comment
Open

关于资源收集太多导致编辑器启动卡顿问题 #314

lzy3760 opened this issue Jun 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@lzy3760
Copy link

lzy3760 commented Jun 19, 2024

BuildBundleInfo.cs脚本下

        /// <summary>
        /// 是否包含指定资源
        /// </summary>
public bool IsContainsAsset(string assetPath)
        {
            foreach (var buildAsset in MainAssets)
            {
                if (buildAsset.AssetInfo.AssetPath == assetPath)
                {
                    return true;
                }
            }
            return false;
        }

如果一个收集器下资源收集太多,编辑器启动时会特别卡顿。把这一块处理了下,感觉流畅了不少

@gmhevinci gmhevinci added the enhancement New feature or request label Jul 8, 2024
@gmhevinci
Copy link
Collaborator

感谢反馈,可以用字典存储来查询。后面版本优化

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants