From bd0f520b494fb542d00cf5db4d38689ad36a0ec1 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 24 Feb 2022 08:41:37 -0500 Subject: [PATCH] Rename ESync option to make it clearer This also enables FSync, and Futex2 if available on your system. --- src/launchercore.cpp | 5 ++++- src/settingswindow.cpp | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/launchercore.cpp b/src/launchercore.cpp index 6e0d303..15b4e97 100755 --- a/src/launchercore.cpp +++ b/src/launchercore.cpp @@ -232,8 +232,11 @@ void LauncherCore::launchExecutable(const ProfileSettings& profile, QProcess* pr if(profile.useGamemode) arguments.push_back("gamemoderun"); - if(profile.useEsync) + if(profile.useEsync) { env << "WINEESYNC=1"; + env << "WINEFSYNC=1"; + env << "WINEFSYNC_FUTEX2=1"; + } #endif #if defined(Q_OS_MAC) || defined(Q_OS_LINUX) diff --git a/src/settingswindow.cpp b/src/settingswindow.cpp index bb8dae4..fed88c2 100644 --- a/src/settingswindow.cpp +++ b/src/settingswindow.cpp @@ -244,12 +244,12 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, LauncherCore& core, QWidg #endif #if defined(Q_OS_LINUX) - useEsync = new QCheckBox("Use Esync"); + useEsync = new QCheckBox("Use Better Sync Primitives (Esync, Fsync, and Futex2)"); wineBoxLayout->addWidget(useEsync); auto esyncLabel = new QPushButton("?"); connect(esyncLabel, &QPushButton::pressed, [esyncLabel] { - QToolTip::showText(esyncLabel->mapToGlobal(QPoint()), "Improves general game performance, but requires a Wine built with the Esync patches.\nIf you use the latest Wine staging, it should work."); + QToolTip::showText(esyncLabel->mapToGlobal(QPoint()), "This may improve game performance, but requires a Wine and kernel with the patches included."); }); wineBoxLayout->addWidget(esyncLabel);