mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-12-19 05:26:59 +01:00
Add "Maximum video bitrate" option
This commit is contained in:
@@ -32,6 +32,8 @@ export enum PrefKey {
|
||||
|
||||
STREAM_DISABLE_FEEDBACK_DIALOG = 'stream_disable_feedback_dialog',
|
||||
|
||||
BITRATE_VIDEO_MAX = 'bitrate_video_max',
|
||||
|
||||
GAME_BAR_POSITION = 'game_bar_position',
|
||||
|
||||
LOCAL_CO_OP_ENABLED = 'local_co_op_enabled',
|
||||
@@ -314,6 +316,28 @@ export class Preferences {
|
||||
default: false,
|
||||
},
|
||||
|
||||
[PrefKey.BITRATE_VIDEO_MAX]: {
|
||||
type: SettingElementType.NUMBER_STEPPER,
|
||||
label: 'Maximum video bitrate',
|
||||
default: 0,
|
||||
min: 0,
|
||||
max: 15,
|
||||
steps: 1,
|
||||
params: {
|
||||
suffix: ' Mb/s',
|
||||
exactTicks: 5,
|
||||
customTextValue: (value: any) => {
|
||||
value = parseInt(value);
|
||||
|
||||
if (value === 0) {
|
||||
return t('default');
|
||||
}
|
||||
|
||||
return null;
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
[PrefKey.GAME_BAR_POSITION]: {
|
||||
label: t('position'),
|
||||
default: 'bottom-left',
|
||||
|
||||
Reference in New Issue
Block a user