summaryrefslogtreecommitdiff
path: root/py_modules
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-23 23:07:35 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-07-23 23:07:35 -0400
commitb37f3c7044209fc6fef3e39be549b97db194db3d (patch)
treed9e3fddbc3630b8b4fb872a364130c86ab0ae9e9 /py_modules
parentabdceb22f7491d5bb29beee7771dab89ceb910f1 (diff)
downloaddecky-lsfg-vk-b37f3c7044209fc6fef3e39be549b97db194db3d.tar.gz
decky-lsfg-vk-b37f3c7044209fc6fef3e39be549b97db194db3d.zip
fps slider for target pacing with UI
Diffstat (limited to 'py_modules')
-rw-r--r--py_modules/lsfg_vk/config_schema_generated.py8
-rw-r--r--py_modules/lsfg_vk/configuration_helpers_generated.py2
2 files changed, 7 insertions, 3 deletions
diff --git a/py_modules/lsfg_vk/config_schema_generated.py b/py_modules/lsfg_vk/config_schema_generated.py
index cc90207..a406efd 100644
--- a/py_modules/lsfg_vk/config_schema_generated.py
+++ b/py_modules/lsfg_vk/config_schema_generated.py
@@ -16,6 +16,7 @@ from shared_config import CONFIG_SCHEMA_DEF, ConfigFieldType
DLL = "dll"
MULTIPLIER = "multiplier"
FLOW_SCALE = "flow_scale"
+TARGET_TOTAL_FPS = "target_total_fps"
PERFORMANCE_MODE = "performance_mode"
HDR_MODE = "hdr_mode"
EXPERIMENTAL_PRESENT_MODE = "experimental_present_mode"
@@ -31,6 +32,7 @@ class ConfigurationData(TypedDict):
dll: str
multiplier: int
flow_scale: float
+ target_total_fps: float
performance_mode: bool
hdr_mode: bool
experimental_present_mode: str
@@ -98,6 +100,7 @@ def get_function_parameters() -> str:
return """dll: str = "/games/Lossless Scaling/Lossless.dll",
multiplier: int = 1,
flow_scale: float = 0.8,
+ target_total_fps: float = 0.0,
performance_mode: bool = True,
hdr_mode: bool = False,
experimental_present_mode: str = "fifo",
@@ -114,6 +117,7 @@ def create_config_dict(**kwargs) -> ConfigurationData:
"dll": kwargs.get("dll"),
"multiplier": kwargs.get("multiplier"),
"flow_scale": kwargs.get("flow_scale"),
+ "target_total_fps": kwargs.get("target_total_fps"),
"performance_mode": kwargs.get("performance_mode"),
"hdr_mode": kwargs.get("hdr_mode"),
"experimental_present_mode": kwargs.get("experimental_present_mode"),
@@ -126,6 +130,6 @@ def create_config_dict(**kwargs) -> ConfigurationData:
# Field lists for dynamic operations
-TOML_FIELDS = ['dll', 'multiplier', 'flow_scale', 'performance_mode', 'hdr_mode', 'experimental_present_mode']
+TOML_FIELDS = ['dll', 'multiplier', 'flow_scale', 'target_total_fps', 'performance_mode', 'hdr_mode', 'experimental_present_mode']
SCRIPT_FIELDS = ['dxvk_frame_rate', 'enable_wow64', 'disable_steamdeck_mode', 'mangohud_workaround', 'disable_vkbasalt']
-ALL_FIELDS = ['dll', 'multiplier', 'flow_scale', 'performance_mode', 'hdr_mode', 'experimental_present_mode', 'dxvk_frame_rate', 'enable_wow64', 'disable_steamdeck_mode', 'mangohud_workaround', 'disable_vkbasalt']
+ALL_FIELDS = ['dll', 'multiplier', 'flow_scale', 'target_total_fps', 'performance_mode', 'hdr_mode', 'experimental_present_mode', 'dxvk_frame_rate', 'enable_wow64', 'disable_steamdeck_mode', 'mangohud_workaround', 'disable_vkbasalt']
diff --git a/py_modules/lsfg_vk/configuration_helpers_generated.py b/py_modules/lsfg_vk/configuration_helpers_generated.py
index f9f4a65..bf44b36 100644
--- a/py_modules/lsfg_vk/configuration_helpers_generated.py
+++ b/py_modules/lsfg_vk/configuration_helpers_generated.py
@@ -9,7 +9,7 @@ from .config_schema_generated import ConfigurationData, ALL_FIELDS
def log_configuration_update(logger, config: ConfigurationData) -> None:
"""Log configuration update with all field values"""
- logger.info(f"Updated lsfg TOML configuration: dll={config['dll']}, multiplier={config['multiplier']}, flow_scale={config['flow_scale']}, performance_mode={config['performance_mode']}, hdr_mode={config['hdr_mode']}, experimental_present_mode={config['experimental_present_mode']}, dxvk_frame_rate={config['dxvk_frame_rate']}, enable_wow64={config['enable_wow64']}, disable_steamdeck_mode={config['disable_steamdeck_mode']}, mangohud_workaround={config['mangohud_workaround']}, disable_vkbasalt={config['disable_vkbasalt']}")
+ logger.info(f"Updated lsfg TOML configuration: dll={config['dll']}, multiplier={config['multiplier']}, flow_scale={config['flow_scale']}, target_total_fps={config['target_total_fps']}, performance_mode={config['performance_mode']}, hdr_mode={config['hdr_mode']}, experimental_present_mode={config['experimental_present_mode']}, dxvk_frame_rate={config['dxvk_frame_rate']}, enable_wow64={config['enable_wow64']}, disable_steamdeck_mode={config['disable_steamdeck_mode']}, mangohud_workaround={config['mangohud_workaround']}, disable_vkbasalt={config['disable_vkbasalt']}")
def get_config_field_names() -> list[str]: