Closed Bug 1818685 Opened 2 years ago Closed 2 years ago

Disable video overlay if mVideoSwapChain->Present() is very slow on Windows

Categories

(Core :: Graphics, enhancement)

Unspecified
Windows
enhancement

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: sotaro, Assigned: sotaro)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Video swap chain always use double buffering in DCSurfaceVideo::CreateVideoSwapChain() . It seems better to enable triple buffering.

Assignee: nobody → sotaro.ikeda.g
Blocks: video-perf

Can you go into more detail why?

(In reply to Kelsey Gilbert [:jgilbert] from comment #2)

Can you go into more detail why?

There is a case that wait happens at mVideoSwapChain->Present(0, 0);

See https://bugzilla.mozilla.org/show_bug.cgi?id=1792015#c27

I wonder if the wait might be related to a lot of tiles usage in DCLayerTree.

See Also: → 1792015

I reconsidered about it, it might be better to disable video overlay when the wait at present() is detected.

Summary: Use triple buffering for video swap chain of video overlay on Window → Disable video overlay if mVideoSwapChain->Present() is very slow on Windows
Attachment #9319615 - Attachment is obsolete: true
OS: Unspecified → Windows
Pushed by sikeda.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c5b7cc9e8fca Disable video overlay if mVideoSwapChain->Present() is very slow on Windows r=gfx-reviewers,lsalzman

By Bug 1793388, the wait was moved from RenderCompositorANGLE::WaitForGPU() to mVideoSwapChain->Present().

See Also: → 1793388
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
Blocks: 1792015
Blocks: 1773872
See Also: → 1820318, 1824340
See Also: → 1842253
Duplicate of this bug: 1831696
See Also: → 1846165
Blocks: 1851625
Blocks: 1851630
Blocks: 1846165
See Also: 1846165
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: