Closed Bug 1169016 Opened 10 years ago Closed 4 years ago

Enabling video controls decreases app performace

Categories

(Core :: Audio/Video: Playback, defect, P3)

ARM
Gonk (Firefox OS)
defect

Tracking

()

RESOLVED WORKSFORME
blocking-b2g -

People

(Reporter: ntroast, Unassigned)

References

Details

(Whiteboard: [caf priority: p2][CR 844856][POVB])

When video controls are enabled in a packaged application I see that the app uses 5x more CPU time even if the controls are hidden. I used kernel trace logs to collect the CPU time data. STR: Create a simple packaged app with the following body: <video controls autoplay src="http://html5video.org/players/media/sintel.3gp"></video> Remove the controls attribute and the app consumes less CPU time Gecko: 197cb3859f55ca587256c76648adec54a1f502ef Gaia: 732acec6f37d13ccea6b0ddc48904a53a2970894
Component: General → Video/Audio
Product: Firefox OS → Core
Whiteboard: qawanted
steven, could you help to investigate this?
Flags: needinfo?(slee)
Whiteboard: qawanted → [CR 844856]qawanted
Whiteboard: [CR 844856]qawanted → [caf priority: p2][CR 844856]qawanted
(In reply to Nicholas Troast [:ntroast] from comment #0) > When video controls are enabled in a packaged application I see that the app > uses 5x more CPU time even if the controls are hidden. I used kernel trace > logs to collect the CPU time data. > > STR: > Create a simple packaged app with the following body: > > <video controls autoplay > src="http://html5video.org/players/media/sintel.3gp"></video> > > Remove the controls attribute and the app consumes less CPU time Hi Nichola, Can you provide the statistics data? I tried on my desktop. When I enable "controls", most of the CPU time spends on garbage collection threads. I want to make sure we are looking into the same thing. Thanks.
Flags: needinfo?(slee) → needinfo?(ntroast)
Hi Steven, I would share the kernel log data, but I am not sure that it would be very informative. The only process that is consuming more cpu is the app itself. All other processes look normal.
Flags: needinfo?(ntroast)
Flags: needinfo?(slee)
(In reply to Nicholas Troast [:ntroast] from comment #3) > I would share the kernel log data, but I am not sure that it would be very > informative. The only process that is consuming more cpu is the app itself. > All other processes look normal. I think you are using ftrace to get the data, right? The output of freace is calculated per thread. I want to make sure FxOS and desktop browser are the same. Thanks.
Flags: needinfo?(slee) → needinfo?(ntroast)
Keywords: qawanted
Whiteboard: [caf priority: p2][CR 844856]qawanted → [caf priority: p2][CR 844856]
Bobby what are you looking to have done for the qawanted request, branch checks? If so can you provide some test apps (one with and one without video controls) for comparison purposes.
Flags: needinfo?(bchien)
Nicholas, could you provide Jayme's request in comment 5? So we could have test to against branches. Thanks.
Flags: needinfo?(bchien)
Hi Nicholas, can we have your feedback here? Thank you
(In reply to Bobby Chien [:bchien] from comment #6) > Nicholas, could you provide Jayme's request in comment 5? So we could have > test to against branches. Thanks. I provided the test app in the bug description. It is a single line.
Flags: needinfo?(ntroast)
Are we going to fix this for v2.2?
[Blocking Requested - why for this release]: 2.2 CCed. Continue investigate in next release.
blocking-b2g: 2.2? → 2.5?
[Triage] Minus it since it's partner related. We'll rely on partner's help.
blocking-b2g: 2.5? → -
Keywords: qawanted
Whiteboard: [caf priority: p2][CR 844856] → [caf priority: p2][CR 844856][POVB]
Priority: -- → P2
Component: Audio/Video → Audio/Video: Playback
Mass change P2 -> P3
Priority: P2 → P3

Considering this is an pretty old bug, and we've changed video control a lot, and I didn't see this issue on the latest Release. So close this bug.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.