From 92504a272e6335ca45ee64be921d64804a2976c5 Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Thu, 24 Jul 2025 10:59:29 -0400 Subject: move up common used ui --- src/components/ConfigurationSection.tsx | 51 +++++++++++++++------------------ 1 file changed, 23 insertions(+), 28 deletions(-) (limited to 'src/components') diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx index d7780d2..045bd8c 100644 --- a/src/components/ConfigurationSection.tsx +++ b/src/components/ConfigurationSection.tsx @@ -1,4 +1,4 @@ -import { PanelSectionRow, ToggleField, SliderField, DropdownItem, ButtonItem } from "@decky/ui"; +import { PanelSectionRow, ToggleField, SliderField, ButtonItem } from "@decky/ui"; import { useState } from "react"; import { RiArrowDownSFill, RiArrowUpSFill } from "react-icons/ri"; import { ConfigurationData } from "../config/configSchema"; @@ -54,7 +54,7 @@ export function ConfigurationSection({ onConfigChange(FLOW_SCALE, value)} /> + + + 0 ? ` (${config.dxvk_frame_rate} FPS)` : ' (Off)'}`} + description="Base framerate cap for DirectX games, before frame multiplier. (Requires game restart to apply)" + value={config.dxvk_frame_rate} + min={0} + max={60} + step={1} + onChange={(value) => onConfigChange(DXVK_FRAME_RATE, value)} + /> + + + + onConfigChange(EXPERIMENTAL_PRESENT_MODE, value ? "fifo" : "mailbox")} + /> + - - onConfigChange(EXPERIMENTAL_PRESENT_MODE, value.data)} - rgOptions={[ - { data: "fifo", label: "FIFO (VSync) - Default" }, - { data: "mailbox", label: "Mailbox" } - ]} - /> - - {/*
*/} - - 0 ? ` (${config.dxvk_frame_rate} FPS)` : ' (Off)'}`} - description="Base framerate cap for DirectX games, before frame multiplier. (Requires game restart to apply)" - value={config.dxvk_frame_rate} - min={0} - max={60} - step={1} - onChange={(value) => onConfigChange(DXVK_FRAME_RATE, value)} - /> - - {/* Workarounds Section */}