Skip to content

Commit ad8b217

Browse files
committed
降低进程/核心数量比
1 parent 39bde68 commit ad8b217

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Master/Assets/MultiProcessBuild/Editor/BuildPipeline.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static AssetBundleManifest BuildAssetBundles(string output, AssetBundleBu
6363
}
6464
}
6565

66-
int slaveCount = System.Environment.ProcessorCount; //TODO:
66+
int slaveCount = Mathf.Min(1, System.Environment.ProcessorCount / 2); //TODO:
6767
var jobs = tree.BuildJobs(Mathf.Max(slaveCount, 1), output, options, target);
6868
AssetBundleManifest[] results = new AssetBundleManifest[jobs.Length];
6969

0 commit comments

Comments
 (0)