summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-23 23:07:35 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-23 23:07:35 -0400
commitb37f3c7044209fc6fef3e39be549b97db194db3d (patch)
treed9e3fddbc3630b8b4fb872a364130c86ab0ae9e9 /src/components
parentabdceb22f7491d5bb29beee7771dab89ceb910f1 (diff)
downloaddecky-lsfg-vk-b37f3c7044209fc6fef3e39be549b97db194db3d.tar.gz
decky-lsfg-vk-b37f3c7044209fc6fef3e39be549b97db194db3d.zip
fps slider for target pacing with UI
Diffstat (limited to 'src/components')
-rw-r--r--src/components/ConfigurationSection.tsx14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx
index 778ebc8..7c5d9ca 100644
--- a/src/components/ConfigurationSection.tsx
+++ b/src/components/ConfigurationSection.tsx
@@ -2,7 +2,7 @@ import { PanelSectionRow, ToggleField, SliderField, DropdownItem } from "@decky/
import { ConfigurationData } from "../config/configSchema";
import { FpsMultiplierControl } from "./FpsMultiplierControl";
import {
- FLOW_SCALE, PERFORMANCE_MODE, HDR_MODE,
+ FLOW_SCALE, TARGET_TOTAL_FPS, PERFORMANCE_MODE, HDR_MODE,
EXPERIMENTAL_PRESENT_MODE, DXVK_FRAME_RATE, DISABLE_STEAMDECK_MODE,
MANGOHUD_WORKAROUND, DISABLE_VKBASALT
} from "../config/generatedConfigSchema";
@@ -50,6 +50,18 @@ export function ConfigurationSection({
</PanelSectionRow>
<PanelSectionRow>
+ <SliderField
+ label={`Target Total FPS ${config.target_total_fps === 0 ? '(Default)' : config.target_total_fps.toFixed(0)}`}
+ description="Specify your post-frame gen target framerate to force specific frame pacing logic. 0 = default pacing"
+ value={config.target_total_fps}
+ min={0}
+ max={144}
+ step={1}
+ onChange={(value) => onConfigChange(TARGET_TOTAL_FPS, value)}
+ />
+ </PanelSectionRow>
+
+ <PanelSectionRow>
<ToggleField
label="Performance Mode"
description="Uses a lighter model for FG (Recommended for most games)"