Add --render-driver command-line option

Add an option to set a render driver hint (SDL_HINT_RENDER_DRIVER).
This commit is contained in:
Romain Vimont
2020-04-11 14:34:41 +02:00
parent 95fa1a69e4
commit 9f029da2f9
5 changed files with 33 additions and 2 deletions

View File

@@ -106,6 +106,14 @@ option if set, or by the file extension (.mp4 or .mkv).
.BI "\-\-record\-format " format
Force recording format (either mp4 or mkv).
.TP
.BI "\-\-render\-driver " name
Request SDL to use the given render driver (this is just a hint).
Supported names are currently "direct3d", "opengl", "opengles2", "opengles", "metal" and "software".
.UR https://wiki.libsdl.org/SDL_HINT_RENDER_DRIVER
.UE
.TP
.B \-\-render\-expired\-frames
By default, to minimize latency, scrcpy always renders the last available decoded frame, and drops any previous ones. This flag forces to render all frames, at a cost of a possible increased latency.