diff --git a/docs/building.md b/docs/building.md index 87ecbe5e..e84f9bb3 100644 --- a/docs/building.md +++ b/docs/building.md @@ -4,13 +4,13 @@ ## Compile -From your checkout directory, with automatic detection of encoders +From your checkout directory ```bash cmake -B build-server . -GNinja -DWIVRN_BUILD_CLIENT=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo cmake --build build-server ``` -It is possible to disable specific encoders, by adding options +By default, all encoders are enabled. It is possible to disable them at build time with the following options: ``` -DWIVRN_USE_NVENC=OFF -DWIVRN_USE_VAAPI=OFF @@ -18,14 +18,10 @@ It is possible to disable specific encoders, by adding options -DWIVRN_USE_X264=OFF ``` -Force specific audio backends +wivrnctl is an optional tool enabled by default and the only part that requires libsystemd/libelogind. +It can be disabled with ``` --DWIVRN_USE_PIPEWIRE=ON -``` - -Systemd service and pretty hostname support -``` --DWIVRN_USE_SYSTEMD=ON +-DWIVRN_USE_WIVRNCTL=OFF ``` Lighthouse driver support for use with lighthouse-tracked devices @@ -33,7 +29,9 @@ Lighthouse driver support for use with lighthouse-tracked devices -DWIVRN_FEATURE_STEAMVR_LIGHTHOUSE=ON ``` -Additionally, if your environment requires absolute paths inside the OpenXR runtime manifest, you can add `-DWIVRN_OPENXR_MANIFEST_TYPE=absolute` to the build configuration. +For a few dependencies it is possible to select system or embedded versions, check `WIVRN_USE_SYSTEM_xxx` in case you are missing dependencies. + +For more advanced options, check [CMakeLists.txt](../CMakeLists.txt). ## Profiling / tracing build @@ -52,7 +50,7 @@ See [profiling](profiling.md) for how to run the server with tracing and capture # Dashboard -The WiVRn dashboard requires Qt6, and the WiVRn server. +The WiVRn dashboard requires Qt6, Kirigami, and the WiVRn server. ## Compile diff --git a/docs/configuration.md b/docs/configuration.md index c6eda9a9..5f1f06f0 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -1,6 +1,6 @@ # Configurable items -Configuration is done on server side. +Configuration is split between headset and server. Headset contains most configuration, while server has system specific items such as encoders and paths. Files are read from - `/usr/share/wivrn/config.json` (where `/usr` is selected at configure time with `CMAKE_INSTALL_PREFIX`) - `/etc/wivrn/config.json` @@ -13,9 +13,9 @@ If you installed WiVRn from a flatpack, the config is in `$HOME/.var/app/io.gith All elements are optional and have default values. ## `bit-depth` -Default value: `8` (bits) +Default value: 10-bit if supported by the selected codec, encoder and decoder. 8-bit otherwise. -Bit depth of the video. 8-bit is supported by all encoders. 10-bit is supported by `vaapi` and `nvenc` encoders using `h265` or `av1`. +Bit depth of the video. 8-bit is supported by all encoders. 10-bit is supported by `vulkan`, `vaapi` and `nvenc` with `h265` or `av1` codecs. ## `encoder` The encoder to use, either a single string or object applied to all streams, or a list of string or objects with values for left, right and alpha. @@ -24,13 +24,13 @@ When a string it is used, it is equivalent to the `encoder` item of the object. WiVRn encodes each eye separately, and the alpha channel as one for both eyes. Each stream is processed independently, this may use resources more effectively and reduce latency. ### `encoder` -Default value: `vulkan` if supported, `nvenc` if Nvidia GPU and compiled with nvenc, `vaapi` for all other GPU when compiled with ffmpeg, else `x264`. +Default value, in order: `vulkan` if supported, `nvenc` on Nvidia GPU, `vaapi` on all other GPU, else `x264`. Identifier of the encoder, one of * `x264`: software encoding * `nvenc`: Nvidia hardware encoding * `vaapi`: AMD/Intel hardware encoding -* `vulkan`: for any GPU that supports vulkan video encode +* `vulkan`: Vulkan Video encode, cross-vendor hardware encoding ### `codec` Default value: best supported by both headset and encoder of `av1`, `h264`, `h265`.