import { PanelSectionRow } from "@decky/ui"; import { ConfigurationData } from "../config/configSchema"; interface UsageInstructionsProps { config: ConfigurationData; } export function UsageInstructions({ config }: UsageInstructionsProps) { return ( <>
Usage Instructions
{config.enable ? "LSFG is enabled. Add the launch option below to Steam games to activate frame generation." : "LSFG is disabled. Enable it above and add the launch option to activate frame generation." }
Required Launch Option:
~/lsfg %command%
{`Current Configuration: • Enable: ${config.enable ? "Yes" : "No"} • DLL Path: ${config.dll} • Multiplier: ${config.multiplier}x • Flow Scale: ${Math.round(config.flow_scale * 100)}% • Performance Mode: ${config.performance_mode ? "Yes" : "No"} • HDR Mode: ${config.hdr_mode ? "Yes" : "No"} • Present Mode: ${config.experimental_present_mode || "Default (FIFO)"} • FPS Limit: ${config.experimental_fps_limit > 0 ? `${config.experimental_fps_limit} FPS` : "Off"}`}
Add the launch option to each game's Properties → Launch Options in Steam. The lsfg script is automatically created during installation and connects your games to the plugin's configuration. The configuration is stored in ~/.config/lsfg-vk/conf.toml and hot-reloads while games are running.
); }