summarylogtreecommitdiffstats
path: root/processor_multiplier.patch
diff options
context:
space:
mode:
authorZerophase2021-05-02 20:37:54 -0500
committerZerophase2021-05-02 20:38:36 -0500
commit6d715da92e65a716f1cbbd023d3c64164de79985 (patch)
tree355c1786c4576243b9cfe7d76e04e9731ea48b87 /processor_multiplier.patch
parentc5c8add43edbcaabd60046937958d16b138fe738 (diff)
downloadaur-6d715da92e65a716f1cbbd023d3c64164de79985.tar.gz
Improves ccache support and adds support for processor multiplier while compiling
Diffstat (limited to 'processor_multiplier.patch')
-rw-r--r--processor_multiplier.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/processor_multiplier.patch b/processor_multiplier.patch
new file mode 100644
index 00000000000..4620a612b02
--- /dev/null
+++ b/processor_multiplier.patch
@@ -0,0 +1,13 @@
+diff --git a/Engine/Source/Programs/UnrealBuildTool/Executors/LocalExecutor.cs b/Engine/Source/Programs/UnrealBuildTool/Executors/LocalExecutor.cs
+index 47cd98680ba..1072d5bc3e6 100644
+--- a/Engine/Source/Programs/UnrealBuildTool/Executors/LocalExecutor.cs
++++ b/Engine/Source/Programs/UnrealBuildTool/Executors/LocalExecutor.cs
+@@ -305,7 +305,7 @@ namespace UnrealBuildTool
+ // No hyper-threading. Only kicking off a task per CPU to keep machine responsive.
+ else
+ {
+- MaxActionsToExecuteInParallel = NumPhysicalCores;
++ MaxActionsToExecuteInParallel = (int) (NumPhysicalCores * ProcessorCountMultiplier);
+ }
+
+ #if !NET_CORE