mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(D3D11+12) Improve 'Max Frame Latency' logging (#15911)
This commit is contained in:
parent
bbe7afcd82
commit
2463188fed
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user