From eb1c32ee61d4d4098feb1441ea5bf3b73f520780 Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Wed, 16 Jul 2025 10:42:54 -0400 Subject: initial add of fps cap ui toggle --- src/components/UsageInstructions.tsx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/components/UsageInstructions.tsx') diff --git a/src/components/UsageInstructions.tsx b/src/components/UsageInstructions.tsx index bf80630..3589c04 100644 --- a/src/components/UsageInstructions.tsx +++ b/src/components/UsageInstructions.tsx @@ -8,6 +8,7 @@ interface ConfigType { perfMode: boolean; immediateMode: boolean; disableVkbasalt: boolean; + frameCap: number; } interface UsageInstructionsProps { @@ -45,6 +46,10 @@ export function UsageInstructions({ config }: UsageInstructionsProps) { envVars.push("DISABLE_VKBASALT=1"); } + if (config.frameCap > 0) { + envVars.push(`DXVK_FRAME_RATE=${config.frameCap}`); + } + return envVars.length > 0 ? `${envVars.join(" ")} %command%` : "%command%"; }; -- cgit v1.2.3