mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
Allow to explicitly increase the bitrate massively
This has the benefit - over direct connections - to be able to send a lot more data. In particular fast moving frames may avoid fps drops with a higher target bitrate.
This commit is contained in:
@@ -299,9 +299,9 @@ impl VideoQoS {
|
||||
} else if q == ImageQuality::Best.value() {
|
||||
Quality::Best
|
||||
} else {
|
||||
let mut b = (q >> 8 & 0xFF) * 2;
|
||||
b = std::cmp::max(b, 10);
|
||||
b = std::cmp::min(b, 200);
|
||||
let mut b = (q >> 8 & 0xFFF) * 2;
|
||||
b = std::cmp::max(b, 20);
|
||||
b = std::cmp::min(b, 8000);
|
||||
Quality::Custom(b as u32)
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user