You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
36 lines
850 B
C#
36 lines
850 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace UnrealBuildTool
|
|||
|
|
{
|
|||
|
|
class RemoteExecutor : LocalExecutor
|
|||
|
|
{
|
|||
|
|
double AdjustedProcessorCountMultiplierValue;
|
|||
|
|
|
|||
|
|
public RemoteExecutor()
|
|||
|
|
{
|
|||
|
|
Int32 RemoteCPUCount = RPCUtilHelper.GetCommandSlots();
|
|||
|
|
if (RemoteCPUCount == 0)
|
|||
|
|
{
|
|||
|
|
RemoteCPUCount = Environment.ProcessorCount;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
AdjustedProcessorCountMultiplierValue = (Double)RemoteCPUCount / (Double)Environment.ProcessorCount;
|
|||
|
|
Log.TraceVerbose("Adjusting the remote Mac compile process multiplier to " + AdjustedProcessorCountMultiplierValue.ToString());
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public override string Name
|
|||
|
|
{
|
|||
|
|
get { return "Remote"; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public override double AdjustedProcessorCountMultiplier
|
|||
|
|
{
|
|||
|
|
get { return AdjustedProcessorCountMultiplierValue; }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|