1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 19:57:45 +00:00

Rename ESync option to make it clearer

This also enables FSync, and Futex2 if available on your system.
This commit is contained in:
Joshua Goins 2022-02-24 08:41:37 -05:00
parent 7b96e422df
commit bd0f520b49
2 changed files with 6 additions and 3 deletions

View file

@ -232,8 +232,11 @@ void LauncherCore::launchExecutable(const ProfileSettings& profile, QProcess* pr
if(profile.useGamemode) if(profile.useGamemode)
arguments.push_back("gamemoderun"); arguments.push_back("gamemoderun");
if(profile.useEsync) if(profile.useEsync) {
env << "WINEESYNC=1"; env << "WINEESYNC=1";
env << "WINEFSYNC=1";
env << "WINEFSYNC_FUTEX2=1";
}
#endif #endif
#if defined(Q_OS_MAC) || defined(Q_OS_LINUX) #if defined(Q_OS_MAC) || defined(Q_OS_LINUX)

View file

@ -244,12 +244,12 @@ SettingsWindow::SettingsWindow(LauncherWindow& window, LauncherCore& core, QWidg
#endif #endif
#if defined(Q_OS_LINUX) #if defined(Q_OS_LINUX)
useEsync = new QCheckBox("Use Esync"); useEsync = new QCheckBox("Use Better Sync Primitives (Esync, Fsync, and Futex2)");
wineBoxLayout->addWidget(useEsync); wineBoxLayout->addWidget(useEsync);
auto esyncLabel = new QPushButton("?"); auto esyncLabel = new QPushButton("?");
connect(esyncLabel, &QPushButton::pressed, [esyncLabel] { 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); wineBoxLayout->addWidget(esyncLabel);