From 3daa6b469a30604e1de98a8deaba84e21b12b7e5 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 1 Apr 2020 22:26:46 +1000 Subject: [PATCH] Build: Explicitly disable spectre mitigations Mitigations-off gave a roughly 20-25% boost in performance on my laptop (i7-7700HQ), even with the recompiler. It seems AppVeyor was building with them enabled. You shouldn't treat an emulator like a sandbox and run untrusted code in it amyway. --- dep/cubeb/cubeb.vcxproj | 4 ++++ dep/glad/glad.vcxproj | 4 ++++ dep/imgui/imgui.vcxproj | 4 ++++ dep/libFLAC/libFLAC.vcxproj | 4 ++++ dep/libchdr/libchdr.vcxproj | 4 ++++ dep/libcue/libcue.vcxproj | 4 ++++ dep/lzma/lzma.vcxproj | 4 ++++ dep/minizip/minizip.vcxproj | 4 ++++ dep/nativefiledialog/nativefiledialog.vcxproj | 4 ++++ dep/simpleini/simpleini.vcxproj | 4 ++++ dep/stb/stb.vcxproj | 4 ++++ dep/tinyxml2/tinyxml2.vcxproj | 4 ++++ dep/xxhash/xxhash.vcxproj | 4 ++++ dep/zlib/zlib.vcxproj | 4 ++++ src/common/common.vcxproj | 4 ++++ src/core/core.vcxproj | 4 ++++ src/duckstation-qt/duckstation-qt.vcxproj | 4 ++++ src/duckstation-qt/duckstation-qt.vcxproj.filters | 6 +++++- src/duckstation-sdl/duckstation-sdl.vcxproj | 4 ++++ src/frontend-common/frontend-common.vcxproj | 4 ++++ 20 files changed, 81 insertions(+), 1 deletion(-) diff --git a/dep/cubeb/cubeb.vcxproj b/dep/cubeb/cubeb.vcxproj index fb8847881..299a9399d 100644 --- a/dep/cubeb/cubeb.vcxproj +++ b/dep/cubeb/cubeb.vcxproj @@ -106,6 +106,7 @@ v142 true NotSet + false StaticLibrary @@ -113,6 +114,7 @@ v142 true NotSet + false StaticLibrary @@ -120,6 +122,7 @@ v142 true NotSet + false StaticLibrary @@ -127,6 +130,7 @@ v142 true NotSet + false diff --git a/dep/glad/glad.vcxproj b/dep/glad/glad.vcxproj index e53be7ba2..9f475f04d 100644 --- a/dep/glad/glad.vcxproj +++ b/dep/glad/glad.vcxproj @@ -78,6 +78,7 @@ v142 true NotSet + false StaticLibrary @@ -85,6 +86,7 @@ v142 true NotSet + false StaticLibrary @@ -92,6 +94,7 @@ v142 true NotSet + false StaticLibrary @@ -99,6 +102,7 @@ v142 true NotSet + false diff --git a/dep/imgui/imgui.vcxproj b/dep/imgui/imgui.vcxproj index 7373aa884..615f9e3f4 100644 --- a/dep/imgui/imgui.vcxproj +++ b/dep/imgui/imgui.vcxproj @@ -91,6 +91,7 @@ true NotSet v142 + false StaticLibrary @@ -98,6 +99,7 @@ true NotSet v142 + false StaticLibrary @@ -105,6 +107,7 @@ true NotSet v142 + false StaticLibrary @@ -112,6 +115,7 @@ true NotSet v142 + false diff --git a/dep/libFLAC/libFLAC.vcxproj b/dep/libFLAC/libFLAC.vcxproj index 664ec3942..91eaa01d6 100644 --- a/dep/libFLAC/libFLAC.vcxproj +++ b/dep/libFLAC/libFLAC.vcxproj @@ -94,6 +94,7 @@ v142 true NotSet + false StaticLibrary @@ -101,6 +102,7 @@ v142 true NotSet + false StaticLibrary @@ -108,6 +110,7 @@ v142 true NotSet + false StaticLibrary @@ -115,6 +118,7 @@ v142 true NotSet + false diff --git a/dep/libchdr/libchdr.vcxproj b/dep/libchdr/libchdr.vcxproj index 2875debe2..b332eb3c4 100644 --- a/dep/libchdr/libchdr.vcxproj +++ b/dep/libchdr/libchdr.vcxproj @@ -101,6 +101,7 @@ v142 true NotSet + false StaticLibrary @@ -108,6 +109,7 @@ v142 true NotSet + false StaticLibrary @@ -115,6 +117,7 @@ v142 true NotSet + false StaticLibrary @@ -122,6 +125,7 @@ v142 true NotSet + false diff --git a/dep/libcue/libcue.vcxproj b/dep/libcue/libcue.vcxproj index 6774176b3..a9cb999a2 100644 --- a/dep/libcue/libcue.vcxproj +++ b/dep/libcue/libcue.vcxproj @@ -91,6 +91,7 @@ v142 true NotSet + false StaticLibrary @@ -98,6 +99,7 @@ v142 true NotSet + false StaticLibrary @@ -105,6 +107,7 @@ v142 true NotSet + false StaticLibrary @@ -112,6 +115,7 @@ v142 true NotSet + false diff --git a/dep/lzma/lzma.vcxproj b/dep/lzma/lzma.vcxproj index e3f3540be..99b935280 100644 --- a/dep/lzma/lzma.vcxproj +++ b/dep/lzma/lzma.vcxproj @@ -85,6 +85,7 @@ v142 true NotSet + false StaticLibrary @@ -92,6 +93,7 @@ v142 true NotSet + false StaticLibrary @@ -99,6 +101,7 @@ v142 true NotSet + false StaticLibrary @@ -106,6 +109,7 @@ v142 true NotSet + false diff --git a/dep/minizip/minizip.vcxproj b/dep/minizip/minizip.vcxproj index 2b0bc45c9..847b41e23 100644 --- a/dep/minizip/minizip.vcxproj +++ b/dep/minizip/minizip.vcxproj @@ -91,6 +91,7 @@ v142 true NotSet + false StaticLibrary @@ -98,6 +99,7 @@ v142 true NotSet + false StaticLibrary @@ -105,6 +107,7 @@ v142 true NotSet + false StaticLibrary @@ -112,6 +115,7 @@ v142 true NotSet + false diff --git a/dep/nativefiledialog/nativefiledialog.vcxproj b/dep/nativefiledialog/nativefiledialog.vcxproj index d398e4520..115d0d53e 100644 --- a/dep/nativefiledialog/nativefiledialog.vcxproj +++ b/dep/nativefiledialog/nativefiledialog.vcxproj @@ -80,6 +80,7 @@ v142 true NotSet + false StaticLibrary @@ -87,6 +88,7 @@ v142 true NotSet + false StaticLibrary @@ -94,6 +96,7 @@ v142 true NotSet + false StaticLibrary @@ -101,6 +104,7 @@ v142 true NotSet + false diff --git a/dep/simpleini/simpleini.vcxproj b/dep/simpleini/simpleini.vcxproj index 3e0f7e4be..df29c9e3d 100644 --- a/dep/simpleini/simpleini.vcxproj +++ b/dep/simpleini/simpleini.vcxproj @@ -78,6 +78,7 @@ v142 true NotSet + false StaticLibrary @@ -85,6 +86,7 @@ v142 true NotSet + false StaticLibrary @@ -92,6 +94,7 @@ v142 true NotSet + false StaticLibrary @@ -99,6 +102,7 @@ v142 true NotSet + false diff --git a/dep/stb/stb.vcxproj b/dep/stb/stb.vcxproj index eb8d6ca3c..55e216bb8 100644 --- a/dep/stb/stb.vcxproj +++ b/dep/stb/stb.vcxproj @@ -79,6 +79,7 @@ v142 true NotSet + false StaticLibrary @@ -86,6 +87,7 @@ v142 true NotSet + false StaticLibrary @@ -93,6 +95,7 @@ v142 true NotSet + false StaticLibrary @@ -100,6 +103,7 @@ v142 true NotSet + false diff --git a/dep/tinyxml2/tinyxml2.vcxproj b/dep/tinyxml2/tinyxml2.vcxproj index 64dc91b4c..1292d28b9 100644 --- a/dep/tinyxml2/tinyxml2.vcxproj +++ b/dep/tinyxml2/tinyxml2.vcxproj @@ -77,6 +77,7 @@ v142 true NotSet + false StaticLibrary @@ -84,6 +85,7 @@ v142 true NotSet + false StaticLibrary @@ -91,6 +93,7 @@ v142 true NotSet + false StaticLibrary @@ -98,6 +101,7 @@ v142 true NotSet + false diff --git a/dep/xxhash/xxhash.vcxproj b/dep/xxhash/xxhash.vcxproj index 57b265bdb..0a5673a22 100644 --- a/dep/xxhash/xxhash.vcxproj +++ b/dep/xxhash/xxhash.vcxproj @@ -78,6 +78,7 @@ v142 true NotSet + false StaticLibrary @@ -85,6 +86,7 @@ v142 true NotSet + false StaticLibrary @@ -92,6 +94,7 @@ v142 true NotSet + false StaticLibrary @@ -99,6 +102,7 @@ v142 true NotSet + false diff --git a/dep/zlib/zlib.vcxproj b/dep/zlib/zlib.vcxproj index 468ef04c4..dfb749009 100644 --- a/dep/zlib/zlib.vcxproj +++ b/dep/zlib/zlib.vcxproj @@ -101,6 +101,7 @@ v142 true NotSet + false StaticLibrary @@ -108,6 +109,7 @@ v142 true NotSet + false StaticLibrary @@ -115,6 +117,7 @@ v142 true NotSet + false StaticLibrary @@ -122,6 +125,7 @@ v142 true NotSet + false diff --git a/src/common/common.vcxproj b/src/common/common.vcxproj index 21941c4b6..b8a9532c2 100644 --- a/src/common/common.vcxproj +++ b/src/common/common.vcxproj @@ -159,6 +159,7 @@ true NotSet v142 + false StaticLibrary @@ -166,6 +167,7 @@ true NotSet v142 + false StaticLibrary @@ -173,6 +175,7 @@ true NotSet v142 + false StaticLibrary @@ -180,6 +183,7 @@ true NotSet v142 + false diff --git a/src/core/core.vcxproj b/src/core/core.vcxproj index eae4750ca..aa6682266 100644 --- a/src/core/core.vcxproj +++ b/src/core/core.vcxproj @@ -180,6 +180,7 @@ v142 true NotSet + false StaticLibrary @@ -187,6 +188,7 @@ v142 true NotSet + false StaticLibrary @@ -194,6 +196,7 @@ v142 true NotSet + false StaticLibrary @@ -201,6 +204,7 @@ v142 true NotSet + false diff --git a/src/duckstation-qt/duckstation-qt.vcxproj b/src/duckstation-qt/duckstation-qt.vcxproj index 9546a8ee1..d4404eb79 100644 --- a/src/duckstation-qt/duckstation-qt.vcxproj +++ b/src/duckstation-qt/duckstation-qt.vcxproj @@ -185,6 +185,7 @@ v142 true NotSet + false Application @@ -192,6 +193,7 @@ v142 true NotSet + false Application @@ -199,6 +201,7 @@ v142 true NotSet + false Application @@ -206,6 +209,7 @@ v142 true NotSet + false diff --git a/src/duckstation-qt/duckstation-qt.vcxproj.filters b/src/duckstation-qt/duckstation-qt.vcxproj.filters index 849bb9d35..2bb41ddde 100644 --- a/src/duckstation-qt/duckstation-qt.vcxproj.filters +++ b/src/duckstation-qt/duckstation-qt.vcxproj.filters @@ -35,12 +35,13 @@ + + - @@ -65,6 +66,8 @@ + + @@ -73,6 +76,7 @@ + diff --git a/src/duckstation-sdl/duckstation-sdl.vcxproj b/src/duckstation-sdl/duckstation-sdl.vcxproj index 4d8c25285..02c82b077 100644 --- a/src/duckstation-sdl/duckstation-sdl.vcxproj +++ b/src/duckstation-sdl/duckstation-sdl.vcxproj @@ -107,6 +107,7 @@ v142 true NotSet + false Application @@ -114,6 +115,7 @@ v142 true NotSet + false Application @@ -121,6 +123,7 @@ v142 true NotSet + false Application @@ -128,6 +131,7 @@ v142 true NotSet + false diff --git a/src/frontend-common/frontend-common.vcxproj b/src/frontend-common/frontend-common.vcxproj index 964328726..d7287d489 100644 --- a/src/frontend-common/frontend-common.vcxproj +++ b/src/frontend-common/frontend-common.vcxproj @@ -118,6 +118,7 @@ true NotSet v142 + false StaticLibrary @@ -125,6 +126,7 @@ true NotSet v142 + false StaticLibrary @@ -132,6 +134,7 @@ true NotSet v142 + false StaticLibrary @@ -139,6 +142,7 @@ true NotSet v142 + false