Increase encoder-overuse thresholds for HW.

Puts thresholds in a range that works well on Nexus 5X (doesn't
seem to trigger overuse), while not disabling them for systems that have
a really-really hard time (>200% overuse).

BUG=webrtc:5577
R=stefan@webrtc.org

Review URL: https://codereview.webrtc.org/1730103003 .

Cr-Commit-Position: refs/heads/master@{#11744}
This commit is contained in:
Peter Boström 2016-02-24 15:19:55 +01:00
parent 3e60bf0ff3
commit 23353ab465

View File

@ -135,11 +135,15 @@ bool PayloadTypeSupportsSkippingFecPackets(const std::string& payload_name) {
return false;
}
// TODO(pbos): Lower these thresholds (to closer to 100%) when we handle
// pipelining encoders better (multiple input frames before something comes
// out). This should effectively turn off CPU adaptations for systems that
// remotely cope with the load right now.
CpuOveruseOptions GetCpuOveruseOptions(bool full_overuse_time) {
CpuOveruseOptions options;
if (full_overuse_time) {
options.low_encode_usage_threshold_percent = 100;
options.high_encode_usage_threshold_percent = 120;
options.low_encode_usage_threshold_percent = 150;
options.high_encode_usage_threshold_percent = 200;
}
return options;
}