mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-03 00:06:09 +00:00
Add an extra buffer for DirectFlip
This commit is contained in:
parent
2518208c5c
commit
e8b4494fc3
@ -233,11 +233,13 @@ bool D3D11VARenderer::initialize(PDECODER_PARAMETERS params)
|
|||||||
swapChainDesc.SampleDesc.Count = 1;
|
swapChainDesc.SampleDesc.Count = 1;
|
||||||
swapChainDesc.SampleDesc.Quality = 0;
|
swapChainDesc.SampleDesc.Quality = 0;
|
||||||
swapChainDesc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT;
|
swapChainDesc.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT;
|
||||||
swapChainDesc.BufferCount = 2;
|
|
||||||
swapChainDesc.Scaling = DXGI_SCALING_STRETCH;
|
swapChainDesc.Scaling = DXGI_SCALING_STRETCH;
|
||||||
swapChainDesc.AlphaMode = DXGI_ALPHA_MODE_UNSPECIFIED;
|
swapChainDesc.AlphaMode = DXGI_ALPHA_MODE_UNSPECIFIED;
|
||||||
swapChainDesc.Flags = 0;
|
swapChainDesc.Flags = 0;
|
||||||
|
|
||||||
|
// 1 front buffer + 1 back buffer + 1 extra for DWM to hold on to for Flip modes
|
||||||
|
swapChainDesc.BufferCount = 3;
|
||||||
|
|
||||||
DXGI_SWAP_CHAIN_FULLSCREEN_DESC fullScreenDesc = {};
|
DXGI_SWAP_CHAIN_FULLSCREEN_DESC fullScreenDesc = {};
|
||||||
|
|
||||||
if (m_Windowed) {
|
if (m_Windowed) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user