Changed FSR and DXVK HUD env values

This commit is contained in:
Observer KRypt0n_ 2022-07-03 17:46:47 +02:00
parent e2754a4eec
commit edf5e69d8e
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
4 changed files with 13 additions and 6 deletions

View file

@ -29,8 +29,8 @@ Adw.PreferencesPage enhanced_page {
strings [
"Ultra Quality",
"Quality",
"Performance",
"Balanced"
"Balanced",
"Performance"
]
};

View file

@ -44,7 +44,7 @@ impl HUD {
match self {
Self::None => HashMap::new(),
Self::DXVK => HashMap::from([
("DXVK_HUD", "1")
("DXVK_HUD", "fps,frametimes,version,gpuload")
]),
Self::MangoHUD => HashMap::from([
("MANGOHUD", "1")

View file

@ -194,7 +194,7 @@ pub struct Fsr {
impl Default for Fsr {
fn default() -> Self {
Self {
strength: 3,
strength: 2,
enabled: false
}
}

View file

@ -49,7 +49,14 @@ impl Page {
result.fsr_combo.connect_selected_notify(|hud| {
if let Ok(mut config) = config::get() {
// TODO: show toast
config.game.enhancements.fsr.strength = hud.selected();
// Ultra Quality = 5
// Quality = 4
// Balanced = 3
// Performance = 2
//
// Source: Bottles (https://github.com/bottlesdevs/Bottles/blob/22fa3573a13f4e9b9c429e4cdfe4ca29787a2832/src/ui/details-preferences.ui#L88)
config.game.enhancements.fsr.strength = 5 - hud.selected();
config::update(config).unwrap();
}
@ -112,7 +119,7 @@ impl Page {
self.sync_combo.set_selected(config.game.wine.sync.into());
// FSR strength selection
self.fsr_combo.set_selected(config.game.enhancements.fsr.strength);
self.fsr_combo.set_selected(5 - config.game.enhancements.fsr.strength);
// FSR switching
self.fsr_switcher.set_state(config.game.enhancements.fsr.enabled);