(D3D11+12) Improve 'Max Frame Latency' logging (#15911)

This commit is contained in:
sonninnos 2023-11-15 23:18:31 +02:00 committed by GitHub
parent bbe7afcd82
commit 2463188fed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View file

@ -2016,7 +2016,10 @@ static bool d3d11_init_swapchain(d3d11_video_t* d3d11,
DXGISetMaximumFrameLatency(d3d11->swapChain, max_latency);
DXGIGetMaximumFrameLatency(d3d11->swapChain, &cur_latency);
RARCH_LOG("[D3D11]: Requesting %u maximum frame latency, using %u.\n", max_latency, cur_latency);
RARCH_LOG("[D3D11]: Requesting %u maximum frame latency, using %u%s.\n",
settings->uints.video_max_frame_latency,
cur_latency,
(d3d11->flags & D3D11_ST_FLAG_WAIT_FOR_VBLANK) ? " with WaitForVBlank" : "");
}
#ifdef HAVE_DXGI_HDR

View file

@ -2371,7 +2371,10 @@ static bool d3d12_init_swapchain(d3d12_video_t* d3d12,
DXGISetMaximumFrameLatency(d3d12->chain.handle, max_latency);
DXGIGetMaximumFrameLatency(d3d12->chain.handle, &cur_latency);
RARCH_LOG("[D3D12]: Requesting %u maximum frame latency, using %u.\n", max_latency, cur_latency);
RARCH_LOG("[D3D12]: Requesting %u maximum frame latency, using %u%s.\n",
settings->uints.video_max_frame_latency,
cur_latency,
(d3d12->flags & D3D12_ST_FLAG_WAIT_FOR_VBLANK) ? " with WaitForVBlank" : "");
}
#ifdef HAVE_WINDOW