[vlc-devel] [PATCH 2/2] direct3d11: Add one more buffer to the SwapChain

Steve Lhomme robux4 at videolabs.io
Tue Oct 10 14:40:16 CEST 2017


It helps the GPU when one buffer is being processed for display and another
being displayed.
---
 modules/video_output/win32/direct3d11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 74b479ef5c..4417999179 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1671,7 +1671,7 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmt)
 
     DXGI_SWAP_CHAIN_DESC1 scd;
     memset(&scd, 0, sizeof(scd));
-    scd.BufferCount = 2;
+    scd.BufferCount = 3;
     scd.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT;
     scd.SampleDesc.Count = 1;
     scd.SampleDesc.Quality = 0;
-- 
2.14.2



More information about the vlc-devel mailing list