This change reduces the host GPU and CPU load by a large margin improving guest system performance along with removing latency spikes when moving the mouse. This is default enabled but can be disabled with the new option `dxgi:dwmFlush=no` as it limits the capture rate to the refresh rate of the guests output which may not be desireable.
21 lines
289 B
CMake
21 lines
289 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
project(capture_DXGI LANGUAGES C)
|
|
|
|
add_library(capture_DXGI STATIC
|
|
src/dxgi.c
|
|
)
|
|
|
|
add_definitions("-DCOBJMACROS -DINITGUID")
|
|
|
|
target_link_libraries(capture_DXGI
|
|
lg_common
|
|
d3d11
|
|
dxgi
|
|
dwmapi
|
|
)
|
|
|
|
target_include_directories(capture_DXGI
|
|
PRIVATE
|
|
src
|
|
)
|