From 3688c8bd07af67a00748c87581c80c5125d9273a Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Tue, 5 Aug 2025 12:36:50 -0400 Subject: feat: groundwork for fp16 feature in lsfg-vk --- src/components/ConfigurationSection.tsx | 11 ++++++++++- src/config/configSchema.ts | 2 +- src/config/generatedConfigSchema.ts | 10 ++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/components/ConfigurationSection.tsx b/src/components/ConfigurationSection.tsx index 93d13a3..31ce278 100644 --- a/src/components/ConfigurationSection.tsx +++ b/src/components/ConfigurationSection.tsx @@ -4,7 +4,7 @@ import { RiArrowDownSFill, RiArrowUpSFill } from "react-icons/ri"; import { ConfigurationData } from "../config/configSchema"; import { FpsMultiplierControl } from "./FpsMultiplierControl"; import { - FLOW_SCALE, PERFORMANCE_MODE, HDR_MODE, + NO_FP16, FLOW_SCALE, PERFORMANCE_MODE, HDR_MODE, EXPERIMENTAL_PRESENT_MODE, DXVK_FRAME_RATE, DISABLE_STEAMDECK_MODE, MANGOHUD_WORKAROUND, DISABLE_VKBASALT, FORCE_ENABLE_VKBASALT, ENABLE_WSI } from "../config/generatedConfigSchema"; @@ -113,6 +113,15 @@ export function ConfigurationSection({ /> + + onConfigChange(NO_FP16, value)} + /> + + = { default: "/games/Lossless Scaling/Lossless.dll", description: "specify where Lossless.dll is stored" }, + no_fp16: { + name: "no_fp16", + fieldType: ConfigFieldType.BOOLEAN, + default: false, + description: "force-disable fp16 (use on older nvidia cards)" + }, multiplier: { name: "multiplier", fieldType: ConfigFieldType.INTEGER, @@ -115,6 +122,7 @@ export const CONFIG_SCHEMA: Record = { // Type-safe configuration data structure export interface ConfigurationData { dll: string; + no_fp16: boolean; multiplier: number; flow_scale: number; performance_mode: boolean; @@ -137,6 +145,7 @@ export function getFieldNames(): string[] { export function getDefaults(): ConfigurationData { return { dll: "/games/Lossless Scaling/Lossless.dll", + no_fp16: false, multiplier: 1, flow_scale: 0.8, performance_mode: true, @@ -155,6 +164,7 @@ export function getDefaults(): ConfigurationData { export function getFieldTypes(): Record { return { dll: ConfigFieldType.STRING, + no_fp16: ConfigFieldType.BOOLEAN, multiplier: ConfigFieldType.INTEGER, flow_scale: ConfigFieldType.FLOAT, performance_mode: ConfigFieldType.BOOLEAN, -- cgit v1.2.3