Closed Bug 1674029 Opened 4 years ago Closed 4 years ago

Add partial present support when using a native compositor

Categories

(Core :: Graphics: WebRender, task)

task

Tracking

()

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: mattwoodrow, Assigned: mattwoodrow)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

SWGL should be able to be significantly faster if we can restrict compositing to the dirty area.

Ideally we'd be able to expose this before compositing (maybe Compositor::begin_compositing) so that we can only map a destination framebuffer for the area that we need.

Just to clarify a bit here, there's two separate steps that could have useful perf wins.

  • Make EndFrame return the dirty rects, when native compositing it enabled. This would let us restrict the area that we copy from the SWGL backbuffer to the native Window.

  • Expose the dirty rects earlier in compositing (BeginFrame/BeginCompositing), so that we can clip/scissor SWGL compositing itself and restrict SWGL compositing to the dirty area.

Blocks: 1669842
Depends on: 1675159
Assignee: nobody → matt.woodrow
Status: NEW → ASSIGNED
Pushed by mwoodrow@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9bc569bc38c1 Adjust compositor surface tile dirty rects by their transform if applicable. r=gw https://hg.mozilla.org/integration/autoland/rev/565ba6bf11b5 Only commit the dirty rects in RenderCompositorSWGL. r=lsalzman
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch

== Change summary for alert #27696 (as of Tue, 17 Nov 2020 05:59:20 GMT) ==

Improvements:

Ratio Suite Test Platform Options Absolute values (old vs new)
2% tsvgx linux64-shippable-qr e10s stylo webrender-sw 301.69 -> 295.00
2% tsvgx linux64-shippable-qr e10s stylo webrender-sw 300.07 -> 294.59

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=27696

Regressions: 1678954
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: