This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# compile FastBuild with UnrealEngine patch on Ubuntu20.04 (these commands are meant to be run manually on a terminal) | |
# check what fbuild patch version is required at: ./Engine/Extras/ThirdPartyNotUE/FASTBuild/*.diff #ex.: 0.99 | |
strPath="`pwd`/Engine/Extras/ThirdPartyNotUE/FASTBuild/Linux/dist_v0.99/" # download and extract fbuild sorce code to a folder like this | |
cd "$strPath" | |
chmod -vR u+w * # make it sure the extracted files all have write permission! | |
patch --binary -p 1 <../../fbuild_0.99.diff # I think this file was downloaded from somewhere by Setup.sh or GenerateProjectFiles.sh or may be thru make (mono), as I cant find it's origin to report the bug at the end of this text about FBuildCoordinator.bff | |
sudo apt install clang g++-7 | |
#$head "$strPath/External/SDK/Clang/Linux/Clang6.bff" | |
sed -i -r "s@(^.Clang6_BasePath = ').*(')@\1$(dirname $(which clang))\2@" "$strPath/External/SDK/Clang/Linux/Clang6.bff" # to match installed clang | |
#$head "$strPath/External/SDK/Clang/Linux/Clang6.bff" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# performace, try in order: | |
# 1) Settings/EngineScalability:LOW #WORKS! | |
# 2) foliage.forceLOD 1 #at console or ini file HELPS! | |
# 3) Settings/PreviewRenderingLevel:Android #POTATOPC! | |
# shaders compiling overloading CPU. No config will work to lower the number of child compile shaders proccesses, so just SIGSTOP all the 3 or leave one running! | |
pkill -SIGSTOP -fe "UnrealEngine.*ShaderCompileWorker.*" | |
pkill -SIGSTOP -fe "UnrealEngine.*ShaderCompileWorker.* [^0] " #keeps compiler id=0 running | |
# to increase shaders compile performance, put UE4Editor out of the way without SIGSTOP (or compiling shaders will stop working): | |
cpulimit -l 10 -p `pgrep UE4Editor` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$git clone --single-branch --branch ue5-early-access --depth=1 https://github.com/EpicGames/UnrealEngine.git | |
# was ultra slow 10KB/s. But, on south america at least, when it was about 23h, the speed went up to 1.5MB/s! | |
# I was trying many ways to resume a clone download UnrealEngine/.git/objects/pack/tmp... file, but it is currently impossible. | |
# The .zip download cannot be resumed also!!! :( | |
# I tried also to create a local branch, renamed to ue5-early-access, and was trying to fetch it in some way, but the internet speed up. So this is the next step if nothing works again later... | |
# SO, THERE IS STILL NO WORKAROUND! :( |