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:
parent
7b96e422df
commit
bd0f520b49
2 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue