Sunshine/sunshine/platform
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
..
linux Fixed formatting. 2022-04-29 11:20:45 -05:00
macos Add TPCircularBuffer submodule 2022-03-02 11:19:05 +08:00
windows platform/windows: change dwmflush default, add autodetection 2022-06-15 22:23:09 +01:00
common.h Initial support for MacOS 2022-02-26 10:18:00 +01:00