diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5c9a135f..8827b453 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -122,6 +122,7 @@ if(WIN32)
ws2_32
d3d11 dxgi D3DCompiler
setupapi
+ dwmapi
)
set_source_files_properties(third-party/ViGEmClient/src/ViGEmClient.cpp PROPERTIES COMPILE_DEFINITIONS "UNICODE=1;ERROR_INVALID_DEVICE_OBJECT_PARAMETER=650")
diff --git a/docs/source/about/advanced_usage.rst b/docs/source/about/advanced_usage.rst
index 61c9e60f..e071ada5 100644
--- a/docs/source/about/advanced_usage.rst
+++ b/docs/source/about/advanced_usage.rst
@@ -333,6 +333,25 @@ Example
3840x1600,
]
+dwmflush
+^^^^^^^^
+
+Description
+ Invoke DwmFlush() to sync screen capture to the Windows presentation interval.
+
+ .. Caution:: Applies to Windows only. Alleviates visual stuttering during mouse movement, but causes the capture
+ rate to be limited to the host monitor's currently active refresh rate.
+
+Default
+ ``disabled``
+
+Examples
+
+ Windows
+ .. code-block:: text
+
+ dwmflush = enabled
+
Audio
-----
diff --git a/src_assets/common/assets/web/config.html b/src_assets/common/assets/web/config.html
index 71372479..1d34512c 100644
--- a/src_assets/common/assets/web/config.html
+++ b/src_assets/common/assets/web/config.html
@@ -400,7 +400,18 @@
You can select the video card you want to stream:
The appropriate values can be found using the following command:
tools\dxgi-info.exe
-
+
+
+
+
+
+
+
+ Improves capture latency during mouse movement.
+ Enabling this may prevent the client's FPS from exceeding the host monitor's active refresh rate.