mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 11:33:06 +00:00
Clamp to min = max so we can eliminate the time taken to scale the bitrate up to the ceiling
This commit is contained in:
parent
a4e6738353
commit
8e9d605248
@ -159,15 +159,9 @@ public class SdpGenerator {
|
||||
addSessionAttribute(config, "x-nv-vqos[0].ts.maximumBitrate", "10");
|
||||
addSessionAttribute(config, "x-nv-vqos[0].bw.flags", "819"); // Bit 2 being set causes picture problems (should be 823)
|
||||
|
||||
// Effective bitrate ceiling
|
||||
if (sc.getHeight() >= 1080 && sc.getRefreshRate() >= 60) {
|
||||
addSessionAttribute(config, "x-nv-vqos[0].bw.maximumBitrate", ""+sc.getBitrate());
|
||||
addSessionAttribute(config, "x-nv-vqos[0].bw.minimumBitrate", "20000");
|
||||
}
|
||||
else {
|
||||
addSessionAttribute(config, "x-nv-vqos[0].bw.maximumBitrate", ""+sc.getBitrate());
|
||||
addSessionAttribute(config, "x-nv-vqos[0].bw.minimumBitrate", "2000");
|
||||
}
|
||||
// We clamp to min = max so manual bitrate settings take effect without time to scale up
|
||||
addSessionAttribute(config, "x-nv-vqos[0].bw.maximumBitrate", ""+sc.getBitrate());
|
||||
addSessionAttribute(config, "x-nv-vqos[0].bw.minimumBitrate", ""+sc.getBitrate());
|
||||
|
||||
addSessionAttribute(config, "x-nv-vqos[0].bw.statsTime", "50");
|
||||
addSessionAttribute(config, "x-nv-vqos[0].bw.zeroLossCount", "3000");
|
||||
|
Loading…
x
Reference in New Issue
Block a user