소스 검색

ThreadingHelper: Use Environment.ProcessorCount instead of SystemInfo.processorCount
Rebase of a41c082

Bepis 4 년 전
부모
커밋
d696380f74
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      BepInEx.Unity/ThreadingHelper.cs

+ 1 - 1
BepInEx.Unity/ThreadingHelper.cs

@@ -214,7 +214,7 @@ namespace BepInEx
 		public static IEnumerable<TOut> RunParallel<TIn, TOut>(this IList<TIn> data, Func<TIn, TOut> work, int workerCount = -1)
 		{
 			if (workerCount < 0)
-				workerCount = Mathf.Max(2, SystemInfo.processorCount);
+				workerCount = Mathf.Max(2, Environment.ProcessorCount);
 			else if (workerCount == 0)
 				throw new ArgumentException("Need at least 1 worker", nameof(workerCount));