New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 796959 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

The user should be able to disable desktop capture throttling

Project Member Reported by julien.isorce@chromium.org, Dec 21 2017

Issue description

Similar to existing command line switches, the user should have a way to disable internal throttling for desktop capture.

Currently the desktop capture is might be throttled due to content/browser/media/capture/desktop_capture_device.cc::kMaximumCpuConsumptionPercentage

I suggest to add --disable-webrtc-desktop-capture-throttling.
 
Project Member

Comment 2 by bugdroid1@chromium.org, Jan 15 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7debadbaf3d386be29dfd22ee475de3f71ef89a6

commit 7debadbaf3d386be29dfd22ee475de3f71ef89a6
Author: Julien Isorce <julien.isorce@chromium.org>
Date: Mon Jan 15 11:53:30 2018

Add content switch --webrtc-max-cpu-consumption-percentage

Useful to configure the internal kDefaultMaximumCpuConsumptionPercentage
which is 50%.

Espcially the user can pass the value 100 to disable throttling of the
desktop capture pipeline.

Typically screen capturers take <10 ms but on some hardwares it can be nearly
30 ms. It is fine to disable the throttling when the load is on the gpu.
In other words even if the capture period is longer than usual, the cpu is
actually very low.

Bug:  796959 
Tests: content_unittests --gtest_filter=*DesktopCaptureDeviceThrottledTest*
Change-Id: I256278a60d369955f52c68fb7a59e65b9720da30
Reviewed-on: https://chromium-review.googlesource.com/840241
Commit-Queue: Julien Isorce <julien.isorce@chromium.org>
Reviewed-by: Zijie He <zijiehe@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#529250}
[modify] https://crrev.com/7debadbaf3d386be29dfd22ee475de3f71ef89a6/content/browser/media/capture/desktop_capture_device.cc
[modify] https://crrev.com/7debadbaf3d386be29dfd22ee475de3f71ef89a6/content/browser/media/capture/desktop_capture_device.h
[modify] https://crrev.com/7debadbaf3d386be29dfd22ee475de3f71ef89a6/content/browser/media/capture/desktop_capture_device_unittest.cc
[modify] https://crrev.com/7debadbaf3d386be29dfd22ee475de3f71ef89a6/content/public/common/content_switches.cc
[modify] https://crrev.com/7debadbaf3d386be29dfd22ee475de3f71ef89a6/content/public/common/content_switches.h

Status: Fixed (was: Started)

Sign in to add a comment