[vlc-commits] direct3d11: Add one more buffer to the SwapChain
Steve Lhomme
git at videolan.org
Thu Oct 12 23:32:56 CEST 2017
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Tue Oct 10 14:40:16 2017 +0200| [3cd51996e440b66572480d6ebc94126a702b7012] | committer: Jean-Baptiste Kempf
direct3d11: Add one more buffer to the SwapChain
It helps the GPU when one buffer is being processed for display and another
being displayed.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3cd51996e440b66572480d6ebc94126a702b7012
---
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 aa0d0b9cd8..32615c8549 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;
More information about the vlc-commits
mailing list