Add patches and dashboard setting for maximum steamvr_lh pose prediction
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user