diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-10-28 22:56:18 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-10-28 22:56:18 +0200 |
commit | 4b80d34be4b95fd8c1154f9b108459db82d9d91b (patch) | |
tree | 21ce409d473681116d44f6ef094d94c43bc23899 /api/logic | |
parent | d4b82f11ca4867649b825d3a366724bbfcd63695 (diff) | |
download | MultiMC-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')
-rw-r--r-- | api/logic/minecraft/MinecraftInstance.cpp | 5 |
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_" |