diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-07-16 10:42:54 -0400 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-07-16 10:42:54 -0400 |
| commit | eb1c32ee61d4d4098feb1441ea5bf3b73f520780 (patch) | |
| tree | 4aa33d86c429f10f41051b5db0b7a494ff93c082 /src/components/UsageInstructions.tsx | |
| parent | 80247f76332d2704e21361192b774f31b1520e57 (diff) | |
| download | decky-lsfg-vk-eb1c32ee61d4d4098feb1441ea5bf3b73f520780.tar.gz decky-lsfg-vk-eb1c32ee61d4d4098feb1441ea5bf3b73f520780.zip | |
initial add of fps cap ui toggle
Diffstat (limited to 'src/components/UsageInstructions.tsx')
| -rw-r--r-- | src/components/UsageInstructions.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
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%"; }; |
