Added automatic DXVK_ASYNC=1
setting for dxvk-async
This commit is contained in:
parent
4a83100b7e
commit
85b2e6741e
2 changed files with 8 additions and 1 deletions
|
@ -127,7 +127,7 @@ Adw.PreferencesPage page {
|
||||||
|
|
||||||
Adw.ExpanderRow dxvk_async {
|
Adw.ExpanderRow dxvk_async {
|
||||||
title: "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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,6 +97,13 @@ pub fn run(debug: bool) -> Result<(), Error> {
|
||||||
|
|
||||||
command.env("WINEPREFIX", &config.game.wine.prefix);
|
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.wine.sync.get_env_vars());
|
||||||
command.envs(config.game.enhancements.hud.get_env_vars());
|
command.envs(config.game.enhancements.hud.get_env_vars());
|
||||||
command.envs(config.game.enhancements.fsr.get_env_vars());
|
command.envs(config.game.enhancements.fsr.get_env_vars());
|
||||||
|
|
Loading…
Reference in a new issue