Quantum
042a7d0925
[host] dxgi: add configurable sleep before D3D12 copy
2022-01-10 14:45:51 +11:00
Quantum
c69b19e68f
[host] dxgi: add option to disable damage-aware copies
2022-01-10 14:45:51 +11:00
Quantum
cf7d501bc4
[host] dxgi: allow copy backend selection
2022-01-10 14:45:51 +11:00
Quantum
68e5b812a9
[host] dxgi: add preRelease callback
...
This is meant to avoid freeing the texture before the copy has finished.
2022-01-10 14:45:51 +11:00
Quantum
5a93f1e00c
[host] dxgi: implement Direct3D 12 texture copy backend
2022-01-10 14:45:51 +11:00
Quantum
891f00a011
[host] dxgi: add d3d12.h from latest MinGW
...
This header was added in late 2020 and hasn't made its way into the GitHub
Actions image yet.
2022-01-10 14:45:51 +11:00
Quantum
137171a8a2
[host] dxgi: refactor to support additional copy backends
2022-01-10 14:45:51 +11:00
Geoffrey McRae
fd12d9901a
[host] app: dont use pointers when realloc may have changed them
...
This code was completely broken and corrupts the stack, replace it with
something that is actually safe.
2022-01-09 21:19:17 +11:00
Geoffrey McRae
c05282c38c
[host] cmake: add ubsan and asan to CMake (needs clang64 on windows)
...
Note that this still is a pain to make work as you require the MS
runtime DLLs, and to build with clang64.
2022-01-09 21:18:32 +11:00
Quantum
a391e271c3
[host] dxgi: damage all textures when skipping frame
2022-01-09 16:36:26 +11:00
Quantum
bf059a6eda
[host] app: send CPU socket count information
2022-01-07 21:03:20 +11:00
Quantum
194241c5a3
[common] cpuinfo: add sockets to interface
2022-01-07 21:03:20 +11:00
Johnathon Weaver
0f998582b9
[host] nvfbc: Fix dwmapi linking error
...
Fixed linking for DwmFlush and also rearranged as per how DXGI is.
2022-01-07 01:46:35 +11:00
Geoffrey McRae
34e5f7e968
[host] windows: fix usage of MCSS and try to get priority "Capture"
2022-01-06 20:14:55 +11:00
Geoffrey McRae
2f8b139131
[host] windows: set DwmFlush default to off
...
This new feature while helps on some systems, others using freesync or
higher refresh rates where the capture can't keep up will limit to
fractions of the refresh rate. Better to disable and allow users to
opt-in.
2022-01-06 19:20:08 +11:00
Geoffrey McRae
b058cbe9fe
[host] nvfbc: add DwmFlush here too as it makes a large difference
2022-01-06 19:01:29 +11:00
Geoffrey McRae
443f98d2fa
[host] windows: opt into the Multimedia Class Schedule Service
...
This improves overall application performance as windows will give this
process higher priority for low latency multimedia tasks.
2022-01-06 18:41:48 +11:00
Geoffrey McRae
92f27cc0f0
[host] dxgi: use DwmFlush to sync to presentation interval
...
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.
2022-01-06 18:39:08 +11:00
Geoffrey McRae
5bb1f01dea
[host] windows: parse the UUID from the SMBIOS
2022-01-06 14:22:38 +11:00
Geoffrey McRae
fdb38a227e
[host] app: implement stubs for platform specific guest information
2022-01-05 21:04:57 +11:00
Geoffrey McRae
b3f6c75ade
[host] app: zero memory allocated for lgmp userdata
2022-01-05 20:13:12 +11:00
Geoffrey McRae
952ebea2c5
[all] refresh copyright dates
2022-01-05 19:42:46 +11:00
Geoffrey McRae
0d27092ef5
[all] move min/max and upcast macros into common/util.h
2022-01-05 19:41:57 +11:00
Geoffrey McRae
ebf20dd108
[host] nvfbc: fix failure to startup
2022-01-05 19:31:47 +11:00
Geoffrey McRae
7cc9b5f77c
[host] app: remove debug line and fix my failure to count
2022-01-05 19:25:51 +11:00
Geoffrey McRae
0ccc84959e
[host] app: fix out by one compiler warning
2022-01-05 19:23:19 +11:00
Geoffrey McRae
ba9f2b85b6
[host/client] kvmfr: update to include extra user data about the VM
...
This change allows the host to provide information to the client about
how the VM is configured, information such as the UUID, CPU
configuration and capture method both for informational display in the
client as well as debugging in the client's logs.
The format of the records allows this to be extended later with new
record types without needing to bump the KVMFR version.
2022-01-05 19:18:43 +11:00
Geoffrey McRae
ac2c62e560
[host] intiialize the app state earlier to prevent ovewriting re-inits
...
If there is LGMP corruption the LGMP thread will set the state to
REINIT which if this happens early enough will get overwritten if the
inital app state is set too late. Instead set the application initial
state early to avoid this.
2022-01-04 10:40:00 +11:00
Geoffrey McRae
6f39434bdc
[host] correct reinit logic when LGMP corruption is detected
2021-12-30 14:34:45 +11:00
Geoffrey McRae
9b202d5566
[host] detect header corruption and re-initialize if so
2021-12-30 13:49:33 +11:00
Quantum
e7fdf7e77a
[host] pipewire: report stream state
...
This should provide some useful debug information and report stream
errors.
2021-12-28 19:23:14 +11:00
Quantum
10110dd940
[host] app: support force quitting
...
This makes it much less painful to develop the host, as sometimes it
hangs and ^C doesn't work.
2021-12-28 19:04:47 +11:00
Quantum
a21e897bb5
[host] pipewire: use new format for 10-bit colour
...
I recently added little-endian 10-bit colour formats to PipeWire, which
is what we actually use. The old r210 format is big endian.
2021-12-28 18:50:29 +11:00
vmfortress
8ab130deba
xcb: added basic cursor support via xcb_fixes
...
xcb interface now properly supports cursor integration through
a `pointerThread` similar to the nvfbc implementation.
2021-12-27 11:10:07 +11:00
vmfortress
fbf294efd9
xcb: Fixed return value of xcb_deinit
...
`xcb_deinit` returns `true` to fit the capture interface standard.
2021-12-27 11:10:07 +11:00
vmfortress
2824238b4d
xcb: added xcb_stop and xcb_initOptions support
...
Added basic functions and the necessary variables for the
`.initOptions` and `.stop` items in the capture interface.
2021-12-27 11:10:07 +11:00
Quantum
6f8745a89b
[host] installer: enable DPI awareness
...
This should make the installer look less blurry on high DPI displays.
2021-12-26 11:34:43 +11:00
Quantum
3d1eedd4ef
[host] installer: add ability to install IVSHMEM driver
...
To use this, run makensis with -DIVSHMEM with the driver files in the
ivshmem subdirectory under the build directory.
2021-12-26 11:31:32 +11:00
Quantum
d073f9969c
[host] installer: clean up trailing whitespace
2021-12-26 11:31:32 +11:00
WYF
b21d842f0e
[host] nvfbc: add an option to specify adapter
2021-12-26 11:14:17 +11:00
Tudor Brindus
9872d2e407
[host] dxgi: fix typo in debug log message
2021-12-26 09:49:03 +11:00
Quantum
12461196c3
[host] nvfbc: fix comments in updateDamageRects
2021-12-24 15:30:04 +11:00
Geoffrey McRae
43545a4e17
[all] cmake: refuse to perform in-source builds
2021-12-15 10:56:27 +11:00
Geoffrey McRae
b515fa80d5
[host] nvfbc: be more intellegent when unionizing disjointed sets
2021-10-27 00:00:38 +11:00
Geoffrey McRae
9969896876
[host] app: zero the new client sub count
...
If a new client connects but there has not been a capture timeout the
new client count wont be zeroed on a valid capture. If there is a
timeout later the host will still think there is a new client and
re-send a frame when it should not. This fixes this by reading the value
on a valid frame which zeros the new subs count.
2021-10-20 15:56:35 +11:00
Quantum
13fabc2e4a
[host] windows: fix NSIS install directory on 64-bit builds
...
This is probably an NSIS bug.
2021-10-18 16:17:36 +11:00
Quantum
1f24ab0742
[host] nvfbc: avoid waking up pointer thread for no reason
...
If the wait times out, we used to simply restart the loop, which causes
it to check this->stop and exit if set to true. However, nvfbc_stop
already calls lgSignalEvent, which would wake up the pointer thread to
perform the check, so there is no need to set a timeout on the wait.
2021-09-29 17:47:02 +10:00
Quantum
bc65de5987
[host] installer: build 64-bit NSIS installers
...
The host is a 64-bit application, so requiring 64-bit Windows isn't an
issue. However, not using 32-bit installers has an advantage: we don't
need to require WoW64.
2021-09-21 22:26:10 +10:00
Quantum
286da11172
[host] windows: don't register exit event when none exists
2021-09-04 13:25:06 +10:00
Quantum
e05bb196f0
[host] app: print CPU information on startup
2021-08-31 20:14:10 +10:00