summaryrefslogtreecommitdiffstats
path: root/api/logic/minecraft/MinecraftInstance.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-10-28 22:56:18 +0200
committerPetr Mrázek <peterix@gmail.com>2017-10-28 22:56:18 +0200
commit4b80d34be4b95fd8c1154f9b108459db82d9d91b (patch)
tree21ce409d473681116d44f6ef094d94c43bc23899 /api/logic/minecraft/MinecraftInstance.cpp
parentd4b82f11ca4867649b825d3a366724bbfcd63695 (diff)
downloadMultiMC-4b80d34be4b95fd8c1154f9b108459db82d9d91b.tar
MultiMC-4b80d34be4b95fd8c1154f9b108459db82d9d91b.tar.gz
MultiMC-4b80d34be4b95fd8c1154f9b108459db82d9d91b.tar.lz
MultiMC-4b80d34be4b95fd8c1154f9b108459db82d9d91b.tar.xz
MultiMC-4b80d34be4b95fd8c1154f9b108459db82d9d91b.zip
GH-2026 start Minecraft on first thread on macOS
This should fix issues with the 1.13 snapshots
Diffstat (limited to 'api/logic/minecraft/MinecraftInstance.cpp')
-rw-r--r--api/logic/minecraft/MinecraftInstance.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/api/logic/minecraft/MinecraftInstance.cpp b/api/logic/minecraft/MinecraftInstance.cpp
index 14de2f5f..bf9a758a 100644
--- a/api/logic/minecraft/MinecraftInstance.cpp
+++ b/api/logic/minecraft/MinecraftInstance.cpp
@@ -299,6 +299,11 @@ QStringList MinecraftInstance::javaArguments() const
args << QString("-Xdock:name=\"%1\"").arg(windowTitle());
#endif
+ // HACK: fix issues on macOS with 1.13 snapshots
+#ifdef Q_OS_WIN32
+ args << QString("-XstartOnFirstThread");
+#endif
+
// HACK: Stupid hack for Intel drivers. See: https://mojang.atlassian.net/browse/MCL-767
#ifdef Q_OS_WIN32
args << QString("-XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_"