summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/ConfigurationSection.tsx42
-rw-r--r--src/config/configSchema.ts4
-rw-r--r--src/config/generatedConfigSchema.ts40
3 files changed, 5 insertions, 81 deletions
diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx
index 538975e..1ab570b 100644
--- a/src/components/ConfigurationSection.tsx
+++ b/src/components/ConfigurationSection.tsx
@@ -1,10 +1,10 @@
-import { PanelSectionRow, ToggleField, SliderField, ButtonItem, TextField } from "@decky/ui";
+import { PanelSectionRow, ToggleField, SliderField, ButtonItem } from "@decky/ui";
import { useState, useEffect } from "react";
import { RiArrowDownSFill, RiArrowUpSFill } from "react-icons/ri";
import { ConfigurationData } from "../config/configSchema";
import {
- ACTIVE_IN, ALLOW_FP16, DISABLE_LSFGVK, DLL, FLOW_SCALE, GPU,
- PERFORMANCE_MODE, USE_NATIVE_MATCHING, DXVK_FRAME_RATE, DISABLE_STEAMDECK_MODE,
+ ALLOW_FP16, DISABLE_LSFGVK, FLOW_SCALE,
+ PERFORMANCE_MODE, DXVK_FRAME_RATE, DISABLE_STEAMDECK_MODE,
MANGOHUD_WORKAROUND, DISABLE_VKBASALT, FORCE_ENABLE_VKBASALT, ENABLE_WSI, ENABLE_ZINK
} from "../config/generatedConfigSchema";
@@ -114,15 +114,6 @@ export function ConfigurationSection({
{!configCollapsed && (
<>
<PanelSectionRow>
- <TextField
- label="Lossless.dll Path"
- description="Optional full path to Lossless.dll. Leave blank for lsfg-vk automatic discovery."
- value={config.dll}
- onChange={(event) => onConfigChange(DLL, event.currentTarget.value)}
- />
- </PanelSectionRow>
-
- <PanelSectionRow>
<SliderField
label={`Flow Scale (${Math.round(config.flow_scale * 100)}%)`}
description="Lowers internal motion estimation resolution, improving performance slightly"
@@ -153,33 +144,6 @@ export function ConfigurationSection({
</PanelSectionRow>
<PanelSectionRow>
- <TextField
- label="GPU"
- description="Optional GPU name, vendor:device ID, or PCI bus ID."
- value={config.gpu}
- onChange={(event) => onConfigChange(GPU, event.currentTarget.value)}
- />
- </PanelSectionRow>
-
- <PanelSectionRow>
- <TextField
- label="Active In"
- description="Executable/process names separated by commas."
- value={config.active_in}
- onChange={(event) => onConfigChange(ACTIVE_IN, event.currentTarget.value)}
- />
- </PanelSectionRow>
-
- <PanelSectionRow>
- <ToggleField
- label="Use Automatic Profile Matching"
- description="Let lsfg-vk choose a matching Active In profile instead of forcing the profile selected in Decky."
- checked={config.use_native_matching}
- onChange={(value) => onConfigChange(USE_NATIVE_MATCHING, value)}
- />
- </PanelSectionRow>
-
- <PanelSectionRow>
<SliderField
label={`Base FPS Cap${config.dxvk_frame_rate > 0 ? ` (${config.dxvk_frame_rate} FPS)` : " (Off)"}`}
description="Base framerate cap for DirectX games, before frame multiplier. (Requires game restart to apply)"
diff --git a/src/config/configSchema.ts b/src/config/configSchema.ts
index 7b608c3..2054758 100644
--- a/src/config/configSchema.ts
+++ b/src/config/configSchema.ts
@@ -6,8 +6,8 @@ export {
getFieldNames,
getDefaults,
getFieldTypes,
- DLL, ALLOW_FP16, MULTIPLIER, FLOW_SCALE, PERFORMANCE_MODE, PACING,
- ACTIVE_IN, USE_NATIVE_MATCHING, GPU, DISABLE_LSFGVK, DXVK_FRAME_RATE, ENABLE_WOW64,
+ ALLOW_FP16, MULTIPLIER, FLOW_SCALE, PERFORMANCE_MODE, PACING,
+ DISABLE_LSFGVK, DXVK_FRAME_RATE, ENABLE_WOW64,
DISABLE_STEAMDECK_MODE, MANGOHUD_WORKAROUND, DISABLE_VKBASALT,
FORCE_ENABLE_VKBASALT, ENABLE_WSI, ENABLE_ZINK
} from './generatedConfigSchema';
diff --git a/src/config/generatedConfigSchema.ts b/src/config/generatedConfigSchema.ts
index 5c5df39..7c0c8b0 100644
--- a/src/config/generatedConfigSchema.ts
+++ b/src/config/generatedConfigSchema.ts
@@ -8,15 +8,11 @@ export enum ConfigFieldType {
}
// Field name constants for type-safe access
-export const DLL = "dll" as const;
export const ALLOW_FP16 = "allow_fp16" as const;
export const MULTIPLIER = "multiplier" as const;
export const FLOW_SCALE = "flow_scale" as const;
export const PERFORMANCE_MODE = "performance_mode" as const;
export const PACING = "pacing" as const;
-export const ACTIVE_IN = "active_in" as const;
-export const USE_NATIVE_MATCHING = "use_native_matching" as const;
-export const GPU = "gpu" as const;
export const DISABLE_LSFGVK = "disable_lsfgvk" as const;
export const DXVK_FRAME_RATE = "dxvk_frame_rate" as const;
export const ENABLE_WOW64 = "enable_wow64" as const;
@@ -37,12 +33,6 @@ export interface ConfigField {
// Configuration schema - auto-generated from Python
export const CONFIG_SCHEMA: Record<string, ConfigField> = {
- dll: {
- name: "dll",
- fieldType: ConfigFieldType.STRING,
- default: "",
- description: "optional full path to Lossless.dll; leave blank for automatic discovery"
- },
allow_fp16: {
name: "allow_fp16",
fieldType: ConfigFieldType.BOOLEAN,
@@ -73,24 +63,6 @@ export const CONFIG_SCHEMA: Record<string, ConfigField> = {
default: "none",
description: "frame pacing mode (currently only none is supported)"
},
- active_in: {
- name: "active_in",
- fieldType: ConfigFieldType.STRING,
- default: "",
- description: "optional executable or process names, separated by commas"
- },
- use_native_matching: {
- name: "use_native_matching",
- fieldType: ConfigFieldType.BOOLEAN,
- default: false,
- description: "let lsfg-vk choose a profile from Active In instead of forcing the selected profile"
- },
- gpu: {
- name: "gpu",
- fieldType: ConfigFieldType.STRING,
- default: "",
- description: "optional GPU name, vendor:device ID, or PCI bus ID"
- },
disable_lsfgvk: {
name: "disable_lsfgvk",
fieldType: ConfigFieldType.BOOLEAN,
@@ -149,15 +121,11 @@ export const CONFIG_SCHEMA: Record<string, ConfigField> = {
// Type-safe configuration data structure
export interface ConfigurationData {
- dll: string;
allow_fp16: boolean;
multiplier: number;
flow_scale: number;
performance_mode: boolean;
pacing: string;
- active_in: string;
- use_native_matching: boolean;
- gpu: string;
disable_lsfgvk: boolean;
dxvk_frame_rate: number;
enable_wow64: boolean;
@@ -176,15 +144,11 @@ export function getFieldNames(): string[] {
export function getDefaults(): ConfigurationData {
return {
- dll: "",
allow_fp16: true,
multiplier: 2,
flow_scale: 0.9,
performance_mode: false,
pacing: "none",
- active_in: "",
- use_native_matching: false,
- gpu: "",
disable_lsfgvk: false,
dxvk_frame_rate: 0,
enable_wow64: false,
@@ -199,15 +163,11 @@ export function getDefaults(): ConfigurationData {
export function getFieldTypes(): Record<string, ConfigFieldType> {
return {
- dll: ConfigFieldType.STRING,
allow_fp16: ConfigFieldType.BOOLEAN,
multiplier: ConfigFieldType.INTEGER,
flow_scale: ConfigFieldType.FLOAT,
performance_mode: ConfigFieldType.BOOLEAN,
pacing: ConfigFieldType.STRING,
- active_in: ConfigFieldType.STRING,
- use_native_matching: ConfigFieldType.BOOLEAN,
- gpu: ConfigFieldType.STRING,
disable_lsfgvk: ConfigFieldType.BOOLEAN,
dxvk_frame_rate: ConfigFieldType.INTEGER,
enable_wow64: ConfigFieldType.BOOLEAN,