diff options
| author | Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> | 2025-07-16 16:27:30 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-16 16:27:30 -0400 |
| commit | 7c8f336196c215d90588f1994fa1556c7790dba8 (patch) | |
| tree | 46fdc7e70e272ac6a33259d1228233496b54371b /py_modules/lsfg_vk/plugin.py | |
| parent | 41bba67d24241dea18b056734b153270bb230ba1 (diff) | |
| parent | 5c739d6eca3aacea5dd9e48fa63471b27c86f0e2 (diff) | |
| download | decky-lsfg-vk-7c8f336196c215d90588f1994fa1556c7790dba8.tar.gz decky-lsfg-vk-7c8f336196c215d90588f1994fa1556c7790dba8.zip | |
Merge pull request #28 from xXJSONDeruloXx/fps-limit-dry
centralized configuration system for lsfg-vk params
Diffstat (limited to 'py_modules/lsfg_vk/plugin.py')
| -rw-r--r-- | py_modules/lsfg_vk/plugin.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/py_modules/lsfg_vk/plugin.py b/py_modules/lsfg_vk/plugin.py index 7dcda4e..b357ee6 100644 --- a/py_modules/lsfg_vk/plugin.py +++ b/py_modules/lsfg_vk/plugin.py @@ -11,6 +11,7 @@ from typing import Dict, Any from .installation import InstallationService from .dll_detection import DllDetectionService from .configuration import ConfigurationService +from .config_schema import ConfigurationManager class Plugin: @@ -72,14 +73,26 @@ class Plugin: """ return self.configuration_service.get_config() + async def get_config_schema(self) -> Dict[str, Any]: + """Get configuration schema information for frontend + + Returns: + Dict with field names, types, and defaults + """ + return { + "field_names": ConfigurationManager.get_field_names(), + "field_types": {name: field_type.value for name, field_type in ConfigurationManager.get_field_types().items()}, + "defaults": ConfigurationManager.get_defaults() + } + async def update_lsfg_config(self, enable_lsfg: bool, multiplier: int, flow_scale: float, hdr: bool, perf_mode: bool, immediate_mode: bool, disable_vkbasalt: bool, frame_cap: int) -> Dict[str, Any]: """Update lsfg script configuration Args: enable_lsfg: Whether to enable LSFG - multiplier: LSFG multiplier value (typically 2-4) - flow_scale: LSFG flow scale value (typically 0.5-2.0) + multiplier: LSFG multiplier value + flow_scale: LSFG flow scale value hdr: Whether to enable HDR perf_mode: Whether to enable performance mode immediate_mode: Whether to enable immediate present mode (disable vsync) |
