From ed804515981cd5176ac244a0fdaa301a55fa97f9 Mon Sep 17 00:00:00 2001
From: xXJSONDeruloXx <danielhimebauch@gmail.com>
Date: Thu, 24 Jul 2025 10:06:34 -0400
Subject: add wsi and force enable vkbasalt env var args and ui

---
 src/components/ConfigurationSection.tsx | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

(limited to 'src/components/ConfigurationSection.tsx')

diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx
index 01b0ba1..55a27d2 100644
--- a/src/components/ConfigurationSection.tsx
+++ b/src/components/ConfigurationSection.tsx
@@ -2,9 +2,9 @@ import { PanelSectionRow, ToggleField, SliderField, DropdownItem } from "@decky/
 import { ConfigurationData } from "../config/configSchema";
 import { FpsMultiplierControl } from "./FpsMultiplierControl";
 import {
-  FLOW_SCALE, TARGET_TOTAL_FPS, PERFORMANCE_MODE, HDR_MODE, 
+  FLOW_SCALE, PERFORMANCE_MODE, HDR_MODE, 
   EXPERIMENTAL_PRESENT_MODE, DXVK_FRAME_RATE, DISABLE_STEAMDECK_MODE,
-  MANGOHUD_WORKAROUND, DISABLE_VKBASALT
+  MANGOHUD_WORKAROUND, DISABLE_VKBASALT, FORCE_ENABLE_VKBASALT, DEACTIVATE_WSI
 } from "../config/generatedConfigSchema";
 
 interface ConfigurationSectionProps {
@@ -170,6 +170,24 @@ export function ConfigurationSection({
           onChange={(value) => onConfigChange(DISABLE_VKBASALT, value)}
         />
       </PanelSectionRow>
+
+      <PanelSectionRow>
+        <ToggleField
+          label="Force Enable vkBasalt"
+          description="Force vkBasalt to engage to fix framepacing issues in gamemode"
+          checked={config.force_enable_vkbasalt}
+          onChange={(value) => onConfigChange(FORCE_ENABLE_VKBASALT, value)}
+        />
+      </PanelSectionRow>
+
+      <PanelSectionRow>
+        <ToggleField
+          label="Deactivate WSI"
+          description="Deactivates Gamescope WSI Layer, use with HDR off, workaround if frame generation isn't applying or isn't feeling smooth"
+          checked={config.deactivate_wsi}
+          onChange={(value) => onConfigChange(DEACTIVATE_WSI, value)}
+        />
+      </PanelSectionRow>
     </>
   );
 }
-- 
cgit v1.2.3

