Refactor client configuration

This commit is contained in:
Patrick Nicolas
2024-04-21 11:20:31 +02:00
parent 194709e3e0
commit b72acd87fc
10 changed files with 272 additions and 187 deletions
+11
View File
@@ -809,6 +809,17 @@ void application::initialize()
world_space = xr_session.create_reference_space(XR_REFERENCE_SPACE_TYPE_STAGE);
// world_space = xr_session.create_reference_space(XR_REFERENCE_SPACE_TYPE_LOCAL);
config.emplace(xr_system_id);
try
{
xr_session.set_refresh_rate(config->preferred_refresh_rate);
}
catch (std::exception & e)
{
spdlog::warn("failed to set refresh rate to {}: {}", config->preferred_refresh_rate, e.what());
config->preferred_refresh_rate = 0;
}
if (hand_tracking_supported)
{
left_hand = xr_session.create_hand_tracker(XR_HAND_LEFT_EXT);