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 <kainino@chromium.org>
Reviewed-by: Rafael Cintron <rafael.cintron@microsoft.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Brandon Jones 2019-04-30 08:31:38 +00:00 committed by Commit Bot service account
parent 4baba8266b
commit 11b703904a
1 changed files with 1 additions and 1 deletions

View File

@ -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)