feat: add min_fps_target setting (#1043)

This commit is contained in:
ReenigneArcher
2024-06-18 20:09:23 -04:00
committed by GitHub
parent d6dd1ab42b
commit 722e5600c6
8 changed files with 44 additions and 3 deletions

View File

@@ -176,6 +176,7 @@
"output_name": "",
"resolutions": "[352x240,480x360,858x480,1280x720,1920x1080,2560x1080,2560x1440,3440x1440,1920x1200,3840x2160,3840x1600]",
"fps": "[10,30,60,90,120]",
"min_fps_factor": 1,
},
},
{

View File

@@ -13,6 +13,7 @@ const props = defineProps([
'config',
'resolutions',
'fps',
'min_fps_factor',
])
const config = ref(props.config)
@@ -83,6 +84,7 @@ const config = ref(props.config)
:config="config"
:resolutions="resolutions"
:fps="fps"
:min_fps_factor="min_fps_factor"
/>
</div>

View File

@@ -8,6 +8,7 @@ const props = defineProps([
'config',
'resolutions',
'fps',
'min_fps_factor',
])
const config = ref(props.config)
@@ -62,7 +63,15 @@ const fpsIn = ref("")
</form>
</div>
<div class="form-text">{{ $t('config.res_fps_desc') }}</div>
<div class="form-text mb-3">{{ $t('config.res_fps_desc') }}</div>
<!--min_fps_factor-->
<div class="mb-3">
<label for="qp" class="form-label">{{ $t('config.min_fps_factor') }}</label>
<input type="number" min="1" max="3" class="form-control" id="min_fps_factor" placeholder="1" v-model="config.min_fps_factor" />
<div class="form-text">{{ $t('config.min_fps_factor_desc') }}</div>
</div>
</div>
</template>

View File

@@ -211,6 +211,8 @@
"log_level_desc": "The minimum log level printed to standard out",
"log_path": "Logfile Path",
"log_path_desc": "The file where the current logs of Sunshine are stored.",
"min_fps_factor": "Minimum FPS Factor",
"min_fps_factor_desc": "Sunshine will use this factor to calculate the minimum time between frames. Increasing this value slightly may help when streaming mostly static content. Higher values will consume more bandwidth.",
"min_threads": "Minimum CPU Thread Count",
"min_threads_desc": "Increasing the value slightly reduces encoding efficiency, but the tradeoff is usually worth it to gain the use of more CPU cores for encoding. The ideal value is the lowest value that can reliably encode at your desired streaming settings on your hardware.",
"misc": "Miscellaneous options",