mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-05-03 15:04:48 +00:00
d3d11window: Prefer to use flip-sequential over discard
flip-sequential is more efficient than discard
This commit is contained in:
parent
1424de0a4a
commit
a0a85cd80c
1 changed files with 3 additions and 0 deletions
|
@ -1016,6 +1016,9 @@ gst_d3d11_window_prepare (GstD3D11Window * window, guint width, guint height,
|
|||
g_return_val_if_fail (aspect_ratio_n > 0, FALSE);
|
||||
g_return_val_if_fail (aspect_ratio_d > 0, FALSE);
|
||||
|
||||
if (gst_d3d11_is_windows_8_or_greater ())
|
||||
swap_effect = DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL;
|
||||
|
||||
GST_DEBUG_OBJECT (window, "Prepare window with %dx%d caps %" GST_PTR_FORMAT,
|
||||
width, height, caps);
|
||||
|
||||
|
|
Loading…
Reference in a new issue