Commit Graph

63 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
ReenigneArcher d6183430ef clang lint 2022-02-16 18:23:56 -05:00
Elia Zammuto 6d2d3eca18 Manually Imported Upstream PR #296
https://github.com/loki-47-6F-64/sunshine/pull/296 by psyke83 should fix the header issue by compiling
2021-12-26 23:32:34 +01:00
loki cb0b32f90a Add icon to windows executable 2021-10-03 21:12:06 +02:00
loki-47-6F-64 e287404992 Handle acquiring display names based on encoder 2021-09-25 14:44:38 +02:00
loki 91a6e55f74 Fix segfault when connecting multiple controllers at the same ttime 2021-09-13 20:24:04 +02:00
loki 1876de0a68 Fix cursor disappearing on Windows 2021-08-18 11:05:14 +02:00
loki-47-6F-64 b58279beea Omit one copy for display_vrm on Windows 2021-08-15 00:36:31 +02:00
loki-47-6F-64 8c2cd2f60d Load mDNS at runtime on Windows 2021-08-07 00:05: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 70d0be4b9a Add rumble effect on Linux 2021-07-22 18:19:25 +02:00
loki 4b043e31fe Support ds4 controller on Windows 2021-07-18 15:32:26 +02:00
loki 1fda8f6219 Support Rumble on Windows 2021-07-18 11:05:34 +02:00
Cameron Gutman 6d0499b0e3 Remove super key workaround
Moonlight can now pass the super key natively
2021-07-06 23:34:11 -05:00
loki 96cfb1f368 add missing file 2021-07-01 12:17:10 +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 beb6bdfadb Allow end user to configure what ports to listen on 2021-06-30 15:25:08 +02:00
loki 0cc7e35ed9 Automatic service discovery for Windows 2021-06-28 21:05:52 +02:00
loki b67600962a Fix incorrect scaling for absolute mouse coordinates 2021-06-24 20:53:19 +02:00
loki 926e95f527 Fix absolute mouse coordinates with multiple monitors on Windows 2021-06-23 21:51:15 +02:00
loki c47e3cb020 add missing file 2021-06-16 15:04:12 +02:00
loki 02360f7aef fix build windows 2021-06-16 14:34:05 +02:00
Loki 44ebc4846b removed useless if statement 2021-06-07 14:27:42 +02:00
Loki 3a3d4928f9 Fix compilation on Windows 2021-06-07 14:22:23 +02:00
loki bdb9ed9001 Perform image format conversion for VAAPI on the gpu 2021-06-04 21:12:06 +02:00
loki ff1ea1a63e Use VAAPI for hardware encoding on Linux 2021-05-29 16:25:37 +02:00
loki 7aff15f743 Mainain aspect ratio when using nvenc and amdvce 2021-05-24 20:58:05 +02:00
loki ba07fd510e Upmix/Downmix audio 2021-05-22 19:51:01 +02:00
loki 2fb5f8a7d0 Add config option for virtual_sink on windows 2021-05-21 14:28:24 +02:00
loki b119121e10 Change default audio device on Windows 2021-05-21 13:53:12 +02:00
loki 66a78f0d40 Fix windows build 2021-05-19 09:42:38 +02:00
loki 3d8a99f541 clang-format 2021-05-17 21:21:57 +02:00
loki a6c1649493 Remove redundent code 2021-05-15 17:01:03 +02:00
loki 33a330fd6c Downmix surround 5.1 to stereo 2021-05-14 21:44:20 +02:00
loki 022b2202f6 Absolute mouse coordinates on Windows 2021-05-12 14:42:10 +02:00
loki 2e9a1cfbba absolute mouse coordinates regardless of the number of monitors attached on Linux 2021-05-11 23:51:45 +02:00
loki 41cc9a3e80 absolute mouse coordinate support for single monitor on Linux 2021-05-11 18:01:56 +02:00
loki 2970ad662c No more dumb pointers for initialization 2021-05-09 11:40:12 +02:00
loki 13c2da07e8 Move shaders to seperate folder in assets 2021-05-08 13:22:04 +02:00
loki 513942c888 Improve colors for nv12 2021-05-08 12:03:58 +02:00
loki 67df04e0a2 Fix cursor position on lower resolution screens 2021-05-06 16:51:59 +02:00
loki 7b45f0d899 Fix cursor height and width 2021-05-06 13:51:29 +02:00
loki 0f661e467e Blend cursor onto the image 2021-05-06 12:36:26 +02:00
loki 0232d8027c Render cursor on duplicated image 2021-05-06 12:00:39 +02:00
loki c19853f03f Add color for BT701 colorspace 2021-05-05 11:28:57 +02:00
loki 900d59b3ac Dynamically set colors during runtime 2021-05-03 22:06:55 +02:00
loki 37a9256587 Render NV12 color format 2021-05-02 22:35:19 +02:00
loki 127b5501d9 Render luma onto nv12 surface 2021-04-30 20:01:15 +02:00