Add patches and dashboard setting for maximum steamvr_lh pose prediction

This commit is contained in:
Sapphire
2026-08-29 15:24:53 -05:00
parent 15716d04c6
commit 28a8fbd743
9 changed files with 268 additions and 1 deletions
+3
View File
@@ -200,6 +200,9 @@ configuration::configuration()
if (auto it = json.find("use-steamvr-lh"); it != json.end())
use_steamvr_lh = *it;
if (auto it = json.find("lh-max-extrapolation"); it != json.end())
lh_max_extrapolation = *it;
if (auto it = json.find("lh-stick-deadzone"); it != json.end())
lh_stick_deadzone = *it;
+1
View File
@@ -57,6 +57,7 @@ struct configuration
std::vector<std::string> application;
bool debug_gui = false;
bool use_steamvr_lh = false;
std::optional<int64_t> lh_max_extrapolation;
std::optional<float> lh_stick_deadzone;
bool hid_forwarding = false;
bool tcp_only = false;
+3
View File
@@ -147,6 +147,9 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
if (conf.lh_stick_deadzone > 0.01f)
setenv("LH_STICK_DEADZONE", std::format("{:.2}", *conf.lh_stick_deadzone).c_str(), true);
if (conf.lh_max_extrapolation.has_value())
setenv("LH_MAX_EXTRAPOLATION_MS", std::format("{}", *conf.lh_max_extrapolation).c_str(), true);
U_LOG_W("=====================");
U_LOG_W("Disregard lighthousedb / chaperone related error messages from the lighthouse driver. These are irrelevant in case of WiVRn.");
U_LOG_W("If getting a SIGSEGV right after this, you are likely using an unsupported SteamVR version!");