diff --git a/openrct2.common.props b/openrct2.common.props
index ad32ad3818..2025a0f66e 100644
--- a/openrct2.common.props
+++ b/openrct2.common.props
@@ -21,6 +21,10 @@
x64-windows-static
arm64-windows-static
+
+
+ true
+
true
@@ -131,3 +135,4 @@
false
+
diff --git a/src/openrct2-ui/libopenrct2ui.vcxproj b/src/openrct2-ui/libopenrct2ui.vcxproj
index e450099bc4..c845a3b418 100644
--- a/src/openrct2-ui/libopenrct2ui.vcxproj
+++ b/src/openrct2-ui/libopenrct2ui.vcxproj
@@ -1,4 +1,4 @@
-
+
..\..\
@@ -80,6 +80,7 @@
+
@@ -145,6 +146,9 @@
+
+ Create
+
@@ -255,6 +259,9 @@
USE_BREAKPAD;%(PreprocessorDefinitions)
+ Use
+ openrct2ui_pch.h
+ openrct2ui_pch.h
@@ -268,4 +275,4 @@
-
\ No newline at end of file
+
diff --git a/src/openrct2-ui/openrct2ui_pch.cpp b/src/openrct2-ui/openrct2ui_pch.cpp
new file mode 100644
index 0000000000..f59bda8635
--- /dev/null
+++ b/src/openrct2-ui/openrct2ui_pch.cpp
@@ -0,0 +1,2 @@
+// Empty file for MSVC's PCH
+// Do not include the header file - it is set up with MSVC solution
diff --git a/src/openrct2-ui/openrct2ui_pch.h b/src/openrct2-ui/openrct2ui_pch.h
new file mode 100644
index 0000000000..e94d052f4c
--- /dev/null
+++ b/src/openrct2-ui/openrct2ui_pch.h
@@ -0,0 +1,24 @@
+#pragma once
+
+// Precompiled header for libopenrct2ui project
+
+// Standard library headers that are expensive to compile
+#include
+#include
+#include
+#include
+#include
+#include
+
+// Project core headers (from libopenrct2) that are used in UI
+#include "../openrct2/Context.h"
+#include "../openrct2/GameState.h"
+#include "../openrct2/core/StringTypes.h"
+
+// Interface headers that are widely used in UI
+// Note: These must be in dependency order
+#include "../openrct2/interface/Viewport.h"
+#include "../openrct2/interface/Window.h"
+#include "interface/Viewport.h"
+#include "interface/Widget.h"
+#include "interface/Window.h"
diff --git a/src/openrct2/libopenrct2.vcxproj b/src/openrct2/libopenrct2.vcxproj
index cfb8a4958a..c4816bddb5 100644
--- a/src/openrct2/libopenrct2.vcxproj
+++ b/src/openrct2/libopenrct2.vcxproj
@@ -391,7 +391,7 @@
-
+
diff --git a/src/openrct2/openrct2_pch.h b/src/openrct2/openrct2_pch.h
index 655dac226e..4c7a028820 100644
--- a/src/openrct2/openrct2_pch.h
+++ b/src/openrct2/openrct2_pch.h
@@ -2,7 +2,24 @@
// Include some expensive headers here to improve compilation speed
+// Standard library headers that are frequently used and expensive to compile
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+// Core project headers with high compile cost and wide usage
+#include "core/DataSerialiser.h"
+#include "core/DataSerialiserTraits.h"
#include "core/FileSystem.hpp"
+#include "core/StringTypes.h"
+
+// Key project headers used across many files
+#include "Context.h"
+#include "GameState.h"
#include "object/Object.h"
#include "rct2/RCT2.h"
#include "ride/Ride.h"
diff --git a/test/tests/tests.vcxproj b/test/tests/tests.vcxproj
index 40cb31d587..b327d8798c 100644
--- a/test/tests/tests.vcxproj
+++ b/test/tests/tests.vcxproj
@@ -59,6 +59,9 @@
GTEST_LANG_CXX11;%(PreprocessorDefinitions)
+ Use
+ tests_pch.h
+ tests_pch.h
libopenrct2.lib;%(AdditionalDependencies)
@@ -76,6 +79,7 @@
+
@@ -102,6 +106,9 @@
+
+ Create
+
@@ -119,4 +126,5 @@
-
\ No newline at end of file
+
+
diff --git a/test/tests/tests_pch.cpp b/test/tests/tests_pch.cpp
new file mode 100644
index 0000000000..f59bda8635
--- /dev/null
+++ b/test/tests/tests_pch.cpp
@@ -0,0 +1,2 @@
+// Empty file for MSVC's PCH
+// Do not include the header file - it is set up with MSVC solution
diff --git a/test/tests/tests_pch.h b/test/tests/tests_pch.h
new file mode 100644
index 0000000000..9df68d8660
--- /dev/null
+++ b/test/tests/tests_pch.h
@@ -0,0 +1,11 @@
+#pragma once
+
+// Precompiled header for tests project
+
+// GTest headers
+#include
+
+// Standard library headers
+#include
+#include
+#include