Open Bug 1585893 Opened 13 days ago Updated 8 days ago

Investigate to use IDCompositionSurface instead of SwapChain with DirectComposition

Categories

(Core :: Graphics: WebRender, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: sotaro, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

For now, one triple buffered swap chain is used with DirectComposition. But if multiple overlays are used, it might be better to use IDCompositionSurface instead of SwapChain. For example, display timing might not be synchronized between SwapChains. We might get more performance. It seems that we could reduce memory usage. Though we do not know yet about the actual necessity.

Chromium uses IDCompositionSurface when DC layers usage is enabled.
https://cs.chromium.org/chromium/src/ui/gl/direct_composition_child_surface_win.cc?l=269

Priority: -- → P3

With Attachment 9098454 [details], when DCompositionSurface was used, rendering was slide down a bit. Origin of y seems different :(

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