Commit Graph

18 Commits

Author SHA1 Message Date
Conn O'Griofa 2d969c2ccc platform/windows: change dwmflush default, add autodetection
On each re/init, query the active monitor refresh rate via
DwmGetCompositionTimingInfo. If the client requested framerate exceeds
the host monitor refresh, automatically disable DwmFlush.

This avoids the problem by which DwmFlush would constrain the client
FPS if the host monitor runs at a lower refresh rate, thus allowing
the feature to be enabled by default.

If there are other issues caused by DwmFlush for certain systems,
it can still be disabled via configuration.
2022-06-15 22:23:09 +01:00
Conn O'Griofa 211b25848f platform/windows: add optional DwmFlush() call to improve Windows capture
Invoke DwmFlush() before acquiring the next frame to alleviate visual stutter
during mouse movement at the cost of constraining the capture rate to the host's
monitor refresh.

Disabled by default; enable via "dwmflush" boolean configuration parameter.
2022-06-15 22:23:09 +01:00
loki-47-6F-64 e287404992 Handle acquiring display names based on encoder 2021-09-25 14:44:38 +02:00
loki 6c11e9f27d Switch monitors on Windows 2021-07-29 17:27:22 +02:00
loki 7ddf8bbe94 Capturing images by callback, rather than pulling 2021-07-26 18:09:07 +02:00
loki 545cca792b Fix inabillity to display secure desktop even when runnig as system account 2021-06-30 22:03:21 +02:00
loki 926e95f527 Fix absolute mouse coordinates with multiple monitors on Windows 2021-06-23 21:51:15 +02:00
loki ff1ea1a63e Use VAAPI for hardware encoding on Linux 2021-05-29 16:25:37 +02:00
loki 3d8a99f541 clang-format 2021-05-17 21:21:57 +02:00
loki 022b2202f6 Absolute mouse coordinates on Windows 2021-05-12 14:42:10 +02:00
loki 2970ad662c No more dumb pointers for initialization 2021-05-09 11:40:12 +02:00
loki 1be5b4787f Moved pairInputDesktop() from desktop.h to input.cpp 2021-04-26 19:27:55 +02:00
loki 66b4b70023 merge with notentered 2021-04-24 17:12:10 +02:00
loki 438ae6a761 Don't stop streaming when UAC is running 2021-04-24 15:53:48 +02:00
Zlatko Zahariev 83dd07469e Initial elevated windows work 2021-01-15 02:07:49 -05:00
Conn O'Griofa 0a883ab651 Use realtime GPU priority to avoid stalls during high GPU usage
Change derived from OBS project commit: https://github.com/obsproject/obs-studio/commit/ec769ef008b748f7dfba211daec9eb203ea4bea0
See related discussion: https://obsproject.com/forum/threads/obs-studio-24-0-3-gpu-priority-fix-testing.111669/
2021-01-11 04:22:18 +00:00
loki 7ee59669da Removed unnecessary header include 2020-04-23 15:49:47 +02:00
loki 4bccec1c39 Refactor platorm Windows 2020-04-23 15:41:40 +02:00