feat: some env var descriptions

This commit is contained in:
Gabriele Musco 2023-07-23 09:34:53 +02:00
commit a4b5b333da
No known key found for this signature in database
GPG key ID: 1068D795C80E51DE

View file

@ -4,7 +4,7 @@ use phf_macros::phf_map;
pub static ENV_VAR_DESCRIPTIONS: Map<&str, &str> = phf_map! { pub static ENV_VAR_DESCRIPTIONS: Map<&str, &str> = phf_map! {
"XRT_COMPOSITOR_SCALE_PECENTAGE" => "XRT_COMPOSITOR_SCALE_PECENTAGE" =>
"Render resolution percentage. A percentage higher than the native resolution (>100) will help with antialiasing and image clarity.", "Render resolution percentage. A percentage higher than the native resolution (>100) will help with antialiasing and image clarity.",
// "XRT_COMPOSITOR_COMPUTE" => "", "XRT_COMPOSITOR_COMPUTE" => "Set to 1 to use GPU compute for the OpenXR compositor.",
"SURVIVE_GLOBALSCENESOLVER" => "SURVIVE_GLOBALSCENESOLVER" =>
"Continuously recalibrate lighthouse tracking during use. In the current state it's recommended to disable this feature by setting this value to 0.", "Continuously recalibrate lighthouse tracking during use. In the current state it's recommended to disable this feature by setting this value to 0.",
// "SURVIVE_TIMECODE_OFFSET_MS" => "", // "SURVIVE_TIMECODE_OFFSET_MS" => "",
@ -12,6 +12,8 @@ pub static ENV_VAR_DESCRIPTIONS: Map<&str, &str> = phf_map! {
"Colon-separated list of directories where the dynamic linker will search for shared object libraries.", "Colon-separated list of directories where the dynamic linker will search for shared object libraries.",
"XRT_DEBUG_GUI" => "Set to 1 to enable the Monado debug UI", "XRT_DEBUG_GUI" => "Set to 1 to enable the Monado debug UI",
"XRT_JSON_LOG" => "Set to 1 to enable JSON logging for Monado. This enables better log visualization and log level filtering.", "XRT_JSON_LOG" => "Set to 1 to enable JSON logging for Monado. This enables better log visualization and log level filtering.",
"LH_DRIVER" => "Lighthouse driver; Valid options are: \"vive\" for the default built-in driver, \"survive\" for Libsurvive, \"steamvr\" for the SteamVR based implementation.",
"LH_LOG" => "Lighthouse driver log level. Can be one of: \"trace\", \"debug\", \"info\", \"warn\", \"error\"."
}; };
pub fn env_var_descriptions_as_paragraph() -> String { pub fn env_var_descriptions_as_paragraph() -> String {