From 11b703904ab61b08f08aae8e36cdb726826e6487 Mon Sep 17 00:00:00 2001 From: Brandon Jones Date: Tue, 30 Apr 2019 08:31:38 +0000 Subject: [PATCH] Increase D3D12 Swap Chain Buffers to 3 Adds an additional buffer and frame to the D3D12 swap chain to unthrottle fps in situations where we can't maintain a constant 60fps. Bug: dawn:142 Change-Id: I06ef697ca37608dc51816dd99de5534cb8c9b843 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/6840 Reviewed-by: Kai Ninomiya Reviewed-by: Rafael Cintron Reviewed-by: Corentin Wallez Commit-Queue: Corentin Wallez --- src/dawn_native/d3d12/NativeSwapChainImplD3D12.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dawn_native/d3d12/NativeSwapChainImplD3D12.cpp b/src/dawn_native/d3d12/NativeSwapChainImplD3D12.cpp index 50d006f5b9..17120f6cb6 100644 --- a/src/dawn_native/d3d12/NativeSwapChainImplD3D12.cpp +++ b/src/dawn_native/d3d12/NativeSwapChainImplD3D12.cpp @@ -35,7 +35,7 @@ namespace dawn_native { namespace d3d12 { return usage; } - static constexpr unsigned int kFrameCount = 2; + static constexpr unsigned int kFrameCount = 3; } // anonymous namespace NativeSwapChainImpl::NativeSwapChainImpl(Device* device, HWND window)