Set linux specific default settings
This commit is contained in:
parent
0480d5947a
commit
223879099e
|
@ -423,7 +423,7 @@ pub fn session_settings_default() -> SettingsDefault {
|
|||
},
|
||||
seconds_from_vsync_to_photons: 0.005,
|
||||
foveated_rendering: SwitchDefault {
|
||||
enabled: true,
|
||||
enabled: !cfg!(target_os = "linux"),
|
||||
content: FoveatedRenderingDescDefault {
|
||||
strength: 2.,
|
||||
shape: 1.5,
|
||||
|
@ -449,7 +449,7 @@ pub fn session_settings_default() -> SettingsDefault {
|
|||
},
|
||||
audio: AudioSectionDefault {
|
||||
game_audio: SwitchDefault {
|
||||
enabled: true,
|
||||
enabled: !cfg!(target_os = "linux"),
|
||||
content: GameAudioDescDefault {
|
||||
device_id: AudioDeviceIdDefault {
|
||||
variant: AudioDeviceIdDefaultVariant::Default,
|
||||
|
@ -531,7 +531,11 @@ pub fn session_settings_default() -> SettingsDefault {
|
|||
},
|
||||
web_server_port: 8082,
|
||||
stream_protocol: SocketProtocolDefault {
|
||||
variant: SocketProtocolDefaultVariant::Tcp,
|
||||
variant: if !cfg!(target_os = "linux") {
|
||||
SocketProtocolDefaultVariant::Udp
|
||||
} else {
|
||||
SocketProtocolDefaultVariant::Tcp
|
||||
},
|
||||
ThrottledUdp: SocketProtocolThrottledUdpDefault {
|
||||
bitrate_multiplier: 1.5,
|
||||
},
|
||||
|
@ -549,7 +553,7 @@ pub fn session_settings_default() -> SettingsDefault {
|
|||
client_dark_mode: false,
|
||||
revert_confirm_dialog: true,
|
||||
restart_confirm_dialog: true,
|
||||
prompt_before_update: !cfg!(feature = "nightly"),
|
||||
prompt_before_update: !cfg!(feature = "nightly") || cfg!(target_os = "linux"),
|
||||
update_channel: UpdateChannelDefault {
|
||||
variant: if cfg!(feature = "nightly") {
|
||||
UpdateChannelDefaultVariant::Nightly
|
||||
|
|
Loading…
Reference in New Issue