a921bbfebb
This pull request reduces input lag, especially with selection, by using `IDXGISwapChain2::GetFrameLatencyWaitableObject`. This is based on the [DXGI 1.3 documentation]. Excerpt from the [DXGI 1.3 improvement list]: > The following functionality has been added in Microsoft DirectX Graphics Infrastructure (DXGI) 1.3, which is included starting in Windows 8.1. Before, during rendering: 1. render frame 2. call `Present` on swap chain: 2.a. blocks until it can present 2.b. meanwhile, selection/text in terminal might have changed, but we're still using the frame that we rendered before blocking 2.c. presents After, during rendering: 1. block until we can present 2. render frame with latest data 3. call `Present` on swap chain: 3.a. present without blocking [DXGI 1.3 documentation]: https://docs.microsoft.com/en-us/windows/uwp/gaming/reduce-latency-with-dxgi-1-3-swap-chains [DXGI 1.3 improvement list]: https://docs.microsoft.com/en-us/windows/win32/direct3ddxgi/dxgi-1-3-improvements: |
||
---|---|---|
.. | ||
lib | ||
ut_dx | ||
BoxDrawingEffect.cpp | ||
BoxDrawingEffect.h | ||
CustomTextLayout.cpp | ||
CustomTextLayout.h | ||
CustomTextRenderer.cpp | ||
CustomTextRenderer.h | ||
dirs | ||
DxRenderer.cpp | ||
DxRenderer.hpp | ||
IBoxDrawingEffect.idl | ||
precomp.cpp | ||
precomp.h | ||
ScreenPixelShader.h | ||
ScreenVertexShader.h | ||
sources.inc |