For many people out there the cutting edge is about performance, speed of execution, speed of compiling Shaders.
Visual Studio 2022 64 bit takes 27 seconds, uses 1.1GB peak to load UE5 source and be ready to edit.
Visual Studio 2019 32 bit takes 2minutes 23, 630k Peak and takes 2 minutes 23 seconds to be ready
on a 16GB Win 10 latest build PC. You will need an SSD/NVRAM with at least 200 GB free to complete the latest build
UPDATE:- Visual Studio 2022 Preview has been updated and is according to the road map will be updated each month until final release.
UPDATE 2 A Fork repository to build Unreal 5 Early Access with Visual Studio 2022 Preview
I have built Visual Studio 2022 Preview is 64 bit and compiles and runs UE 5.0 EA
I can count fewer seconds initially generating a new project.
So this is how to build UE50EA2 using Visual Studio 2022 Preview
Download Visual Studio 2022 Preview
This has been a good project to fork a repository on GitHub of the original code to another branch.
Download Git Bash from Git - Downloading Package for Windows 10
To load the update branch in Git CMD point to the branch on GitHub with
$ git remote set-url --add --push origin https://github.com/jimshalo10/UnrealEngine-5.git
$ “git clone https://github.com/jimshalo10/UnrealEngine-5.git -b ue5EA-vs2022”
$ cd ue5EA-vs2022
$ setup.bat
$ GenerateProjectFiles.bat -2022
I tested this by disabling VS 2019, to make sure VS2022 Preview was doing all the work.
I have added extra code to see which Visual Studio is loaded
4>Found Visual Studio installation: C:\Program Files\Microsoft Visual Studio\2022\Preview (Product=Microsoft.VisualStudio.Product.Community, Version=17.0.31423.177)
4>Found Visual Studio installation: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community (Product=Microsoft.VisualStudio.Product.Community, Version=16.10.31410.357)
4>Found Visual Studio installation: C:\Program Files\Microsoft Visual Studio\2022\Preview (Product=Microsoft.VisualStudio.Product.Community, Version=17.0.31423.177)
When the build starts the status line is printed by UE5
4>Using Visual Studio 2022 14.29.30130 toolchain (C:\Program Files\Microsoft Visual Studio\2022\Preview\VC\Tools\MSVC\14.29.30130)
and Windows 10.0.18362.0 SDK (C:\Program Files (x86)\Windows Kits\10).
Download Git Bash from Git - Downloading Package for Windows 10
REM install Git command. The open it
C:\Users\Owner\source\repos> ren UnrealEngine UE50EA
C:\Users\Owner\source\repos\ue50EA>setup.bat
C:\Users\Owner\source\repos\ue50EA>
REM in Windows Explorer open the above repository path Right Click on UE5.sln and Select Visual Studio 2022 Preview
REM Visual Studio 2022 Preview opens in Solution Panel Right-click UE5 and Select “Set as Start-up Project”
REM in Solution Panel Right-click UE5 and Select Build.
REM My PC with SSD and 6 core processor,16GB Memory and 16GB page file Builds in 4712 seconds approximately 78 minutes.
When built Debug → Start without debugging.
I am getting about 20% improvement as everything is built as 64 Bit in Visual Studio 2022 Preview.
I have now found after using my hard drive has become very fragmented after loading and building. This is believed due to the Windows Defragmenter does seeming to be as efficient as the command line.
Use this method
Open the “x64 Native Tools Command Prompt for VS 2022 Preview” Right-click “More” and select Run as Administrator
then enter the command
defrag D: /H /M 16
I am defragmenting D: (1.8TB) at Normal priority using MultiThread = 16
I now use this every day/week. There is a massive boost to VS2022 when building off a hard drive.
There is a great performance improvement in building Shaders and converting Static Meshes to Nanite, possibly two seconds less. The Unreal Editor no longer has the 4GB memory limit. Therefore it can convert several hundred Static Meshes to Nanite in one command with the working memory of over 6GB whilst converting
The more people test this using the above procedure the more influence Unreal Engine 5.0 will have on Visual Studio 2022 final release, in terms of performance in compiling for Unreal Engine 5.0 and packaging of the final game.
Using Visual Studio 2022 Preview there is a significant performance boost for the Valley of The Ancient demo
I have received a request to identify all the patches applied to UE5EA to make the VS2022 Preview repository work.
Here is the Git Bash command
git grep -r -n --after=1 -i “@Vs2022” . > Vs2022patches2.txt
I have been asked how do I get updates on the original branch then set up your remote as follows check your remote
$ git remote -v
origin https://github.com/jimshalo10/UnrealEngine-5.git (fetch)
origin https://github.com/jimshalo10/UnrealEngine-5.git (push)
This will mean you get updates from the (ue5EA-vs2022) repository.
If you wish to go ahead and make your own unique version you will need the settings below. Please Remember you are now on your own and will not receive updates from my repository unless you git stash your updates.
$ git remote -v
origin https://github.com/EpicGames/UnrealEngine.git (fetch)
origin https://github.com/jimshalo10/UnrealEngine-5.git (push)
git pull origin ue5-early-access
You are going to commit these patches so an editor window will open
insert a line saying why “#seperate update which will allow unique changes”
Exit the editor and the update will take place.
Please Remember you are now on your own and will not receive updates from my repository unless you stash your updates