summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-18 17:08:16 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-18 17:08:16 -0400
commitb69a17a6bad56eb80a7296078a30c722bac9c253 (patch)
treeb7ae63fe60396b27d15188f25a70a939f26095d6 /src
parentc6212e9f650df07dce2d03a3496880d04c57b705 (diff)
downloaddecky-lsfg-vk-b69a17a6bad56eb80a7296078a30c722bac9c253.tar.gz
decky-lsfg-vk-b69a17a6bad56eb80a7296078a30c722bac9c253.zip
re-org
Diffstat (limited to 'src')
-rw-r--r--src/components/ConfigurationSection.tsx66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx
index 8e0e74e..a55395e 100644
--- a/src/components/ConfigurationSection.tsx
+++ b/src/components/ConfigurationSection.tsx
@@ -107,25 +107,36 @@ export function ConfigurationSection({
color: "white"
}}
>
- Environment Variables (Requires Re-launch)
+ Experimental Features
</div>
</PanelSectionRow>
<PanelSectionRow>
- <ToggleField
- label="Enable WOW64 for 32-bit games"
- description="Enables PROTON_USE_WOW64=1 for 32-bit games (use with ProtonGE to fix crashing)"
- checked={config.enable_wow64}
- onChange={(value) => onConfigChange('enable_wow64', value)}
+ <DropdownItem
+ label="Override Vulkan present mode"
+ description="Select a specific Vulkan presentation mode for better performance or compatibility (may cause crashes)"
+ menuLabel="Select presentation mode"
+ selectedOption={config.experimental_present_mode}
+ onChange={(value) => onConfigChange('experimental_present_mode', value.data)}
+ rgOptions={[
+ { data: "", label: "Default" },
+ { data: "fifo", label: "FIFO" },
+ { data: "vsync", label: "VSync" },
+ { data: "mailbox", label: "Mailbox" },
+ { data: "immediate", label: "Immediate" }
+ ]}
/>
</PanelSectionRow>
<PanelSectionRow>
- <ToggleField
- label="Disable Steam Deck Mode"
- description="Disables Steam Deck mode (unlocks hidden settings in some games)"
- checked={config.disable_steamdeck_mode}
- onChange={(value) => onConfigChange('disable_steamdeck_mode', value)}
+ <SliderField
+ label={`FPS Limit${config.experimental_fps_limit > 0 ? ` (${config.experimental_fps_limit} FPS)` : ' (Off)'}`}
+ description="Base framerate cap for DirectX games, before frame multiplier (requires game re-launch)"
+ value={config.experimental_fps_limit}
+ min={0}
+ max={60}
+ step={1}
+ onChange={(value) => onConfigChange('experimental_fps_limit', value)}
/>
</PanelSectionRow>
@@ -141,36 +152,25 @@ export function ConfigurationSection({
color: "white"
}}
>
- Experimental Features
+ Environment Variables (Requires Re-launch)
</div>
</PanelSectionRow>
<PanelSectionRow>
- <DropdownItem
- label="Override Vulkan present mode"
- description="Select a specific Vulkan presentation mode for better performance or compatibility (may cause crashes)"
- menuLabel="Select presentation mode"
- selectedOption={config.experimental_present_mode}
- onChange={(value) => onConfigChange('experimental_present_mode', value.data)}
- rgOptions={[
- { data: "", label: "Default" },
- { data: "fifo", label: "FIFO" },
- { data: "vsync", label: "VSync" },
- { data: "mailbox", label: "Mailbox" },
- { data: "immediate", label: "Immediate" }
- ]}
+ <ToggleField
+ label="Enable WOW64 for 32-bit games"
+ description="Enables PROTON_USE_WOW64=1 for 32-bit games (use with ProtonGE to fix crashing)"
+ checked={config.enable_wow64}
+ onChange={(value) => onConfigChange('enable_wow64', value)}
/>
</PanelSectionRow>
<PanelSectionRow>
- <SliderField
- label={`FPS Limit${config.experimental_fps_limit > 0 ? ` (${config.experimental_fps_limit} FPS)` : ' (Off)'}`}
- description="Base framerate cap for DirectX games, before frame multiplier (requires game re-launch)"
- value={config.experimental_fps_limit}
- min={0}
- max={60}
- step={1}
- onChange={(value) => onConfigChange('experimental_fps_limit', value)}
+ <ToggleField
+ label="Disable Steam Deck Mode"
+ description="Disables Steam Deck mode (unlocks hidden settings in some games)"
+ checked={config.disable_steamdeck_mode}
+ onChange={(value) => onConfigChange('disable_steamdeck_mode', value)}
/>
</PanelSectionRow>
</>