Added automatic DXVK_ASYNC=1 setting for dxvk-async

This commit is contained in:
Observer KRypt0n_ 2022-08-02 08:24:34 +02:00
parent 4a83100b7e
commit 85b2e6741e
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
2 changed files with 8 additions and 1 deletions

View file

@ -127,7 +127,7 @@ Adw.PreferencesPage page {
Adw.ExpanderRow dxvk_async {
title: "Async";
subtitle: "This version is not recommended for usage as can lead to anti-cheat detection";
subtitle: "This version is not recommended for usage as can lead to anti-cheat detection. Automatically uses DXVK_ASYNC=1";
}
}
}

View file

@ -97,6 +97,13 @@ pub fn run(debug: bool) -> Result<(), Error> {
command.env("WINEPREFIX", &config.game.wine.prefix);
// Add DXVK_ASYNC=1 for dxvk-async builds automatically
if let Some(dxvk) = config.game.dxvk.selected {
if dxvk.contains("async") {
command.env("DXVK_ASYNC", "1");
}
}
command.envs(config.game.wine.sync.get_env_vars());
command.envs(config.game.enhancements.hud.get_env_vars());
command.envs(config.game.enhancements.fsr.get_env_vars());