Skip to content

Commit

Permalink
Add a command line flag to enable software rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
exelix11 committed Jan 4, 2024
1 parent 6df1330 commit b68349f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Client/CommandLineOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ record OptionArg(string Name, Action<CommandLineOptions, string> Handle, bool St

// Advanced options
new OptionArg("--decoder", (x, v) => x.RequestedDecoderName = v),
new OptionNoArg("--software-render", (x) => x.SoftwareRendering = true),

// Deprecated RTSP options
new OptionNoArg("--rtsp", x => x.RTSPDeprecationWarning = true),
Expand Down Expand Up @@ -161,6 +162,8 @@ public enum StreamMode

public bool LegacyPlayer;

public bool SoftwareRendering;

public void ApplyOptionOverrides()
{
DynamicLibraryLoader.LibLoaderOverride = LibDir;
Expand Down Expand Up @@ -188,6 +191,9 @@ public void ApplyOptionOverrides()
}

Program.Options.DecoderName = RequestedDecoderName;

if (SoftwareRendering)
Program.Options.ForceSoftwareRenderer = true;
}

public void PrintDeprecationWarnings()
Expand Down Expand Up @@ -243,6 +249,7 @@ When a debugger is attached `log` is enabled by default.
`--libdir` : Overrides the dynami library loading path, use only if dotnet can't locate your ffmpeg/avcoded/SDL2 libraries automatically
this option effect depend on your platform, some libraries may still be handled by dotnet, it's better to use your loader path environment variable.
`--debug-list` : Prints all available debug options.
`--software-render` : Launches SDL with software rendering, this runs very poorly and it is only meant as a debug option
Command examples:
SysDVR-Client.exe usb
Expand Down

0 comments on commit b68349f

Please sign in to comment.