diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/ConfigurationSection.tsx | 11 | ||||
| -rw-r--r-- | src/components/Content.tsx | 2 | ||||
| -rw-r--r-- | src/components/UsageInstructions.tsx | 7 |
3 files changed, 12 insertions, 8 deletions
diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx index c988f9f..a10aab2 100644 --- a/src/components/ConfigurationSection.tsx +++ b/src/components/ConfigurationSection.tsx @@ -3,7 +3,7 @@ import { useState, useEffect } from "react"; import { RiArrowDownSFill, RiArrowUpSFill } from "react-icons/ri"; import { ConfigurationData } from "../config/configSchema"; import { - FLOW_SCALE, PERFORMANCE_MODE, HDR_MODE, + FLOW_SCALE, NO_FP16, PERFORMANCE_MODE, HDR_MODE, EXPERIMENTAL_PRESENT_MODE, DXVK_FRAME_RATE, DISABLE_STEAMDECK_MODE, MANGOHUD_WORKAROUND, DISABLE_VKBASALT, FORCE_ENABLE_VKBASALT, ENABLE_WSI, ENABLE_ZINK } from "../config/generatedConfigSchema"; @@ -127,6 +127,15 @@ export function ConfigurationSection({ </PanelSectionRow> <PanelSectionRow> + <ToggleField + label="FP16 Acceleration" + description="Use FP16 shaders when supported" + checked={!config.no_fp16} + onChange={(value) => onConfigChange(NO_FP16, !value)} + /> + </PanelSectionRow> + + <PanelSectionRow> <SliderField label={`${t('CONFIG_BASE_FPS_CAP', 'Base FPS Cap')}${config.dxvk_frame_rate > 0 ? ` (${config.dxvk_frame_rate} FPS)` : ` (${t('CONFIG_BASE_FPS_CAP_OFF', 'Off')})`}`} description={t('CONFIG_BASE_FPS_CAP_DESC', 'Base framerate cap for DirectX games, before frame multiplier. (Requires game restart to apply)')} diff --git a/src/components/Content.tsx b/src/components/Content.tsx index c785a50..5988e79 100644 --- a/src/components/Content.tsx +++ b/src/components/Content.tsx @@ -144,7 +144,7 @@ export function Content() { </> )} - <UsageInstructions config={config} /> + <UsageInstructions /> <PanelSectionRow> <ButtonItem diff --git a/src/components/UsageInstructions.tsx b/src/components/UsageInstructions.tsx index 6d32506..36e31cf 100644 --- a/src/components/UsageInstructions.tsx +++ b/src/components/UsageInstructions.tsx @@ -1,12 +1,7 @@ import { PanelSectionRow } from "@decky/ui"; -import { ConfigurationData } from "../config/configSchema"; import t from '../i18n/i18n'; -interface UsageInstructionsProps { - config: ConfigurationData; -} - -export function UsageInstructions({ config: _config }: UsageInstructionsProps) { +export function UsageInstructions() { return ( <> <PanelSectionRow> |
