Closed
Bug 1474532
Opened 6 years ago
Closed 6 years ago
Youtube 30fps video playback rendered with 60fps
Categories
(Core :: Graphics: WebRender, enhancement)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox63 | --- | fixed |
People
(Reporter: sotaro, Assigned: sotaro)
References
Details
Attachments
(1 file, 2 obsolete files)
1.34 KB,
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
Crated by Bug 1470327 comment 4.
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → sotaro.ikeda.g
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Attachment #8990920 -
Attachment description: patch - Suppress redundunt frame generation with async-scene-build enabled → patch - Suppress redundant frame generation with async-scene-build enabled
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Attachment #8990920 -
Flags: review?(nical.bugzilla)
Comment 3•6 years ago
|
||
Comment on attachment 8990920 [details] [diff] [review]
patch - Suppress redundant frame generation with async-scene-build enabled
Review of attachment 8990920 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/layers/wr/AsyncImagePipelineManager.cpp
@@ +297,5 @@
> updateDisplayList = true;
> }
>
> // Request to generate frame if there is an update.
> + if (!gfxPrefs::WebRenderAsyncSceneBuild() && (updateDisplayList || !op.isNothing())) {
Shouldn't we still schedule frame if we didn't update the display list?
Assignee | ||
Comment 4•6 years ago
|
||
With Bug 1474576, AsyncSceneBuild became an only way to build scene.
Assignee | ||
Comment 5•6 years ago
|
||
(In reply to Nicolas Silva [:nical] from comment #3)
> > }
> >
> > // Request to generate frame if there is an update.
> > + if (!gfxPrefs::WebRenderAsyncSceneBuild() && (updateDisplayList || !op.isNothing())) {
>
> Shouldn't we still schedule frame if we didn't update the display list?
Schedule frame for no display list update(only resource update) is also done via WRSceneBuilder thread like the following. Then we do not need to schedule frame here.
------------------------------------
SceneBuilder::process_message()
->SceneBuilderHooks::post_resource_update();
->wr_schedule_render()
->CompositorBridgeParent::ScheduleRenderOnCompositorThread()
->CompositorBridgeParent::ScheduleComposition()
Assignee | ||
Comment 6•6 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #5)
> (In reply to Nicolas Silva [:nical] from comment #3)
> > > }
> > >
> > > // Request to generate frame if there is an update.
> > > + if (!gfxPrefs::WebRenderAsyncSceneBuild() && (updateDisplayList || !op.isNothing())) {
> >
> > Shouldn't we still schedule frame if we didn't update the display list?
>
> Schedule frame for no display list update(only resource update) is also done
> via WRSceneBuilder thread like the following. Then we do not need to
> schedule frame here.
>
On current gecko, the frame generation is duplicated for video, then became high fps.
Comment hidden (obsolete) |
Assignee | ||
Comment 8•6 years ago
|
||
Attachment #8991165 -
Attachment is obsolete: true
Comment 9•6 years ago
|
||
Comment on attachment 8991172 [details] [diff] [review]
patch - Suppress redundant frame generation with async-scene-build enabled
Review of attachment 8991172 [details] [diff] [review]:
-----------------------------------------------------------------
This makes sense to me. s/redundunt/redundant/ in the commit message though.
Attachment #8991172 -
Flags: review+
Assignee | ||
Comment 10•6 years ago
|
||
Thanks!
Assignee | ||
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Pushed by sikeda@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/0c269521673a
Suppress redundant frame generation with async-scene-build enabled r=kats
Comment 13•6 years ago
|
||
> Schedule frame for no display list update(only resource update) is also done via WRSceneBuilder thread like the following. Then we do not need to schedule frame here.
Ah, we should be able to skip the scene builder thread for video frames in a lot of cases as they don't abide to the frame consistency rule, but that's something we can look into polishing later.
Assignee | ||
Comment 14•6 years ago
|
||
Yup :)
Comment 15•6 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Comment 16•6 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1467768 covers the polish work mentioned in comment 13, I think.
You need to log in
before you can comment on or make changes to this bug.
Description
•