Revert "Remove manual adjustment of fps, automatically adjusted to the maximum already"

This commit is contained in:
RustDesk
2023-11-09 15:24:57 +08:00
committed by GitHub
parent ffdfef0adc
commit 94f2751902
6 changed files with 132 additions and 14 deletions

View File

@@ -1218,6 +1218,10 @@ impl PeerConfig {
if !mp.contains_key(key) {
mp.insert(key.to_owned(), UserDefaultConfig::read().get(key));
}
key = "custom-fps";
if !mp.contains_key(key) {
mp.insert(key.to_owned(), UserDefaultConfig::read().get(key));
}
key = "zoom-cursor";
if !mp.contains_key(key) {
mp.insert(key.to_owned(), UserDefaultConfig::read().get(key));
@@ -1520,6 +1524,7 @@ impl UserDefaultConfig {
self.get_string(key, "auto", vec!["vp8", "vp9", "av1", "h264", "h265"])
}
"custom_image_quality" => self.get_double_string(key, 50.0, 10.0, 0xFFF as f64),
"custom-fps" => self.get_double_string(key, 30.0, 5.0, 120.0),
_ => self
.options
.get(key)