-
TRY RECOMPILING once in Visual Studio.
I tried opening .sln file and in Visual Studio, tried clicking Debug button with dropdown options like (Development, DebugGame Editor) then clicked stop debub button. Closed everything. Opened just the project in UE editor. It was compiling fast enough. -
Did another change. The compiling messages suggested to update version 5_1 to 5_2 (I currently use 5.2) in ***.Target.cs
Open - ProjectFolder/Source/ProjectName.Target.cs
IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_2;
// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.Collections.Generic;
public class cp1EditorTarget : TargetRules
{
public cp1EditorTarget( TargetInfo Target) : base(Target)
{
Type = TargetType.Editor;
DefaultBuildSettings = BuildSettingsVersion.V2;
IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_2; // updated this line. old value: EngineIncludeOrderVersion.Unreal5_1;
ExtraModuleNames.Add("cp1");
}
}
- Also, Visual Studio Integration tool was playing tricks, like it said it asked to install everytime, eventhough the launcher said it is already installed.
So, checed the website, and opened Visual Studio Installer, and ticked the box for “Win 10 SDK 10.**.****” which was unselected (I use Win 10, but only Win 11 SDK was ticked)
Additional thoughts - Also someone can try to explain if it has to do something with : Intermediate\Build\Win64\x64\cp1Editor\DebugGame\Engine\SharedPCH.Engine.NonOptimized.ShadowErrors.h
which was created from scratch every time, and grew up to 1.5 GB of size. Logs.txt said this file was outdated.
This link says, the file’s timezone difference also counts. So, have to recompile when DST time changes every year.
Why are my PCHs out of date? | Andy Hippo (werat.dev)