Compare commits
112
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cde153a8f2 | ||
|
|
370b7e87a8 | ||
|
|
6afa5fc67f | ||
|
|
bd264e23b6 | ||
|
|
2919f7d820 | ||
|
|
f6d151c040 | ||
|
|
0efa540ce0 | ||
|
|
0dbc6b31db | ||
|
|
f3cfa0d747 | ||
|
|
2d8c5002ec | ||
|
|
3d24faa47a | ||
|
|
2d400d9314 | ||
|
|
30f472bdb4 | ||
|
|
f5597a81fd | ||
|
|
47d7322070 | ||
|
|
3f58345cf0 | ||
|
|
fc01002317 | ||
|
|
0a71756024 | ||
|
|
4e3eff6505 | ||
|
|
25c2449a5e | ||
|
|
59a765c877 | ||
|
|
97d6a19199 | ||
|
|
254f32b262 | ||
|
|
c846cb1ed2 | ||
|
|
20a81ed004 | ||
|
|
a6b8301a73 | ||
|
|
6fcc19d198 | ||
|
|
cd614c2361 | ||
|
|
4831e8847d | ||
|
|
94af0f5f55 | ||
|
|
2ee3306d6a | ||
|
|
9cacea294c | ||
|
|
2893ab857d | ||
|
|
94457a566a | ||
|
|
740b255461 | ||
|
|
cc773294e3 | ||
|
|
514c44b0a1 | ||
|
|
75da37bf6c | ||
|
|
5e4108f1c1 | ||
|
|
62a626e35e | ||
|
|
e06d0d0943 | ||
|
|
b632502da5 | ||
|
|
25a532bc15 | ||
|
|
7f849180f5 | ||
|
|
70adbafdc9 | ||
|
|
731873e16c | ||
|
|
317cd6bb91 | ||
|
|
665dc3620c | ||
|
|
3702cc05b8 | ||
|
|
eeb624875e | ||
|
|
2fccafd423 | ||
|
|
a49cc3dea8 | ||
|
|
cd8abacd7b | ||
|
|
6a49861b50 | ||
|
|
061039b645 | ||
|
|
f963d336ab | ||
|
|
f5dcc4b70f | ||
|
|
bf0a1bc184 | ||
|
|
ce89cea248 | ||
|
|
cdc4a8f3d6 | ||
|
|
48417c5f22 | ||
|
|
5bb7310093 | ||
|
|
1de1b19201 | ||
|
|
ae740acbb5 | ||
|
|
55a6bb3c69 | ||
|
|
f58f9c7e0b | ||
|
|
0b134102d2 | ||
|
|
079d760740 | ||
|
|
7870cc6484 | ||
|
|
43bbb8b0f8 | ||
|
|
2c9928db63 | ||
|
|
81363b3602 | ||
|
|
a291226a46 | ||
|
|
2e1e5571d6 | ||
|
|
d6768d59a7 | ||
|
|
12cddd4d6f | ||
|
|
b284daca6a | ||
|
|
d4854d77b0 | ||
|
|
35eb409403 | ||
|
|
caba985ce1 | ||
|
|
26bdd6e85b | ||
|
|
b725f95a55 | ||
|
|
867c78d826 | ||
|
|
7e33152f43 | ||
|
|
1e488a8a9c | ||
|
|
6be85971ea | ||
|
|
fe8c320d67 | ||
|
|
eb99b474ae | ||
|
|
857e5fce2c | ||
|
|
c381a0a6d6 | ||
|
|
f383eb8e8d | ||
|
|
a3c7a604e0 | ||
|
|
416297f232 | ||
|
|
205c84b273 | ||
|
|
727d4fab4d | ||
|
|
633c696a80 | ||
|
|
21c04be1f8 | ||
|
|
08ebe00a4d | ||
|
|
1c3b6dd2e3 | ||
|
|
9df93b2cad | ||
|
|
1ec4340c74 | ||
|
|
ea56845aea | ||
|
|
6356f37f4d | ||
|
|
c217577b81 | ||
|
|
ea7ab55198 | ||
|
|
01bc6e8804 | ||
|
|
0393f7cb07 | ||
|
|
e41410bcc9 | ||
|
|
dce89d655f | ||
|
|
331b2e875c | ||
|
|
832df65d17 | ||
|
|
d1d6c343a3 |
@@ -54,6 +54,7 @@ jobs:
|
||||
${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.zip
|
||||
${{github.workspace}}/cmake-fetch/*.tar.*
|
||||
${{github.workspace}}/cmake-fetch/*.tgz
|
||||
${{github.workspace}}/cmake-fetch/*-src/.git
|
||||
restore-keys: cmake-linux-
|
||||
|
||||
- name: Install dependencies
|
||||
@@ -120,7 +121,7 @@ jobs:
|
||||
- name: Prepare
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install --yes curl wget sudo jq cmake gcc g++ git pkgconf libboost-all-dev libkirigami-dev gettext libarchive-dev nlohmann-json3-dev qcoro-qt6-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev libvulkan-dev libssl-dev librsvg2-dev extra-cmake-modules
|
||||
apt-get install --yes curl wget sudo jq cmake gcc g++ git pkgconf libboost-all-dev libkirigami-dev gettext libarchive-dev nlohmann-json3-dev qcoro-qt6-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev libvulkan-dev libssl-dev librsvg2-dev extra-cmake-modules qml6-module-org-kde-kirigamiaddons-formcard
|
||||
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
@@ -278,7 +279,6 @@ jobs:
|
||||
VERSION_CODE=$(( $VERSION_CODE + 1 ))
|
||||
fi
|
||||
|
||||
CSS=images/wivrn-release.css
|
||||
APPNAME=WiVRn
|
||||
else
|
||||
VERSION_CODE=1
|
||||
@@ -286,15 +286,20 @@ jobs:
|
||||
if [ ${{ github.ref_type }} = 'tag' ]
|
||||
then
|
||||
SUFFIX=".github"
|
||||
CSS=images/wivrn-release.css
|
||||
APPNAME="WiVRn"
|
||||
else
|
||||
SUFFIX=".github.testing"
|
||||
CSS=images/wivrn-nightly.css
|
||||
APPNAME="WiVRn Testing"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ${{ github.ref_type }} = 'tag' ]
|
||||
then
|
||||
CSS=images/wivrn-release.css
|
||||
else
|
||||
CSS=images/wivrn-nightly.css
|
||||
fi
|
||||
|
||||
echo Setting version $VERSION and version code $VERSION_CODE in manifest
|
||||
echo Using stylesheet $CSS and name $APPNAME
|
||||
|
||||
@@ -513,13 +518,6 @@ jobs:
|
||||
|
||||
git show
|
||||
|
||||
- name: Update release branch
|
||||
run: |
|
||||
cd wivrn
|
||||
if git fetch origin release; then
|
||||
git push origin HEAD:release
|
||||
fi
|
||||
|
||||
sync_fork_downstream:
|
||||
name: Sync fork downstream
|
||||
runs-on: ubuntu-24.04
|
||||
|
||||
+2
-3
@@ -228,8 +228,6 @@ if (WIVRN_BUILD_WIVRNCTL)
|
||||
endif()
|
||||
|
||||
# Common dependencies
|
||||
FetchContent_Declare(boostpfr EXCLUDE_FROM_ALL SYSTEM URL https://github.com/boostorg/pfr/archive/refs/tags/2.2.0.tar.gz
|
||||
URL_HASH SHA256=6f490ec1383de5855dcf801c23f0a967f888eb6e1440b6ca0bf36c12d4ae7ac7)
|
||||
FetchContent_Declare(boost EXCLUDE_FROM_ALL SYSTEM URL https://github.com/boostorg/boost/releases/download/boost-1.89.0/boost-1.89.0-cmake.tar.xz
|
||||
URL_HASH SHA256=67acec02d0d118b5de9eb441f5fb707b3a1cdd884be00ca24b9a73c995511f74)
|
||||
|
||||
@@ -239,7 +237,7 @@ FetchContent_Declare(simdjson EXCLUDE_FROM_ALL SYSTEM URL https://github.co
|
||||
FetchContent_Declare(fastgltf EXCLUDE_FROM_ALL SYSTEM URL https://github.com/spnda/fastgltf/archive/refs/tags/v0.9.0.tar.gz
|
||||
URL_HASH SHA256=0bb564e127b14c22f062db50f89381dd2e0a20dbaf4987ca138a4ae8728712f9)
|
||||
FetchContent_Declare(glm EXCLUDE_FROM_ALL SYSTEM URL https://github.com/g-truc/glm/releases/download/1.0.2/glm-1.0.2.zip
|
||||
URL_HASH SHA256=a41adf423315e35489c1e67689c7bb74c7edd4d207a477b7b19c45cd440c2f67)
|
||||
URL_HASH SHA256=77fff075c5ab0caf076fade41558c5458d9a242aba2b2076bb72008bdb51a35e)
|
||||
FetchContent_Declare(openxr_loader EXCLUDE_FROM_ALL SYSTEM URL https://github.com/KhronosGroup/OpenXR-SDK/archive/refs/tags/release-1.1.54.tar.gz
|
||||
URL_HASH SHA256=2055688081066e37238be996534f349420ac52ed34f8514836704232121ee7f3)
|
||||
FetchContent_Declare(spdlog EXCLUDE_FROM_ALL SYSTEM URL https://github.com/gabime/spdlog/archive/refs/tags/v1.16.0.tar.gz
|
||||
@@ -318,6 +316,7 @@ foreach(TARGET_NAME wivrn wivrn-server wivrn-dashboard wivrn-common wivrn-dissec
|
||||
if(TARGET ${TARGET_NAME})
|
||||
target_compile_options(${TARGET_NAME} PRIVATE
|
||||
-fdiagnostics-color -Wall -Wextra -pedantic
|
||||
-ffast-math
|
||||
-Wundef
|
||||
-Wno-missing-field-initializers
|
||||
-Wno-unused-parameter
|
||||
|
||||
@@ -223,22 +223,13 @@ configuration::configuration(xr::system & system)
|
||||
|
||||
if (auto val = root["high_power_mode"]; val.is_bool())
|
||||
high_power_mode = val.get_bool();
|
||||
|
||||
if (auto val = root["extended_config"]; val.is_bool())
|
||||
extended_config = val.get_bool();
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
spdlog::warn("Cannot read configuration: {}", e.what());
|
||||
|
||||
// Restore default configuration
|
||||
servers.clear();
|
||||
preferred_refresh_rate.reset();
|
||||
minimum_refresh_rate.reset();
|
||||
resolution_scale = 1.0;
|
||||
codec.reset();
|
||||
bit_depth = 10;
|
||||
bitrate_bps = 50'000'000;
|
||||
openxr_post_processing = {};
|
||||
passthrough_enabled = system.passthrough_supported() == xr::passthrough_type::color;
|
||||
stream_scale.reset();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -322,6 +313,7 @@ void configuration::save()
|
||||
json << ",\"locale\":" << json_string(locale);
|
||||
json << ",\"environment_model\":" << json_string(environment_model);
|
||||
json << ",\"high_power_mode\":" << std::boolalpha << high_power_mode;
|
||||
json << ",\"extended_config\":" << std::boolalpha << extended_config;
|
||||
json << "}";
|
||||
}
|
||||
|
||||
|
||||
@@ -81,6 +81,9 @@ public:
|
||||
|
||||
bool high_power_mode;
|
||||
|
||||
// Allow unsafe config values
|
||||
bool extended_config = false;
|
||||
|
||||
bool first_run = true;
|
||||
|
||||
std::string locale;
|
||||
@@ -103,4 +106,9 @@ public:
|
||||
|
||||
void set_stream_scale(float);
|
||||
float get_stream_scale() const;
|
||||
|
||||
uint32_t max_bitrate() const
|
||||
{
|
||||
return extended_config ? 800'000'000u : 200'000'000u;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -420,6 +420,18 @@ std::pair<glm::vec3, glm::quat> controller_offset(std::string_view profile, xr::
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
else if (profile == "pico-neo3")
|
||||
switch (space)
|
||||
{
|
||||
case xr::spaces::grip_left:
|
||||
case xr::spaces::grip_right:
|
||||
return {{0, 0.005, -0.051}, glm::angleAxis(glm::radians(-29.400f), glm::vec3{1, 0, 0})};
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
else if (profile == "samsung-galaxyxr")
|
||||
switch (space)
|
||||
{
|
||||
|
||||
@@ -157,7 +157,7 @@ static bool window_intersects_viewport(ImGuiWindow * window, const imgui_context
|
||||
static float distance_to_window(ImGuiWindow * window, ImVec2 position)
|
||||
{
|
||||
if (window->Hidden or not window->Active)
|
||||
return std::numeric_limits<float>::infinity();
|
||||
return std::numeric_limits<float>::max();
|
||||
|
||||
float dx;
|
||||
if (position.x < window->Pos.x)
|
||||
@@ -564,9 +564,9 @@ std::vector<imgui_context::controller_state> imgui_context::read_controllers_sta
|
||||
for (const auto & [controller, state, current_aim_interaction]: std::ranges::zip_view(controllers, new_states, aim_interaction))
|
||||
{
|
||||
const auto & ctrl = controller.first;
|
||||
std::pair<std::optional<ImVec2>, float> index_tip_position{{}, std::numeric_limits<float>::infinity()};
|
||||
std::pair<std::optional<ImVec2>, float> palm_position{{}, std::numeric_limits<float>::infinity()};
|
||||
std::pair<std::optional<ImVec2>, float> controller_position{{}, std::numeric_limits<float>::infinity()};
|
||||
std::pair<std::optional<ImVec2>, float> index_tip_position{{}, std::numeric_limits<float>::max()};
|
||||
std::pair<std::optional<ImVec2>, float> palm_position{{}, std::numeric_limits<float>::max()};
|
||||
std::pair<std::optional<ImVec2>, float> controller_position{{}, std::numeric_limits<float>::max()};
|
||||
|
||||
// First hands, so we can set aim_interaction
|
||||
current_aim_interaction = 1;
|
||||
@@ -676,7 +676,7 @@ std::pair<std::optional<ImVec2>, float> imgui_context::compute_pointer_position(
|
||||
auto intersections = ray_plane_intersection(state);
|
||||
|
||||
if (intersections.empty())
|
||||
return {std::nullopt, std::numeric_limits<float>::infinity()};
|
||||
return {std::nullopt, std::numeric_limits<float>::max()};
|
||||
|
||||
if (ImGuiWindow * modal_popup = ImGui::GetTopMostAndVisiblePopupModal())
|
||||
{
|
||||
@@ -696,7 +696,7 @@ std::pair<std::optional<ImVec2>, float> imgui_context::compute_pointer_position(
|
||||
}
|
||||
}
|
||||
|
||||
return {std::nullopt, std::numeric_limits<float>::infinity()};
|
||||
return {std::nullopt, std::numeric_limits<float>::max()};
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -907,7 +907,7 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> imgui_context::end_frame()
|
||||
}
|
||||
|
||||
// Compute the distance to the closest window
|
||||
float distance = std::numeric_limits<float>::infinity();
|
||||
float distance = std::numeric_limits<float>::max();
|
||||
for (ImGuiWindow * window: context->Windows)
|
||||
{
|
||||
distance = std::min(distance, distance_to_window(window, *position));
|
||||
|
||||
+2
-1
@@ -228,9 +228,10 @@ void scene::render_world(
|
||||
},
|
||||
.minDepth = 0,
|
||||
.maxDepth = 1,
|
||||
.nearZ = std::numeric_limits<float>::infinity(),
|
||||
.nearZ = std::bit_cast<float>(0x7f800000), // infinity
|
||||
.farZ = constants::lobby::near_plane,
|
||||
});
|
||||
static_assert(std::numeric_limits<float>::is_iec559);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+52
-38
@@ -655,7 +655,7 @@ void scenes::lobby::gui_settings()
|
||||
_("Render resolution").append("##resolution_scale").c_str(),
|
||||
&intScale,
|
||||
5,
|
||||
35,
|
||||
config.extended_config ? 35 : 15,
|
||||
fmt::format(_F("{}%% - {}x{} per eye"), intScale * 10, int(width * current), int(height * current)).c_str());
|
||||
if (slider)
|
||||
{
|
||||
@@ -671,13 +671,13 @@ void scenes::lobby::gui_settings()
|
||||
}
|
||||
}
|
||||
|
||||
// Stream resolution
|
||||
// foveation
|
||||
{
|
||||
const int step = 10;
|
||||
const auto current = config.get_stream_scale();
|
||||
auto intval = int(current * 100 / step);
|
||||
int intval = round((1 - current) * 100 / step);
|
||||
const auto slider = ImGui::SliderInt(
|
||||
_("Stream resolution").append("##stream_scale").c_str(),
|
||||
_("Foveated encoding").append("##stream_scale").c_str(),
|
||||
&intval,
|
||||
0,
|
||||
100 / step,
|
||||
@@ -685,10 +685,21 @@ void scenes::lobby::gui_settings()
|
||||
if (slider)
|
||||
{
|
||||
// clamp out of the slider to have the 50% value centered
|
||||
intval = std::clamp(intval, 20 / step, 100 / step);
|
||||
config.set_stream_scale(intval * step * 0.01);
|
||||
intval = std::clamp(intval,
|
||||
config.extended_config ? 0 : 30 / step,
|
||||
80 / step);
|
||||
config.set_stream_scale(1 - intval * step * 0.01);
|
||||
config.save();
|
||||
}
|
||||
if (ImGui::IsItemHovered())
|
||||
{
|
||||
if (config.check_feature(feature::eye_gaze))
|
||||
imgui_ctx->tooltip(_("Higher values focus image quality where you look at,\n"
|
||||
"improving latency, power efficiency and quality."));
|
||||
else
|
||||
imgui_ctx->tooltip(_("Higher values focus image quality at the center,\n"
|
||||
"improving latency, power efficiency and quality."));
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
}
|
||||
|
||||
@@ -757,7 +768,7 @@ void scenes::lobby::gui_settings()
|
||||
_("Bitrate").append("##bitrate").c_str(),
|
||||
&val,
|
||||
1,
|
||||
200,
|
||||
config.max_bitrate() / mb,
|
||||
fmt::format(_F("{}Mbit/s"), val).c_str());
|
||||
if (slider)
|
||||
{
|
||||
@@ -797,8 +808,8 @@ void scenes::lobby::gui_settings()
|
||||
ImGui::Unindent();
|
||||
ImGui::EndDisabled();
|
||||
}
|
||||
if (system.hand_tracking_supported())
|
||||
{
|
||||
ImGui::BeginDisabled(not system.hand_tracking_supported());
|
||||
bool enabled = config.check_feature(feature::hand_tracking);
|
||||
if (ImGui::Checkbox(_S("Enable hand tracking"), &enabled))
|
||||
{
|
||||
@@ -807,10 +818,9 @@ void scenes::lobby::gui_settings()
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) and (ImGui::GetItemFlags() & ImGuiItemFlags_Disabled))
|
||||
imgui_ctx->tooltip(_("This feature is not supported by your headset"));
|
||||
ImGui::EndDisabled();
|
||||
}
|
||||
if (application::get_eye_gaze_supported())
|
||||
{
|
||||
ImGui::BeginDisabled(not application::get_eye_gaze_supported());
|
||||
bool enabled = config.check_feature(feature::eye_gaze);
|
||||
if (ImGui::Checkbox(_S("Enable eye tracking"), &enabled))
|
||||
{
|
||||
@@ -819,30 +829,26 @@ void scenes::lobby::gui_settings()
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) and (ImGui::GetItemFlags() & ImGuiItemFlags_Disabled))
|
||||
imgui_ctx->tooltip(_("This feature is not supported by your headset"));
|
||||
ImGui::EndDisabled();
|
||||
}
|
||||
if (system.face_tracker_supported() != xr::face_tracker_type::none)
|
||||
{
|
||||
ImGui::BeginDisabled(system.face_tracker_supported() == xr::face_tracker_type::none);
|
||||
bool enabled = config.check_feature(feature::face_tracking);
|
||||
if (ImGui::Checkbox(_S("Enable face tracking"), &enabled))
|
||||
{
|
||||
config.set_feature(feature::face_tracking, enabled);
|
||||
}
|
||||
ImGui::EndDisabled();
|
||||
if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled) and (ImGui::GetItemFlags() & ImGuiItemFlags_Disabled))
|
||||
imgui_ctx->tooltip(_("This feature is not supported by your headset"));
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
}
|
||||
|
||||
auto body_tracker = system.body_tracker_supported();
|
||||
if (auto body_tracker = system.body_tracker_supported(); body_tracker != xr::body_tracker_type::none)
|
||||
{
|
||||
ImGui::BeginDisabled(body_tracker == xr::body_tracker_type::none);
|
||||
bool enabled = config.check_feature(feature::body_tracking);
|
||||
if (ImGui::Checkbox(_S("Enable body tracking"), &enabled))
|
||||
{
|
||||
config.set_feature(feature::body_tracking, enabled);
|
||||
}
|
||||
ImGui::EndDisabled();
|
||||
if (ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled))
|
||||
{
|
||||
if (ImGui::GetItemFlags() & ImGuiItemFlags_Disabled)
|
||||
@@ -857,31 +863,32 @@ void scenes::lobby::gui_settings()
|
||||
}
|
||||
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
}
|
||||
if (body_tracker == xr::body_tracker_type::fb)
|
||||
{
|
||||
ImGui::BeginDisabled(not config.check_feature(feature::body_tracking));
|
||||
ImGui::Indent();
|
||||
if (ImGui::Checkbox(_S("Enable lower body tracking"), &config.fb_lower_body))
|
||||
{
|
||||
config.save();
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx->tooltip(_("Estimate lower body joint positions using Generative Legs\nRequires 'Hand and body tracking' to be enabled in the Quest movement tracking settings"));
|
||||
|
||||
ImGui::BeginDisabled(not config.fb_lower_body);
|
||||
if (ImGui::Checkbox(_S("Enable hip tracking"), &config.fb_hip))
|
||||
if (body_tracker == xr::body_tracker_type::fb)
|
||||
{
|
||||
config.save();
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx->tooltip(_("Only takes affect with lower body tracking enabled\nMay be desired when using another source of hip tracking"));
|
||||
ImGui::EndDisabled();
|
||||
ImGui::BeginDisabled(not config.check_feature(feature::body_tracking));
|
||||
ImGui::Indent();
|
||||
if (ImGui::Checkbox(_S("Enable lower body tracking"), &config.fb_lower_body))
|
||||
{
|
||||
config.save();
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx->tooltip(_("Estimate lower body joint positions using Generative Legs\nRequires 'Hand and body tracking' to be enabled in the Quest movement tracking settings"));
|
||||
|
||||
ImGui::Unindent();
|
||||
ImGui::EndDisabled();
|
||||
ImGui::BeginDisabled(not config.fb_lower_body);
|
||||
if (ImGui::Checkbox(_S("Enable hip tracking"), &config.fb_hip))
|
||||
{
|
||||
config.save();
|
||||
}
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx->tooltip(_("Only takes affect with lower body tracking enabled\nMay be desired when using another source of hip tracking"));
|
||||
ImGui::EndDisabled();
|
||||
|
||||
ImGui::Unindent();
|
||||
ImGui::EndDisabled();
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
@@ -891,6 +898,13 @@ void scenes::lobby::gui_settings()
|
||||
imgui_ctx->tooltip(_("Enables the configuration window to be shown while the game is streaming.\nIf enabled, the window is activated by pressing both thumbsticks."));
|
||||
}
|
||||
|
||||
{
|
||||
ImGui::Checkbox(_S("Extended configuration values"), &config.extended_config);
|
||||
imgui_ctx->vibrate_on_hover();
|
||||
if (ImGui::IsItemHovered())
|
||||
imgui_ctx->tooltip(_("Allows unsafe configuration values, use at your own risk."));
|
||||
}
|
||||
|
||||
ImGui::PopStyleVar(); // ImGuiStyleVar_ItemSpacing
|
||||
}
|
||||
|
||||
|
||||
@@ -916,7 +916,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
|
||||
int32_t max_height = 0;
|
||||
for (size_t i = 0; i < view_count; ++i)
|
||||
{
|
||||
extents[i] = defoveator->defoveated_size(foveation[i]);
|
||||
extents[i] = stream_defoveator::defoveated_size(foveation[i]);
|
||||
max_width = std::max(max_width, extents[i].width);
|
||||
max_height = std::max(max_height, extents[i].height);
|
||||
}
|
||||
|
||||
@@ -200,6 +200,7 @@ public:
|
||||
void operator()(to_headset::haptics &&);
|
||||
void operator()(to_headset::timesync_query &&);
|
||||
void operator()(to_headset::tracking_control &&);
|
||||
void operator()(to_headset::feature_control &&);
|
||||
void operator()(to_headset::audio_stream_description &&);
|
||||
void operator()(to_headset::video_stream_description &&);
|
||||
void operator()(to_headset::refresh_rate_change &&);
|
||||
|
||||
@@ -443,7 +443,7 @@ static uint16_t count_pixels(const std::vector<uint16_t> & param)
|
||||
return res;
|
||||
}
|
||||
|
||||
XrExtent2Di stream_defoveator::defoveated_size(const wivrn::to_headset::foveation_parameter & view) const
|
||||
XrExtent2Di stream_defoveator::defoveated_size(const wivrn::to_headset::foveation_parameter & view)
|
||||
{
|
||||
return {
|
||||
count_pixels(view.x),
|
||||
|
||||
@@ -87,5 +87,5 @@ public:
|
||||
const std::array<input, 2> & inputs,
|
||||
int destination);
|
||||
|
||||
XrExtent2Di defoveated_size(const wivrn::to_headset::foveation_parameter &) const;
|
||||
static XrExtent2Di defoveated_size(const wivrn::to_headset::foveation_parameter &);
|
||||
};
|
||||
|
||||
@@ -338,13 +338,10 @@ void scenes::stream::gui_performance_metrics()
|
||||
|
||||
ImPlot::PopStyleColor(5);
|
||||
{
|
||||
ImGui::Text(
|
||||
"%s",
|
||||
ImGui::TextUnformatted(
|
||||
fmt::format(
|
||||
_F("Estimated motion to photons latency: {}ms"),
|
||||
std::chrono::duration_cast<std::chrono::milliseconds>(
|
||||
tracking_control.lock()->max_offset)
|
||||
.count())
|
||||
tracking_control.lock()->motions_to_photons / 1'000'000)
|
||||
.c_str());
|
||||
|
||||
if (is_gui_interactable())
|
||||
@@ -373,10 +370,7 @@ void scenes::stream::gui_compact_view()
|
||||
f(_S("CPU time"), compact_cpu_time * 1000, "ms");
|
||||
f(_S("GPU time"), compact_gpu_time * 1000, "ms");
|
||||
f(_S("Motion to photon latency"),
|
||||
std::chrono::duration_cast<std::chrono::microseconds>(
|
||||
tracking_control.lock()->max_offset)
|
||||
.count() *
|
||||
1e-3f,
|
||||
tracking_control.lock()->motions_to_photons / 1'000'000.f,
|
||||
"ms");
|
||||
ImGui::EndTable();
|
||||
}
|
||||
@@ -599,7 +593,7 @@ void scenes::stream::gui_bitrate_settings(float predicted_display_period)
|
||||
// Maximum speed of 20Mbit/s
|
||||
float delta = application::read_action_float(settings_adjust).value_or(std::pair{0, 0}).second * 20'000'000.f * predicted_display_period;
|
||||
|
||||
config.bitrate_bps = std::clamp(config.bitrate_bps + static_cast<int32_t>(delta), 1'000'000u, 200'000'000u);
|
||||
config.bitrate_bps = std::clamp(config.bitrate_bps + static_cast<int32_t>(delta), 1'000'000u, config.max_bitrate());
|
||||
|
||||
bool ok = application::read_action_bool(foveation_ok).value_or(std::pair{0, false}).second;
|
||||
|
||||
|
||||
@@ -59,6 +59,19 @@ void scenes::stream::operator()(to_headset::video_stream_data_shard && shard)
|
||||
decoders[idx].decoder->push_shard(std::move(shard));
|
||||
}
|
||||
|
||||
void scenes::stream::operator()(to_headset::feature_control && control)
|
||||
{
|
||||
switch (control.f)
|
||||
{
|
||||
case wivrn::to_headset::feature_control::hid_input:
|
||||
hid_forwarding = control.state;
|
||||
return;
|
||||
case wivrn::to_headset::feature_control::microphone:
|
||||
if (audio_handle)
|
||||
audio_handle->set_mic_state(control.state);
|
||||
return;
|
||||
}
|
||||
}
|
||||
void scenes::stream::operator()(to_headset::audio_stream_description && desc)
|
||||
{
|
||||
audio_handle.emplace(desc, *network_session, instance);
|
||||
|
||||
+225
-268
@@ -26,6 +26,7 @@
|
||||
#include "xr/fb_body_tracker.h"
|
||||
#include "xr/to_string.h"
|
||||
#include <magic_enum.hpp>
|
||||
#include <magic_enum_containers.hpp>
|
||||
#include <ranges>
|
||||
#include <spdlog/spdlog.h>
|
||||
#include <thread>
|
||||
@@ -34,11 +35,6 @@
|
||||
#include "android/battery.h"
|
||||
#endif
|
||||
|
||||
using tid = to_headset::tracking_control::id;
|
||||
|
||||
static const XrDuration min_tracking_period = 2'000'000;
|
||||
static const XrDuration max_tracking_period = 5'000'000;
|
||||
|
||||
static uint8_t cast_flags(XrSpaceLocationFlags location, XrSpaceVelocityFlags velocity)
|
||||
{
|
||||
uint8_t flags = 0;
|
||||
@@ -65,19 +61,6 @@ static uint8_t cast_flags(XrSpaceLocationFlags location, XrSpaceVelocityFlags ve
|
||||
|
||||
namespace
|
||||
{
|
||||
class timer
|
||||
{
|
||||
xr::instance & instance;
|
||||
XrTime start = instance.now();
|
||||
|
||||
public:
|
||||
timer(xr::instance & instance) :
|
||||
instance(instance) {}
|
||||
XrDuration count()
|
||||
{
|
||||
return instance.now() - start;
|
||||
}
|
||||
};
|
||||
|
||||
from_headset::tracking::pose locate_space(device_id device, XrSpace space, XrSpace reference, XrTime time)
|
||||
{
|
||||
@@ -148,6 +131,8 @@ public:
|
||||
std::vector<from_headset::tracking::pose> & out)
|
||||
{
|
||||
assert(devices.size() == spaces.size());
|
||||
if (devices.empty())
|
||||
return;
|
||||
if (locate_spaces)
|
||||
{
|
||||
locations.resize(spaces.size());
|
||||
@@ -207,7 +192,8 @@ static std::optional<std::array<from_headset::hand_tracking::pose, XR_HAND_JOINT
|
||||
for (int i = 0; i < XR_HAND_JOINT_COUNT_EXT; i++)
|
||||
{
|
||||
poses[i] = {
|
||||
.pose = (*joints)[i].first.pose,
|
||||
.position = (*joints)[i].first.pose.position,
|
||||
.orientation = pack((*joints)[i].first.pose.orientation),
|
||||
.linear_velocity = (*joints)[i].second.linearVelocity,
|
||||
.angular_velocity = (*joints)[i].second.angularVelocity,
|
||||
.radius = uint16_t((*joints)[i].first.radius * 10'000),
|
||||
@@ -292,7 +278,9 @@ void scenes::stream::tracking()
|
||||
const XrDuration battery_check_interval = 30'000'000'000; // 30s
|
||||
#endif
|
||||
|
||||
std::vector<std::pair<device_id, XrSpace>> spaces;
|
||||
magic_enum::containers::array<device_id, XrSpace> spaces{};
|
||||
|
||||
const auto & config = application::get_config();
|
||||
|
||||
{
|
||||
std::vector ids{
|
||||
@@ -310,80 +298,27 @@ void scenes::stream::tracking()
|
||||
ids.insert(ids.end(), {device_id::LEFT_PINCH_POSE, device_id::LEFT_POKE, device_id::RIGHT_PINCH_POSE, device_id::RIGHT_POKE});
|
||||
}
|
||||
|
||||
if (config.check_feature(feature::eye_gaze))
|
||||
ids.emplace_back(device_id::EYE_GAZE);
|
||||
|
||||
for (auto id: ids)
|
||||
{
|
||||
if (XrSpace space = application::space(device_to_space(id)))
|
||||
spaces.emplace_back(id, space);
|
||||
spaces[id] = space;
|
||||
else
|
||||
spdlog::warn("Missing space for device {}", magic_enum::enum_name(id));
|
||||
}
|
||||
}
|
||||
|
||||
auto enabled = [&](const to_headset::tracking_control & control, device_id id) -> bool {
|
||||
if (is_gui_interactable())
|
||||
{
|
||||
switch (id)
|
||||
{
|
||||
case device_id::HEAD:
|
||||
case device_id::EYE_GAZE:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
switch (id)
|
||||
{
|
||||
case device_id::HEAD:
|
||||
case device_id::EYE_GAZE:
|
||||
return true;
|
||||
case device_id::LEFT_AIM:
|
||||
return control.enabled[size_t(tid::left_aim)];
|
||||
case device_id::LEFT_GRIP:
|
||||
return control.enabled[size_t(tid::left_grip)];
|
||||
case device_id::LEFT_PALM:
|
||||
return control.enabled[size_t(tid::left_palm)];
|
||||
case device_id::LEFT_PINCH_POSE:
|
||||
return control.enabled[size_t(tid::left_pinch)];
|
||||
case device_id::LEFT_POKE:
|
||||
return control.enabled[size_t(tid::left_poke)];
|
||||
case device_id::RIGHT_AIM:
|
||||
return control.enabled[size_t(tid::right_aim)];
|
||||
case device_id::RIGHT_GRIP:
|
||||
return control.enabled[size_t(tid::right_grip)];
|
||||
case device_id::RIGHT_PALM:
|
||||
return control.enabled[size_t(tid::right_palm)];
|
||||
case device_id::RIGHT_PINCH_POSE:
|
||||
return control.enabled[size_t(tid::right_pinch)];
|
||||
case device_id::RIGHT_POKE:
|
||||
return control.enabled[size_t(tid::right_poke)];
|
||||
default:
|
||||
break;
|
||||
}
|
||||
throw std::runtime_error("enabled called on unhandled device " + std::string(magic_enum::enum_name(id)));
|
||||
};
|
||||
|
||||
const auto & config = application::get_config();
|
||||
|
||||
if (config.check_feature(feature::eye_gaze))
|
||||
spaces.push_back({device_id::EYE_GAZE, application::space(xr::spaces::eye_gaze)});
|
||||
|
||||
XrSpace view_space = application::space(xr::spaces::view);
|
||||
XrSpace world_space = application::space(xr::spaces::world);
|
||||
XrDuration tracking_period = min_tracking_period; // target period for 20% busy time
|
||||
XrDuration current_tracking_period = tracking_period; // divider of frame period
|
||||
int period_adjust = 0;
|
||||
|
||||
XrTime t0 = instance.now();
|
||||
XrTime last_hand_sample = t0;
|
||||
XrTime last_body_sample = t0;
|
||||
std::vector<from_headset::tracking> tracking;
|
||||
std::vector<from_headset::tracking> tracking_pool; // pre-allocated objects
|
||||
from_headset::tracking tracking;
|
||||
std::vector<from_headset::hand_tracking> hands;
|
||||
std::vector<from_headset::body_tracking> body;
|
||||
std::vector<XrView> views;
|
||||
|
||||
std::vector<from_headset::trackings> merged_tracking;
|
||||
std::vector<serialization_packet> packets;
|
||||
|
||||
const bool hand_tracking = config.check_feature(feature::hand_tracking);
|
||||
@@ -400,173 +335,238 @@ void scenes::stream::tracking()
|
||||
|
||||
on_interaction_profile_changed({});
|
||||
|
||||
decltype(to_headset::tracking_control::pattern) pattern;
|
||||
size_t pattern_position = 0;
|
||||
|
||||
XrDuration frame_duration;
|
||||
XrTime pattern_begin = instance.now();
|
||||
|
||||
while (not exiting)
|
||||
{
|
||||
try
|
||||
{
|
||||
tracking.clear();
|
||||
if (pattern_position == pattern.size())
|
||||
{
|
||||
// Upper limit to 200FPS
|
||||
frame_duration = std::max<XrDuration>(5'000'000, display_time_period);
|
||||
// Wait for next frame
|
||||
XrTime now = instance.now();
|
||||
pattern_begin = display_time_phase + (std::max(pattern_begin + frame_duration, now) / frame_duration) * frame_duration;
|
||||
std::this_thread::sleep_for(std::chrono::nanoseconds(pattern_begin - now));
|
||||
|
||||
pattern_position = 0;
|
||||
// Check if a new pattern has been received
|
||||
if (auto locked = tracking_control.lock(); pattern.empty() or not locked->pattern.empty())
|
||||
{
|
||||
pattern.clear();
|
||||
std::swap(pattern, locked->pattern);
|
||||
pattern_position = 0;
|
||||
|
||||
// Ensure head tracking is always done
|
||||
if (not std::ranges::contains(pattern, device_id::HEAD, &to_headset::tracking_control::sample::device))
|
||||
pattern.push_back({.device = device_id::HEAD});
|
||||
|
||||
// FIXME: eye tracking shouldn't had a special case
|
||||
// eye-tracked foveation needs eye and head pose in the same tracking packet
|
||||
if (spaces[device_id::EYE_GAZE])
|
||||
{
|
||||
size_t sz = pattern.size();
|
||||
for (size_t i = 0; i < sz; ++i)
|
||||
{
|
||||
if (pattern[i].device == device_id::HEAD)
|
||||
pattern.push_back({
|
||||
.device = device_id::EYE_GAZE,
|
||||
.prediction_ns = pattern[i].prediction_ns,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (hand_tracking)
|
||||
{
|
||||
if (std::ranges::contains(pattern, device_id::LEFT_HAND, &to_headset::tracking_control::sample::device))
|
||||
{
|
||||
if (not left_hand)
|
||||
left_hand = session.create_hand_tracker(XR_HAND_LEFT_EXT);
|
||||
}
|
||||
else
|
||||
left_hand.reset();
|
||||
|
||||
if (std::ranges::contains(pattern, device_id::RIGHT_HAND, &to_headset::tracking_control::sample::device))
|
||||
{
|
||||
if (not right_hand)
|
||||
right_hand = session.create_hand_tracker(XR_HAND_RIGHT_EXT);
|
||||
}
|
||||
else
|
||||
right_hand.reset();
|
||||
}
|
||||
|
||||
if (face_tracking)
|
||||
{
|
||||
if (std::ranges::contains(pattern, device_id::FACE, &to_headset::tracking_control::sample::device))
|
||||
{
|
||||
if (std::holds_alternative<std::monostate>(face_tracker))
|
||||
face_tracker = xr::make_face_tracker(instance, system, session);
|
||||
}
|
||||
else
|
||||
face_tracker.emplace<std::monostate>();
|
||||
}
|
||||
|
||||
if (body_tracking)
|
||||
{
|
||||
if (std::ranges::contains(pattern, device_id::BODY, &to_headset::tracking_control::sample::device))
|
||||
{
|
||||
if (std::holds_alternative<std::monostate>(body_tracker))
|
||||
body_tracker = xr::make_body_tracker(
|
||||
instance,
|
||||
system,
|
||||
session,
|
||||
application::get_generic_trackers(),
|
||||
config.fb_lower_body,
|
||||
config.fb_hip);
|
||||
}
|
||||
else
|
||||
body_tracker.emplace<std::monostate>();
|
||||
}
|
||||
|
||||
std::ranges::sort(pattern, std::less{}, [frame_duration](const auto & i) { return -i.prediction_ns % frame_duration; });
|
||||
|
||||
spdlog::info("Tracking pattern ({}µs):", frame_duration / 1'000);
|
||||
for (const auto & [device, pred]: pattern)
|
||||
{
|
||||
spdlog::info("\tt+{}µs {} ({}µs)",
|
||||
(frame_duration - (pred % frame_duration)) / 1'000,
|
||||
magic_enum::enum_name(device),
|
||||
pred / 1'000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
hands.clear();
|
||||
body.clear();
|
||||
|
||||
XrTime now = instance.now();
|
||||
if (now < t0)
|
||||
XrTime t0 = pattern_begin + frame_duration - (pattern[pattern_position].prediction_ns % frame_duration);
|
||||
if (t0 > now + 500)
|
||||
std::this_thread::sleep_for(std::chrono::nanoseconds(t0 - now));
|
||||
|
||||
// If thread can't keep up, skip timestamps
|
||||
t0 = std::max(t0, now);
|
||||
|
||||
timer t(instance);
|
||||
int samples = 0;
|
||||
|
||||
auto control = *tracking_control.lock();
|
||||
bool interaction_profile_changed = this->interaction_profile_changed.exchange(false);
|
||||
|
||||
if (control.enabled[size_t(tid::left_hand)])
|
||||
{
|
||||
if (not left_hand and system.hand_tracking_supported())
|
||||
left_hand = session.create_hand_tracker(XR_HAND_LEFT_EXT);
|
||||
}
|
||||
else
|
||||
left_hand.reset();
|
||||
|
||||
if (control.enabled[size_t(tid::right_hand)])
|
||||
{
|
||||
if (not right_hand and system.hand_tracking_supported())
|
||||
right_hand = session.create_hand_tracker(XR_HAND_RIGHT_EXT);
|
||||
}
|
||||
else
|
||||
right_hand.reset();
|
||||
|
||||
if (face_tracking and control.enabled[size_t(tid::face)])
|
||||
{
|
||||
if (std::holds_alternative<std::monostate>(face_tracker))
|
||||
face_tracker = xr::make_face_tracker(instance, system, session);
|
||||
}
|
||||
else
|
||||
face_tracker.emplace<std::monostate>();
|
||||
|
||||
if (body_tracking and control.enabled[size_t(tid::generic_tracker)])
|
||||
{
|
||||
if (std::holds_alternative<std::monostate>(body_tracker))
|
||||
body_tracker = xr::make_body_tracker(
|
||||
instance,
|
||||
system,
|
||||
session,
|
||||
application::get_generic_trackers(),
|
||||
config.fb_lower_body,
|
||||
config.fb_hip);
|
||||
}
|
||||
else
|
||||
body_tracker.emplace<std::monostate>();
|
||||
|
||||
if (interaction_profile_changed)
|
||||
if (auto htc = std::get_if<xr::htc_body_tracker>(&body_tracker))
|
||||
htc->update_active();
|
||||
|
||||
XrDuration prediction = std::clamp<XrDuration>(control.max_offset.count(), 0, 80'000'000);
|
||||
auto period = std::max<XrDuration>(display_time_period.load(), 1'000'000);
|
||||
for (XrDuration Δt = display_time_phase - t0 % period + (control.min_offset.count() / period) * period;
|
||||
Δt <= prediction + period / 2;
|
||||
Δt += period, ++samples)
|
||||
tracking.interaction_profiles = {
|
||||
interaction_profiles[0].load(),
|
||||
interaction_profiles[1].load(),
|
||||
};
|
||||
|
||||
tracking.production_timestamp = t0;
|
||||
tracking.timestamp = t0 + pattern[pattern_position].prediction_ns;
|
||||
tracking.view_flags = {};
|
||||
tracking.views = {};
|
||||
tracking.state_flags = {};
|
||||
tracking.device_poses.clear();
|
||||
|
||||
if (recenter_requested.exchange(false))
|
||||
tracking.state_flags = wivrn::from_headset::tracking::recentered;
|
||||
|
||||
try
|
||||
{
|
||||
auto & packet = from_pool(tracking, tracking_pool);
|
||||
packet.production_timestamp = t0;
|
||||
packet.timestamp = t0 + Δt;
|
||||
|
||||
try
|
||||
for (; pattern_position < pattern.size(); ++pattern_position)
|
||||
{
|
||||
packet.view_flags = session.locate_views(XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO, t0 + Δt, view_space, views);
|
||||
assert(views.size() == packet.views.size());
|
||||
const auto & item = pattern[pattern_position];
|
||||
auto at_time = t0 + item.prediction_ns;
|
||||
|
||||
for (auto [i, j]: std::views::zip(views, packet.views))
|
||||
switch (item.device)
|
||||
{
|
||||
j.pose = i.pose;
|
||||
j.fov = i.fov;
|
||||
}
|
||||
|
||||
packet.state_flags = 0;
|
||||
if (recenter_requested.exchange(false))
|
||||
packet.state_flags = wivrn::from_headset::tracking::recentered;
|
||||
|
||||
// Hand tracking data are very large, send fewer samples than other items
|
||||
if (hand_tracking and t0 >= last_hand_sample + period and
|
||||
(Δt == 0 or Δt >= prediction - 2 * period))
|
||||
{
|
||||
last_hand_sample = t0;
|
||||
if (left_hand)
|
||||
{
|
||||
auto joints = locate_hands(*left_hand, world_space, t0 + Δt);
|
||||
hands.emplace_back(
|
||||
t0,
|
||||
t0 + Δt,
|
||||
from_headset::hand_tracking::left,
|
||||
joints);
|
||||
}
|
||||
|
||||
if (right_hand)
|
||||
{
|
||||
auto joints = locate_hands(*right_hand, world_space, t0 + Δt);
|
||||
hands.emplace_back(
|
||||
t0,
|
||||
t0 + Δt,
|
||||
from_headset::hand_tracking::right,
|
||||
joints);
|
||||
}
|
||||
}
|
||||
|
||||
packet.device_poses.clear();
|
||||
for (auto [device, space]: spaces)
|
||||
{
|
||||
if (enabled(control, device))
|
||||
locate_spaces.add_space(device, space, t0 + Δt, packet.device_poses);
|
||||
}
|
||||
locate_spaces.resolve(session, t0 + Δt, packet.device_poses);
|
||||
|
||||
std::visit(utils::overloaded{
|
||||
[](std::monostate &) {},
|
||||
[&](auto & b) {
|
||||
if (t0 >= last_body_sample + period and
|
||||
(Δt == 0 or Δt >= prediction - 2 * period))
|
||||
{
|
||||
last_body_sample = t0;
|
||||
if (control.enabled[size_t(tid::generic_tracker)])
|
||||
{
|
||||
case device_id::HEAD:
|
||||
// Don't merge items that are too far from the current one
|
||||
if (std::abs(tracking.timestamp - at_time) > 1'000'000)
|
||||
goto subpattern_end;
|
||||
tracking.view_flags = session.locate_views(XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO, tracking.timestamp, view_space, views);
|
||||
assert(views.size() == tracking.views.size());
|
||||
for (auto [i, j]: std::views::zip(views, tracking.views))
|
||||
{
|
||||
j.pose = i.pose;
|
||||
j.fov = i.fov;
|
||||
}
|
||||
locate_spaces.add_space(item.device, view_space, tracking.timestamp, tracking.device_poses);
|
||||
break;
|
||||
case wivrn::device_id::LEFT_GRIP:
|
||||
case wivrn::device_id::LEFT_AIM:
|
||||
case wivrn::device_id::LEFT_PALM:
|
||||
case wivrn::device_id::RIGHT_GRIP:
|
||||
case wivrn::device_id::RIGHT_AIM:
|
||||
case wivrn::device_id::RIGHT_PALM:
|
||||
case wivrn::device_id::LEFT_PINCH_POSE:
|
||||
case wivrn::device_id::LEFT_POKE:
|
||||
case wivrn::device_id::RIGHT_PINCH_POSE:
|
||||
case wivrn::device_id::RIGHT_POKE:
|
||||
case wivrn::device_id::EYE_GAZE:
|
||||
// Don't merge items that are too far from the current one
|
||||
if (std::abs(tracking.timestamp - at_time) > 1'000'000)
|
||||
goto subpattern_end;
|
||||
locate_spaces.add_space(item.device, spaces[item.device], tracking.timestamp, tracking.device_poses);
|
||||
break;
|
||||
case wivrn::device_id::LEFT_HAND:
|
||||
if (left_hand)
|
||||
{
|
||||
hands.emplace_back(
|
||||
t0,
|
||||
at_time,
|
||||
from_headset::hand_tracking::left,
|
||||
locate_hands(*left_hand, world_space, tracking.timestamp));
|
||||
}
|
||||
break;
|
||||
case wivrn::device_id::RIGHT_HAND:
|
||||
if (right_hand)
|
||||
{
|
||||
hands.emplace_back(
|
||||
t0,
|
||||
at_time,
|
||||
from_headset::hand_tracking::right,
|
||||
locate_hands(*right_hand, world_space, tracking.timestamp));
|
||||
}
|
||||
break;
|
||||
case wivrn::device_id::BODY:
|
||||
std::visit(utils::overloaded{
|
||||
[](std::monostate &) {},
|
||||
[&](auto & b) {
|
||||
body.push_back(from_headset::body_tracking{
|
||||
.production_timestamp = t0,
|
||||
.timestamp = t0 + Δt,
|
||||
.poses = b.locate_spaces(t0 + Δt, world_space),
|
||||
.production_timestamp = tracking.production_timestamp,
|
||||
.timestamp = at_time,
|
||||
.poses = b.locate_spaces(at_time, world_space),
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
body_tracker);
|
||||
|
||||
std::visit(utils::overloaded{
|
||||
[](std::monostate &) {},
|
||||
[&](auto & ft) {
|
||||
ft.get_weights(t0 + Δt, packet.face.emplace<typename std::remove_reference_t<decltype(ft)>::packet_type>());
|
||||
},
|
||||
},
|
||||
face_tracker);
|
||||
},
|
||||
},
|
||||
body_tracker);
|
||||
break;
|
||||
case wivrn::device_id::FACE:
|
||||
std::visit(utils::overloaded{
|
||||
[](std::monostate &) {},
|
||||
[&](auto & ft) {
|
||||
ft.get_weights(at_time, tracking.face.emplace<typename std::remove_reference_t<decltype(ft)>::packet_type>());
|
||||
},
|
||||
},
|
||||
face_tracker);
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (const std::system_error & e)
|
||||
{
|
||||
if (e.code().category() != xr::error_category() or
|
||||
e.code().value() != XR_ERROR_TIME_INVALID)
|
||||
throw;
|
||||
}
|
||||
} // end prediction loop
|
||||
|
||||
XrDuration busy_time = t.count();
|
||||
// Target: polling between 1 and 5ms, with 20% busy time
|
||||
tracking_period = std::clamp<XrDuration>(std::lerp(tracking_period, busy_time * 5, 0.1), min_tracking_period, max_tracking_period);
|
||||
subpattern_end:
|
||||
locate_spaces.resolve(session, tracking.timestamp, tracking.device_poses);
|
||||
}
|
||||
catch (const std::system_error & e)
|
||||
{
|
||||
if (e.code().category() != xr::error_category() or
|
||||
e.code().value() != XR_ERROR_TIME_INVALID)
|
||||
throw;
|
||||
}
|
||||
|
||||
#ifdef __ANDROID__
|
||||
if (next_battery_check < now and control.enabled[size_t(tid::battery)])
|
||||
// FIXME: switch to event based
|
||||
if (next_battery_check < now)
|
||||
{
|
||||
timer t2(instance);
|
||||
|
||||
auto status = get_battery_status();
|
||||
network_session->send_stream(from_headset::battery{
|
||||
.charge = status.charge.value_or(-1),
|
||||
@@ -575,37 +575,19 @@ void scenes::stream::tracking()
|
||||
});
|
||||
|
||||
next_battery_check = now + battery_check_interval;
|
||||
XrDuration battery_dur = t2.count();
|
||||
|
||||
spdlog::info("Battery check took: {}", battery_dur);
|
||||
}
|
||||
#endif
|
||||
|
||||
merged_tracking.clear();
|
||||
size_t current_size = 1400;
|
||||
for (auto & item: tracking)
|
||||
{
|
||||
size_t size = serialized_size(item);
|
||||
if (size + current_size > 1400)
|
||||
{
|
||||
merged_tracking.emplace_back().interaction_profiles = {
|
||||
interaction_profiles[0].load(),
|
||||
interaction_profiles[1].load(),
|
||||
};
|
||||
current_size = 0;
|
||||
}
|
||||
current_size += size;
|
||||
merged_tracking.back().items.emplace_back(std::move(item));
|
||||
}
|
||||
|
||||
packets.resize(std::max(packets.size(), merged_tracking.size() + hands.size() + body.size()));
|
||||
packets.resize(std::max(packets.size(), 1 + hands.size() + body.size()));
|
||||
size_t packet_count = 0;
|
||||
for (const auto & i: merged_tracking)
|
||||
|
||||
if (not tracking.device_poses.empty())
|
||||
{
|
||||
auto & packet = packets[packet_count++];
|
||||
packet.clear();
|
||||
wivrn_session::stream_socket_t::serialize(packet, i);
|
||||
wivrn_session::stream_socket_t::serialize(packet, tracking);
|
||||
}
|
||||
|
||||
for (const auto & i: hands)
|
||||
{
|
||||
if (i.joints)
|
||||
@@ -626,22 +608,6 @@ void scenes::stream::tracking()
|
||||
}
|
||||
|
||||
network_session->send_stream(std::span(packets.data(), packet_count));
|
||||
|
||||
for (auto & item: merged_tracking)
|
||||
std::ranges::move(item.items, std::back_inserter(tracking_pool));
|
||||
|
||||
if (period_adjust == 0)
|
||||
{
|
||||
if (auto p = real_display_period.load())
|
||||
{
|
||||
period_adjust = (p / tracking_period);
|
||||
current_tracking_period = p / period_adjust;
|
||||
}
|
||||
}
|
||||
else
|
||||
--period_adjust;
|
||||
|
||||
t0 += current_tracking_period;
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
@@ -653,16 +619,7 @@ void scenes::stream::tracking()
|
||||
|
||||
void scenes::stream::operator()(to_headset::tracking_control && packet)
|
||||
{
|
||||
auto locked = tracking_control.lock();
|
||||
auto m = size_t(to_headset::tracking_control::id::microphone);
|
||||
if (audio_handle)
|
||||
audio_handle->set_mic_state(packet.enabled[m]);
|
||||
|
||||
auto n = size_t(wivrn::to_headset::tracking_control::id::hid_input);
|
||||
hid_forwarding = packet.enabled[n];
|
||||
|
||||
*locked = packet;
|
||||
locked->min_offset = std::min(locked->min_offset, locked->max_offset);
|
||||
*tracking_control.lock() = std::move(packet);
|
||||
}
|
||||
|
||||
static device_id derived_from(device_id target)
|
||||
|
||||
@@ -64,6 +64,8 @@ void xr::fb_face_tracker2::get_weights(XrTime time, wivrn::from_headset::trackin
|
||||
.confidences = out_expressions.confidences.data(),
|
||||
};
|
||||
|
||||
out_expressions.timestamp = time;
|
||||
|
||||
if (XR_SUCCEEDED(xrGetFaceExpressionWeights2FB(id, &info, &expression_weights)))
|
||||
{
|
||||
out_expressions.is_valid = expression_weights.isValid;
|
||||
|
||||
@@ -62,6 +62,8 @@ void xr::htc_face_tracker::get_weights(XrTime time, packet_type & out_expression
|
||||
.sampleTime = time,
|
||||
};
|
||||
|
||||
out_expressions.timestamp = time;
|
||||
|
||||
if (eye)
|
||||
{
|
||||
expressions.expressionCount = out_expressions.eye.size();
|
||||
|
||||
@@ -56,6 +56,7 @@ struct xr::pico_face_tracker::impl
|
||||
|
||||
void get_weights(XrTime time, wivrn::from_headset::tracking::fb_face2 & out_expressions)
|
||||
{
|
||||
out_expressions.timestamp = time;
|
||||
out_expressions.is_valid = false;
|
||||
out_expressions.is_eye_following_blendshapes_valid = false;
|
||||
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
if (WIVRN_USE_SYSTEM_BOOST)
|
||||
add_library(Boost::pfr ALIAS Boost::headers)
|
||||
elseif (WIVRN_BUILD_CLIENT)
|
||||
else()
|
||||
set(BOOST_INCLUDE_LIBRARIES locale url pfr)
|
||||
FetchContent_MakeAvailable(boost)
|
||||
else()
|
||||
FetchContent_MakeAvailable(boostpfr)
|
||||
endif()
|
||||
|
||||
if (GIT_DESC)
|
||||
|
||||
+38
-26
@@ -75,11 +75,11 @@ std::string read_vr_manifest(const std::filesystem::path & root)
|
||||
return read_file(root / "config/steamapps.vrmanifest");
|
||||
}
|
||||
|
||||
steam_app_info read_steam_app_info(const std::filesystem::path & root)
|
||||
std::unordered_map<uint32_t, wivrn::steam_icon> safe_read_steam_icons(const std::filesystem::path & root)
|
||||
{
|
||||
try
|
||||
{
|
||||
return steam_app_info{root / "appcache/appinfo.vdf"};
|
||||
return read_steam_icons(root / "appcache/appinfo.vdf");
|
||||
}
|
||||
catch (...)
|
||||
{}
|
||||
@@ -87,14 +87,15 @@ steam_app_info read_steam_app_info(const std::filesystem::path & root)
|
||||
return {};
|
||||
}
|
||||
|
||||
std::optional<std::filesystem::path> find_steam_icon(const std::filesystem::path & root, int app_id, const steam_app_info & info)
|
||||
std::optional<std::filesystem::path> find_steam_icon(const std::filesystem::path & root, int app_id, const std::unordered_map<uint32_t, wivrn::steam_icon> & info)
|
||||
{
|
||||
const auto & app_info = info.get(app_id);
|
||||
auto icon = info.find(app_id);
|
||||
if (icon == info.end())
|
||||
return std::nullopt;
|
||||
|
||||
try
|
||||
{
|
||||
std::string icon{std::get<std::string_view>(app_info.at("common.clienticon"))};
|
||||
auto icon_path = root / "steam/games" / (icon + ".ico");
|
||||
auto icon_path = root / "steam/games" / (icon->second.clienticon + ".ico");
|
||||
|
||||
if (std::filesystem::exists(icon_path))
|
||||
return icon_path;
|
||||
@@ -105,10 +106,7 @@ std::optional<std::filesystem::path> find_steam_icon(const std::filesystem::path
|
||||
|
||||
try
|
||||
{
|
||||
std::string icon{std::get<std::string_view>(app_info.at("common.linuxclienticon"))};
|
||||
|
||||
auto icon_path = root / "steam/games" / (icon + ".zip");
|
||||
|
||||
auto icon_path = root / "steam/games" / (icon->second.linuxclienticon + ".zip");
|
||||
if (std::filesystem::exists(icon_path))
|
||||
return icon_path;
|
||||
}
|
||||
@@ -126,7 +124,7 @@ void read_steam_vr_apps(std::unordered_map<std::string, application> & res)
|
||||
return;
|
||||
|
||||
auto manifest = read_vr_manifest(*root);
|
||||
auto info = read_steam_app_info(*root);
|
||||
auto info = safe_read_steam_icons(*root);
|
||||
|
||||
if (manifest.empty())
|
||||
return;
|
||||
@@ -138,6 +136,11 @@ void read_steam_vr_apps(std::unordered_map<std::string, application> & res)
|
||||
{
|
||||
application app;
|
||||
|
||||
if (i["launch_type"] == "url")
|
||||
app.exec = command + " " + (std::string)i["url"];
|
||||
else
|
||||
continue;
|
||||
|
||||
std::string app_key = i["app_key"];
|
||||
for (auto [locale, items]: i["strings"].items())
|
||||
{
|
||||
@@ -154,21 +157,6 @@ void read_steam_vr_apps(std::unordered_map<std::string, application> & res)
|
||||
app.name[""] = it->second;
|
||||
}
|
||||
|
||||
if (i["launch_type"] == "url")
|
||||
{
|
||||
app.exec = command + " " + (std::string)i["url"];
|
||||
}
|
||||
else if (i["launch_type"] == "binary")
|
||||
{
|
||||
const char prefix[] = "steam.app.";
|
||||
if (app_key.starts_with(prefix))
|
||||
{
|
||||
// ¯\_(ツ)_/¯
|
||||
uint64_t appkey = stoll(app_key.substr(strlen(prefix)));
|
||||
app.exec = command + " steam://rungameid/" + std::to_string((appkey << 32) + 0x2000000);
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
const char prefix[] = "steam.app.";
|
||||
@@ -190,6 +178,30 @@ void read_steam_vr_apps(std::unordered_map<std::string, application> & res)
|
||||
std::cerr << "Failed to parse Steam VR manifest: " << e.what() << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
for (auto const & entry: std::filesystem::directory_iterator{*root / "userdata"})
|
||||
{
|
||||
auto shortcuts_vdf = entry.path() / "config/shortcuts.vdf";
|
||||
if (std::filesystem::exists(shortcuts_vdf))
|
||||
{
|
||||
try
|
||||
{
|
||||
for (auto && item: read_steam_shortcuts(shortcuts_vdf))
|
||||
{
|
||||
res[std::to_string(item.appid)] = {
|
||||
.name = {{"", std::move(item.name)}},
|
||||
// ¯\_(ツ)_/¯
|
||||
.exec = command + " steam://rungameid/" + std::to_string((uint64_t(item.appid) << 32) + 0x2000000),
|
||||
.icon_path = std::move(item.icon),
|
||||
};
|
||||
}
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
std::cerr << "Failed to parse Steam shortcuts file " << shortcuts_vdf << ": " << e.what() << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::string unescape(std::string_view in)
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
#include <openxr/openxr.h>
|
||||
|
||||
struct packed_quaternion
|
||||
{
|
||||
uint32_t value;
|
||||
|
||||
static packed_quaternion from_quaternion(const XrQuaternionf & q)
|
||||
{
|
||||
assert(std::abs(q.w * q.w + q.x * q.x + q.y * q.y + q.z * q.z - 1) < 0.01);
|
||||
|
||||
float abs_w = std::abs(q.w);
|
||||
float abs_x = std::abs(q.x);
|
||||
float abs_y = std::abs(q.y);
|
||||
float abs_z = std::abs(q.z);
|
||||
|
||||
const float scale_factor = 511 * std::sqrt(2);
|
||||
|
||||
if (abs_x > std::max({abs_y, abs_z, abs_w}))
|
||||
{
|
||||
uint32_t q1 = q.y * std::copysign(scale_factor, q.x) + 512.5;
|
||||
uint32_t q2 = q.z * std::copysign(scale_factor, q.x) + 512.5;
|
||||
uint32_t q3 = q.w * std::copysign(scale_factor, q.x) + 512.5;
|
||||
|
||||
return {(0 << 30) | (q1 << 20) | (q2 << 10) | q3};
|
||||
}
|
||||
else if (abs_y > std::max({abs_x, abs_z, abs_w}))
|
||||
{
|
||||
uint32_t q1 = q.x * std::copysign(scale_factor, q.y) + 512.5;
|
||||
uint32_t q2 = q.z * std::copysign(scale_factor, q.y) + 512.5;
|
||||
uint32_t q3 = q.w * std::copysign(scale_factor, q.y) + 512.5;
|
||||
|
||||
return {(1 << 30) | (q1 << 20) | (q2 << 10) | q3};
|
||||
}
|
||||
else if (abs_z > std::max({abs_x, abs_y, abs_w}))
|
||||
{
|
||||
uint32_t q1 = q.x * std::copysign(scale_factor, q.z) + 512.5;
|
||||
uint32_t q2 = q.y * std::copysign(scale_factor, q.z) + 512.5;
|
||||
uint32_t q3 = q.w * std::copysign(scale_factor, q.z) + 512.5;
|
||||
|
||||
return {(2 << 30) | (q1 << 20) | (q2 << 10) | q3};
|
||||
}
|
||||
else
|
||||
{
|
||||
uint32_t q1 = q.x * std::copysign(scale_factor, q.w) + 512.5;
|
||||
uint32_t q2 = q.y * std::copysign(scale_factor, q.w) + 512.5;
|
||||
uint32_t q3 = q.z * std::copysign(scale_factor, q.w) + 512.5;
|
||||
|
||||
return {(3 << 30) | (q1 << 20) | (q2 << 10) | q3};
|
||||
}
|
||||
}
|
||||
|
||||
operator XrQuaternionf() const
|
||||
{
|
||||
const float scale_factor = 1. / (511 * std::sqrt(2));
|
||||
|
||||
float q1 = (int((value >> 20) & 0x3ff) - 512) * scale_factor;
|
||||
float q2 = (int((value >> 10) & 0x3ff) - 512) * scale_factor;
|
||||
float q3 = (int((value >> 0) & 0x3ff) - 512) * scale_factor;
|
||||
float q0 = std::sqrt(1 - q1 * q1 - q2 * q2 - q3 * q3);
|
||||
|
||||
switch (value >> 30)
|
||||
{
|
||||
case 0:
|
||||
return {q0, q1, q2, q3};
|
||||
case 1:
|
||||
return {q1, q0, q2, q3};
|
||||
case 2:
|
||||
return {q1, q2, q0, q3};
|
||||
case 3:
|
||||
return {q1, q2, q3, q0};
|
||||
}
|
||||
|
||||
__builtin_unreachable();
|
||||
}
|
||||
};
|
||||
|
||||
inline packed_quaternion pack(const XrQuaternionf & q)
|
||||
{
|
||||
return packed_quaternion::from_quaternion(q);
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <boost/pfr.hpp>
|
||||
#include <concepts>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
|
||||
#if __has_include(<boost/pfr/core_name.hpp>)
|
||||
#define BOOST_HAS_CORE_NAME
|
||||
#endif
|
||||
|
||||
namespace details
|
||||
{
|
||||
template <class>
|
||||
struct is_stdarray : public std::false_type
|
||||
{};
|
||||
|
||||
template <class T, size_t N>
|
||||
struct is_stdarray<std::array<T, N>> : public std::true_type
|
||||
{};
|
||||
|
||||
template <typename T>
|
||||
inline constexpr bool is_stdarray_v = is_stdarray<T>::value;
|
||||
|
||||
template <typename T, typename Enable = void>
|
||||
struct csv_logger_traits;
|
||||
|
||||
template <typename T>
|
||||
struct csv_logger_traits<T, std::enable_if_t<std::is_aggregate_v<T> && !is_stdarray_v<T>>>
|
||||
{
|
||||
#ifdef BOOST_HAS_CORE_NAME
|
||||
static void write_header(std::ostream & out, const std::string & name, bool first = true)
|
||||
{
|
||||
boost::pfr::for_each_field_with_name(T{}, [&](std::string_view member_name, const auto & value) {
|
||||
csv_logger_traits<std::remove_cvref_t<decltype(value)>>::write_header(out, name + "." + (std::string)member_name, first);
|
||||
first = false;
|
||||
});
|
||||
}
|
||||
#endif
|
||||
|
||||
static void write_line(std::ostream & out, const T & value, bool first = true)
|
||||
{
|
||||
boost::pfr::for_each_field(value, [&](const auto & member) {
|
||||
csv_logger_traits<std::remove_cvref_t<decltype(member)>>::write_line(out, member, first);
|
||||
first = false;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct csv_logger_traits<T, std::enable_if_t<is_stdarray_v<T>>>
|
||||
{
|
||||
static void write_header(std::ostream & out, const std::string & name, bool first = true)
|
||||
{
|
||||
for (int i = 0; i < std::tuple_size_v<T>; i++)
|
||||
{
|
||||
csv_logger_traits<std::tuple_element_t<0, T>>::write_header(out, name + "[" + std::to_string(i) + "]", first and i == 0);
|
||||
}
|
||||
}
|
||||
|
||||
static void write_line(std::ostream & out, const T & value, bool first = true)
|
||||
{
|
||||
for (int i = 0; i < std::tuple_size_v<T>; i++)
|
||||
{
|
||||
csv_logger_traits<std::tuple_element_t<0, T>>::write_line(out, value[i], first and i == 0);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
struct csv_logger_traits<T, std::enable_if_t<!std::is_aggregate_v<T>>>
|
||||
{
|
||||
static void write_header(std::ostream & out, std::string_view name, bool first = true)
|
||||
{
|
||||
if (not first)
|
||||
out << ",";
|
||||
out << name.substr(1);
|
||||
}
|
||||
|
||||
static void write_line(std::ostream & out, const T & value, bool first = true)
|
||||
{
|
||||
if (not first)
|
||||
out << ",";
|
||||
out << value;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace details
|
||||
|
||||
template <typename T, typename Stream = std::ofstream>
|
||||
requires std::derived_from<Stream, std::ostream>
|
||||
class csv_logger
|
||||
{
|
||||
Stream stream;
|
||||
|
||||
public:
|
||||
template <typename... Args>
|
||||
csv_logger(Args &&... args) : stream(std::forward<Args>(args)...)
|
||||
{
|
||||
#ifdef BOOST_HAS_CORE_NAME
|
||||
details::csv_logger_traits<T>::write_header(stream, "");
|
||||
stream << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
void write(const T & data)
|
||||
{
|
||||
details::csv_logger_traits<T>::write_line(stream, data);
|
||||
stream << std::endl;
|
||||
}
|
||||
};
|
||||
+190
-102
@@ -18,169 +18,257 @@
|
||||
|
||||
#include "steam_app_info.h"
|
||||
#include <bit>
|
||||
#include <cctype>
|
||||
#include <cstring>
|
||||
#include <fstream>
|
||||
#include <span>
|
||||
#include <string_view>
|
||||
#include <iostream>
|
||||
|
||||
namespace
|
||||
{
|
||||
template <typename T>
|
||||
T read(std::span<char> & buffer);
|
||||
|
||||
template <typename T>
|
||||
requires std::is_integral_v<T>
|
||||
T read(std::span<char> & buffer)
|
||||
class binary_reader
|
||||
{
|
||||
if (sizeof(T) > buffer.size())
|
||||
throw std::runtime_error{"File truncated"};
|
||||
std::ifstream in;
|
||||
|
||||
T value;
|
||||
memcpy(&value, buffer.data(), sizeof(T));
|
||||
buffer = buffer.subspan(sizeof(T));
|
||||
public:
|
||||
binary_reader(std::ifstream && in) : in{std::move(in)} {}
|
||||
|
||||
static_assert(std::endian::native == std::endian::big or std::endian::native == std::endian::little);
|
||||
void discard(size_t bytes)
|
||||
{
|
||||
in.seekg(bytes, std::ios_base::cur);
|
||||
}
|
||||
|
||||
if constexpr (std::endian::native == std::endian::big)
|
||||
return std::byteswap(value);
|
||||
else
|
||||
return value;
|
||||
}
|
||||
template <typename T>
|
||||
T read();
|
||||
|
||||
template <typename T>
|
||||
requires std::is_integral_v<T>
|
||||
T read()
|
||||
{
|
||||
T res;
|
||||
in.read((char *)&res, sizeof(T));
|
||||
if (not in)
|
||||
throw std::runtime_error{"File truncated"};
|
||||
|
||||
static_assert(std::endian::native == std::endian::big or std::endian::native == std::endian::little);
|
||||
|
||||
if constexpr (std::endian::native == std::endian::big)
|
||||
return std::byteswap(res);
|
||||
else
|
||||
return res;
|
||||
}
|
||||
|
||||
std::vector<std::string> string_table();
|
||||
|
||||
auto tellg()
|
||||
{
|
||||
return in.tellg();
|
||||
}
|
||||
void seekg(size_t pos)
|
||||
{
|
||||
in.seekg(pos);
|
||||
}
|
||||
};
|
||||
|
||||
template <>
|
||||
std::string_view read<std::string_view>(std::span<char> & buffer)
|
||||
std::string binary_reader::read()
|
||||
{
|
||||
size_t size = strnlen((char *)buffer.data(), buffer.size());
|
||||
if (size == buffer.size())
|
||||
std::string res;
|
||||
std::getline(in, res, '\0');
|
||||
if (not in)
|
||||
throw std::runtime_error{"File truncated"};
|
||||
|
||||
char * str = buffer.data();
|
||||
buffer = buffer.subspan(size + 1);
|
||||
return {str, size};
|
||||
return res;
|
||||
}
|
||||
|
||||
std::span<char> read(std::span<char> & buffer, size_t size)
|
||||
std::vector<std::string> binary_reader::string_table()
|
||||
{
|
||||
if (size > buffer.size())
|
||||
throw std::runtime_error{"File truncated"};
|
||||
std::vector<std::string> res;
|
||||
size_t string_offset = read<uint64_t>();
|
||||
auto pos = in.tellg();
|
||||
|
||||
std::span<char> value{buffer.data(), size};
|
||||
buffer = buffer.subspan(size);
|
||||
return value;
|
||||
in.seekg(string_offset);
|
||||
auto count = read<uint32_t>();
|
||||
res.reserve(count);
|
||||
for (size_t i = 0; i < count; ++i)
|
||||
res.emplace_back(read<std::string>());
|
||||
in.seekg(pos);
|
||||
return res;
|
||||
}
|
||||
|
||||
std::vector<std::string_view> read_string_table(std::span<char> buffer)
|
||||
template <typename T>
|
||||
void read_dict(binary_reader & in, T & visitor, const std::vector<std::string> * string_table = nullptr)
|
||||
{
|
||||
std::vector<std::string_view> string_table;
|
||||
|
||||
uint32_t count = read<uint32_t>(buffer);
|
||||
string_table.reserve(count);
|
||||
|
||||
for (size_t i = 0; i < count; i++)
|
||||
string_table.emplace_back(read<std::string_view>(buffer));
|
||||
|
||||
return string_table;
|
||||
}
|
||||
|
||||
void read_vdf(wivrn::steam_app_info::info & info, const std::string & prefix, std::span<char> & bindata, const std::vector<std::string_view> & string_table)
|
||||
{
|
||||
int type = read<uint8_t>(bindata);
|
||||
|
||||
while (type != 8)
|
||||
while (true)
|
||||
{
|
||||
std::string name{string_table.at(read<uint32_t>(bindata))};
|
||||
for (char & c: name)
|
||||
c = std::tolower(c);
|
||||
auto type = in.read<uint8_t>();
|
||||
if (type == 8)
|
||||
{
|
||||
visitor.end_dict();
|
||||
return;
|
||||
}
|
||||
|
||||
// https://github.com/ValveResourceFormat/ValveKeyValue/blob/master/ValveKeyValue/ValveKeyValue/KeyValues1/KV1BinaryNodeType.cs
|
||||
// Key
|
||||
const std::string & key = string_table ? string_table->at(in.read<uint32_t>()) : in.read<std::string>();
|
||||
|
||||
// Value
|
||||
switch (type)
|
||||
{
|
||||
case 0: // Dictionary
|
||||
read_vdf(info, prefix + name + ".", bindata, string_table);
|
||||
visitor.begin_dict(key);
|
||||
read_dict(in, visitor, string_table);
|
||||
break;
|
||||
|
||||
case 1: // UTF-8 string
|
||||
info.emplace(prefix + name, read<std::string_view>(bindata));
|
||||
visitor.on_string(key, in.read<std::string>());
|
||||
break;
|
||||
|
||||
case 2: // uint32_t
|
||||
info.emplace(prefix + name, read<uint32_t>(bindata));
|
||||
visitor.on_uint32_t(key, in.read<uint32_t>());
|
||||
break;
|
||||
|
||||
// case 3: // float
|
||||
// break;
|
||||
|
||||
default:
|
||||
throw std::runtime_error{"Unknown object type " + std::to_string(type)};
|
||||
}
|
||||
|
||||
type = read<uint8_t>(bindata);
|
||||
}
|
||||
}
|
||||
} // namespace
|
||||
|
||||
wivrn::steam_app_info::steam_app_info(std::filesystem::path path)
|
||||
std::unordered_map<uint32_t, wivrn::steam_icon> wivrn::read_steam_icons(std::filesystem::path path)
|
||||
{
|
||||
std::vector<std::string_view> string_table;
|
||||
binary_reader in{std::ifstream{path}};
|
||||
|
||||
{
|
||||
std::ifstream f{path};
|
||||
data = std::vector<char>{std::istreambuf_iterator{f}, {}};
|
||||
}
|
||||
std::span<char> buffer = data;
|
||||
|
||||
// See https://github.com/SteamDatabase/SteamAppInfo/blob/master/README.md#file-header
|
||||
uint32_t magic = read<uint32_t>(buffer);
|
||||
uint32_t magic = in.read<uint32_t>();
|
||||
if ((magic & 0xff'ff'ff'00) != 0x07'56'44'00)
|
||||
throw std::runtime_error{"Wrong magic number"};
|
||||
|
||||
auto universe = in.read<uint32_t>();
|
||||
|
||||
int version = magic & 0xff;
|
||||
|
||||
if (version < 41)
|
||||
throw std::runtime_error{"Unsupported version"};
|
||||
|
||||
int universe = read<uint32_t>(buffer);
|
||||
std::vector<std::string> string_table;
|
||||
std::vector<std::string> * string_table_ptr = nullptr;
|
||||
if (version >= 41)
|
||||
{
|
||||
size_t string_offset = read<uint64_t>(buffer);
|
||||
string_table = read_string_table(std::span<char>{data}.subspan(string_offset));
|
||||
string_table = in.string_table();
|
||||
string_table_ptr = &string_table;
|
||||
}
|
||||
else
|
||||
throw std::runtime_error{"Unsupported version"};
|
||||
|
||||
std::unordered_map<uint32_t, wivrn::steam_icon> res;
|
||||
|
||||
struct V
|
||||
{
|
||||
wivrn::steam_icon current{};
|
||||
|
||||
void begin_dict(const std::string & key)
|
||||
{
|
||||
}
|
||||
void end_dict()
|
||||
{
|
||||
}
|
||||
void on_string(const std::string & key, std::string && val)
|
||||
{
|
||||
if (strcasecmp(key.c_str(), "clienticon") == 0)
|
||||
current.clienticon = std::move(val);
|
||||
else if (strcasecmp(key.c_str(), "linuxclienticon") == 0)
|
||||
current.linuxclienticon = std::move(val);
|
||||
}
|
||||
void on_uint32_t(const std::string & key, uint32_t val)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
while (true)
|
||||
{
|
||||
// See https://github.com/SteamDatabase/SteamAppInfo/blob/master/README.md#app-entry-repeated
|
||||
|
||||
auto app_id = read<uint32_t>(buffer);
|
||||
auto app_id = in.read<uint32_t>();
|
||||
if (app_id == 0)
|
||||
break;
|
||||
|
||||
auto size_data = read<uint32_t>(buffer);
|
||||
char * current_offset = buffer.data();
|
||||
|
||||
read<uint32_t>(buffer); // info_state
|
||||
read<uint32_t>(buffer); // last_updated
|
||||
read<uint64_t>(buffer); // pics_token
|
||||
read(buffer, 20); // SHA1 of the app info
|
||||
read<uint32_t>(buffer); // change number
|
||||
// if (version < 38)
|
||||
// read<uint8_t>(buffer); // section type
|
||||
read(buffer, 20); // SHA1 of the bin data
|
||||
auto bindata = read(buffer, size_data - (buffer.data() - current_offset));
|
||||
|
||||
size_t size_data = in.read<uint32_t>();
|
||||
size_t pos = in.tellg();
|
||||
in.discard(
|
||||
4 // info_state
|
||||
+ 4 // last_updated
|
||||
+ 8 // pics_token
|
||||
+ 20 // SHA1 of the app info
|
||||
+ 4 // change number
|
||||
+ 20 // SHA1 of the bin data
|
||||
+ 4 // checksum
|
||||
+ 1 // type
|
||||
);
|
||||
try
|
||||
{
|
||||
bindata = bindata.subspan(4 + 1); // Skip the checksum + type (must be 0)
|
||||
|
||||
info app_info;
|
||||
read_vdf(app_info, "", bindata, string_table);
|
||||
|
||||
app_data.emplace(app_id, app_info);
|
||||
V v;
|
||||
read_dict(in, v, string_table_ptr);
|
||||
if (not(v.current.clienticon.empty() and v.current.linuxclienticon.empty()))
|
||||
res.emplace(app_id, std::move(v.current));
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
// Ignore errors
|
||||
}
|
||||
in.seekg(pos + size_data);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
std::vector<wivrn::steam_shortcut> wivrn::read_steam_shortcuts(std::filesystem::path path)
|
||||
{
|
||||
binary_reader in{std::ifstream{path}};
|
||||
auto type = in.read<uint8_t>();
|
||||
auto name = in.read<std::string>();
|
||||
|
||||
if (type != 0 or name != "shortcuts")
|
||||
throw std::runtime_error{"Invalid type for shortcuts file"};
|
||||
|
||||
std::vector<wivrn::steam_shortcut> res;
|
||||
struct V
|
||||
{
|
||||
std::vector<wivrn::steam_shortcut> & items;
|
||||
|
||||
int depth = 0;
|
||||
wivrn::steam_shortcut current{};
|
||||
bool VR = false;
|
||||
|
||||
void begin_dict(const std::string & key)
|
||||
{
|
||||
++depth;
|
||||
if (depth == 1)
|
||||
{
|
||||
current = decltype(current){};
|
||||
VR = false;
|
||||
}
|
||||
}
|
||||
void end_dict()
|
||||
{
|
||||
--depth;
|
||||
if (depth == 0)
|
||||
{
|
||||
if (VR)
|
||||
items.push_back(std::move(current));
|
||||
}
|
||||
}
|
||||
void on_string(const std::string & key, std::string && val)
|
||||
{
|
||||
if (depth == 1)
|
||||
{
|
||||
if (strcasecmp(key.c_str(), "AppName") == 0)
|
||||
current.name = std::move(val);
|
||||
else if (strcasecmp(key.c_str(), "icon") == 0 and not val.empty())
|
||||
current.icon = std::move(val);
|
||||
}
|
||||
}
|
||||
void on_uint32_t(const std::string & key, uint32_t val)
|
||||
{
|
||||
if (depth == 1)
|
||||
{
|
||||
if (strcasecmp(key.c_str(), "appid") == 0)
|
||||
current.appid = val;
|
||||
else if (strcasecmp(key.c_str(), "OpenVR") == 0)
|
||||
VR = val;
|
||||
}
|
||||
}
|
||||
} v{res};
|
||||
|
||||
read_dict(in, v);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
@@ -19,33 +19,27 @@
|
||||
#pragma once
|
||||
|
||||
#include <filesystem>
|
||||
#include <optional>
|
||||
#include <unordered_map>
|
||||
#include <variant>
|
||||
#include <vector>
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
class steam_app_info
|
||||
|
||||
struct steam_icon
|
||||
{
|
||||
public:
|
||||
using info = std::unordered_map<std::string, std::variant<uint32_t, std::string_view>>;
|
||||
|
||||
private:
|
||||
std::vector<char> data;
|
||||
|
||||
std::unordered_map<int, info> app_data;
|
||||
|
||||
public:
|
||||
steam_app_info(std::filesystem::path path);
|
||||
steam_app_info() = default;
|
||||
steam_app_info(const steam_app_info &) = delete;
|
||||
steam_app_info(steam_app_info &&) = default;
|
||||
steam_app_info & operator=(const steam_app_info &) = delete;
|
||||
steam_app_info & operator=(steam_app_info &&) = default;
|
||||
|
||||
const auto & get(int appid) const
|
||||
{
|
||||
return app_data.at(appid);
|
||||
}
|
||||
std::string clienticon;
|
||||
std::string linuxclienticon;
|
||||
};
|
||||
|
||||
struct steam_shortcut
|
||||
{
|
||||
uint32_t appid;
|
||||
std::string name;
|
||||
std::optional<std::filesystem::path> icon;
|
||||
};
|
||||
|
||||
std::unordered_map<uint32_t, steam_icon> read_steam_icons(std::filesystem::path path);
|
||||
std::vector<steam_shortcut> read_steam_shortcuts(std::filesystem::path path);
|
||||
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -19,10 +19,13 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
namespace wivrn
|
||||
{
|
||||
// Default port for server to listen, both TCP and UDP
|
||||
static const int default_port = 9757;
|
||||
|
||||
static const int64_t max_extrapolation_ns = 80'000'000;
|
||||
} // namespace wivrn
|
||||
|
||||
#cmakedefine01 WIVRN_USE_NVENC
|
||||
|
||||
+30
-32
@@ -32,6 +32,7 @@
|
||||
#include <vulkan/vulkan_core.h>
|
||||
#include <openxr/openxr.h>
|
||||
|
||||
#include "packed_quaternion.h"
|
||||
#include "smp.h"
|
||||
#include "wivrn_serialization_types.h"
|
||||
|
||||
@@ -128,6 +129,10 @@ enum class device_id : uint8_t
|
||||
RIGHT_GRASP_VALUE, // /user/hand/right/input/grasp_ext/value
|
||||
RIGHT_GRASP_READY, // /user/hand/right/input/grasp_ext/ready_ext
|
||||
EYE_GAZE, // /user/eyes_ext/input/gaze_ext/pose
|
||||
LEFT_HAND, // identify hand tracking
|
||||
RIGHT_HAND, // identify hand tracking
|
||||
BODY, // identify body tracking
|
||||
FACE, // identify face tracking
|
||||
};
|
||||
|
||||
enum class interaction_profile : uint8_t
|
||||
@@ -299,6 +304,9 @@ struct tracking
|
||||
XrFovf fov;
|
||||
};
|
||||
|
||||
// /user/hand/left and /user/hand/right
|
||||
std::array<interaction_profile, 2> interaction_profiles;
|
||||
|
||||
XrTime production_timestamp;
|
||||
XrTime timestamp;
|
||||
XrViewStateFlags view_flags;
|
||||
@@ -320,6 +328,7 @@ struct tracking
|
||||
|
||||
struct fb_face2
|
||||
{
|
||||
XrTime timestamp;
|
||||
std::array<float, XR_FACE_EXPRESSION2_COUNT_FB> weights;
|
||||
std::array<float, XR_FACE_CONFIDENCE2_COUNT_FB> confidences;
|
||||
bool is_valid;
|
||||
@@ -329,6 +338,7 @@ struct tracking
|
||||
|
||||
struct htc_face
|
||||
{
|
||||
XrTime timestamp;
|
||||
XrTime eye_sample_time;
|
||||
XrTime lip_sample_time;
|
||||
std::array<float, XR_FACIAL_EXPRESSION_EYE_COUNT_HTC> eye;
|
||||
@@ -340,13 +350,6 @@ struct tracking
|
||||
std::variant<std::monostate, android_face, fb_face2, htc_face> face;
|
||||
};
|
||||
|
||||
struct trackings
|
||||
{
|
||||
// /user/hand/left and /user/hand/right
|
||||
std::array<interaction_profile, 2> interaction_profiles;
|
||||
std::vector<tracking> items;
|
||||
};
|
||||
|
||||
struct derived_pose
|
||||
{
|
||||
device_id source;
|
||||
@@ -372,7 +375,8 @@ struct hand_tracking
|
||||
};
|
||||
struct pose
|
||||
{
|
||||
XrPosef pose;
|
||||
XrVector3f position;
|
||||
packed_quaternion orientation;
|
||||
XrVector3f linear_velocity;
|
||||
XrVector3f angular_velocity;
|
||||
// In order to avoid packet fragmentation
|
||||
@@ -553,7 +557,6 @@ using packets = std::variant<
|
||||
audio_data,
|
||||
handshake,
|
||||
tracking,
|
||||
trackings,
|
||||
derived_pose,
|
||||
hand_tracking,
|
||||
body_tracking,
|
||||
@@ -703,31 +706,25 @@ struct timesync_query
|
||||
|
||||
struct tracking_control
|
||||
{
|
||||
enum class id
|
||||
struct sample
|
||||
{
|
||||
left_aim,
|
||||
left_grip,
|
||||
left_palm,
|
||||
left_pinch,
|
||||
left_poke,
|
||||
right_aim,
|
||||
right_grip,
|
||||
right_palm,
|
||||
right_pinch,
|
||||
right_poke,
|
||||
left_hand,
|
||||
right_hand,
|
||||
face,
|
||||
generic_tracker,
|
||||
hid_input,
|
||||
battery,
|
||||
microphone,
|
||||
|
||||
last = microphone,
|
||||
device_id device;
|
||||
XrDuration prediction_ns;
|
||||
};
|
||||
std::chrono::nanoseconds min_offset;
|
||||
std::chrono::nanoseconds max_offset;
|
||||
std::array<bool, size_t(id::last) + 1> enabled;
|
||||
|
||||
std::vector<sample> pattern;
|
||||
XrDuration motions_to_photons;
|
||||
};
|
||||
|
||||
struct feature_control
|
||||
{
|
||||
enum feature
|
||||
{
|
||||
hid_input,
|
||||
microphone,
|
||||
};
|
||||
feature f;
|
||||
bool state;
|
||||
};
|
||||
|
||||
struct refresh_rate_change
|
||||
@@ -778,6 +775,7 @@ using packets = std::variant<
|
||||
haptics,
|
||||
timesync_query,
|
||||
tracking_control,
|
||||
feature_control,
|
||||
refresh_rate_change,
|
||||
application_list,
|
||||
application_icon,
|
||||
|
||||
+15
-15
@@ -308,29 +308,29 @@ wivrn::deserialization_packet wivrn::UDP::receive_raw()
|
||||
|
||||
static const size_t message_size = 2048;
|
||||
static const size_t num_messages = 20;
|
||||
if ((not buffer) or buffer.use_count() > 1)
|
||||
{
|
||||
#if defined(__cpp_lib_smart_ptr_for_overwrite) && __cpp_lib_smart_ptr_for_overwrite >= 202002L
|
||||
buffer = std::make_shared_for_overwrite<uint8_t[]>(message_size * num_messages);
|
||||
buffer = std::make_shared_for_overwrite<uint8_t[]>(message_size * num_messages);
|
||||
#else
|
||||
buffer.reset(new uint8_t[message_size * num_messages]);
|
||||
buffer.reset(new uint8_t[message_size * num_messages]);
|
||||
#endif
|
||||
std::vector<iovec> iovecs;
|
||||
std::vector<mmsghdr> mmsgs;
|
||||
iovecs.reserve(num_messages);
|
||||
mmsgs.reserve(num_messages);
|
||||
}
|
||||
std::array<iovec, num_messages> iovecs;
|
||||
std::array<mmsghdr, num_messages> mmsgs;
|
||||
for (size_t i = 0; i < num_messages; ++i)
|
||||
{
|
||||
iovecs.push_back({
|
||||
iovecs[i] = {
|
||||
.iov_base = buffer.get() + message_size * i,
|
||||
.iov_len = message_size,
|
||||
});
|
||||
};
|
||||
|
||||
mmsgs.push_back(
|
||||
{
|
||||
.msg_hdr = {
|
||||
.msg_iov = &iovecs.back(),
|
||||
.msg_iovlen = 1,
|
||||
},
|
||||
});
|
||||
mmsgs[i] = {
|
||||
.msg_hdr = {
|
||||
.msg_iov = &iovecs[i],
|
||||
.msg_iovlen = 1,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
int received = recvmmsg(fd, mmsgs.data(), num_messages, MSG_DONTWAIT, nullptr);
|
||||
|
||||
@@ -5,6 +5,7 @@ include(ECMQmlModule)
|
||||
include(I18n)
|
||||
|
||||
ecm_find_qmlmodule(org.kde.kirigami REQUIRED)
|
||||
ecm_find_qmlmodule(org.kde.kirigamiaddons.formcard REQUIRED)
|
||||
|
||||
add_executable(wivrn-dashboard
|
||||
avahi.cpp
|
||||
@@ -27,6 +28,7 @@ qt_add_dbus_interface(DBUS_INTERFACE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/../dbus/io.
|
||||
target_sources(wivrn-dashboard PRIVATE ${DBUS_INTERFACE_SRC})
|
||||
|
||||
set_source_files_properties(../images/wivrn.svg PROPERTIES QT_RESOURCE_ALIAS qml/wivrn.svg)
|
||||
qt_add_resources(wivrn-dashboard PREFIX "/" BASE .. FILES ../images/wivrn.svg)
|
||||
|
||||
set_source_files_properties(qml/DashboardSettings.qml PROPERTIES
|
||||
QT_QML_SINGLETON_TYPE TRUE
|
||||
@@ -36,6 +38,7 @@ qt_add_qml_module(wivrn-dashboard
|
||||
URI io.github.wivrn.wivrn
|
||||
QML_FILES
|
||||
qml/Main.qml
|
||||
qml/About.qml
|
||||
qml/ApkInstallPage.qml
|
||||
qml/DashboardSettings.qml
|
||||
qml/SettingsPage.qml
|
||||
|
||||
+25
-5
@@ -1,4 +1,5 @@
|
||||
#include "version.h"
|
||||
#include <KAboutData>
|
||||
#include <KIconTheme>
|
||||
#include <KLocalizedContext>
|
||||
#include <KLocalizedString>
|
||||
@@ -19,12 +20,31 @@ int main(int argc, char * argv[])
|
||||
QApplication app(argc, argv);
|
||||
KLocalizedString::setApplicationDomain("wivrn-dashboard");
|
||||
app.setOrganizationName(QStringLiteral("wivrn"));
|
||||
app.setOrganizationDomain(QStringLiteral("wivrn.github.io"));
|
||||
app.setApplicationName(QStringLiteral("wivrn-dashboard"));
|
||||
app.setDesktopFileName(QStringLiteral("io.github.wivrn.wivrn"));
|
||||
app.setApplicationVersion(QString(wivrn::git_version));
|
||||
|
||||
app.setApplicationDisplayName(i18n("WiVRn dashboard"));
|
||||
KAboutData aboutData(
|
||||
QStringLiteral("wivrn-dashboard"),
|
||||
i18nc("@title", "WiVRn"),
|
||||
wivrn::display_version(),
|
||||
i18n("WiVRn server"),
|
||||
KAboutLicense::GPL_V3,
|
||||
i18n("(c) 2022-2026 WiVRn development team"));
|
||||
|
||||
aboutData.setDesktopFileName(QStringLiteral("io.github.wivrn.wivrn"));
|
||||
aboutData.setOrganizationDomain("wivrn.github.io");
|
||||
|
||||
aboutData.setHomepage("https://github.com/WiVRn/WiVRn");
|
||||
aboutData.setBugAddress("https://github.com/WiVRn/WiVRn/issues");
|
||||
aboutData.setProgramLogo(QIcon(":/qml/wivrn.svg"));
|
||||
|
||||
aboutData.addComponent(
|
||||
i18n("Monado"),
|
||||
i18n("OpenXR runtime"),
|
||||
"",
|
||||
"https://monado.dev/",
|
||||
KAboutLicense::BSL_V1);
|
||||
|
||||
// Set aboutData as information about the app
|
||||
KAboutData::setApplicationData(aboutData);
|
||||
|
||||
QCoro::Qml::registerTypes();
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls as Controls
|
||||
import org.kde.kirigami as Kirigami
|
||||
import org.kde.coreaddons as KCoreAddons
|
||||
import org.kde.kirigamiaddons.formcard as FormCard
|
||||
|
||||
FormCard.AboutPage {
|
||||
aboutData: KCoreAddons.AboutData
|
||||
donateUrl: "https://opencollective.com/wivrn"
|
||||
getInvolvedUrl: ""
|
||||
|
||||
footer: Controls.DialogButtonBox {
|
||||
standardButtons: Controls.DialogButtonBox.NoButton
|
||||
onAccepted: applicationWindow().pageStack.pop()
|
||||
|
||||
Controls.Button {
|
||||
text: i18nc("go back to the home page", "Back")
|
||||
icon.name: "go-previous"
|
||||
Controls.DialogButtonBox.buttonRole: Controls.DialogButtonBox.AcceptRole
|
||||
}
|
||||
}
|
||||
|
||||
Shortcut {
|
||||
sequences: [StandardKey.Cancel]
|
||||
onActivated: {if (isCurrentPage) applicationWindow().pageStack.pop();}
|
||||
}
|
||||
}
|
||||
@@ -70,6 +70,6 @@ Kirigami.ScrollablePage {
|
||||
|
||||
Shortcut {
|
||||
sequences: [StandardKey.Cancel]
|
||||
onActivated: applicationWindow().pageStack.pop()
|
||||
onActivated: {if (isCurrentPage) applicationWindow().pageStack.pop();}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,6 +41,6 @@ Kirigami.ScrollablePage {
|
||||
|
||||
Shortcut {
|
||||
sequences: [StandardKey.Cancel]
|
||||
onActivated: applicationWindow().pageStack.pop()
|
||||
onActivated: {if (isCurrentPage) applicationWindow().pageStack.pop();}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -197,6 +197,6 @@ Kirigami.ScrollablePage {
|
||||
|
||||
Shortcut {
|
||||
sequences: [StandardKey.Cancel]
|
||||
onActivated: applicationWindow().pageStack.pop()
|
||||
onActivated: {if (isCurrentPage) applicationWindow().pageStack.pop();}
|
||||
}
|
||||
}
|
||||
|
||||
+111
-80
@@ -81,6 +81,10 @@ Kirigami.ApplicationWindow {
|
||||
}
|
||||
));
|
||||
}
|
||||
|
||||
function onJsonConfigurationChanged(value) {
|
||||
Settings.load(WivrnServer);
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
@@ -253,27 +257,31 @@ Kirigami.ApplicationWindow {
|
||||
}
|
||||
|
||||
GridLayout {
|
||||
columns: 2
|
||||
columns: 3
|
||||
|
||||
Layout.leftMargin: Kirigami.Units.largeSpacing
|
||||
Layout.rightMargin: Kirigami.Units.largeSpacing
|
||||
Item {}
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
columnSpacing: 0
|
||||
|
||||
Image {
|
||||
source: Qt.resolvedUrl("wivrn.svg")
|
||||
Layout.columnSpan: parent.width < implicitWidth + main_form.implicitWidth ? 3 : 1
|
||||
}
|
||||
|
||||
GridLayout {
|
||||
columns: 2
|
||||
Layout.fillWidth: true
|
||||
Kirigami.FormLayout {
|
||||
id: main_form
|
||||
Layout.alignment: Qt.AlignTop
|
||||
Layout.horizontalStretchFactor: 0
|
||||
|
||||
Kirigami.Heading {
|
||||
text: i18n("Server status")
|
||||
level: 1
|
||||
type: Kirigami.Heading.Type.Primary
|
||||
}
|
||||
|
||||
Controls.Switch {
|
||||
Kirigami.FormData.label: i18nc("whether the server is running, displayed in front of a checkbox", "Running")
|
||||
id: switch_running
|
||||
Layout.row: 0
|
||||
Layout.column: 0
|
||||
text: i18nc("whether the server is running, displayed in front of a checkbox", "Running")
|
||||
|
||||
checked: true
|
||||
onCheckedChanged: {
|
||||
@@ -284,85 +292,101 @@ Kirigami.ApplicationWindow {
|
||||
}
|
||||
}
|
||||
|
||||
Controls.Switch {
|
||||
id: switch_pairing
|
||||
Layout.row: 1
|
||||
Layout.column: 0
|
||||
text: i18nc("whether pairing is enabled, displayed in front of a checkbox", "Pairing")
|
||||
onCheckedChanged: {
|
||||
if (checked && !WivrnServer.pairingEnabled)
|
||||
WivrnServer.enable_pairing();
|
||||
else if (!checked && WivrnServer.pairingEnabled)
|
||||
WivrnServer.disable_pairing();
|
||||
RowLayout {
|
||||
Kirigami.FormData.label: i18nc("whether pairing is enabled, displayed in front of a checkbox", "Pairing")
|
||||
enabled: root.server_started
|
||||
Controls.Switch {
|
||||
id: switch_pairing
|
||||
onCheckedChanged: {
|
||||
if (checked && !WivrnServer.pairingEnabled)
|
||||
WivrnServer.enable_pairing();
|
||||
else if (!checked && WivrnServer.pairingEnabled)
|
||||
WivrnServer.disable_pairing();
|
||||
}
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
visible: WivrnServer.pairingEnabled
|
||||
text: WivrnServer.pin
|
||||
font.pointSize: Kirigami.Theme.defaultFont.pointSize * 1.1
|
||||
}
|
||||
}
|
||||
|
||||
Kirigami.Heading {
|
||||
text: i18n("Headset status")
|
||||
level: 1
|
||||
type: Kirigami.Heading.Type.Primary
|
||||
enabled: root.server_started
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
Layout.row: 1
|
||||
Layout.column: 1
|
||||
text: WivrnServer.pairingEnabled ? i18n("PIN: %1", WivrnServer.pin) : ""
|
||||
wrapMode: Text.WordWrap
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
RowLayout {
|
||||
Kirigami.FormData.label: i18nc("label for headset name/status under server running switch", "Headset")
|
||||
enabled: root.server_started
|
||||
Controls.Label {
|
||||
text: WivrnServer.headsetConnected ? WivrnServer.systemName : i18n("Not connected")
|
||||
}
|
||||
|
||||
Controls.Button {
|
||||
Layout.row: 2
|
||||
Layout.column: 0
|
||||
text: i18n("Connect by USB")
|
||||
onClicked: select_usb_device.connect()
|
||||
enabled: root.server_started && Adb.adbInstalled && select_usb_device.connected_headset_count > 0
|
||||
visible: !WivrnServer.headsetConnected
|
||||
|
||||
Controls.ToolTip.visible: root.server_started && hovered
|
||||
Controls.ToolTip.delay: Kirigami.Units.toolTipDelay
|
||||
Controls.ToolTip.text: {
|
||||
if (!Adb.adbInstalled)
|
||||
return i18n("ADB is not installed");
|
||||
if (select_usb_device.connected_headset_count == 0)
|
||||
return i18n("No headset is connected or your headset is not in developer mode");
|
||||
return "";
|
||||
Controls.Button {
|
||||
text: i18n("Disconnect")
|
||||
icon.name: "network-disconnect-symbolic"
|
||||
onClicked: WivrnServer.disconnect_headset()
|
||||
visible: root.server_started && WivrnServer.headsetConnected
|
||||
}
|
||||
}
|
||||
|
||||
// USB mode
|
||||
Controls.Button {
|
||||
Layout.row: 2
|
||||
Layout.column: 0
|
||||
text: i18n("Disconnect")
|
||||
icon.name: "network-disconnect-symbolic"
|
||||
onClicked: WivrnServer.disconnect_headset()
|
||||
visible: root.server_started && WivrnServer.headsetConnected
|
||||
Kirigami.FormData.label: i18nc("label for USB status or connect button", "USB")
|
||||
text: i18nc("usb connect button", "Connect (wired)")
|
||||
onClicked: select_usb_device.connect()
|
||||
enabled: root.server_started && !WivrnServer.headsetConnected
|
||||
visible: Adb.adbInstalled && select_usb_device.connected_headset_count > 0
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
Kirigami.FormData.label: i18nc("label for USB status or connect button", "USB")
|
||||
visible: !Adb.adbInstalled
|
||||
enabled: root.server_started
|
||||
text: i18n("ADB is not installed")
|
||||
}
|
||||
|
||||
Controls.Label {
|
||||
Kirigami.FormData.label: i18nc("label for USB status or connect button", "USB")
|
||||
visible: Adb.adbInstalled && select_usb_device.connected_headset_count == 0
|
||||
enabled: root.server_started
|
||||
text: i18n("No headset is connected or your headset is not in developer mode");
|
||||
Layout.fillWidth: true
|
||||
wrapMode: Text.Wrap
|
||||
}
|
||||
}
|
||||
|
||||
Kirigami.Separator {
|
||||
Layout.columnSpan: 2
|
||||
Layout.fillWidth: true
|
||||
opacity: steam_info.opacity
|
||||
visible: steam_info.visible
|
||||
Layout.maximumHeight: root.server_started ? -1 : 0
|
||||
}
|
||||
|
||||
Kirigami.Heading {
|
||||
level: 1
|
||||
wrapMode: Text.WordWrap
|
||||
text: i18n("Steam information")
|
||||
opacity: steam_info.opacity
|
||||
visible: steam_info.visible
|
||||
Layout.maximumHeight: root.server_started ? -1 : 0
|
||||
}
|
||||
SteamLaunchOptions {
|
||||
id: steam_info
|
||||
visible: WivrnServer.steamCommand != ""
|
||||
opacity: root.server_started
|
||||
Layout.maximumHeight: root.server_started ? -1 : 0
|
||||
}
|
||||
|
||||
Item {
|
||||
// spacer item
|
||||
Layout.fillHeight: true
|
||||
Layout.fillWidth: true
|
||||
Layout.horizontalStretchFactor: 1
|
||||
}
|
||||
}
|
||||
|
||||
Kirigami.Separator {
|
||||
Layout.fillWidth: true
|
||||
visible: steam_info.visible
|
||||
}
|
||||
|
||||
Kirigami.Heading {
|
||||
level: 1
|
||||
type: Kirigami.Heading.Type.Primary
|
||||
wrapMode: Text.WordWrap
|
||||
text: i18n("Steam information")
|
||||
visible: steam_info.visible
|
||||
}
|
||||
SteamLaunchOptions {
|
||||
id: steam_info
|
||||
visible: root.server_started && WivrnServer.steamCommand != ""
|
||||
}
|
||||
|
||||
Item {
|
||||
// spacer item
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
}
|
||||
|
||||
actions: [
|
||||
@@ -370,14 +394,12 @@ Kirigami.ApplicationWindow {
|
||||
text: i18n("Wizard")
|
||||
icon.name: "tools-wizard-symbolic"
|
||||
onTriggered: root.pageStack.push(Qt.createComponent("WizardPage.qml").createObject())
|
||||
visible: root.pageStack.depth == 1
|
||||
enabled: root.server_started
|
||||
},
|
||||
Kirigami.Action {
|
||||
text: i18n("Install the app")
|
||||
icon.name: "install-symbolic"
|
||||
onTriggered: root.pageStack.push(Qt.createComponent("ApkInstallPage.qml").createObject())
|
||||
visible: root.pageStack.depth == 1
|
||||
enabled: root.server_started && Adb.adbInstalled
|
||||
tooltip: {
|
||||
if (!root.server_started)
|
||||
@@ -391,22 +413,31 @@ Kirigami.ApplicationWindow {
|
||||
text: i18n("Headsets")
|
||||
icon.name: "item-symbolic"
|
||||
onTriggered: root.pageStack.push(Qt.createComponent("HeadsetsPage.qml").createObject())
|
||||
visible: root.pageStack.depth == 1
|
||||
enabled: root.server_started
|
||||
},
|
||||
Kirigami.Action {
|
||||
text: i18n("Settings")
|
||||
icon.name: "settings-configure-symbolic"
|
||||
onTriggered: root.pageStack.push(Qt.createComponent("SettingsPage.qml").createObject())
|
||||
visible: root.pageStack.depth == 1
|
||||
enabled: root.server_started
|
||||
},
|
||||
Kirigami.Action {
|
||||
text: i18n("About")
|
||||
icon.name: "help-about"
|
||||
onTriggered: root.pageStack.push(Qt.createComponent("About.qml").createObject())
|
||||
},
|
||||
Kirigami.Action {
|
||||
text: i18n("Troubleshoot")
|
||||
icon.name: "help-contents-symbolic"
|
||||
onTriggered: root.pageStack.push(Qt.createComponent("TroubleshootPage.qml").createObject())
|
||||
enabled: root.pageStack.depth == 1
|
||||
}
|
||||
]
|
||||
|
||||
footer: Controls.Label {
|
||||
text: i18n("Version %1", ApkInstaller.currentVersion)
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
opacity: 0.6
|
||||
padding: Kirigami.Units.smallSpacing
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -284,6 +284,6 @@ Kirigami.ScrollablePage {
|
||||
|
||||
Shortcut {
|
||||
sequences: [StandardKey.Cancel]
|
||||
onActivated: applicationWindow().pageStack.pop()
|
||||
onActivated: {if (isCurrentPage) applicationWindow().pageStack.pop();}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,6 +94,6 @@ Kirigami.ScrollablePage {
|
||||
|
||||
Shortcut {
|
||||
sequences: [StandardKey.Cancel]
|
||||
onActivated: applicationWindow().pageStack.pop()
|
||||
onActivated: {if (isCurrentPage) applicationWindow().pageStack.pop();}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -439,6 +439,11 @@ void wivrn_server::on_server_properties_changed(const QString & interface_name,
|
||||
supportedCodecsChanged(m_supportedCodecs = changed_properties["SupportedCodecs"].toStringList());
|
||||
}
|
||||
|
||||
if (changed_properties.contains("SystemName"))
|
||||
{
|
||||
systemNameChanged(m_systemName = changed_properties["SystemName"].toString());
|
||||
}
|
||||
|
||||
if (changed_properties.contains("SteamCommand"))
|
||||
{
|
||||
steamCommandChanged(m_steamCommand = changed_properties["SteamCommand"].toString());
|
||||
|
||||
@@ -204,6 +204,7 @@ public:
|
||||
Q_PROPERTY(int speakerChannels READ speakerChannels NOTIFY speakerChannelsChanged)
|
||||
Q_PROPERTY(int speakerSampleRate READ speakerSampleRate NOTIFY speakerSampleRateChanged)
|
||||
Q_PROPERTY(QStringList supportedCodecs READ supportedCodecs NOTIFY supportedCodecsChanged)
|
||||
Q_PROPERTY(QString systemName READ systemName NOTIFY systemNameChanged)
|
||||
Q_PROPERTY(QString steamCommand READ steamCommand NOTIFY steamCommandChanged)
|
||||
|
||||
// hostnamed
|
||||
@@ -317,6 +318,11 @@ public:
|
||||
return m_supportedCodecs;
|
||||
}
|
||||
|
||||
QString systemName() const
|
||||
{
|
||||
return m_systemName;
|
||||
}
|
||||
|
||||
QString steamCommand() const
|
||||
{
|
||||
return m_steamCommand;
|
||||
@@ -368,6 +374,7 @@ private:
|
||||
int m_speakerChannels{};
|
||||
int m_speakerSampleRate{};
|
||||
QStringList m_supportedCodecs{};
|
||||
QString m_systemName{};
|
||||
QString m_steamCommand{};
|
||||
|
||||
Q_SIGNALS:
|
||||
@@ -394,6 +401,7 @@ Q_SIGNALS:
|
||||
void speakerSampleRateChanged(int);
|
||||
void supportedCodecsChanged(QStringList);
|
||||
void steamCommandChanged(QString);
|
||||
void systemNameChanged(QString);
|
||||
void serverLogsChanged(QString);
|
||||
void serverError(serverErrorData);
|
||||
};
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
<property name="EyeGaze" type="b" access="read"/>
|
||||
<property name="FaceTracking" type="b" access="read"/>
|
||||
<property name="SupportedCodecs" type="as" access="read"/>
|
||||
<property name="SystemName" type="s" access="read"/>
|
||||
|
||||
<property name="Pin" type="s" access="read"/>
|
||||
<property name="KnownKeys" type="a(ssx)" access="read">
|
||||
|
||||
+5
-18
@@ -2,19 +2,6 @@
|
||||
|
||||
# Server (PC)
|
||||
|
||||
## Dependencies
|
||||
|
||||
WiVRn requires avahi-client, eigen3, gettext, libpulse, libsystemd, nlohmann_json, librsvg2.
|
||||
|
||||
It also requires at least one encoder:
|
||||
|
||||
* For nvenc (Nvidia), it requires cuda and nvidia driver
|
||||
* For vaapi (AMD/Intel), it requires ffmpeg with vaapi and libdrm support, as well as vaapi drivers for the GPU
|
||||
* For vulkan (Any modern GPU), it requires vulkan headers of 1.3.283 or later, as well as vulkan drivers for the GPU
|
||||
* For x264 (software encoding), it requires libx264
|
||||
|
||||
Some distributions such as Fedora don't ship h264 and h265 encoders and need specific repositories.
|
||||
|
||||
## Compile
|
||||
|
||||
From your checkout directory, with automatic detection of encoders
|
||||
@@ -23,12 +10,12 @@ cmake -B build-server . -GNinja -DWIVRN_BUILD_CLIENT=OFF -DCMAKE_BUILD_TYPE=RelW
|
||||
cmake --build build-server
|
||||
```
|
||||
|
||||
It is possible to force specific encoders, by adding options
|
||||
It is possible to disable specific encoders, by adding options
|
||||
```
|
||||
-DWIVRN_USE_NVENC=ON
|
||||
-DWIVRN_USE_VAAPI=ON
|
||||
-DWIVRN_USE_VULKAN_ENCODE=ON
|
||||
-DWIVRN_USE_X264=ON
|
||||
-DWIVRN_USE_NVENC=OFF
|
||||
-DWIVRN_USE_VAAPI=OFF
|
||||
-DWIVRN_USE_VULKAN_ENCODE=OFF
|
||||
-DWIVRN_USE_X264=OFF
|
||||
```
|
||||
|
||||
Force specific audio backends
|
||||
|
||||
@@ -67,7 +67,7 @@ Use vaapi hardware encoding, h265 video codec (HEVC).
|
||||
2. Hardware + software encoder
|
||||
```json
|
||||
{
|
||||
"encoders": [
|
||||
"encoder": [
|
||||
{
|
||||
"encoder": "vaapi",
|
||||
"codec": "h265",
|
||||
|
||||
@@ -0,0 +1,509 @@
|
||||
# Debugging WiVRn
|
||||
|
||||
This guide covers debugging techniques for WiVRn, including log collection, crash analysis, performance profiling, and common troubleshooting scenarios.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
- [Prerequisites](#prerequisites)
|
||||
- [Collecting Logs](#collecting-logs)
|
||||
- [HMD Client Logs](#hmd-client-logs)
|
||||
- [Server Logs](#server-logs)
|
||||
- [Starting Components for Debugging](#starting-components-for-debugging)
|
||||
- [HMD Client](#hmd-client)
|
||||
- [Server](#server)
|
||||
- [XR Applications](#xr-applications)
|
||||
- [Crash Debugging](#crash-debugging)
|
||||
- [Server Crashes](#server-crashes)
|
||||
- [HMD Client Crashes](#hmd-client-crashes)
|
||||
- [Performance Debugging](#performance-debugging)
|
||||
- [Timing Analysis](#timing-analysis)
|
||||
- [Perfetto Profiling](#perfetto-profiling)
|
||||
- [USB Tunneling](#usb-tunneling)
|
||||
- [Game Debugging](#game-debugging)
|
||||
- [Environment Variables Reference](#environment-variables-reference)
|
||||
- [Configuration Files](#configuration-files)
|
||||
- [External Resources](#external-resources)
|
||||
- [Remote Native Debugging (Advanced)](#remote-native-debugging-advanced)
|
||||
|
||||
---
|
||||
|
||||
## Prerequisites
|
||||
|
||||
### ADB Setup
|
||||
|
||||
The Android Debug Bridge ([ADB](https://developer.android.com/tools/adb)) is required for debugging the HMD client. Connect your headset to your PC via a USB data cable and authorize the connection when prompted in the HMD.
|
||||
|
||||
### Clean Installation
|
||||
|
||||
When debugging, ensure the HMD client matches the server version. Perform a clean reinstall:
|
||||
|
||||
```bash
|
||||
# Find and uninstall existing installation
|
||||
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
|
||||
adb uninstall ${WIVRN_PKG}
|
||||
|
||||
# Install the debug APK
|
||||
adb install /path/to/wivrn-standard-debug.apk
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Collecting Logs
|
||||
|
||||
### HMD Client Logs
|
||||
|
||||
The primary method to collect logs from the HMD is through [ADB logcat](https://developer.android.com/tools/logcat).
|
||||
|
||||
Watch for crashes (FATAL priority):
|
||||
|
||||
```bash
|
||||
adb logcat '*:F'
|
||||
```
|
||||
|
||||
Record ERROR and above:
|
||||
|
||||
```bash
|
||||
adb logcat '*:E' | tee -a errors-$(date "+%Y-%m-%d-%H").log
|
||||
```
|
||||
|
||||
WiVRn-only logs (verbose):
|
||||
|
||||
```bash
|
||||
adb logcat '*:S' WiVRn:V
|
||||
```
|
||||
|
||||
Watch WiVRn client logs:
|
||||
|
||||
```bash
|
||||
adb logcat | grep WiVRn
|
||||
```
|
||||
|
||||
Watch Android system logs related to WiVRn:
|
||||
|
||||
```bash
|
||||
adb logcat | grep wivrn
|
||||
```
|
||||
|
||||
### Server Logs
|
||||
|
||||
Start the server with debug logging enabled:
|
||||
|
||||
```bash
|
||||
XRT_LOG=debug XRT_COMPOSITOR_LOG=debug wivrn-server
|
||||
```
|
||||
|
||||
To also dump video frames for analysis:
|
||||
|
||||
```bash
|
||||
XRT_LOG=debug XRT_COMPOSITOR_LOG=debug WIVRN_DUMP_VIDEO=/tmp/video-dump wivrn-server
|
||||
```
|
||||
|
||||
The video dump can be played back with `mpv` or other media players to verify what video was being sent to the HMD.
|
||||
|
||||
There will be multiple files in the directory, one for each video stream per codec. For example, `/tmp/video-dump-0.h264`.
|
||||
|
||||
---
|
||||
|
||||
## Starting Components for Debugging
|
||||
|
||||
### HMD Client
|
||||
|
||||
The package name varies by build variant:
|
||||
- `org.meumeu.wivrn` - for app store builds
|
||||
- `org.meumeu.wivrn.github` - for GitHub release builds
|
||||
- `org.meumeu.wivrn.local` - for locally built APK
|
||||
- `org.meumeu.wivrn.github.testing` - for CI runs
|
||||
- `org.meumeu.wivrn.github.nightly` - for APK repo
|
||||
|
||||
Find your installed package with:
|
||||
|
||||
```bash
|
||||
adb shell pm list packages | grep wivrn
|
||||
```
|
||||
|
||||
Start via ADB:
|
||||
|
||||
```bash
|
||||
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
|
||||
adb shell am start ${WIVRN_PKG}/org.meumeu.wivrn.MainActivity
|
||||
```
|
||||
|
||||
Connect to a specific server:
|
||||
|
||||
Replace `ADDRESS=localhost` with the address of the server you want to connect to.
|
||||
|
||||
```bash
|
||||
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
|
||||
ADDRESS=localhost
|
||||
adb shell am start -a android.intent.action.VIEW -d "wivrn://${ADDRESS}" ${WIVRN_PKG}
|
||||
```
|
||||
|
||||
Stop the client:
|
||||
|
||||
```bash
|
||||
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
|
||||
adb shell am force-stop ${WIVRN_PKG}
|
||||
```
|
||||
|
||||
### Server
|
||||
|
||||
Start the server with debug logging:
|
||||
|
||||
```bash
|
||||
XRT_LOG=debug XRT_COMPOSITOR_LOG=debug wivrn-server
|
||||
```
|
||||
|
||||
The server will publish itself on the network via mDNS/Zeroconf for discovery by the HMD client.
|
||||
|
||||
### XR Applications
|
||||
|
||||
Basic OpenXR application:
|
||||
|
||||
```bash
|
||||
xrgears
|
||||
```
|
||||
|
||||
To run Steam games via OpenVR, make sure to add the Steam launch options presented by the server output or in the dashboard. This is required to configure the OpenVR runtime correctly.
|
||||
|
||||
Some games have options to control window behavior. Try adding `-windowed` or `-window -w 1280 -h 1024` to the game launch options to allow moving/resizing the local render window. Each game may have different options, check the game's documentation.
|
||||
|
||||
> Note: Games linked to OpenVR require [OpenComposite](https://gitlab.com/znixian/OpenOVR) or [xrizer](https://github.com/Supreeeme/xrizer) to translate calls to OpenXR.
|
||||
|
||||
---
|
||||
|
||||
## Crash Debugging
|
||||
|
||||
### Server Crashes
|
||||
|
||||
#### Systemd
|
||||
|
||||
Core dumps are managed by [systemd-coredump](https://www.freedesktop.org/software/systemd/man/latest/coredumpctl.html).
|
||||
|
||||
View the most recent crash:
|
||||
|
||||
```bash
|
||||
coredumpctl info
|
||||
```
|
||||
|
||||
Start a debugger on the most recent crash:
|
||||
|
||||
```bash
|
||||
coredumpctl -1 debug
|
||||
```
|
||||
|
||||
Inside GDB/LLDB:
|
||||
|
||||
```
|
||||
# Select frame 2
|
||||
f 2
|
||||
|
||||
# View local variables
|
||||
info locals
|
||||
|
||||
# Print backtrace
|
||||
bt
|
||||
```
|
||||
|
||||
#### Non-Systemd Systems
|
||||
|
||||
On systems without systemd-coredump, core dumps are handled by the kernel directly.
|
||||
|
||||
Check where core dumps are written:
|
||||
|
||||
```bash
|
||||
cat /proc/sys/kernel/core_pattern
|
||||
```
|
||||
|
||||
To set a simple core pattern:
|
||||
|
||||
```bash
|
||||
sudo sysctl -w kernel.core_pattern=/tmp/core.%e.%p.%t
|
||||
```
|
||||
|
||||
This writes cores to `/tmp/` with the format `core.<executable>.<pid>.<timestamp>`.
|
||||
|
||||
Analyze a core dump with GDB:
|
||||
|
||||
```bash
|
||||
gdb /usr/bin/wivrn-server /tmp/core.wivrn-server.12345.1706234567
|
||||
```
|
||||
|
||||
Inside GDB:
|
||||
|
||||
```
|
||||
# Print backtrace
|
||||
bt
|
||||
|
||||
# View all threads
|
||||
info threads
|
||||
|
||||
# Switch to thread 2
|
||||
thread 2
|
||||
|
||||
# Print backtrace for all threads
|
||||
thread apply all bt
|
||||
```
|
||||
|
||||
### HMD Client Crashes
|
||||
|
||||
Copy the traceback from the HMD logs using logcat:
|
||||
|
||||
```bash
|
||||
adb logcat '*:F' | grep -A 50 wivrn
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Performance Debugging
|
||||
|
||||
### Timing Analysis
|
||||
|
||||
WiVRn can record detailed timing information for analysis.
|
||||
|
||||
Capture timing data:
|
||||
|
||||
```bash
|
||||
WIVRN_DUMP_TIMINGS=/tmp/wivrn-timings.csv wivrn-server
|
||||
```
|
||||
|
||||
### Perfetto Profiling
|
||||
|
||||
[Perfetto](https://perfetto.dev/) provides detailed system-wide profiling.
|
||||
|
||||
#### HMD Profiling
|
||||
|
||||
Enable persistent tracing on Android:
|
||||
|
||||
```bash
|
||||
adb shell setprop persist.traced.enable 1
|
||||
```
|
||||
|
||||
Open the [Perfetto UI](https://ui.perfetto.dev/), connect to your device, and configure tracing as needed.
|
||||
|
||||
See the [Android tracing quickstart](https://perfetto.dev/docs/quickstart/android-tracing) for detailed instructions.
|
||||
|
||||
#### Server Profiling
|
||||
|
||||
Ensure WiVRn is built with `XRT_FEATURE_TRACING=ON` to enable [Monado tracing with Perfetto](https://monado.pages.freedesktop.org/monado/tracing-perfetto.html).
|
||||
|
||||
Start with tracing enabled:
|
||||
|
||||
```bash
|
||||
XRT_TRACING=true wivrn-server
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## USB Tunneling
|
||||
|
||||
For debugging network issues or testing with a wired connection, you can tunnel WiVRn over USB.
|
||||
|
||||
Set up the tunnel and connect:
|
||||
|
||||
```bash
|
||||
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
|
||||
adb reverse tcp:9757 tcp:9757
|
||||
adb shell am start -a android.intent.action.VIEW -d "wivrn+tcp://localhost:9757" ${WIVRN_PKG}
|
||||
```
|
||||
|
||||
You are also able to make this connection through the dashboard.
|
||||
|
||||
---
|
||||
|
||||
## Game Debugging
|
||||
|
||||
### Proton/Wine Games
|
||||
|
||||
Enable additional logging for Windows compatibility layers:
|
||||
|
||||
```
|
||||
PROTON_LOG=1 WINEDEBUG=vrclient,openxr,steam %command%
|
||||
```
|
||||
|
||||
### OpenComposite
|
||||
|
||||
For games using OpenVR, and you are using [OpenComposite](https://gitlab.com/znixian/OpenOVR) to translate calls to OpenXR.
|
||||
|
||||
The OpenComposite log can be found at `$HOME/.local/state/OpenComposite/logs/opencomposite.log`.
|
||||
|
||||
### XRizer
|
||||
|
||||
To debug [xrizer](https://github.com/Supreeeme/xrizer), you can set the `RUST_LOG` environment variable to control the log level.
|
||||
|
||||
| Variable | Description | Default |
|
||||
|------------|-----------------------------------------------------------------------------|---------|
|
||||
| `RUST_LOG` | Configures the logging level for Rust applications. Accepts a comma-separated list of directives in the format `module::path=level`, where `level` can be `error`, `warn`, `info`, `debug`, or `trace`. For example, `RUST_LOG=info,my_crate=debug` sets the global level to `info` and the `my_crate` module to `debug`. | `warn` |
|
||||
|
||||
In xrizer, `RUST_LOG` follows the standard [`env_logger` semantics](https://docs.rs/env_logger/latest/env_logger/#enabling-logging) described above. In addition, xrizer defines the following useful nonstandard logging targets:
|
||||
|
||||
| Logging Target | Description |
|
||||
|-----------------|-------------|
|
||||
| `openvr_calls` | Logs the name of each OpenVR function as they are called |
|
||||
| `tracked_property` | Logs the name and device index of each requested tracked device property |
|
||||
|
||||
The log is located at `$XDG_STATE_HOME/xrizer/xrizer.txt`, or `$HOME/.local/state/xrizer/xrizer.txt` if `$XDG_STATE_HOME` is not set.
|
||||
|
||||
---
|
||||
|
||||
## Environment Variables Reference
|
||||
|
||||
### Compositor Settings
|
||||
|
||||
| Variable | Description | Default |
|
||||
|----------|-------------|---------|
|
||||
| `XRT_LOG` | Log level (`trace`, `debug`, `info`, `warn`, `error`) | `warn` |
|
||||
| `XRT_COMPOSITOR_LOG` | Compositor log level (`trace`, `debug`, `info`, `warn`, `error`) | `info` |
|
||||
| `OXR_VIEWPORT_SCALE_PERCENTAGE` | Per-application viewport scale (set on application, not server) | `100` |
|
||||
|
||||
### Debugging
|
||||
|
||||
| Variable | Description |
|
||||
|----------|-------------|
|
||||
| `WIVRN_DUMP_VIDEO` | Path to dump video frames (e.g., `/tmp/video-dump`) |
|
||||
| `WIVRN_DUMP_TIMINGS` | Path to dump timing CSV (e.g., `/tmp/wivrn-timings.csv`) |
|
||||
| `WIVRN_LOGLEVEL` | Log level for the native client |
|
||||
| `WIVRN_AUTOCONNECT` | Auto-connect to the first discovered server |
|
||||
| `XRT_TRACING` | Enable Perfetto tracing (`true`/`false`) |
|
||||
|
||||
### Vulkan
|
||||
|
||||
| Variable | Description |
|
||||
|----------|-------------|
|
||||
| `VK_INSTANCE_LAYERS` | Vulkan validation layers (e.g., `VK_LAYER_KHRONOS_validation`) |
|
||||
|
||||
### OpenXR
|
||||
|
||||
| Variable | Description |
|
||||
|----------|-------------|
|
||||
| `XR_RUNTIME_JSON` | Path to OpenXR runtime configuration |
|
||||
|
||||
See also the [Monado compositor documentation](https://monado.freedesktop.org/getting-started.html#compositor) for additional options.
|
||||
|
||||
---
|
||||
|
||||
## Configuration Files
|
||||
|
||||
### OpenXR Runtime Configuration
|
||||
|
||||
Active runtime symlink:
|
||||
|
||||
```bash
|
||||
ls -la $HOME/.config/openxr/1/active_runtime.json
|
||||
```
|
||||
|
||||
Should point to `/usr/share/openxr/1/openxr_wivrn.json` or similar.
|
||||
|
||||
Check runtime configuration:
|
||||
|
||||
```bash
|
||||
cat /usr/share/openxr/1/openxr_wivrn.json
|
||||
```
|
||||
|
||||
Example output:
|
||||
|
||||
```json
|
||||
{
|
||||
"file_format_version": "1.0.0",
|
||||
"runtime": {
|
||||
"name": "Monado",
|
||||
"library_path": "../../../lib64/wivrn/libopenxr_wivrn.so",
|
||||
"MND_libmonado_path": "../../../lib64/wivrn/libmonado_wivrn.so"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Verify library dependencies:
|
||||
|
||||
```bash
|
||||
pushd /usr/share/openxr/1/
|
||||
ldd ../../../lib64/wivrn/libopenxr_wivrn.so
|
||||
popd
|
||||
```
|
||||
|
||||
### WiVRn Server Configuration
|
||||
|
||||
See [docs/configuration.md](configuration.md).
|
||||
|
||||
---
|
||||
|
||||
## External Resources
|
||||
|
||||
### Tools and Documentation
|
||||
|
||||
- [ADB Documentation](https://developer.android.com/tools/adb) - Android Debug Bridge
|
||||
- [ADB Logcat](https://developer.android.com/tools/logcat) - Log filtering and analysis
|
||||
- [coredumpctl](https://www.freedesktop.org/software/systemd/man/latest/coredumpctl.html) - Core dump management
|
||||
- [Perfetto](https://perfetto.dev/docs/) - System profiling and tracing
|
||||
- [Perfetto UI](https://ui.perfetto.dev/) - Web-based trace viewer
|
||||
|
||||
### Monado/OpenXR
|
||||
|
||||
- [Monado Getting Started](https://monado.freedesktop.org/getting-started.html) - Compositor configuration
|
||||
- [Monado Tracing with Perfetto](https://monado.pages.freedesktop.org/monado/tracing-perfetto.html) - Server-side tracing
|
||||
- [OpenXR](https://www.khronos.org/openxr/) - Khronos OpenXR standard
|
||||
- [xrgears](https://github.com/ila-embsys/monado_demo_xrgears) - OpenXR test application
|
||||
|
||||
### Gaming
|
||||
|
||||
- [OpenComposite](https://gitlab.com/znixian/OpenOVR) - OpenVR to OpenXR translation
|
||||
- [xrizer](https://github.com/Supreeeme/xrizer) - OpenVR to OpenXR translation layer (Rust)
|
||||
|
||||
### Rust
|
||||
|
||||
- [env_logger](https://docs.rs/env_logger/latest/env_logger/#enabling-logging) - Rust logging configuration via RUST_LOG
|
||||
|
||||
### Android Debugging
|
||||
|
||||
- [Android NDK Debugging](https://developer.android.com/ndk/guides/ndk-gdb) - Native debugging with ndk-gdb
|
||||
- [Android Tracing Quickstart](https://perfetto.dev/docs/quickstart/android-tracing) - Perfetto on Android
|
||||
|
||||
---
|
||||
|
||||
## Remote Native Debugging (Advanced)
|
||||
|
||||
This section covers attaching a native debugger to the HMD client remotely. This requires the Android NDK and familiarity with LLDB/GDB.
|
||||
|
||||
Start the client with debugging enabled:
|
||||
|
||||
```bash
|
||||
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
|
||||
adb shell am start -D ${WIVRN_PKG}/org.meumeu.wivrn.MainActivity
|
||||
```
|
||||
|
||||
Set up LLDB debugging:
|
||||
|
||||
1. Push the LLDB server to the device:
|
||||
|
||||
```bash
|
||||
adb shell "mkdir -p /data/local/tmp/tools"
|
||||
adb push "$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/*/lib/linux/aarch64/lldb-server" /data/local/tmp/tools/
|
||||
```
|
||||
|
||||
2. Start the LLDB server on the device:
|
||||
|
||||
```bash
|
||||
adb shell /data/local/tmp/tools/lldb-server platform --server --listen '*:5039'
|
||||
```
|
||||
|
||||
3. Forward the port:
|
||||
|
||||
```bash
|
||||
adb forward tcp:5039 tcp:5039
|
||||
```
|
||||
|
||||
4. Connect from your host:
|
||||
|
||||
```bash
|
||||
lldb
|
||||
(lldb) platform select remote-android
|
||||
(lldb) platform connect connect://localhost:5039
|
||||
```
|
||||
|
||||
Resume the app (required for `-D` flag):
|
||||
|
||||
```bash
|
||||
adb forward tcp:12345 jdwp:$(adb shell pidof ${WIVRN_PKG})
|
||||
jdb -attach localhost:12345
|
||||
```
|
||||
|
||||
See the [Android NDK debugging guide](https://developer.android.com/ndk/guides/ndk-gdb) for more details.
|
||||
Generated
+9
-9
@@ -5,11 +5,11 @@
|
||||
"nixpkgs-lib": "nixpkgs-lib"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1756770412,
|
||||
"narHash": "sha256-+uWLQZccFHwqpGqr2Yt5VsW/PbeJVTn9Dk6SHWhNRPw=",
|
||||
"lastModified": 1768135262,
|
||||
"narHash": "sha256-PVvu7OqHBGWN16zSi6tEmPwwHQ4rLPU9Plvs8/1TUBY=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "4524271976b625a4a605beefd893f270620fd751",
|
||||
"rev": "80daad04eddbbf5a4d883996a73f3f542fa437ac",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -20,11 +20,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1758690382,
|
||||
"narHash": "sha256-NY3kSorgqE5LMm1LqNwGne3ZLMF2/ILgLpFr1fS4X3o=",
|
||||
"lastModified": 1767892417,
|
||||
"narHash": "sha256-dhhvQY67aboBk8b0/u0XB6vwHdgbROZT3fJAjyNh5Ww=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e643668fd71b949c53f8626614b21ff71a07379d",
|
||||
"rev": "3497aa5c9457a9d88d71fa93a4a8368816fbeeba",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -36,11 +36,11 @@
|
||||
},
|
||||
"nixpkgs-lib": {
|
||||
"locked": {
|
||||
"lastModified": 1754788789,
|
||||
"narHash": "sha256-x2rJ+Ovzq0sCMpgfgGaaqgBSwY+LST+WbZ6TytnT9Rk=",
|
||||
"lastModified": 1765674936,
|
||||
"narHash": "sha256-k00uTP4JNfmejrCLJOwdObYC9jHRrr/5M/a/8L2EIdo=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"rev": "a73b9c743612e4244d865a2fdee11865283c04e6",
|
||||
"rev": "2075416fcb47225d9b68ac469a5c4801a9c4dd85",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -52,13 +52,13 @@
|
||||
monado = pkgs.applyPatches {
|
||||
inherit (oldAttrs.monado) patches postPatch;
|
||||
# Force a refetch when the monado rev changes.
|
||||
src = pkgs.invalidateFetcherByDrvHash pkgs.fetchFromGitLab {
|
||||
src = pkgs.testers.invalidateFetcherByDrvHash pkgs.fetchFromGitLab {
|
||||
inherit (oldAttrs.monado.src) owner repo;
|
||||
domain = "gitlab.freedesktop.org";
|
||||
# Keep in sync with CMakeLists.txt monado rev
|
||||
rev = builtins.readFile ./monado-rev;
|
||||
rev = lib.strings.trim (builtins.readFile ./monado-rev);
|
||||
# Nix will output the correct hash when it doesn't match
|
||||
hash = "sha256-wiXdMgp3bKW17KqLnSn6HHhz7xbQtjp4c3aU7qp+2BE=";
|
||||
hash = "sha256-zU8TLRzd4pb9KzVT/xana6rArcSu31wlCD54p7PJ9UY=";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -72,11 +72,19 @@ modules:
|
||||
sources:
|
||||
- type: git
|
||||
url: https://github.com/crosstool-ng/crosstool-ng.git
|
||||
tag: 70c2b00ad79a0a21a48e5a0eedc9f91c374af21d
|
||||
tag: 620b909cd0713f68084378b63cf61b5232757b90
|
||||
- type: shell
|
||||
commands:
|
||||
# Make the build lighter:
|
||||
# don't generate debug symbols at all
|
||||
- sed -i 's/-O2 -g/-O2/' scripts/crosstool-NG.sh
|
||||
- sed -i 's/-g -O2/-O2/' scripts/build/cc/gcc.sh
|
||||
# Delete extracted sources when no longer needed
|
||||
- sed -i '/# Cleanup/a rm -r "$(readlink "${kernel_path}")"' scripts/build/kernel/linux.sh
|
||||
# Delete tarballs once extracted
|
||||
- sed -i '2228i CT_DoExecLog FILE rm "$(readlink -f "${file}")"' scripts/functions
|
||||
# Delete big test files
|
||||
- sed -i '/CT_ExtractPatch GCC/a CT_Pushd "${CT_SRC_DIR}/gcc/gcc/testsuite/";CT_DoExecLog ALL rm -rf $(ls -1 | grep -v selftests);CT_Popd' scripts/build/cc/gcc.sh
|
||||
cleanup:
|
||||
- '*'
|
||||
|
||||
@@ -221,7 +229,7 @@ modules:
|
||||
sources:
|
||||
- type: git
|
||||
url: https://gitlab.com/libeigen/eigen.git
|
||||
tag: 3.4.0
|
||||
tag: 5.0.1
|
||||
cleanup:
|
||||
- '*'
|
||||
|
||||
@@ -248,23 +256,6 @@ modules:
|
||||
cleanup:
|
||||
- '*'
|
||||
|
||||
- name: libnotify
|
||||
buildsystem: meson
|
||||
config-opts:
|
||||
- -Dtests=false
|
||||
- -Dintrospection=disabled
|
||||
- -Dman=false
|
||||
- -Dgtk_doc=false
|
||||
- -Ddocbook_docs=disabled
|
||||
sources:
|
||||
- type: archive
|
||||
url: https://download.gnome.org/sources/libnotify/0.8/libnotify-0.8.7.tar.xz
|
||||
sha256: 4be15202ec4184fce1ac15997ece5530d2be32fe9573875aeb10e3b573858748
|
||||
x-checker-data:
|
||||
type: gnome
|
||||
name: libnotify
|
||||
stable-only: true
|
||||
|
||||
- name: qcoro
|
||||
buildsystem: cmake-ninja
|
||||
config-opts:
|
||||
@@ -328,7 +319,7 @@ modules:
|
||||
sources:
|
||||
- type: git
|
||||
url: https://github.com/Supreeeme/xrizer.git
|
||||
tag: 76e01ac8ad79fed226a883985daa3cbe61271ca7
|
||||
tag: 01ab72809f2bd5c6494fa77fb08e4229c886da7a
|
||||
- xrizer-gen-src.json
|
||||
|
||||
- name: wivrn-library
|
||||
@@ -405,9 +396,9 @@ modules:
|
||||
WIVRN_SRC2
|
||||
WIVRN_SRC3
|
||||
- type: archive
|
||||
url: BOOSTPFR_URL
|
||||
dest: deps/boostpfr-src
|
||||
sha256: BOOSTPFR_SHA256
|
||||
url: BOOST_URL
|
||||
dest: deps/boost-src
|
||||
sha256: BOOST_SHA256
|
||||
- type: git
|
||||
url: https://gitlab.freedesktop.org/monado/monado
|
||||
tag: MONADO_COMMIT
|
||||
@@ -415,4 +406,3 @@ modules:
|
||||
- type: shell
|
||||
commands:
|
||||
- cd deps/monado-src && ../../patches/apply.sh ../../patches/monado/*
|
||||
- cd deps/boostpfr-src && ../../patches/apply.sh ../../flatpak/boostpfr-gcc-12-internal-compiler-error.patch
|
||||
|
||||
+118
-48
@@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-12-13 11:28+0100\n"
|
||||
"POT-Creation-Date: 2026-01-07 09:11+0100\n"
|
||||
"PO-Revision-Date: 2025-11-19 20:20+0100\n"
|
||||
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
|
||||
"Language-Team: Spanish <>\n"
|
||||
@@ -69,10 +69,39 @@ msgstr "El comando 'adb install' falló: código de salida %1"
|
||||
msgid "Installation successful"
|
||||
msgstr "Instalación completada con éxito"
|
||||
|
||||
#: dashboard/main.cpp:27 dashboard/qml/Main.qml:12
|
||||
#: dashboard/main.cpp:26
|
||||
#, kde-format
|
||||
msgid "WiVRn dashboard"
|
||||
msgstr "Panel de control de WiVRn"
|
||||
msgctxt "@title"
|
||||
msgid "WiVRn"
|
||||
msgstr "WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:28
|
||||
#, kde-format
|
||||
msgid "WiVRn server"
|
||||
msgstr "Servidor WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:30
|
||||
#, kde-format
|
||||
msgid "(c) 2022-2026 WiVRn development team"
|
||||
msgstr "(c) 2022-2026 Equipo de desarrollo de WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:40
|
||||
#, kde-format
|
||||
msgid "Monado"
|
||||
msgstr "Monado"
|
||||
|
||||
#: dashboard/main.cpp:41
|
||||
#, kde-format
|
||||
msgid "OpenXR runtime"
|
||||
msgstr "Motor de OpenXR"
|
||||
|
||||
#: dashboard/qml/About.qml:17 dashboard/qml/ApkInstallPage.qml:65
|
||||
#: dashboard/qml/HeadsetsPage.qml:183 dashboard/qml/HeadsetStatsPage.qml:36
|
||||
#: dashboard/qml/TroubleshootPage.qml:71
|
||||
#, kde-format
|
||||
msgctxt "go back to the home page"
|
||||
msgid "Back"
|
||||
msgstr "Volver"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137
|
||||
#, kde-format
|
||||
@@ -90,8 +119,8 @@ msgstr "Comprobando la última versión..."
|
||||
msgid "No APK is available for this version"
|
||||
msgstr "No hay ningún APK disponible para esta versión"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:321
|
||||
#: dashboard/qml/Main.qml:386 dashboard/qml/WizardPage.qml:211
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:350
|
||||
#: dashboard/qml/Main.qml:408 dashboard/qml/WizardPage.qml:211
|
||||
#: dashboard/qml/WizardPage.qml:337
|
||||
#, kde-format
|
||||
msgid "ADB is not installed"
|
||||
@@ -114,13 +143,6 @@ msgstr ""
|
||||
"href=\"https://github.com/WiVRn/WiVRn/blob/master/docs/building.md#client-headset\">documentación</a> "
|
||||
"para compilar tu propio cliente."
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetsPage.qml:183
|
||||
#: dashboard/qml/HeadsetStatsPage.qml:36 dashboard/qml/TroubleshootPage.qml:71
|
||||
#, kde-format
|
||||
msgctxt "go back to the home page"
|
||||
msgid "Back"
|
||||
msgstr "Volver"
|
||||
|
||||
#: dashboard/qml/ConnectUsbDialog.qml:11
|
||||
#, kde-format
|
||||
msgid "Select your headset"
|
||||
@@ -141,7 +163,7 @@ msgstr "Reinstalar WiVRn"
|
||||
msgid "Install WiVRn"
|
||||
msgstr "Instalar WiVRn"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:391
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:413
|
||||
#, kde-format
|
||||
msgid "Headsets"
|
||||
msgstr "Visores"
|
||||
@@ -238,28 +260,33 @@ msgstr "Emparejar un nuevo visor"
|
||||
msgid "Headset statistics"
|
||||
msgstr "Estadísticas del visor"
|
||||
|
||||
#: dashboard/qml/Main.qml:120
|
||||
#: dashboard/qml/Main.qml:12
|
||||
#, kde-format
|
||||
msgid "WiVRn dashboard"
|
||||
msgstr "Panel de control de WiVRn"
|
||||
|
||||
#: dashboard/qml/Main.qml:124
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not installed"
|
||||
msgstr "El servicio Avahi no está instalado"
|
||||
|
||||
#: dashboard/qml/Main.qml:128
|
||||
#: dashboard/qml/Main.qml:132
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not started"
|
||||
msgstr "El servicio Avahi no está iniciado"
|
||||
|
||||
#: dashboard/qml/Main.qml:135 dashboard/qml/Main.qml:149
|
||||
#: dashboard/qml/Main.qml:201
|
||||
#: dashboard/qml/Main.qml:139 dashboard/qml/Main.qml:153
|
||||
#: dashboard/qml/Main.qml:205
|
||||
#, kde-format
|
||||
msgid "Fix it"
|
||||
msgstr "Arreglarlo"
|
||||
|
||||
#: dashboard/qml/Main.qml:143
|
||||
#: dashboard/qml/Main.qml:147
|
||||
#, kde-format
|
||||
msgid "Firewall may not allow port 9757"
|
||||
msgstr "El firewall podría no permitir el puerto 9757"
|
||||
|
||||
#: dashboard/qml/Main.qml:157
|
||||
#: dashboard/qml/Main.qml:161
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
|
||||
@@ -267,12 +294,12 @@ msgstr ""
|
||||
"Las GPU NVIDIA requieren al menos la versión 565.77 del controlador, la "
|
||||
"versión actual es %1"
|
||||
|
||||
#: dashboard/qml/Main.qml:163
|
||||
#: dashboard/qml/Main.qml:167
|
||||
#, kde-format
|
||||
msgid "More info"
|
||||
msgstr "Más información"
|
||||
|
||||
#: dashboard/qml/Main.qml:171
|
||||
#: dashboard/qml/Main.qml:175
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Use the Mesa (radv) driver for AMD GPUs\n"
|
||||
@@ -281,7 +308,7 @@ msgstr ""
|
||||
"Usa el controlador Mesa (radv) para las GPU AMD\n"
|
||||
"La codificación por hardware con vaapi no funciona con AMDVLK y AMDGPU-PRO"
|
||||
|
||||
#: dashboard/qml/Main.qml:179
|
||||
#: dashboard/qml/Main.qml:183
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
|
||||
@@ -291,97 +318,131 @@ msgstr ""
|
||||
"en VR.\n"
|
||||
"Instala xrizer o OpenComposite."
|
||||
|
||||
#: dashboard/qml/Main.qml:187
|
||||
#: dashboard/qml/Main.qml:191
|
||||
#, kde-format
|
||||
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
|
||||
msgstr ""
|
||||
"Steam está instalado mediante snap. Los Snaps no son compatibles con WiVRn."
|
||||
|
||||
#: dashboard/qml/Main.qml:195
|
||||
#: dashboard/qml/Main.qml:199
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Steam is installed as a flatpak but does not have sufficient permissions."
|
||||
msgstr ""
|
||||
"Steam está instalado con flatpak, pero no tiene los suficientes permisos."
|
||||
|
||||
#: dashboard/qml/Main.qml:210
|
||||
#: dashboard/qml/Main.qml:214
|
||||
#, kde-format
|
||||
msgid "Restart the server for configuration changes to take effect"
|
||||
msgstr "Reinicia el servidor para que los cambios surtan efecto"
|
||||
|
||||
#: dashboard/qml/Main.qml:216
|
||||
#: dashboard/qml/Main.qml:220
|
||||
#, kde-format
|
||||
msgctxt "restart the server"
|
||||
msgid "Restart now"
|
||||
msgstr "Reiniciar ahora"
|
||||
|
||||
#: dashboard/qml/Main.qml:241
|
||||
#: dashboard/qml/Main.qml:245
|
||||
#, kde-format
|
||||
msgid "Server failed to start"
|
||||
msgstr "El servidor no pudo iniciar"
|
||||
|
||||
#: dashboard/qml/Main.qml:247 dashboard/qml/TroubleshootPage.qml:89
|
||||
#: dashboard/qml/Main.qml:251 dashboard/qml/TroubleshootPage.qml:89
|
||||
#, kde-format
|
||||
msgid "Open server logs"
|
||||
msgstr "Abrir registros del servidor"
|
||||
|
||||
#: dashboard/qml/Main.qml:276
|
||||
#: dashboard/qml/Main.qml:277
|
||||
#, kde-format
|
||||
msgid "Server status"
|
||||
msgstr "Estado del servidor"
|
||||
|
||||
#: dashboard/qml/Main.qml:283
|
||||
#, kde-format
|
||||
msgctxt "whether the server is running, displayed in front of a checkbox"
|
||||
msgid "Running"
|
||||
msgstr "En ejecución"
|
||||
|
||||
#: dashboard/qml/Main.qml:291
|
||||
#: dashboard/qml/Main.qml:296
|
||||
#, kde-format
|
||||
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
|
||||
msgid "Pairing"
|
||||
msgstr "Emparejando"
|
||||
|
||||
#: dashboard/qml/Main.qml:304
|
||||
#: dashboard/qml/Main.qml:316
|
||||
#, kde-format
|
||||
msgid "PIN: %1"
|
||||
msgstr "PIN: %1"
|
||||
msgid "Headset status"
|
||||
msgstr "Estado del visor"
|
||||
|
||||
#: dashboard/qml/Main.qml:312 dashboard/qml/WizardPage.qml:329
|
||||
#: dashboard/qml/Main.qml:323
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "Conectar por USB"
|
||||
msgctxt "label for headset name/status under server running switch"
|
||||
msgid "Headset"
|
||||
msgstr "Visor"
|
||||
|
||||
#: dashboard/qml/Main.qml:323 dashboard/qml/WizardPage.qml:339
|
||||
#: dashboard/qml/Main.qml:326
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr "No hay ningún visor conectado o tu visor no está en modo desarrollador"
|
||||
msgid "Not connected"
|
||||
msgstr "No conectado"
|
||||
|
||||
#: dashboard/qml/Main.qml:331
|
||||
#: dashboard/qml/Main.qml:330
|
||||
#, kde-format
|
||||
msgid "Disconnect"
|
||||
msgstr "Desconectar"
|
||||
|
||||
#: dashboard/qml/Main.qml:349
|
||||
#: dashboard/qml/Main.qml:339 dashboard/qml/Main.qml:347
|
||||
#: dashboard/qml/Main.qml:354
|
||||
#, kde-format
|
||||
msgctxt "label for USB status or connect button"
|
||||
msgid "USB"
|
||||
msgstr "USB"
|
||||
|
||||
#: dashboard/qml/Main.qml:340
|
||||
#, kde-format
|
||||
msgctxt "usb connect button"
|
||||
msgid "Connect (wired)"
|
||||
msgstr "Conectar (cableado)"
|
||||
|
||||
#: dashboard/qml/Main.qml:357 dashboard/qml/WizardPage.qml:339
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr "No hay ningún visor conectado o tu visor no está en modo desarrollador"
|
||||
|
||||
#: dashboard/qml/Main.qml:378
|
||||
#, kde-format
|
||||
msgid "Steam information"
|
||||
msgstr "Información de Steam"
|
||||
|
||||
#: dashboard/qml/Main.qml:370
|
||||
#: dashboard/qml/Main.qml:394
|
||||
#, kde-format
|
||||
msgid "Wizard"
|
||||
msgstr "Asistente"
|
||||
|
||||
#: dashboard/qml/Main.qml:377
|
||||
#: dashboard/qml/Main.qml:400
|
||||
#, kde-format
|
||||
msgid "Install the app"
|
||||
msgstr "Instalar aplicación"
|
||||
|
||||
#: dashboard/qml/Main.qml:398 dashboard/qml/SettingsPage.qml:14
|
||||
#: dashboard/qml/Main.qml:419 dashboard/qml/SettingsPage.qml:14
|
||||
#, kde-format
|
||||
msgid "Settings"
|
||||
msgstr "Ajustes"
|
||||
|
||||
#: dashboard/qml/Main.qml:405 dashboard/qml/TroubleshootPage.qml:10
|
||||
#: dashboard/qml/Main.qml:425
|
||||
#, kde-format
|
||||
msgid "About"
|
||||
msgstr "Acerca de"
|
||||
|
||||
#: dashboard/qml/Main.qml:430 dashboard/qml/TroubleshootPage.qml:10
|
||||
#, kde-format
|
||||
msgid "Troubleshoot"
|
||||
msgstr "Solucionar problemas"
|
||||
|
||||
#: dashboard/qml/Main.qml:437
|
||||
#, kde-format
|
||||
msgid "Version %1"
|
||||
msgstr "Versión %1"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:14
|
||||
#, kde-format
|
||||
msgctxt "don't start an application automatically"
|
||||
@@ -832,6 +893,11 @@ msgstr ""
|
||||
msgid "To connect over USB, click on \"Connect by USB\"."
|
||||
msgstr "Para conectarte por USB, haz clic en \"Conectar por USB\"."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:329
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "Conectar por USB"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:349
|
||||
#, kde-format
|
||||
msgid "Troubleshooting"
|
||||
@@ -880,16 +946,20 @@ msgstr "Finalizar"
|
||||
msgid "Finished"
|
||||
msgstr "Terminado"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:533
|
||||
#: dashboard/wivrn_server.cpp:538
|
||||
#, kde-format
|
||||
msgid "xrizer"
|
||||
msgstr "xrizer"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:534
|
||||
#: dashboard/wivrn_server.cpp:539
|
||||
#, kde-format
|
||||
msgid "Open Composite"
|
||||
msgstr "Open Composite"
|
||||
|
||||
#, kde-format
|
||||
#~ msgid "PIN: %1"
|
||||
#~ msgstr "PIN: %1"
|
||||
|
||||
#, kde-format
|
||||
#~ msgctxt "automatically started application"
|
||||
#~ msgid "Application"
|
||||
|
||||
+128
-99
@@ -5,7 +5,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn 0.15\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-12-13 17:16+0100\n"
|
||||
"POT-Creation-Date: 2025-12-29 15:56+0100\n"
|
||||
"PO-Revision-Date: 2025-11-19 20:23+0100\n"
|
||||
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
|
||||
"Language-Team: Spanish <>\n"
|
||||
@@ -70,11 +70,11 @@ msgstr "No se puede conectar a {} ({}): {}"
|
||||
msgid "Waiting for connection"
|
||||
msgstr "Esperando conexión"
|
||||
|
||||
#: client/scenes/lobby.cpp:1310
|
||||
#: client/scenes/lobby.cpp:1319
|
||||
msgid "Passthrough"
|
||||
msgstr "Exterior"
|
||||
|
||||
#: client/scenes/lobby.cpp:1322
|
||||
#: client/scenes/lobby.cpp:1331
|
||||
msgid "Default environment"
|
||||
msgstr "Entorno por defecto"
|
||||
|
||||
@@ -98,9 +98,9 @@ msgstr "Deshabilitado"
|
||||
msgid "Disconnect"
|
||||
msgstr "Desconectar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:749
|
||||
#: client/scenes/lobby_gui_customize.cpp:840
|
||||
#: client/scenes/lobby_gui_customize.cpp:896 client/scenes/stream_gui.cpp:1011
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
|
||||
#: client/scenes/lobby_gui_customize.cpp:844
|
||||
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011
|
||||
msgid "Close"
|
||||
msgstr "Cerrar"
|
||||
|
||||
@@ -137,7 +137,7 @@ msgstr "Puerto"
|
||||
msgid "TCP only"
|
||||
msgstr "Solo TCP"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:651
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
|
||||
#: client/scenes/stream_gui.cpp:968
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
@@ -183,17 +183,17 @@ msgstr "Idioma"
|
||||
msgid "System language"
|
||||
msgstr "Idioma del sistema"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:579 client/scenes/stream_gui.cpp:417
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417
|
||||
msgid "Refresh rate"
|
||||
msgstr "Frecuencia de actualización"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:579 client/scenes/lobby_gui.cpp:581
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
|
||||
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automática"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:588 client/scenes/stream_gui.cpp:427
|
||||
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -202,121 +202,137 @@ msgstr ""
|
||||
"aplicación.\n"
|
||||
"Puede causar parpadeos cuando ocurre un cambio."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:605 client/scenes/stream_gui.cpp:445
|
||||
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Tasa mínima de refresco"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:631
|
||||
#: client/scenes/lobby_gui.cpp:632
|
||||
msgid "Foveation level"
|
||||
msgstr "Nivel de fóvea"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:654
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
msgid "Render resolution"
|
||||
msgstr "Resolución de renderizado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:658
|
||||
#: client/scenes/lobby_gui.cpp:659
|
||||
#, c-format, c++-format
|
||||
msgid "{}%% - {}x{} per eye"
|
||||
msgstr "{}%% - {}x{} por ojo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:669
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
#, c++-format
|
||||
msgid "Resolution larger than {}x{} may not be supported by the headset"
|
||||
msgstr "La resolución mayor que {}x{} podría no ser compatible con el visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:679
|
||||
msgid "Stream resolution"
|
||||
msgstr "Resolución de la retransmisión"
|
||||
#: client/scenes/lobby_gui.cpp:680
|
||||
msgid "Foveated encoding"
|
||||
msgstr "Codificación foveada"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:683
|
||||
#: client/scenes/lobby_gui.cpp:684
|
||||
#, c-format, c++-format
|
||||
msgid "{}%%"
|
||||
msgstr "{}%%"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:697
|
||||
msgid ""
|
||||
"Higher values focus image quality where you look at,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
msgstr ""
|
||||
"Un mayor valor hará que la calidad de la imagen se centre a donde tú mires\n"
|
||||
"mejorando la latencia, eficiencia energética y calidad."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:700
|
||||
msgid ""
|
||||
"Higher values focus image quality at the center,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
msgstr ""
|
||||
"Un mayor valor hará que la calidad de la imagen se centre en el centro\n"
|
||||
"mejorando la latencia, eficiencia energética y calidad."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:709
|
||||
msgctxt "Codec"
|
||||
msgid "Automatic"
|
||||
msgstr "Automático"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:701
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
msgctxt "Codec"
|
||||
msgid "H.264"
|
||||
msgstr "H.264"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:703
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
msgctxt "Codec"
|
||||
msgid "H.265"
|
||||
msgstr "H.265"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:705
|
||||
#: client/scenes/lobby_gui.cpp:717
|
||||
msgctxt "Codec"
|
||||
msgid "AV1"
|
||||
msgstr "AV1"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
#: client/scenes/lobby_gui.cpp:725
|
||||
msgid "Codec"
|
||||
msgstr "Codec"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:741
|
||||
#: client/scenes/lobby_gui.cpp:753
|
||||
msgid "10-bit"
|
||||
msgstr "10-bit"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:756
|
||||
#: client/scenes/lobby_gui.cpp:768
|
||||
msgid "Bitrate"
|
||||
msgstr "Bitrate"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:760
|
||||
#: client/scenes/lobby_gui.cpp:772
|
||||
#, c++-format
|
||||
msgid "{}Mbit/s"
|
||||
msgstr "{}Mbit/s"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:771
|
||||
#: client/scenes/lobby_gui.cpp:783
|
||||
msgid "High power mode"
|
||||
msgstr "Modo de alto rendimiento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:774
|
||||
#: client/scenes/lobby_gui.cpp:786
|
||||
msgid "Increase power usage to allow higher resolution and refresh rate"
|
||||
msgstr ""
|
||||
"Incrementa el uso de energía para permitir una mayor resolución y frecuencia "
|
||||
"de refresco"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:780
|
||||
#: client/scenes/lobby_gui.cpp:792
|
||||
msgid "Enable microphone"
|
||||
msgstr "Activar micrófono"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:789
|
||||
#: client/scenes/lobby_gui.cpp:801
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Entrada de audio sin procesar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:795
|
||||
#: client/scenes/lobby_gui.cpp:807
|
||||
msgid "Force disable audio filters, such as noise cancellation"
|
||||
msgstr ""
|
||||
"Forzar la deshabilitación de filtros de audio, asi como la cancelación de "
|
||||
"ruido"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:802
|
||||
#: client/scenes/lobby_gui.cpp:814
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Activar seguimiento de manos"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:808 client/scenes/lobby_gui.cpp:820
|
||||
#: client/scenes/lobby_gui.cpp:832 client/scenes/lobby_gui.cpp:849
|
||||
#: client/scenes/lobby_gui_customize.cpp:636
|
||||
#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831
|
||||
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856
|
||||
#: client/scenes/lobby_gui_customize.cpp:640
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "Esta función no es compatible con tu visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:814
|
||||
#: client/scenes/lobby_gui.cpp:825
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Activar seguimiento ocular"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:826
|
||||
#: client/scenes/lobby_gui.cpp:836
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Activar seguimiento facial"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:840
|
||||
#: client/scenes/lobby_gui.cpp:848
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Habilitar seguimiento corporal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:854
|
||||
#: client/scenes/lobby_gui.cpp:861
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -327,11 +343,11 @@ msgstr ""
|
||||
"si no el seguimiento corporal será medido por la posición de los controles y "
|
||||
"el visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:864
|
||||
#: client/scenes/lobby_gui.cpp:871
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Habilitar seguimiento de cintura para abajo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:870
|
||||
#: client/scenes/lobby_gui.cpp:877
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -342,11 +358,11 @@ msgstr ""
|
||||
"Requiere habilitar 'Seguimiento de manos y del cuerpo' en los ajustes de "
|
||||
"movimiento de Quest"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:873
|
||||
#: client/scenes/lobby_gui.cpp:880
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Habilitar seguimiento de cintura"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:879
|
||||
#: client/scenes/lobby_gui.cpp:886
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -354,11 +370,11 @@ msgstr ""
|
||||
"Solo es funcional si tiene habilitado el seguimiento de cintura para abajo.\n"
|
||||
"Puede ser necesario si está usando otro metodo para seguir la cintura"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:887
|
||||
#: client/scenes/lobby_gui.cpp:895
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Habilitar ventana mientras se juega"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:890
|
||||
#: client/scenes/lobby_gui.cpp:898
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -366,15 +382,25 @@ msgstr ""
|
||||
"Permite que la ventana de configuración se muestre mientras se juega.\n"
|
||||
"Si se habilita, la ventana se activará al presionar ambos joysticks."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:904 client/scenes/stream_gui.cpp:479
|
||||
#: client/scenes/lobby_gui.cpp:902
|
||||
msgid "Extended configuration values"
|
||||
msgstr "Extender valores de configuración"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:905
|
||||
msgid "Allows unsafe configuration values, use at your own risk."
|
||||
msgstr ""
|
||||
"Permitir valores de configuración inseguros, usar bajo propia "
|
||||
"responsabilidad."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Post-procesamiento de OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:908 client/scenes/stream_gui.cpp:483
|
||||
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483
|
||||
msgid "Supersampling"
|
||||
msgstr "Sobremuestreo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:928 client/scenes/stream_gui.cpp:504
|
||||
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -383,11 +409,11 @@ msgstr ""
|
||||
"Útil cuando la resolución de entrada es alta comparada con la pantalla del "
|
||||
"visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:933 client/scenes/stream_gui.cpp:509
|
||||
#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:509
|
||||
msgid "Sharpening"
|
||||
msgstr "Nitidez"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:953 client/scenes/stream_gui.cpp:530
|
||||
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -396,129 +422,129 @@ msgstr ""
|
||||
"Útil cuando la resolución de entrada es baja comparada con la pantalla del "
|
||||
"visor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1137 client/scenes/lobby_gui.cpp:1145
|
||||
#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160
|
||||
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373
|
||||
msgid "CPU time"
|
||||
msgstr "Tiempo de CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1141
|
||||
#: client/scenes/lobby_gui.cpp:1156
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Tiempo de CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1151 client/scenes/lobby_gui.cpp:1159
|
||||
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
|
||||
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374
|
||||
msgid "GPU time"
|
||||
msgstr "Tiempo de GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1155
|
||||
#: client/scenes/lobby_gui.cpp:1170
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Tiempo de GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1219
|
||||
#: client/scenes/lobby_gui.cpp:1234
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "¿Habilitar micrófono?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1224
|
||||
#: client/scenes/lobby_gui.cpp:1239
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "¿Habilitar seguimiento ocular?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1229
|
||||
#: client/scenes/lobby_gui.cpp:1244
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "¿Habilitar seguimiento facial?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1234
|
||||
#: client/scenes/lobby_gui.cpp:1249
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "¿Habilitar seguimiento corporal?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1242
|
||||
#: client/scenes/lobby_gui.cpp:1257
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Bienvenido a WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1270
|
||||
#: client/scenes/lobby_gui.cpp:1285
|
||||
msgid "Yes"
|
||||
msgstr "Sí"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1277
|
||||
#: client/scenes/lobby_gui.cpp:1292
|
||||
msgid "No"
|
||||
msgstr "No"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1296 client/scenes/lobby_gui.cpp:1942
|
||||
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
|
||||
msgid "Licenses"
|
||||
msgstr "Licencias"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1572
|
||||
#: client/scenes/lobby_gui.cpp:1587
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Micrófono activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1573
|
||||
#: client/scenes/lobby_gui.cpp:1588
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Micrófono desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1582
|
||||
#: client/scenes/lobby_gui.cpp:1597
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "Seguimiento de manos activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1583
|
||||
#: client/scenes/lobby_gui.cpp:1598
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "Seguimiento de manos desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1592
|
||||
#: client/scenes/lobby_gui.cpp:1607
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Seguimiento ocular activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1593
|
||||
#: client/scenes/lobby_gui.cpp:1608
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Seguimiento ocular desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1603
|
||||
#: client/scenes/lobby_gui.cpp:1618
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Seguimiento facial activado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1604
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Seguimiento facial desactivado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1618
|
||||
#: client/scenes/lobby_gui.cpp:1633
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Seguimiento corporal está habilitado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
#: client/scenes/lobby_gui.cpp:1634
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Seguimiento corporal está deshabilitado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1635
|
||||
#: client/scenes/lobby_gui.cpp:1650
|
||||
msgid "Add server"
|
||||
msgstr "Agregar servidor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1921
|
||||
#: client/scenes/lobby_gui.cpp:1936
|
||||
msgid "Server list"
|
||||
msgstr "Lista de servidores"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1924 client/scenes/stream_gui.cpp:996
|
||||
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996
|
||||
msgid "Settings"
|
||||
msgstr "Configuración"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1927
|
||||
#: client/scenes/lobby_gui.cpp:1942
|
||||
msgid "Post-processing"
|
||||
msgstr "Post-procesamiento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1930
|
||||
#: client/scenes/lobby_gui.cpp:1945
|
||||
msgid "Customize"
|
||||
msgstr "Personalización"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1934
|
||||
#: client/scenes/lobby_gui.cpp:1949
|
||||
msgid "Debug"
|
||||
msgstr "Depuración"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1939
|
||||
#: client/scenes/lobby_gui.cpp:1954
|
||||
msgid "About"
|
||||
msgstr "Acerca de"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1945
|
||||
#: client/scenes/lobby_gui.cpp:1960
|
||||
msgid "Exit"
|
||||
msgstr "Salir"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1962
|
||||
#: client/scenes/lobby_gui.cpp:1977
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -526,51 +552,51 @@ msgstr ""
|
||||
"Pulsa el botón de agarre o pon tu palma hacia arriba\n"
|
||||
"para mover la ventana principal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1964
|
||||
#: client/scenes/lobby_gui.cpp:1979
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "Pulsa el botón de agarre para mover la ventana principal"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:208
|
||||
#: client/scenes/lobby_gui_customize.cpp:213
|
||||
msgid "Locally loaded environment"
|
||||
msgstr "Entorno local cargado"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:221
|
||||
#: client/scenes/lobby_gui_customize.cpp:226
|
||||
#, c++-format
|
||||
msgid "Locally loaded environment ({})"
|
||||
msgstr "Entorno local ({}) cargado"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:296
|
||||
#: client/scenes/lobby_gui_customize.cpp:300
|
||||
#, c++-format
|
||||
msgid "Cannot load local environment: {}"
|
||||
msgstr "No se ha podido cargar el entorno local: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:329
|
||||
#: client/scenes/lobby_gui_customize.cpp:333
|
||||
#, c++-format
|
||||
msgid "Cannot load environment list: {}"
|
||||
msgstr "No se ha podido cargar la lista del entorno: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:459
|
||||
#: client/scenes/lobby_gui_customize.cpp:463
|
||||
#, c++-format
|
||||
msgid "Author: {}"
|
||||
msgstr "Autor: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:463
|
||||
#: client/scenes/lobby_gui_customize.cpp:467
|
||||
#, c++-format
|
||||
msgid "Size: {:.1f} MB"
|
||||
msgstr "Tamaño: {:.1f} MB"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:543
|
||||
#: client/scenes/lobby_gui_customize.cpp:547
|
||||
msgid "Delete this model"
|
||||
msgstr "Borrar este modelo"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:579
|
||||
#: client/scenes/lobby_gui_customize.cpp:785
|
||||
#: client/scenes/lobby_gui_customize.cpp:583
|
||||
#: client/scenes/lobby_gui_customize.cpp:789
|
||||
#, c++-format
|
||||
msgid "HTTP error {} when downloading {}"
|
||||
msgstr "Error HTTP {} mientras se descargaba {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:587
|
||||
#: client/scenes/lobby_gui_customize.cpp:793
|
||||
#: client/scenes/lobby_gui_customize.cpp:591
|
||||
#: client/scenes/lobby_gui_customize.cpp:797
|
||||
#, c++-format
|
||||
msgid ""
|
||||
"Curl error when downloading {}\n"
|
||||
@@ -579,29 +605,29 @@ msgstr ""
|
||||
"Error de Curl mientras se descargaba {}\n"
|
||||
"{}: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:648
|
||||
#: client/scenes/lobby_gui_customize.cpp:652
|
||||
#, c++-format
|
||||
msgid "Really delete {}?"
|
||||
msgstr "Seguro que quiere borrar {}?"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:652
|
||||
#: client/scenes/lobby_gui_customize.cpp:656
|
||||
msgid "Delete"
|
||||
msgstr "Borrar"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:733
|
||||
#: client/scenes/lobby_gui_customize.cpp:737
|
||||
#, c++-format
|
||||
msgid "Cannot load environment: {}"
|
||||
msgstr "No se puede cargar el entorno: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:741
|
||||
#: client/scenes/lobby_gui_customize.cpp:745
|
||||
msgid "Loading environment"
|
||||
msgstr "Cargando entorno"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:820
|
||||
#: client/scenes/lobby_gui_customize.cpp:824
|
||||
msgid "Download more environments"
|
||||
msgstr "Descargar más entornos"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:828
|
||||
#: client/scenes/lobby_gui_customize.cpp:832
|
||||
msgid "Open local glTF model"
|
||||
msgstr "Abrir modelo glTF local"
|
||||
|
||||
@@ -778,6 +804,9 @@ msgstr "No se puede verificar el PIN"
|
||||
msgid "Pairing is disabled on server"
|
||||
msgstr "El emparejamiento está deshabilitado en el servidor"
|
||||
|
||||
#~ msgid "Stream resolution"
|
||||
#~ msgstr "Resolución de la retransmisión"
|
||||
|
||||
#~ msgid "Resolution scale"
|
||||
#~ msgstr "Escala de resolución"
|
||||
|
||||
|
||||
+118
-48
@@ -1,13 +1,13 @@
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
# Guillaume Meunier <guillaume.meunier@centraliens.net>, 2025.
|
||||
# Guillaume Meunier <guillaume.meunier@centraliens.net>, 2025-2026.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-12-13 10:21+0100\n"
|
||||
"PO-Revision-Date: 2025-12-13 10:28+0100\n"
|
||||
"POT-Creation-Date: 2026-01-06 17:50+0100\n"
|
||||
"PO-Revision-Date: 2026-01-06 17:52+0100\n"
|
||||
"Last-Translator: Guillaume Meunier <guillaume.meunier@centraliens.net>\n"
|
||||
"Language-Team: French <>\n"
|
||||
"Language: French\n"
|
||||
@@ -67,11 +67,45 @@ msgstr "La commande « adb install » a échoué : code de retour %1"
|
||||
msgid "Installation successful"
|
||||
msgstr "Installation réussie"
|
||||
|
||||
#: dashboard/main.cpp:27 dashboard/qml/Main.qml:12
|
||||
#: dashboard/main.cpp:28 dashboard/qml/Main.qml:12
|
||||
#, kde-format
|
||||
msgid "WiVRn dashboard"
|
||||
msgstr "Tableau de bord de WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:32
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "WiVRn"
|
||||
msgstr "WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:34
|
||||
#, kde-format
|
||||
msgid "WiVRn server"
|
||||
msgstr "Serveur WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:36
|
||||
#, kde-format
|
||||
msgid "(c) 2022-2026 WiVRn development team"
|
||||
msgstr "(c) 2022-2026 l'équipe de développement WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:43
|
||||
#, kde-format
|
||||
msgid "Monado"
|
||||
msgstr "Monado"
|
||||
|
||||
#: dashboard/main.cpp:44
|
||||
#, kde-format
|
||||
msgid "OpenXR runtime"
|
||||
msgstr "Runtime OpenXR"
|
||||
|
||||
#: dashboard/qml/About.qml:17 dashboard/qml/ApkInstallPage.qml:65
|
||||
#: dashboard/qml/HeadsetsPage.qml:183 dashboard/qml/HeadsetStatsPage.qml:36
|
||||
#: dashboard/qml/TroubleshootPage.qml:71
|
||||
#, kde-format
|
||||
msgctxt "go back to the home page"
|
||||
msgid "Back"
|
||||
msgstr "Retour"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137
|
||||
#, kde-format
|
||||
msgid "Install the WiVRn app on your headset"
|
||||
@@ -88,8 +122,8 @@ msgstr "Vérification de la dernière version..."
|
||||
msgid "No APK is available for this version"
|
||||
msgstr "Aucun APK n'est disponible pour cette version"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:321
|
||||
#: dashboard/qml/Main.qml:386 dashboard/qml/WizardPage.qml:211
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:350
|
||||
#: dashboard/qml/Main.qml:408 dashboard/qml/WizardPage.qml:211
|
||||
#: dashboard/qml/WizardPage.qml:337
|
||||
#, kde-format
|
||||
msgid "ADB is not installed"
|
||||
@@ -111,13 +145,6 @@ msgstr ""
|
||||
"blob/master/docs/building.md#client-headset\">documentation</a> pour "
|
||||
"construire votre propre client."
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetsPage.qml:183
|
||||
#: dashboard/qml/HeadsetStatsPage.qml:36 dashboard/qml/TroubleshootPage.qml:71
|
||||
#, kde-format
|
||||
msgctxt "go back to the home page"
|
||||
msgid "Back"
|
||||
msgstr "Retour"
|
||||
|
||||
#: dashboard/qml/ConnectUsbDialog.qml:11
|
||||
#, kde-format
|
||||
msgid "Select your headset"
|
||||
@@ -138,7 +165,7 @@ msgstr "Réinstaller WiVRn"
|
||||
msgid "Install WiVRn"
|
||||
msgstr "Installer WiVRn"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:391
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:413
|
||||
#, kde-format
|
||||
msgid "Headsets"
|
||||
msgstr "Casques"
|
||||
@@ -235,28 +262,28 @@ msgstr "Appairer un nouveau casque"
|
||||
msgid "Headset statistics"
|
||||
msgstr "Statistiques"
|
||||
|
||||
#: dashboard/qml/Main.qml:120
|
||||
#: dashboard/qml/Main.qml:124
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not installed"
|
||||
msgstr "Avahi daemon n'est pas installé"
|
||||
|
||||
#: dashboard/qml/Main.qml:128
|
||||
#: dashboard/qml/Main.qml:132
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not started"
|
||||
msgstr "Avahi daemon n'est pas démarré"
|
||||
|
||||
#: dashboard/qml/Main.qml:135 dashboard/qml/Main.qml:149
|
||||
#: dashboard/qml/Main.qml:201
|
||||
#: dashboard/qml/Main.qml:139 dashboard/qml/Main.qml:153
|
||||
#: dashboard/qml/Main.qml:205
|
||||
#, kde-format
|
||||
msgid "Fix it"
|
||||
msgstr "Corriger"
|
||||
|
||||
#: dashboard/qml/Main.qml:143
|
||||
#: dashboard/qml/Main.qml:147
|
||||
#, kde-format
|
||||
msgid "Firewall may not allow port 9757"
|
||||
msgstr "Le pare-feu pourrait ne pas autoriser le port 9757"
|
||||
|
||||
#: dashboard/qml/Main.qml:157
|
||||
#: dashboard/qml/Main.qml:161
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
|
||||
@@ -264,12 +291,12 @@ msgstr ""
|
||||
"Les GPUs NVIDIA nécessitent au moins le driver 565.77, la version actuelle "
|
||||
"est %1."
|
||||
|
||||
#: dashboard/qml/Main.qml:163
|
||||
#: dashboard/qml/Main.qml:167
|
||||
#, kde-format
|
||||
msgid "More info"
|
||||
msgstr "Plus d'infos"
|
||||
|
||||
#: dashboard/qml/Main.qml:171
|
||||
#: dashboard/qml/Main.qml:175
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Use the Mesa (radv) driver for AMD GPUs\n"
|
||||
@@ -278,7 +305,7 @@ msgstr ""
|
||||
"Utilisez le driver Mesa (redv) pour les GPUs AMD\n"
|
||||
"L'encodage matériel avec vaapi ne fonctionne pas avec AMDVLK et AMDGPU-PRO"
|
||||
|
||||
#: dashboard/qml/Main.qml:179
|
||||
#: dashboard/qml/Main.qml:183
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
|
||||
@@ -288,14 +315,14 @@ msgstr ""
|
||||
"pourront pas charger le mode VR.\n"
|
||||
"Veuillez installer xrizer ou OpenComposite."
|
||||
|
||||
#: dashboard/qml/Main.qml:187
|
||||
#: dashboard/qml/Main.qml:191
|
||||
#, kde-format
|
||||
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
|
||||
msgstr ""
|
||||
"Steam est installé en tant que snap. Les snaps ne sont pas compatibles avec "
|
||||
"WiVRn."
|
||||
|
||||
#: dashboard/qml/Main.qml:195
|
||||
#: dashboard/qml/Main.qml:199
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Steam is installed as a flatpak but does not have sufficient permissions."
|
||||
@@ -303,84 +330,118 @@ msgstr ""
|
||||
"Steam est installé en tant que flatpak mais n'a pas les autorisations "
|
||||
"nécessaires."
|
||||
|
||||
#: dashboard/qml/Main.qml:210
|
||||
#: dashboard/qml/Main.qml:214
|
||||
#, kde-format
|
||||
msgid "Restart the server for configuration changes to take effect"
|
||||
msgstr "Redémarez le serveur pour appliquer les changements"
|
||||
|
||||
#: dashboard/qml/Main.qml:216
|
||||
#: dashboard/qml/Main.qml:220
|
||||
#, kde-format
|
||||
msgctxt "restart the server"
|
||||
msgid "Restart now"
|
||||
msgstr "Redémarrer"
|
||||
|
||||
#: dashboard/qml/Main.qml:241
|
||||
#: dashboard/qml/Main.qml:245
|
||||
#, kde-format
|
||||
msgid "Server failed to start"
|
||||
msgstr "Le serveur n'a pas pu démarrer"
|
||||
|
||||
#: dashboard/qml/Main.qml:247 dashboard/qml/TroubleshootPage.qml:89
|
||||
#: dashboard/qml/Main.qml:251 dashboard/qml/TroubleshootPage.qml:89
|
||||
#, kde-format
|
||||
msgid "Open server logs"
|
||||
msgstr "Ouvrir les logs du serveur"
|
||||
|
||||
#: dashboard/qml/Main.qml:276
|
||||
#: dashboard/qml/Main.qml:277
|
||||
#, kde-format
|
||||
msgid "Server status"
|
||||
msgstr "Serveur"
|
||||
|
||||
#: dashboard/qml/Main.qml:283
|
||||
#, kde-format
|
||||
msgctxt "whether the server is running, displayed in front of a checkbox"
|
||||
msgid "Running"
|
||||
msgstr "Démarré"
|
||||
|
||||
#: dashboard/qml/Main.qml:291
|
||||
#: dashboard/qml/Main.qml:296
|
||||
#, kde-format
|
||||
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
|
||||
msgid "Pairing"
|
||||
msgstr "Appairage"
|
||||
|
||||
#: dashboard/qml/Main.qml:304
|
||||
#: dashboard/qml/Main.qml:316
|
||||
#, kde-format
|
||||
msgid "PIN: %1"
|
||||
msgstr "PIN : %1"
|
||||
msgid "Headset status"
|
||||
msgstr "Casque"
|
||||
|
||||
#: dashboard/qml/Main.qml:312 dashboard/qml/WizardPage.qml:329
|
||||
#: dashboard/qml/Main.qml:323
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "Connexion par USB"
|
||||
msgctxt "label for headset name/status under server running switch"
|
||||
msgid "Headset"
|
||||
msgstr "Casque"
|
||||
|
||||
#: dashboard/qml/Main.qml:323 dashboard/qml/WizardPage.qml:339
|
||||
#: dashboard/qml/Main.qml:326
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr "Le casque n'est pas connecté ou n'est pas en mode développeur"
|
||||
msgid "Not connected"
|
||||
msgstr "Déconnecté"
|
||||
|
||||
#: dashboard/qml/Main.qml:331
|
||||
#: dashboard/qml/Main.qml:330
|
||||
#, kde-format
|
||||
msgid "Disconnect"
|
||||
msgstr "Déconnecter"
|
||||
|
||||
#: dashboard/qml/Main.qml:349
|
||||
#: dashboard/qml/Main.qml:339 dashboard/qml/Main.qml:347
|
||||
#: dashboard/qml/Main.qml:354
|
||||
#, kde-format
|
||||
msgctxt "label for USB status or connect button"
|
||||
msgid "USB"
|
||||
msgstr "USB"
|
||||
|
||||
#: dashboard/qml/Main.qml:340
|
||||
#, kde-format
|
||||
msgctxt "usb connect button"
|
||||
msgid "Connect (wired)"
|
||||
msgstr "Connecter (filaire)"
|
||||
|
||||
#: dashboard/qml/Main.qml:357 dashboard/qml/WizardPage.qml:339
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr "Le casque n'est pas connecté ou n'est pas en mode développeur"
|
||||
|
||||
#: dashboard/qml/Main.qml:378
|
||||
#, kde-format
|
||||
msgid "Steam information"
|
||||
msgstr "Informations pour Steam"
|
||||
|
||||
#: dashboard/qml/Main.qml:370
|
||||
#: dashboard/qml/Main.qml:394
|
||||
#, kde-format
|
||||
msgid "Wizard"
|
||||
msgstr "Assistant"
|
||||
|
||||
#: dashboard/qml/Main.qml:377
|
||||
#: dashboard/qml/Main.qml:400
|
||||
#, kde-format
|
||||
msgid "Install the app"
|
||||
msgstr "Installer l'appli"
|
||||
|
||||
#: dashboard/qml/Main.qml:398 dashboard/qml/SettingsPage.qml:14
|
||||
#: dashboard/qml/Main.qml:419 dashboard/qml/SettingsPage.qml:14
|
||||
#, kde-format
|
||||
msgid "Settings"
|
||||
msgstr "Paramètres"
|
||||
|
||||
#: dashboard/qml/Main.qml:405 dashboard/qml/TroubleshootPage.qml:10
|
||||
#: dashboard/qml/Main.qml:425
|
||||
#, kde-format
|
||||
msgid "About"
|
||||
msgstr "À propos"
|
||||
|
||||
#: dashboard/qml/Main.qml:430 dashboard/qml/TroubleshootPage.qml:10
|
||||
#, kde-format
|
||||
msgid "Troubleshoot"
|
||||
msgstr "Dépannage"
|
||||
|
||||
#: dashboard/qml/Main.qml:437
|
||||
#, kde-format
|
||||
msgid "Version %1"
|
||||
msgstr "Version %1"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:14
|
||||
#, kde-format
|
||||
msgctxt "don't start an application automatically"
|
||||
@@ -834,6 +895,11 @@ msgstr ""
|
||||
msgid "To connect over USB, click on \"Connect by USB\"."
|
||||
msgstr "Pour vous connecter en USB, cliquez sur « Connexion par USB »"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:329
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "Connexion par USB"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:349
|
||||
#, kde-format
|
||||
msgid "Troubleshooting"
|
||||
@@ -882,16 +948,20 @@ msgstr "Finir"
|
||||
msgid "Finished"
|
||||
msgstr "Terminé"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:533
|
||||
#: dashboard/wivrn_server.cpp:538
|
||||
#, kde-format
|
||||
msgid "xrizer"
|
||||
msgstr "xrizer"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:534
|
||||
#: dashboard/wivrn_server.cpp:539
|
||||
#, kde-format
|
||||
msgid "Open Composite"
|
||||
msgstr "Open Composite"
|
||||
|
||||
#, kde-format
|
||||
#~ msgid "PIN: %1"
|
||||
#~ msgstr "PIN : %1"
|
||||
|
||||
#, kde-format
|
||||
#~ msgid "The server does not have CAP_SYS_NICE capabilities"
|
||||
#~ msgstr "Le serveur n'a pas la capacité CAP_SYS_NICE"
|
||||
|
||||
+131
-100
@@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn 0.15\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-12-13 10:21+0100\n"
|
||||
"PO-Revision-Date: 2025-12-13 10:36+0100\n"
|
||||
"POT-Creation-Date: 2025-12-29 15:36+0100\n"
|
||||
"PO-Revision-Date: 2025-12-29 15:40+0100\n"
|
||||
"Last-Translator: Guillaume Meunier <guillaume.meunier@centraliens.net>\n"
|
||||
"Language-Team: French <>\n"
|
||||
"Language: French\n"
|
||||
@@ -73,11 +73,11 @@ msgstr "Impossible de se connecter à {} ({}) : {}"
|
||||
msgid "Waiting for connection"
|
||||
msgstr "Attente de connexion"
|
||||
|
||||
#: client/scenes/lobby.cpp:1310
|
||||
#: client/scenes/lobby.cpp:1319
|
||||
msgid "Passthrough"
|
||||
msgstr "Vue réelle"
|
||||
|
||||
#: client/scenes/lobby.cpp:1322
|
||||
#: client/scenes/lobby.cpp:1331
|
||||
msgid "Default environment"
|
||||
msgstr "Environnement par défaut"
|
||||
|
||||
@@ -101,9 +101,9 @@ msgstr "Désactivé"
|
||||
msgid "Disconnect"
|
||||
msgstr "Déconnecter"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:749
|
||||
#: client/scenes/lobby_gui_customize.cpp:840
|
||||
#: client/scenes/lobby_gui_customize.cpp:896 client/scenes/stream_gui.cpp:1011
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
|
||||
#: client/scenes/lobby_gui_customize.cpp:844
|
||||
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011
|
||||
msgid "Close"
|
||||
msgstr "Fermer"
|
||||
|
||||
@@ -140,7 +140,7 @@ msgstr "Port"
|
||||
msgid "TCP only"
|
||||
msgstr "TCP seulement"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:651
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
|
||||
#: client/scenes/stream_gui.cpp:968
|
||||
msgid "Cancel"
|
||||
msgstr "Annuler"
|
||||
@@ -186,17 +186,17 @@ msgstr "Langue"
|
||||
msgid "System language"
|
||||
msgstr "Langue système"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:579 client/scenes/stream_gui.cpp:417
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417
|
||||
msgid "Refresh rate"
|
||||
msgstr "Taux de rafraichissement"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:579 client/scenes/lobby_gui.cpp:581
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
|
||||
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automatique"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:588 client/scenes/stream_gui.cpp:427
|
||||
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -205,119 +205,137 @@ msgstr ""
|
||||
"des performances mesurées.\n"
|
||||
"Peut causer des clignotements lors du changement de fréquence."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:605 client/scenes/stream_gui.cpp:445
|
||||
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Taux minimal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:631
|
||||
#: client/scenes/lobby_gui.cpp:632
|
||||
msgid "Foveation level"
|
||||
msgstr "Niveau de fovéation"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:654
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
msgid "Render resolution"
|
||||
msgstr "Résolution de rendu"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:658
|
||||
#: client/scenes/lobby_gui.cpp:659
|
||||
#, c-format, c++-format
|
||||
msgid "{}%% - {}x{} per eye"
|
||||
msgstr "{} %% - {}x{} par œil"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:669
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
#, c++-format
|
||||
msgid "Resolution larger than {}x{} may not be supported by the headset"
|
||||
msgstr "Les résolutions plus grandes que {}x{} pourraient ne pas fonctionner"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:679
|
||||
msgid "Stream resolution"
|
||||
msgstr "Résolution d'encodage"
|
||||
#: client/scenes/lobby_gui.cpp:680
|
||||
msgid "Foveated encoding"
|
||||
msgstr "Fovéation d'encodage"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:683
|
||||
#: client/scenes/lobby_gui.cpp:684
|
||||
#, c-format, c++-format
|
||||
msgid "{}%%"
|
||||
msgstr "{} %%"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:697
|
||||
msgid ""
|
||||
"Higher values focus image quality where you look at,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
msgstr ""
|
||||
"Les valeurs élevées concentrent la qualité là où se\n"
|
||||
"porte le regard, ce qui diminue la latence, réduit la\n"
|
||||
"consommation d'énergé et améliore la qualité."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:700
|
||||
msgid ""
|
||||
"Higher values focus image quality at the center,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
msgstr ""
|
||||
"Les valeurs élevées concentrent la qualité au centre\n"
|
||||
"de l'image, ce qui diminue la latence, réduit la\n"
|
||||
"consommation d'énergé et améliore la qualité."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:709
|
||||
msgctxt "Codec"
|
||||
msgid "Automatic"
|
||||
msgstr "Automatique"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:701
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
msgctxt "Codec"
|
||||
msgid "H.264"
|
||||
msgstr "H.264"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:703
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
msgctxt "Codec"
|
||||
msgid "H.265"
|
||||
msgstr "H.265"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:705
|
||||
#: client/scenes/lobby_gui.cpp:717
|
||||
msgctxt "Codec"
|
||||
msgid "AV1"
|
||||
msgstr "AV1"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
#: client/scenes/lobby_gui.cpp:725
|
||||
msgid "Codec"
|
||||
msgstr "Codec"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:741
|
||||
#: client/scenes/lobby_gui.cpp:753
|
||||
msgid "10-bit"
|
||||
msgstr "10 bits"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:756
|
||||
#: client/scenes/lobby_gui.cpp:768
|
||||
msgid "Bitrate"
|
||||
msgstr "Débit"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:760
|
||||
#: client/scenes/lobby_gui.cpp:772
|
||||
#, c++-format
|
||||
msgid "{}Mbit/s"
|
||||
msgstr "{} Mbit/s"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:771
|
||||
#: client/scenes/lobby_gui.cpp:783
|
||||
msgid "High power mode"
|
||||
msgstr "Mode haute consommation"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:774
|
||||
#: client/scenes/lobby_gui.cpp:786
|
||||
msgid "Increase power usage to allow higher resolution and refresh rate"
|
||||
msgstr ""
|
||||
"Augmente la consommation d'énergie pour permettre une résolution\n"
|
||||
"et une fréquence de rafraîchissement plus élevées"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:780
|
||||
#: client/scenes/lobby_gui.cpp:792
|
||||
msgid "Enable microphone"
|
||||
msgstr "Activer le micro"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:789
|
||||
#: client/scenes/lobby_gui.cpp:801
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Utiliser les données brutes du micro"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:795
|
||||
#: client/scenes/lobby_gui.cpp:807
|
||||
msgid "Force disable audio filters, such as noise cancellation"
|
||||
msgstr "Désactive les traitements tels que la suppression du bruit"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:802
|
||||
#: client/scenes/lobby_gui.cpp:814
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Activer le suivi des mains"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:808 client/scenes/lobby_gui.cpp:820
|
||||
#: client/scenes/lobby_gui.cpp:832 client/scenes/lobby_gui.cpp:849
|
||||
#: client/scenes/lobby_gui_customize.cpp:636
|
||||
#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831
|
||||
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856
|
||||
#: client/scenes/lobby_gui_customize.cpp:640
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "Cette fonctionnalité n'est pas supportée par le casque"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:814
|
||||
#: client/scenes/lobby_gui.cpp:825
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Activer le suivi des yeux"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:826
|
||||
#: client/scenes/lobby_gui.cpp:836
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Activer le suivi du visage"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:840
|
||||
#: client/scenes/lobby_gui.cpp:848
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Activer le suivi du corps"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:854
|
||||
#: client/scenes/lobby_gui.cpp:861
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -328,11 +346,11 @@ msgstr ""
|
||||
"suivi des mouvements du casque.\n"
|
||||
"Sinon les positions seront déduites de celles des manettes et casque."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:864
|
||||
#: client/scenes/lobby_gui.cpp:871
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Activer le suivi du bas du corps"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:870
|
||||
#: client/scenes/lobby_gui.cpp:877
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -343,11 +361,11 @@ msgstr ""
|
||||
"paramètres\n"
|
||||
"de suivi de mouvements du casque."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:873
|
||||
#: client/scenes/lobby_gui.cpp:880
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Activer le suivi des hanches"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:879
|
||||
#: client/scenes/lobby_gui.cpp:886
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -355,11 +373,11 @@ msgstr ""
|
||||
"N'a d'effet que si le suivi du bas du corps est activé.\n"
|
||||
"Peut être utile si les hanches sont suivies via un autre moyen."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:887
|
||||
#: client/scenes/lobby_gui.cpp:895
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Activer la fenêtre WiVRn lors de la transmission"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:890
|
||||
#: client/scenes/lobby_gui.cpp:898
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -369,15 +387,25 @@ msgstr ""
|
||||
"Lorsque activé, la fenêtre peut être affichée en appuyant sur les deux "
|
||||
"sticks."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:904 client/scenes/stream_gui.cpp:479
|
||||
#: client/scenes/lobby_gui.cpp:902
|
||||
msgid "Extended configuration values"
|
||||
msgstr "Valeurs de configuration étendues"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:905
|
||||
msgid "Allows unsafe configuration values, use at your own risk."
|
||||
msgstr ""
|
||||
"Permet d'utiliser des limites plus hautes,\n"
|
||||
"peut ne pas fonctionner correctement."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Post-traitement OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:908 client/scenes/stream_gui.cpp:483
|
||||
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483
|
||||
msgid "Supersampling"
|
||||
msgstr "Suréchantillonnage"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:928 client/scenes/stream_gui.cpp:504
|
||||
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -385,11 +413,11 @@ msgstr ""
|
||||
"Réduit le scintillement des contours à haut contraste.\n"
|
||||
"Utile quand la résolution d’entrée est haute comparée à l’écran du casque"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:933 client/scenes/stream_gui.cpp:509
|
||||
#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:509
|
||||
msgid "Sharpening"
|
||||
msgstr "Affinage de netteté"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:953 client/scenes/stream_gui.cpp:530
|
||||
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -397,129 +425,129 @@ msgstr ""
|
||||
"Améliore la clarté des contours à haut contraste et réduit le flou.\n"
|
||||
"Utile quand la résolution d’entrée est basse comparée à l’écran du casque"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1137 client/scenes/lobby_gui.cpp:1145
|
||||
#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160
|
||||
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373
|
||||
msgid "CPU time"
|
||||
msgstr "Temps CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1141
|
||||
#: client/scenes/lobby_gui.cpp:1156
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Temps CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1151 client/scenes/lobby_gui.cpp:1159
|
||||
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
|
||||
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374
|
||||
msgid "GPU time"
|
||||
msgstr "Temps GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1155
|
||||
#: client/scenes/lobby_gui.cpp:1170
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Temps GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1219
|
||||
#: client/scenes/lobby_gui.cpp:1234
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "Activer le micro ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1224
|
||||
#: client/scenes/lobby_gui.cpp:1239
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "Activer le suivi des yeux ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1229
|
||||
#: client/scenes/lobby_gui.cpp:1244
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "Activer le suivi du visage ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1234
|
||||
#: client/scenes/lobby_gui.cpp:1249
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "Activer le suivi du corps ?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1242
|
||||
#: client/scenes/lobby_gui.cpp:1257
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Bienvenue sur WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1270
|
||||
#: client/scenes/lobby_gui.cpp:1285
|
||||
msgid "Yes"
|
||||
msgstr "Oui"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1277
|
||||
#: client/scenes/lobby_gui.cpp:1292
|
||||
msgid "No"
|
||||
msgstr "Non"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1296 client/scenes/lobby_gui.cpp:1942
|
||||
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
|
||||
msgid "Licenses"
|
||||
msgstr "Licences"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1572
|
||||
#: client/scenes/lobby_gui.cpp:1587
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Le micro est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1573
|
||||
#: client/scenes/lobby_gui.cpp:1588
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Le micro est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1582
|
||||
#: client/scenes/lobby_gui.cpp:1597
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "Le suivi des mains est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1583
|
||||
#: client/scenes/lobby_gui.cpp:1598
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "Le suivi des mains est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1592
|
||||
#: client/scenes/lobby_gui.cpp:1607
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Le suivi des yeux est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1593
|
||||
#: client/scenes/lobby_gui.cpp:1608
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Le suivi des yeux est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1603
|
||||
#: client/scenes/lobby_gui.cpp:1618
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Le suivi du visage est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1604
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Le suivi du visage est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1618
|
||||
#: client/scenes/lobby_gui.cpp:1633
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Le suivi du corps est activé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
#: client/scenes/lobby_gui.cpp:1634
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Le suivi du corps est désactivé"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1635
|
||||
#: client/scenes/lobby_gui.cpp:1650
|
||||
msgid "Add server"
|
||||
msgstr "Ajouter un serveur"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1921
|
||||
#: client/scenes/lobby_gui.cpp:1936
|
||||
msgid "Server list"
|
||||
msgstr "Serveurs"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1924 client/scenes/stream_gui.cpp:996
|
||||
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996
|
||||
msgid "Settings"
|
||||
msgstr "Paramètres"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1927
|
||||
#: client/scenes/lobby_gui.cpp:1942
|
||||
msgid "Post-processing"
|
||||
msgstr "Post-traitement"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1930
|
||||
#: client/scenes/lobby_gui.cpp:1945
|
||||
msgid "Customize"
|
||||
msgstr "Personnaliser"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1934
|
||||
#: client/scenes/lobby_gui.cpp:1949
|
||||
msgid "Debug"
|
||||
msgstr "Debug"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1939
|
||||
#: client/scenes/lobby_gui.cpp:1954
|
||||
msgid "About"
|
||||
msgstr "À propos"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1945
|
||||
#: client/scenes/lobby_gui.cpp:1960
|
||||
msgid "Exit"
|
||||
msgstr "Quitter"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1962
|
||||
#: client/scenes/lobby_gui.cpp:1977
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -527,51 +555,51 @@ msgstr ""
|
||||
"Serrez la gâchette latérale ou pointez la paume\n"
|
||||
"vers le haut pour bouger la fenêtre principale"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1964
|
||||
#: client/scenes/lobby_gui.cpp:1979
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "Serrez la gâchette latérale pour bouger la fenêtre principale"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:208
|
||||
#: client/scenes/lobby_gui_customize.cpp:213
|
||||
msgid "Locally loaded environment"
|
||||
msgstr "Environnement chargé localement"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:221
|
||||
#: client/scenes/lobby_gui_customize.cpp:226
|
||||
#, c++-format
|
||||
msgid "Locally loaded environment ({})"
|
||||
msgstr "Environnement chargé localement ({})"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:296
|
||||
#: client/scenes/lobby_gui_customize.cpp:300
|
||||
#, c++-format
|
||||
msgid "Cannot load local environment: {}"
|
||||
msgstr "Impossible de charger l'environnement local ({})"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:329
|
||||
#: client/scenes/lobby_gui_customize.cpp:333
|
||||
#, c++-format
|
||||
msgid "Cannot load environment list: {}"
|
||||
msgstr "Impossible de charger la liste d'environnements: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:459
|
||||
#: client/scenes/lobby_gui_customize.cpp:463
|
||||
#, c++-format
|
||||
msgid "Author: {}"
|
||||
msgstr "Auteur : {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:463
|
||||
#: client/scenes/lobby_gui_customize.cpp:467
|
||||
#, c++-format
|
||||
msgid "Size: {:.1f} MB"
|
||||
msgstr "Taille: {:.1f} Mo"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:543
|
||||
#: client/scenes/lobby_gui_customize.cpp:547
|
||||
msgid "Delete this model"
|
||||
msgstr "Supprimer ce modèle"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:579
|
||||
#: client/scenes/lobby_gui_customize.cpp:785
|
||||
#: client/scenes/lobby_gui_customize.cpp:583
|
||||
#: client/scenes/lobby_gui_customize.cpp:789
|
||||
#, c++-format
|
||||
msgid "HTTP error {} when downloading {}"
|
||||
msgstr "Erreur HTTP {} lors du téléchargement de {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:587
|
||||
#: client/scenes/lobby_gui_customize.cpp:793
|
||||
#: client/scenes/lobby_gui_customize.cpp:591
|
||||
#: client/scenes/lobby_gui_customize.cpp:797
|
||||
#, c++-format
|
||||
msgid ""
|
||||
"Curl error when downloading {}\n"
|
||||
@@ -580,29 +608,29 @@ msgstr ""
|
||||
"Erreur curl lors du téléchargement de {}\n"
|
||||
"{} : {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:648
|
||||
#: client/scenes/lobby_gui_customize.cpp:652
|
||||
#, c++-format
|
||||
msgid "Really delete {}?"
|
||||
msgstr "Supprimer {} ?"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:652
|
||||
#: client/scenes/lobby_gui_customize.cpp:656
|
||||
msgid "Delete"
|
||||
msgstr "Supprimer"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:733
|
||||
#: client/scenes/lobby_gui_customize.cpp:737
|
||||
#, c++-format
|
||||
msgid "Cannot load environment: {}"
|
||||
msgstr "Impossible de charger l'environnement : {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:741
|
||||
#: client/scenes/lobby_gui_customize.cpp:745
|
||||
msgid "Loading environment"
|
||||
msgstr "Chargement de l'environnement"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:820
|
||||
#: client/scenes/lobby_gui_customize.cpp:824
|
||||
msgid "Download more environments"
|
||||
msgstr "Télécharger plus d'environnements"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:828
|
||||
#: client/scenes/lobby_gui_customize.cpp:832
|
||||
msgid "Open local glTF model"
|
||||
msgstr "Ouvrir un modèle glTF local"
|
||||
|
||||
@@ -779,6 +807,9 @@ msgstr "Impossible de vérifier le code PIN"
|
||||
msgid "Pairing is disabled on server"
|
||||
msgstr "L'appairage est désactivé sur le serveur"
|
||||
|
||||
#~ msgid "Stream resolution"
|
||||
#~ msgstr "Résolution d'encodage"
|
||||
|
||||
#~ msgid "Resolution scale"
|
||||
#~ msgstr "Échelle"
|
||||
|
||||
|
||||
+127
-100
@@ -5,8 +5,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn 0.15\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-12-13 10:21+0100\n"
|
||||
"PO-Revision-Date: 2025-12-13 10:53+0100\n"
|
||||
"POT-Creation-Date: 2025-12-29 15:36+0100\n"
|
||||
"PO-Revision-Date: 2025-12-29 15:38+0100\n"
|
||||
"Last-Translator: Albano Battistella <albanobattistella@gmail.com>\n"
|
||||
"Language-Team: Italian <>\n"
|
||||
"Language: Italian\n"
|
||||
@@ -68,11 +68,11 @@ msgstr "Impossibile connettersi a {} ({}): {}"
|
||||
msgid "Waiting for connection"
|
||||
msgstr "In attesa di connessione"
|
||||
|
||||
#: client/scenes/lobby.cpp:1310
|
||||
#: client/scenes/lobby.cpp:1319
|
||||
msgid "Passthrough"
|
||||
msgstr "Vista reale"
|
||||
|
||||
#: client/scenes/lobby.cpp:1322
|
||||
#: client/scenes/lobby.cpp:1331
|
||||
msgid "Default environment"
|
||||
msgstr "Ambiente di default"
|
||||
|
||||
@@ -96,9 +96,9 @@ msgstr "Disattivato"
|
||||
msgid "Disconnect"
|
||||
msgstr "Sconnetti"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:749
|
||||
#: client/scenes/lobby_gui_customize.cpp:840
|
||||
#: client/scenes/lobby_gui_customize.cpp:896 client/scenes/stream_gui.cpp:1011
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
|
||||
#: client/scenes/lobby_gui_customize.cpp:844
|
||||
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011
|
||||
msgid "Close"
|
||||
msgstr "Chiudi"
|
||||
|
||||
@@ -135,7 +135,7 @@ msgstr "Porta"
|
||||
msgid "TCP only"
|
||||
msgstr "Solo TCP"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:651
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
|
||||
#: client/scenes/stream_gui.cpp:968
|
||||
msgid "Cancel"
|
||||
msgstr "Annulla"
|
||||
@@ -181,17 +181,17 @@ msgstr "Lingua"
|
||||
msgid "System language"
|
||||
msgstr "Lingua del sistema"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:579 client/scenes/stream_gui.cpp:417
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417
|
||||
msgid "Refresh rate"
|
||||
msgstr "Frequenza di aggiornamento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:579 client/scenes/lobby_gui.cpp:581
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
|
||||
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automatica"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:588 client/scenes/stream_gui.cpp:427
|
||||
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -200,120 +200,136 @@ msgstr ""
|
||||
"misurate dell'applicazione.\n"
|
||||
"Può causare un flash quando avviene il cambiamento."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:605 client/scenes/stream_gui.cpp:445
|
||||
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Frequenza minima"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:631
|
||||
#: client/scenes/lobby_gui.cpp:632
|
||||
msgid "Foveation level"
|
||||
msgstr "Intensità di foveazione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:654
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
msgid "Render resolution"
|
||||
msgstr "Risoluzione del gioco"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:658
|
||||
#: client/scenes/lobby_gui.cpp:659
|
||||
#, c-format, c++-format
|
||||
msgid "{}%% - {}x{} per eye"
|
||||
msgstr "{}%% - {}x{} per occhio"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:669
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
#, c++-format
|
||||
msgid "Resolution larger than {}x{} may not be supported by the headset"
|
||||
msgstr ""
|
||||
"Le risoluzioni superiori a {}x{} potrebbero non essere supportate dal visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:679
|
||||
msgid "Stream resolution"
|
||||
msgstr "Risoluzione di streaming"
|
||||
#: client/scenes/lobby_gui.cpp:680
|
||||
msgid "Foveated encoding"
|
||||
msgstr "Foveazione della codifica"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:683
|
||||
#: client/scenes/lobby_gui.cpp:684
|
||||
#, c-format, c++-format
|
||||
msgid "{}%%"
|
||||
msgstr "{}%%"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:697
|
||||
msgid ""
|
||||
"Higher values focus image quality where you look at,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
msgstr ""
|
||||
"Valori alti concentrano la qualità dove si guarda,\n"
|
||||
"migliorando la latenza, efficienza energetica e qualità"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:700
|
||||
msgid ""
|
||||
"Higher values focus image quality at the center,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
msgstr ""
|
||||
"Valori alti concentrano la qualità al centro dell'immagine,\n"
|
||||
"migliorando la latenza, efficienza energetica e qualità"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:709
|
||||
msgctxt "Codec"
|
||||
msgid "Automatic"
|
||||
msgstr "Automatico"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:701
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
msgctxt "Codec"
|
||||
msgid "H.264"
|
||||
msgstr "H.264"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:703
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
msgctxt "Codec"
|
||||
msgid "H.265"
|
||||
msgstr "H.265"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:705
|
||||
#: client/scenes/lobby_gui.cpp:717
|
||||
msgctxt "Codec"
|
||||
msgid "AV1"
|
||||
msgstr "AV1"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
#: client/scenes/lobby_gui.cpp:725
|
||||
msgid "Codec"
|
||||
msgstr "Codec"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:741
|
||||
#: client/scenes/lobby_gui.cpp:753
|
||||
msgid "10-bit"
|
||||
msgstr "10 bit"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:756
|
||||
#: client/scenes/lobby_gui.cpp:768
|
||||
msgid "Bitrate"
|
||||
msgstr "Velocità di trasmissione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:760
|
||||
#: client/scenes/lobby_gui.cpp:772
|
||||
#, c++-format
|
||||
msgid "{}Mbit/s"
|
||||
msgstr "{}Mbit/s"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:771
|
||||
#: client/scenes/lobby_gui.cpp:783
|
||||
msgid "High power mode"
|
||||
msgstr "Modalità alto consumo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:774
|
||||
#: client/scenes/lobby_gui.cpp:786
|
||||
msgid "Increase power usage to allow higher resolution and refresh rate"
|
||||
msgstr ""
|
||||
"Aumenta il consumo di energie per permettere una risoluzione e\n"
|
||||
"frequenza d'immagine più alta"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:780
|
||||
#: client/scenes/lobby_gui.cpp:792
|
||||
msgid "Enable microphone"
|
||||
msgstr "Attiva il microfono"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:789
|
||||
#: client/scenes/lobby_gui.cpp:801
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Usare dati grezzi del microfono"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:795
|
||||
#: client/scenes/lobby_gui.cpp:807
|
||||
msgid "Force disable audio filters, such as noise cancellation"
|
||||
msgstr "Disattiva gli effetti come la cancellazione del rumore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:802
|
||||
#: client/scenes/lobby_gui.cpp:814
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Abilita il tracciamento delle mani"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:808 client/scenes/lobby_gui.cpp:820
|
||||
#: client/scenes/lobby_gui.cpp:832 client/scenes/lobby_gui.cpp:849
|
||||
#: client/scenes/lobby_gui_customize.cpp:636
|
||||
#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831
|
||||
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856
|
||||
#: client/scenes/lobby_gui_customize.cpp:640
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "Questa funzionalità non è supportata dal visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:814
|
||||
#: client/scenes/lobby_gui.cpp:825
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Abilita il tracciamento oculare"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:826
|
||||
#: client/scenes/lobby_gui.cpp:836
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Abilita il tracciamento facciale"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:840
|
||||
#: client/scenes/lobby_gui.cpp:848
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Abilita il tracciamento del corpo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:854
|
||||
#: client/scenes/lobby_gui.cpp:861
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -326,11 +342,11 @@ msgstr ""
|
||||
"controller e\n"
|
||||
"del visore."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:864
|
||||
#: client/scenes/lobby_gui.cpp:871
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Abilita il tracciamento del basso del corpo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:870
|
||||
#: client/scenes/lobby_gui.cpp:877
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -341,11 +357,11 @@ msgstr ""
|
||||
"impostazioni,\n"
|
||||
"sezione \"Tracking dei movimenti\"."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:873
|
||||
#: client/scenes/lobby_gui.cpp:880
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Abilitia il tracciamento delle anche"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:879
|
||||
#: client/scenes/lobby_gui.cpp:886
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -354,11 +370,11 @@ msgstr ""
|
||||
"Può essere utile se un altro metodo viene usato per il tracciamento\n"
|
||||
"delle anche."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:887
|
||||
#: client/scenes/lobby_gui.cpp:895
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Attiva la finestra di WiVRn durante la trasmissione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:890
|
||||
#: client/scenes/lobby_gui.cpp:898
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -366,15 +382,23 @@ msgstr ""
|
||||
"Abilita la finestra di configurazione quando il gioco viene trasmesso.\n"
|
||||
"Se selezionato, la finestra può essere attivata premendo entrambi gli stick."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:904 client/scenes/stream_gui.cpp:479
|
||||
#: client/scenes/lobby_gui.cpp:902
|
||||
msgid "Extended configuration values"
|
||||
msgstr "Valori di configurazione estesi"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:905
|
||||
msgid "Allows unsafe configuration values, use at your own risk."
|
||||
msgstr "Permette di usare limiti più alti, può non funzionare correttamente."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Post-trattamento OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:908 client/scenes/stream_gui.cpp:483
|
||||
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483
|
||||
msgid "Supersampling"
|
||||
msgstr "Supersamping"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:928 client/scenes/stream_gui.cpp:504
|
||||
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -382,11 +406,11 @@ msgstr ""
|
||||
"Riduce i lampeggiamenti sui bordi ad alto contrasto.\n"
|
||||
"Utile quando la risoluzine d'entrata è alta in confronto a quella del visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:933 client/scenes/stream_gui.cpp:509
|
||||
#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:509
|
||||
msgid "Sharpening"
|
||||
msgstr "Miglioramento della nitidezza"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:953 client/scenes/stream_gui.cpp:530
|
||||
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -395,129 +419,129 @@ msgstr ""
|
||||
"Utile quando la risoluzione d'entrate è bassa in contronto a quella del "
|
||||
"visore"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1137 client/scenes/lobby_gui.cpp:1145
|
||||
#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160
|
||||
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373
|
||||
msgid "CPU time"
|
||||
msgstr "Tempo CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1141
|
||||
#: client/scenes/lobby_gui.cpp:1156
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Tempo CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1151 client/scenes/lobby_gui.cpp:1159
|
||||
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
|
||||
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374
|
||||
msgid "GPU time"
|
||||
msgstr "Tempo GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1155
|
||||
#: client/scenes/lobby_gui.cpp:1170
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Tempo GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1219
|
||||
#: client/scenes/lobby_gui.cpp:1234
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "Attivare il microfono?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1224
|
||||
#: client/scenes/lobby_gui.cpp:1239
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "Attivare il tracciamento oculare?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1229
|
||||
#: client/scenes/lobby_gui.cpp:1244
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "Attivare il tracciamento facciale?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1234
|
||||
#: client/scenes/lobby_gui.cpp:1249
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "Attivare il tracciamento del corpo?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1242
|
||||
#: client/scenes/lobby_gui.cpp:1257
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Benvenuto su WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1270
|
||||
#: client/scenes/lobby_gui.cpp:1285
|
||||
msgid "Yes"
|
||||
msgstr "Sì"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1277
|
||||
#: client/scenes/lobby_gui.cpp:1292
|
||||
msgid "No"
|
||||
msgstr "No"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1296 client/scenes/lobby_gui.cpp:1942
|
||||
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
|
||||
msgid "Licenses"
|
||||
msgstr "Licenze"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1572
|
||||
#: client/scenes/lobby_gui.cpp:1587
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "Microfono attivo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1573
|
||||
#: client/scenes/lobby_gui.cpp:1588
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "Microfono disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1582
|
||||
#: client/scenes/lobby_gui.cpp:1597
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "Tracciamento delle mani attivo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1583
|
||||
#: client/scenes/lobby_gui.cpp:1598
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "Tracciamento delle mani disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1592
|
||||
#: client/scenes/lobby_gui.cpp:1607
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "Tracciamento oculare attivo"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1593
|
||||
#: client/scenes/lobby_gui.cpp:1608
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "Tracciamento oculare disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1603
|
||||
#: client/scenes/lobby_gui.cpp:1618
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "Tracciamento facciale attivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1604
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "Tracciamento facciale disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1618
|
||||
#: client/scenes/lobby_gui.cpp:1633
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "Tracciamento del corpo attivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
#: client/scenes/lobby_gui.cpp:1634
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "Tracciamento del corpo disattivato"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1635
|
||||
#: client/scenes/lobby_gui.cpp:1650
|
||||
msgid "Add server"
|
||||
msgstr "Aggiungi server"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1921
|
||||
#: client/scenes/lobby_gui.cpp:1936
|
||||
msgid "Server list"
|
||||
msgstr "Elenco dei server"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1924 client/scenes/stream_gui.cpp:996
|
||||
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996
|
||||
msgid "Settings"
|
||||
msgstr "Impostazioni"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1927
|
||||
#: client/scenes/lobby_gui.cpp:1942
|
||||
msgid "Post-processing"
|
||||
msgstr "Post-trattamento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1930
|
||||
#: client/scenes/lobby_gui.cpp:1945
|
||||
msgid "Customize"
|
||||
msgstr "Personalizzazione"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1934
|
||||
#: client/scenes/lobby_gui.cpp:1949
|
||||
msgid "Debug"
|
||||
msgstr "Debug"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1939
|
||||
#: client/scenes/lobby_gui.cpp:1954
|
||||
msgid "About"
|
||||
msgstr "Informazioni"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1945
|
||||
#: client/scenes/lobby_gui.cpp:1960
|
||||
msgid "Exit"
|
||||
msgstr "Esci"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1962
|
||||
#: client/scenes/lobby_gui.cpp:1977
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -525,51 +549,51 @@ msgstr ""
|
||||
"Premi il pulsante laterale o punta il palmo della\n"
|
||||
"mano verso l'alto per spostare la finestra principale"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1964
|
||||
#: client/scenes/lobby_gui.cpp:1979
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "Premi il pulsante laterale per spostare la finestra principale"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:208
|
||||
#: client/scenes/lobby_gui_customize.cpp:213
|
||||
msgid "Locally loaded environment"
|
||||
msgstr "Ambiente caricato localmente"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:221
|
||||
#: client/scenes/lobby_gui_customize.cpp:226
|
||||
#, c++-format
|
||||
msgid "Locally loaded environment ({})"
|
||||
msgstr "Ambiente caricato localmente ({})"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:296
|
||||
#: client/scenes/lobby_gui_customize.cpp:300
|
||||
#, c++-format
|
||||
msgid "Cannot load local environment: {}"
|
||||
msgstr "Impossibile caricare l'ambiente: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:329
|
||||
#: client/scenes/lobby_gui_customize.cpp:333
|
||||
#, c++-format
|
||||
msgid "Cannot load environment list: {}"
|
||||
msgstr "Impossibile caricare la lista degli ambienti: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:459
|
||||
#: client/scenes/lobby_gui_customize.cpp:463
|
||||
#, c++-format
|
||||
msgid "Author: {}"
|
||||
msgstr "Autore: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:463
|
||||
#: client/scenes/lobby_gui_customize.cpp:467
|
||||
#, c++-format
|
||||
msgid "Size: {:.1f} MB"
|
||||
msgstr "Dimensioni: {:.1f} MB"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:543
|
||||
#: client/scenes/lobby_gui_customize.cpp:547
|
||||
msgid "Delete this model"
|
||||
msgstr "Elimina il modello"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:579
|
||||
#: client/scenes/lobby_gui_customize.cpp:785
|
||||
#: client/scenes/lobby_gui_customize.cpp:583
|
||||
#: client/scenes/lobby_gui_customize.cpp:789
|
||||
#, c++-format
|
||||
msgid "HTTP error {} when downloading {}"
|
||||
msgstr "Error http {} per scaricare {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:587
|
||||
#: client/scenes/lobby_gui_customize.cpp:793
|
||||
#: client/scenes/lobby_gui_customize.cpp:591
|
||||
#: client/scenes/lobby_gui_customize.cpp:797
|
||||
#, c++-format
|
||||
msgid ""
|
||||
"Curl error when downloading {}\n"
|
||||
@@ -578,29 +602,29 @@ msgstr ""
|
||||
"Error curle per scaricare {}\n"
|
||||
"{}: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:648
|
||||
#: client/scenes/lobby_gui_customize.cpp:652
|
||||
#, c++-format
|
||||
msgid "Really delete {}?"
|
||||
msgstr "Eliminare {}?"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:652
|
||||
#: client/scenes/lobby_gui_customize.cpp:656
|
||||
msgid "Delete"
|
||||
msgstr "Elimina"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:733
|
||||
#: client/scenes/lobby_gui_customize.cpp:737
|
||||
#, c++-format
|
||||
msgid "Cannot load environment: {}"
|
||||
msgstr "Impossibile caricare l'ambiente: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:741
|
||||
#: client/scenes/lobby_gui_customize.cpp:745
|
||||
msgid "Loading environment"
|
||||
msgstr "Caricamento ambiente"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:820
|
||||
#: client/scenes/lobby_gui_customize.cpp:824
|
||||
msgid "Download more environments"
|
||||
msgstr "Scaricare più ambienti"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:828
|
||||
#: client/scenes/lobby_gui_customize.cpp:832
|
||||
msgid "Open local glTF model"
|
||||
msgstr "Aprire un modello glTF"
|
||||
|
||||
@@ -777,6 +801,9 @@ msgstr "Impossibile verificare il PIN"
|
||||
msgid "Pairing is disabled on server"
|
||||
msgstr "L'associazione è disattivata sul server"
|
||||
|
||||
#~ msgid "Stream resolution"
|
||||
#~ msgstr "Risoluzione di streaming"
|
||||
|
||||
#~ msgid "Resolution scale"
|
||||
#~ msgstr "Scala di risoluzione"
|
||||
|
||||
|
||||
+124
-54
@@ -1,7 +1,7 @@
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the WiVRn-dashboard package.
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2025 Claudio Sampaio (Patola)
|
||||
# SPDX-FileCopyrightText: 2025, 2026 Claudio Sampaio (Patola)
|
||||
# LuckShiba <LuckShiba@protonmail.com>, 2025.
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2025 myghi63 <myghi63@disroot.org>
|
||||
@@ -10,8 +10,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-12-13 11:28+0100\n"
|
||||
"PO-Revision-Date: 2025-12-13 13:26+0100\n"
|
||||
"POT-Creation-Date: 2026-01-06 17:57+0100\n"
|
||||
"PO-Revision-Date: 2026-01-06 18:18+0100\n"
|
||||
"Last-Translator: Claudio Sampaio (Patola) <patola@gmail.com>\n"
|
||||
"Language-Team: Portuguese <>\n"
|
||||
"Language: pt_BR\n"
|
||||
@@ -19,7 +19,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"X-Generator: Lokalize 25.08.3\n"
|
||||
"X-Generator: Lokalize 25.12.0\n"
|
||||
|
||||
#: dashboard/apk_installer.cpp:137
|
||||
#, kde-format
|
||||
@@ -71,11 +71,45 @@ msgstr "O comando 'adb install' falhou: código de saída %1"
|
||||
msgid "Installation successful"
|
||||
msgstr "Instalação bem-sucedida"
|
||||
|
||||
#: dashboard/main.cpp:27 dashboard/qml/Main.qml:12
|
||||
#: dashboard/main.cpp:28 dashboard/qml/Main.qml:12
|
||||
#, kde-format
|
||||
msgid "WiVRn dashboard"
|
||||
msgstr "Painel do WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:32
|
||||
#, kde-format
|
||||
msgctxt "@title"
|
||||
msgid "WiVRn"
|
||||
msgstr "WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:34
|
||||
#, kde-format
|
||||
msgid "WiVRn server"
|
||||
msgstr "Servidor WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:36
|
||||
#, kde-format
|
||||
msgid "(c) 2022-2026 WiVRn development team"
|
||||
msgstr "(c) 2022-2026 time de desenvolvimento do WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:43
|
||||
#, kde-format
|
||||
msgid "Monado"
|
||||
msgstr "Monado"
|
||||
|
||||
#: dashboard/main.cpp:44
|
||||
#, kde-format
|
||||
msgid "OpenXR runtime"
|
||||
msgstr "Runtime OpenXR"
|
||||
|
||||
#: dashboard/qml/About.qml:17 dashboard/qml/ApkInstallPage.qml:65
|
||||
#: dashboard/qml/HeadsetsPage.qml:183 dashboard/qml/HeadsetStatsPage.qml:36
|
||||
#: dashboard/qml/TroubleshootPage.qml:71
|
||||
#, kde-format
|
||||
msgctxt "go back to the home page"
|
||||
msgid "Back"
|
||||
msgstr "Voltar"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137
|
||||
#, kde-format
|
||||
msgid "Install the WiVRn app on your headset"
|
||||
@@ -92,8 +126,8 @@ msgstr "Verificando a última versão..."
|
||||
msgid "No APK is available for this version"
|
||||
msgstr "Nenhum APK está disponível para esta versão"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:321
|
||||
#: dashboard/qml/Main.qml:386 dashboard/qml/WizardPage.qml:211
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:350
|
||||
#: dashboard/qml/Main.qml:408 dashboard/qml/WizardPage.qml:211
|
||||
#: dashboard/qml/WizardPage.qml:337
|
||||
#, kde-format
|
||||
msgid "ADB is not installed"
|
||||
@@ -116,13 +150,6 @@ msgstr ""
|
||||
"docs/building.md#client-headset\">documentação</a> para construir seu "
|
||||
"próprio cliente."
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetsPage.qml:183
|
||||
#: dashboard/qml/HeadsetStatsPage.qml:36 dashboard/qml/TroubleshootPage.qml:71
|
||||
#, kde-format
|
||||
msgctxt "go back to the home page"
|
||||
msgid "Back"
|
||||
msgstr "Voltar"
|
||||
|
||||
#: dashboard/qml/ConnectUsbDialog.qml:11
|
||||
#, kde-format
|
||||
msgid "Select your headset"
|
||||
@@ -143,7 +170,7 @@ msgstr "Reinstalar WiVRn"
|
||||
msgid "Install WiVRn"
|
||||
msgstr "Instalar WiVRn"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:391
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:413
|
||||
#, kde-format
|
||||
msgid "Headsets"
|
||||
msgstr "Headsets"
|
||||
@@ -239,40 +266,40 @@ msgstr "Parear um novo headset"
|
||||
msgid "Headset statistics"
|
||||
msgstr "Estatísticas do headset"
|
||||
|
||||
#: dashboard/qml/Main.qml:120
|
||||
#: dashboard/qml/Main.qml:124
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not installed"
|
||||
msgstr "Avahi daemon não está instalado"
|
||||
|
||||
#: dashboard/qml/Main.qml:128
|
||||
#: dashboard/qml/Main.qml:132
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not started"
|
||||
msgstr "Avahi daemon não foi iniciado"
|
||||
|
||||
#: dashboard/qml/Main.qml:135 dashboard/qml/Main.qml:149
|
||||
#: dashboard/qml/Main.qml:201
|
||||
#: dashboard/qml/Main.qml:139 dashboard/qml/Main.qml:153
|
||||
#: dashboard/qml/Main.qml:205
|
||||
#, kde-format
|
||||
msgid "Fix it"
|
||||
msgstr "Conserte"
|
||||
|
||||
#: dashboard/qml/Main.qml:143
|
||||
#: dashboard/qml/Main.qml:147
|
||||
#, kde-format
|
||||
msgid "Firewall may not allow port 9757"
|
||||
msgstr "O firewall pode não permitir a porta 9757"
|
||||
|
||||
#: dashboard/qml/Main.qml:157
|
||||
#: dashboard/qml/Main.qml:161
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
|
||||
msgstr ""
|
||||
"GPUs NVIDIA requerem pelo menos o driver versão 565.77, a versão atual é %1"
|
||||
|
||||
#: dashboard/qml/Main.qml:163
|
||||
#: dashboard/qml/Main.qml:167
|
||||
#, kde-format
|
||||
msgid "More info"
|
||||
msgstr "Mais informações"
|
||||
|
||||
#: dashboard/qml/Main.qml:171
|
||||
#: dashboard/qml/Main.qml:175
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Use the Mesa (radv) driver for AMD GPUs\n"
|
||||
@@ -281,7 +308,7 @@ msgstr ""
|
||||
"Use o driver Mesa (radv) para GPUs AMD\n"
|
||||
"Codificação de hardware com a vaapi não funciona com AMDVLK e AMDGPU-PRO"
|
||||
|
||||
#: dashboard/qml/Main.qml:179
|
||||
#: dashboard/qml/Main.qml:183
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
|
||||
@@ -291,97 +318,131 @@ msgstr ""
|
||||
"conseguirão carregar em VR.\n"
|
||||
"Instale o xrizer ou o OpenComposite."
|
||||
|
||||
#: dashboard/qml/Main.qml:187
|
||||
#: dashboard/qml/Main.qml:191
|
||||
#, kde-format
|
||||
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
|
||||
msgstr "A Steam está instalada como snap. Snaps não são compatíveis com WiVRn."
|
||||
|
||||
#: dashboard/qml/Main.qml:195
|
||||
#: dashboard/qml/Main.qml:199
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Steam is installed as a flatpak but does not have sufficient permissions."
|
||||
msgstr "A Steam está instalada como flatpak e não tem permissões suficientes."
|
||||
|
||||
#: dashboard/qml/Main.qml:210
|
||||
#: dashboard/qml/Main.qml:214
|
||||
#, kde-format
|
||||
msgid "Restart the server for configuration changes to take effect"
|
||||
msgstr ""
|
||||
"Reinicie o servidor para que as alterações de configuração tenham efeito"
|
||||
|
||||
#: dashboard/qml/Main.qml:216
|
||||
#: dashboard/qml/Main.qml:220
|
||||
#, kde-format
|
||||
msgctxt "restart the server"
|
||||
msgid "Restart now"
|
||||
msgstr "Reiniciar agora"
|
||||
|
||||
#: dashboard/qml/Main.qml:241
|
||||
#: dashboard/qml/Main.qml:245
|
||||
#, kde-format
|
||||
msgid "Server failed to start"
|
||||
msgstr "Servidor falhou em iniciar"
|
||||
|
||||
#: dashboard/qml/Main.qml:247 dashboard/qml/TroubleshootPage.qml:89
|
||||
#: dashboard/qml/Main.qml:251 dashboard/qml/TroubleshootPage.qml:89
|
||||
#, kde-format
|
||||
msgid "Open server logs"
|
||||
msgstr "Abrir logs do servidor"
|
||||
|
||||
#: dashboard/qml/Main.qml:276
|
||||
#: dashboard/qml/Main.qml:277
|
||||
#, kde-format
|
||||
msgid "Server status"
|
||||
msgstr "Status do servidor"
|
||||
|
||||
#: dashboard/qml/Main.qml:283
|
||||
#, kde-format
|
||||
msgctxt "whether the server is running, displayed in front of a checkbox"
|
||||
msgid "Running"
|
||||
msgstr "Rodando"
|
||||
|
||||
#: dashboard/qml/Main.qml:291
|
||||
#: dashboard/qml/Main.qml:296
|
||||
#, kde-format
|
||||
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
|
||||
msgid "Pairing"
|
||||
msgstr "Pareando"
|
||||
|
||||
#: dashboard/qml/Main.qml:304
|
||||
#: dashboard/qml/Main.qml:316
|
||||
#, kde-format
|
||||
msgid "PIN: %1"
|
||||
msgstr "PIN: %1"
|
||||
msgid "Headset status"
|
||||
msgstr "Status do headset"
|
||||
|
||||
#: dashboard/qml/Main.qml:312 dashboard/qml/WizardPage.qml:329
|
||||
#: dashboard/qml/Main.qml:323
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "Conectar pela USB"
|
||||
msgctxt "label for headset name/status under server running switch"
|
||||
msgid "Headset"
|
||||
msgstr "Headset"
|
||||
|
||||
#: dashboard/qml/Main.qml:323 dashboard/qml/WizardPage.qml:339
|
||||
#: dashboard/qml/Main.qml:326
|
||||
#, kde-format
|
||||
msgid "Not connected"
|
||||
msgstr "Não conectado"
|
||||
|
||||
#: dashboard/qml/Main.qml:330
|
||||
#, kde-format
|
||||
msgid "Disconnect"
|
||||
msgstr "Desconectar"
|
||||
|
||||
#: dashboard/qml/Main.qml:339 dashboard/qml/Main.qml:347
|
||||
#: dashboard/qml/Main.qml:354
|
||||
#, kde-format
|
||||
msgctxt "label for USB status or connect button"
|
||||
msgid "USB"
|
||||
msgstr "USB"
|
||||
|
||||
#: dashboard/qml/Main.qml:340
|
||||
#, kde-format
|
||||
msgctxt "usb connect button"
|
||||
msgid "Connect (wired)"
|
||||
msgstr "Conectar (por cabo)"
|
||||
|
||||
#: dashboard/qml/Main.qml:357 dashboard/qml/WizardPage.qml:339
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr ""
|
||||
"Nenhum headset está conectado ou seu headset não está em modo desenvolvedor"
|
||||
|
||||
#: dashboard/qml/Main.qml:331
|
||||
#, kde-format
|
||||
msgid "Disconnect"
|
||||
msgstr "Desconectar"
|
||||
|
||||
#: dashboard/qml/Main.qml:349
|
||||
#: dashboard/qml/Main.qml:378
|
||||
#, kde-format
|
||||
msgid "Steam information"
|
||||
msgstr "Informações da Steam"
|
||||
|
||||
#: dashboard/qml/Main.qml:370
|
||||
#: dashboard/qml/Main.qml:394
|
||||
#, kde-format
|
||||
msgid "Wizard"
|
||||
msgstr "Assistente"
|
||||
|
||||
#: dashboard/qml/Main.qml:377
|
||||
#: dashboard/qml/Main.qml:400
|
||||
#, kde-format
|
||||
msgid "Install the app"
|
||||
msgstr "Instalar o aplicativo"
|
||||
|
||||
#: dashboard/qml/Main.qml:398 dashboard/qml/SettingsPage.qml:14
|
||||
#: dashboard/qml/Main.qml:419 dashboard/qml/SettingsPage.qml:14
|
||||
#, kde-format
|
||||
msgid "Settings"
|
||||
msgstr "Ajustes"
|
||||
|
||||
#: dashboard/qml/Main.qml:405 dashboard/qml/TroubleshootPage.qml:10
|
||||
#: dashboard/qml/Main.qml:425
|
||||
#, kde-format
|
||||
msgid "About"
|
||||
msgstr "Sobre"
|
||||
|
||||
#: dashboard/qml/Main.qml:430 dashboard/qml/TroubleshootPage.qml:10
|
||||
#, kde-format
|
||||
msgid "Troubleshoot"
|
||||
msgstr "Resolver problemas"
|
||||
|
||||
#: dashboard/qml/Main.qml:437
|
||||
#, kde-format
|
||||
msgid "Version %1"
|
||||
msgstr "Versão %1"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:14
|
||||
#, kde-format
|
||||
msgctxt "don't start an application automatically"
|
||||
@@ -678,9 +739,9 @@ msgid ""
|
||||
"For game specific issues, check on <a href=\"https://db.vronlinux.org/"
|
||||
"\">vronlinux DB</a> if there are known bugs or workarounds."
|
||||
msgstr ""
|
||||
"Para problemas específicos de jogos, consulte o <a href=\"https://db.vronlinux"
|
||||
".org/"
|
||||
"\">vronlinux DB</a> para ver se há bugs ou reparos conhecidos."
|
||||
"Para problemas específicos de jogos, consulte o <a href=\"https://"
|
||||
"db.vronlinux.org/\">vronlinux DB</a> para ver se há bugs ou reparos "
|
||||
"conhecidos."
|
||||
|
||||
#: dashboard/qml/TroubleshootPage.qml:79
|
||||
#, kde-format
|
||||
@@ -832,6 +893,11 @@ msgstr ""
|
||||
msgid "To connect over USB, click on \"Connect by USB\"."
|
||||
msgstr "Para conectar pela USB, clique em \"Conectar pela USB\"."
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:329
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "Conectar pela USB"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:349
|
||||
#, kde-format
|
||||
msgid "Troubleshooting"
|
||||
@@ -880,16 +946,20 @@ msgstr "Terminar"
|
||||
msgid "Finished"
|
||||
msgstr "Terminado"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:533
|
||||
#: dashboard/wivrn_server.cpp:538
|
||||
#, kde-format
|
||||
msgid "xrizer"
|
||||
msgstr "xrizer"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:534
|
||||
#: dashboard/wivrn_server.cpp:539
|
||||
#, kde-format
|
||||
msgid "Open Composite"
|
||||
msgstr "Open Composite"
|
||||
|
||||
#, kde-format
|
||||
#~ msgid "PIN: %1"
|
||||
#~ msgstr "PIN: %1"
|
||||
|
||||
#, kde-format
|
||||
#~ msgctxt "automatically started application"
|
||||
#~ msgid "Application"
|
||||
|
||||
+129
-102
@@ -11,15 +11,15 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-12-11 13:42+0100\n"
|
||||
"PO-Revision-Date: 2025-12-11 14:32+0100\n"
|
||||
"POT-Creation-Date: 2025-12-29 15:56+0100\n"
|
||||
"PO-Revision-Date: 2025-12-30 02:05+0100\n"
|
||||
"Last-Translator: Claudio Sampaio (Patola) <patola@gmail.com>\n"
|
||||
"Language-Team: Portuguese <>\n"
|
||||
"Language: pt_BR\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Lokalize 25.08.3\n"
|
||||
"X-Generator: Lokalize 25.12.0\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#: client/scene.cpp:73
|
||||
@@ -73,11 +73,11 @@ msgstr "Incapaz de conectar a {} ({}): {}"
|
||||
msgid "Waiting for connection"
|
||||
msgstr "Aguardando conexão"
|
||||
|
||||
#: client/scenes/lobby.cpp:1310
|
||||
#: client/scenes/lobby.cpp:1319
|
||||
msgid "Passthrough"
|
||||
msgstr "Passthrough"
|
||||
|
||||
#: client/scenes/lobby.cpp:1322
|
||||
#: client/scenes/lobby.cpp:1331
|
||||
msgid "Default environment"
|
||||
msgstr "Ambiente default"
|
||||
|
||||
@@ -101,9 +101,9 @@ msgstr "Desabilitado"
|
||||
msgid "Disconnect"
|
||||
msgstr "Desconectar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:749
|
||||
#: client/scenes/lobby_gui_customize.cpp:840
|
||||
#: client/scenes/lobby_gui_customize.cpp:896 client/scenes/stream_gui.cpp:1011
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
|
||||
#: client/scenes/lobby_gui_customize.cpp:844
|
||||
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011
|
||||
msgid "Close"
|
||||
msgstr "Fechar"
|
||||
|
||||
@@ -140,7 +140,7 @@ msgstr "Porta"
|
||||
msgid "TCP only"
|
||||
msgstr "TCP somente"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:651
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
|
||||
#: client/scenes/stream_gui.cpp:968
|
||||
msgid "Cancel"
|
||||
msgstr "Cancelar"
|
||||
@@ -186,17 +186,17 @@ msgstr "Linguagem"
|
||||
msgid "System language"
|
||||
msgstr "Linguagem do Sistema"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:579 client/scenes/stream_gui.cpp:417
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417
|
||||
msgid "Refresh rate"
|
||||
msgstr "Taxa de atualização"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:579 client/scenes/lobby_gui.cpp:581
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
|
||||
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "Automático"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:588 client/scenes/stream_gui.cpp:427
|
||||
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -204,119 +204,135 @@ msgstr ""
|
||||
"Seleciona a taxa de atualização baseada no desempenho medido do aplicativo.\n"
|
||||
"Pode causar oscilações quando uma alteração ocorrer."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:605 client/scenes/stream_gui.cpp:445
|
||||
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "Taxa de atualização mínima"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:631
|
||||
#: client/scenes/lobby_gui.cpp:632
|
||||
msgid "Foveation level"
|
||||
msgstr "Nível de foveação"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:654
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
msgid "Render resolution"
|
||||
msgstr "Resolução de renderização"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:658
|
||||
#: client/scenes/lobby_gui.cpp:659
|
||||
#, c-format, c++-format
|
||||
msgid "{}%% - {}x{} per eye"
|
||||
msgstr "{}%% - {}x{} por olho"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:669
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
#, c++-format
|
||||
msgid "Resolution larger than {}x{} may not be supported by the headset"
|
||||
msgstr "Resolução maior que {}x{} pode não ser suportada pelo headset"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:679
|
||||
msgid "Stream resolution"
|
||||
msgstr "Resolução da stream"
|
||||
#: client/scenes/lobby_gui.cpp:680
|
||||
msgid "Foveated encoding"
|
||||
msgstr "Codificação foveada"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:683
|
||||
#: client/scenes/lobby_gui.cpp:684
|
||||
#, c-format, c++-format
|
||||
msgid "{}%%"
|
||||
msgstr "{}%%"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:697
|
||||
msgid ""
|
||||
"Higher values focus image quality where you look at,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
msgstr ""
|
||||
"Valores mais altos focalizam a qualidade de imagem a onde você olha,\n"
|
||||
"melhorando latência, eficiência energética e qualidade."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:700
|
||||
msgid ""
|
||||
"Higher values focus image quality at the center,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
msgstr ""
|
||||
"Valores mais altos focalizam qualidade de image, no centro,\n"
|
||||
"melhorando latência, eficiência energética e qualidade."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:709
|
||||
msgctxt "Codec"
|
||||
msgid "Automatic"
|
||||
msgstr "Automático"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:701
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
msgctxt "Codec"
|
||||
msgid "H.264"
|
||||
msgstr "H.264"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:703
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
msgctxt "Codec"
|
||||
msgid "H.265"
|
||||
msgstr "H.265"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:705
|
||||
#: client/scenes/lobby_gui.cpp:717
|
||||
msgctxt "Codec"
|
||||
msgid "AV1"
|
||||
msgstr "AV1"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
#: client/scenes/lobby_gui.cpp:725
|
||||
msgid "Codec"
|
||||
msgstr "Codec"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:741
|
||||
#: client/scenes/lobby_gui.cpp:753
|
||||
msgid "10-bit"
|
||||
msgstr "10-bit"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:756
|
||||
#: client/scenes/lobby_gui.cpp:768
|
||||
msgid "Bitrate"
|
||||
msgstr "Bitrate"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:760
|
||||
#: client/scenes/lobby_gui.cpp:772
|
||||
#, c++-format
|
||||
msgid "{}Mbit/s"
|
||||
msgstr "{}Mbit/s"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:771
|
||||
#: client/scenes/lobby_gui.cpp:783
|
||||
msgid "High power mode"
|
||||
msgstr "Modo de alta potência"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:774
|
||||
#: client/scenes/lobby_gui.cpp:786
|
||||
msgid "Increase power usage to allow higher resolution and refresh rate"
|
||||
msgstr ""
|
||||
"Aumenta a potência para permitir resolução e taxa de atualização mais altas"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:780
|
||||
#: client/scenes/lobby_gui.cpp:792
|
||||
msgid "Enable microphone"
|
||||
msgstr "Ativar microfone"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:789
|
||||
#: client/scenes/lobby_gui.cpp:801
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "Áudio Não-processado de Microfone"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:795
|
||||
#: client/scenes/lobby_gui.cpp:807
|
||||
msgid "Force disable audio filters, such as noise cancellation"
|
||||
msgstr ""
|
||||
"Força a desativação de filtros de áudio tais como cancelamento de ruído"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:802
|
||||
#: client/scenes/lobby_gui.cpp:814
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "Ativar rastreamento de mãos"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:808 client/scenes/lobby_gui.cpp:820
|
||||
#: client/scenes/lobby_gui.cpp:832 client/scenes/lobby_gui.cpp:849
|
||||
#: client/scenes/lobby_gui_customize.cpp:636
|
||||
#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831
|
||||
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856
|
||||
#: client/scenes/lobby_gui_customize.cpp:640
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "Este recurso não é suportado pelo seu headset"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:814
|
||||
#: client/scenes/lobby_gui.cpp:825
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "Ativar rastreamento ocular"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:826
|
||||
#: client/scenes/lobby_gui.cpp:836
|
||||
msgid "Enable face tracking"
|
||||
msgstr "Ativar rastreamento facial"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:840
|
||||
#: client/scenes/lobby_gui.cpp:848
|
||||
msgid "Enable body tracking"
|
||||
msgstr "Ativar rastreamento corporal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:854
|
||||
#: client/scenes/lobby_gui.cpp:861
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -328,11 +344,11 @@ msgstr ""
|
||||
"estimados\n"
|
||||
"com base nas posições do controle e do headset."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:864
|
||||
#: client/scenes/lobby_gui.cpp:871
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "Ativar rastreamento corporal inferior"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:870
|
||||
#: client/scenes/lobby_gui.cpp:877
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -343,11 +359,11 @@ msgstr ""
|
||||
"Requer que 'Rastreamento corporal e das mãos' esteja ativado nas\n"
|
||||
"configurações de Rastreamento de Movimento do Quest"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:873
|
||||
#: client/scenes/lobby_gui.cpp:880
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "Ativar rastreamento de quadril"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:879
|
||||
#: client/scenes/lobby_gui.cpp:886
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -355,11 +371,11 @@ msgstr ""
|
||||
"Só tem efeito com o rastreamento corporal inferior ativado\n"
|
||||
"Pode ser desejado ao usar outra fonte de rastreamento de quadril"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:887
|
||||
#: client/scenes/lobby_gui.cpp:895
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "Habilitar janela na stream"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:890
|
||||
#: client/scenes/lobby_gui.cpp:898
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -368,15 +384,23 @@ msgstr ""
|
||||
"streamado.\n"
|
||||
"Se habilitado, a janela é ativada clicando os dois joysticks simultaneamente."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:904 client/scenes/stream_gui.cpp:479
|
||||
#: client/scenes/lobby_gui.cpp:902
|
||||
msgid "Extended configuration values"
|
||||
msgstr "Valores de configuração estendidos"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:905
|
||||
msgid "Allows unsafe configuration values, use at your own risk."
|
||||
msgstr "Permite valores de configuração inseguros, use por sua conta e risco."
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "Pós-processamento OpenXR"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:908 client/scenes/stream_gui.cpp:483
|
||||
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483
|
||||
msgid "Supersampling"
|
||||
msgstr "Supersampling"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:928 client/scenes/stream_gui.cpp:504
|
||||
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -384,11 +408,11 @@ msgstr ""
|
||||
"Reduz flicker para arestas de alto contraste.\n"
|
||||
"Útil quando a resolução de entrada é alta comparada ao display do headset"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:933 client/scenes/stream_gui.cpp:509
|
||||
#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:509
|
||||
msgid "Sharpening"
|
||||
msgstr "Aumento de nitidez"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:953 client/scenes/stream_gui.cpp:530
|
||||
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -396,129 +420,129 @@ msgstr ""
|
||||
"Melhora a clareza de arestas de alto contraste e minimiza o desfoque.\n"
|
||||
"Útil quando a resolução de entrada é baixa comparada ao display do headset"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1137 client/scenes/lobby_gui.cpp:1145
|
||||
#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160
|
||||
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373
|
||||
msgid "CPU time"
|
||||
msgstr "Tempo de CPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1141
|
||||
#: client/scenes/lobby_gui.cpp:1156
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "Tempo de CPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1151 client/scenes/lobby_gui.cpp:1159
|
||||
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
|
||||
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374
|
||||
msgid "GPU time"
|
||||
msgstr "Tempo de GPU"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1155
|
||||
#: client/scenes/lobby_gui.cpp:1170
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "Tempo de GPU [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1219
|
||||
#: client/scenes/lobby_gui.cpp:1234
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "Habilitar o microfone?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1224
|
||||
#: client/scenes/lobby_gui.cpp:1239
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "Habilitar o rastreamento ocular?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1229
|
||||
#: client/scenes/lobby_gui.cpp:1244
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "Habilitar o rastreamento facial?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1234
|
||||
#: client/scenes/lobby_gui.cpp:1249
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "Habilitar o rastreamento corporal?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1242
|
||||
#: client/scenes/lobby_gui.cpp:1257
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "Bem vindo(a) ao WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1270
|
||||
#: client/scenes/lobby_gui.cpp:1285
|
||||
msgid "Yes"
|
||||
msgstr "Sim"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1277
|
||||
#: client/scenes/lobby_gui.cpp:1292
|
||||
msgid "No"
|
||||
msgstr "Não"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1296 client/scenes/lobby_gui.cpp:1942
|
||||
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
|
||||
msgid "Licenses"
|
||||
msgstr "Licenças"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1572
|
||||
#: client/scenes/lobby_gui.cpp:1587
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "O microfone está ativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1573
|
||||
#: client/scenes/lobby_gui.cpp:1588
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "O microfone está desativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1582
|
||||
#: client/scenes/lobby_gui.cpp:1597
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "O rastreamento de mãos está ativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1583
|
||||
#: client/scenes/lobby_gui.cpp:1598
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "O rastreamento de mãos está desativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1592
|
||||
#: client/scenes/lobby_gui.cpp:1607
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "O rastreamento ocular está ativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1593
|
||||
#: client/scenes/lobby_gui.cpp:1608
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "O rastreamento ocular está desativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1603
|
||||
#: client/scenes/lobby_gui.cpp:1618
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "O rastreamento facial está ativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1604
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "O rastreamento facial está desativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1618
|
||||
#: client/scenes/lobby_gui.cpp:1633
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "O rastreamento corporal está ativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
#: client/scenes/lobby_gui.cpp:1634
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "O rastreamento corporal está desativado"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1635
|
||||
#: client/scenes/lobby_gui.cpp:1650
|
||||
msgid "Add server"
|
||||
msgstr "Adicionar servidor"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1921
|
||||
#: client/scenes/lobby_gui.cpp:1936
|
||||
msgid "Server list"
|
||||
msgstr "Lista de servidores"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1924 client/scenes/stream_gui.cpp:996
|
||||
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996
|
||||
msgid "Settings"
|
||||
msgstr "Ajustes"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1927
|
||||
#: client/scenes/lobby_gui.cpp:1942
|
||||
msgid "Post-processing"
|
||||
msgstr "Pós-processamento"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1930
|
||||
#: client/scenes/lobby_gui.cpp:1945
|
||||
msgid "Customize"
|
||||
msgstr "Personalizar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1934
|
||||
#: client/scenes/lobby_gui.cpp:1949
|
||||
msgid "Debug"
|
||||
msgstr "Depurar"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1939
|
||||
#: client/scenes/lobby_gui.cpp:1954
|
||||
msgid "About"
|
||||
msgstr "Sobre"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1945
|
||||
#: client/scenes/lobby_gui.cpp:1960
|
||||
msgid "Exit"
|
||||
msgstr "Sair"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1962
|
||||
#: client/scenes/lobby_gui.cpp:1977
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -526,51 +550,51 @@ msgstr ""
|
||||
"Pressione o botão de aderência ou coloque a palma da mão para cima\n"
|
||||
"para mover a janela principal"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1964
|
||||
#: client/scenes/lobby_gui.cpp:1979
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "Pressione o botão de aderência para mover a janela principal"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:208
|
||||
#: client/scenes/lobby_gui_customize.cpp:213
|
||||
msgid "Locally loaded environment"
|
||||
msgstr "Ambiente localmente carregado"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:221
|
||||
#: client/scenes/lobby_gui_customize.cpp:226
|
||||
#, c++-format
|
||||
msgid "Locally loaded environment ({})"
|
||||
msgstr "Ambiente localmente carregado ({})"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:296
|
||||
#: client/scenes/lobby_gui_customize.cpp:300
|
||||
#, c++-format
|
||||
msgid "Cannot load local environment: {}"
|
||||
msgstr "Incapaz de carregar ambiente local: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:329
|
||||
#: client/scenes/lobby_gui_customize.cpp:333
|
||||
#, c++-format
|
||||
msgid "Cannot load environment list: {}"
|
||||
msgstr "Não foi possível carregar lista de ambientes: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:459
|
||||
#: client/scenes/lobby_gui_customize.cpp:463
|
||||
#, c++-format
|
||||
msgid "Author: {}"
|
||||
msgstr "Autor: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:463
|
||||
#: client/scenes/lobby_gui_customize.cpp:467
|
||||
#, c++-format
|
||||
msgid "Size: {:.1f} MB"
|
||||
msgstr "Tamanho: {:.1f} MB"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:543
|
||||
#: client/scenes/lobby_gui_customize.cpp:547
|
||||
msgid "Delete this model"
|
||||
msgstr "Remover este modelo"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:579
|
||||
#: client/scenes/lobby_gui_customize.cpp:785
|
||||
#: client/scenes/lobby_gui_customize.cpp:583
|
||||
#: client/scenes/lobby_gui_customize.cpp:789
|
||||
#, c++-format
|
||||
msgid "HTTP error {} when downloading {}"
|
||||
msgstr "Erro de HTTP {} ao baixar {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:587
|
||||
#: client/scenes/lobby_gui_customize.cpp:793
|
||||
#: client/scenes/lobby_gui_customize.cpp:591
|
||||
#: client/scenes/lobby_gui_customize.cpp:797
|
||||
#, c++-format
|
||||
msgid ""
|
||||
"Curl error when downloading {}\n"
|
||||
@@ -579,35 +603,35 @@ msgstr ""
|
||||
"Erro do curl ao baixar {}\n"
|
||||
"{}: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:648
|
||||
#: client/scenes/lobby_gui_customize.cpp:652
|
||||
#, c++-format
|
||||
msgid "Really delete {}?"
|
||||
msgstr "Realmente remover {}?"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:652
|
||||
#: client/scenes/lobby_gui_customize.cpp:656
|
||||
msgid "Delete"
|
||||
msgstr "Remover"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:733
|
||||
#: client/scenes/lobby_gui_customize.cpp:737
|
||||
#, c++-format
|
||||
msgid "Cannot load environment: {}"
|
||||
msgstr "Não foi possível baixar ambiente: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:741
|
||||
#: client/scenes/lobby_gui_customize.cpp:745
|
||||
msgid "Loading environment"
|
||||
msgstr "Baixando ambiente"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:820
|
||||
#: client/scenes/lobby_gui_customize.cpp:824
|
||||
msgid "Download more environments"
|
||||
msgstr "Baixar mais ambientes"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:828
|
||||
#: client/scenes/lobby_gui_customize.cpp:832
|
||||
msgid "Open local glTF model"
|
||||
msgstr "Abrir modelo local glTF"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:174
|
||||
msgid "Defoveate"
|
||||
msgstr "Defovear"
|
||||
msgstr "Defoveação"
|
||||
|
||||
#: client/scenes/stream_gui.cpp:176
|
||||
msgid "Network"
|
||||
@@ -778,6 +802,9 @@ msgstr "Incapaz de verificar PIN"
|
||||
msgid "Pairing is disabled on server"
|
||||
msgstr "Pareamento está desabilitado no servidor"
|
||||
|
||||
#~ msgid "Stream resolution"
|
||||
#~ msgstr "Resolução da stream"
|
||||
|
||||
#~ msgid "Resolution scale"
|
||||
#~ msgstr "Escala de resolução"
|
||||
|
||||
|
||||
+120
-50
@@ -2,14 +2,14 @@
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the WiVRn-dashboard package.
|
||||
# Jayden Ha <jayden@jaydenha.uk>, 2025.
|
||||
# BERADQ <adqber123@outlook.com>, 2025.
|
||||
# BERADQ <adqber123@outlook.com>, 2025-2026.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn-dashboard\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-12-13 18:28+0800\n"
|
||||
"PO-Revision-Date: 2025-12-14 20:11+0800\n"
|
||||
"POT-Creation-Date: 2026-01-07 16:11+0800\n"
|
||||
"PO-Revision-Date: 2026-01-10 13:46+0800\n"
|
||||
"Last-Translator: BERADQ <adqber123@outlook.com>\n"
|
||||
"Language-Team: Chinese (China)\n"
|
||||
"Language: zh_CN\n"
|
||||
@@ -69,10 +69,39 @@ msgstr "'adb install' 执行失败: 终止代码 %1"
|
||||
msgid "Installation successful"
|
||||
msgstr "安装成功"
|
||||
|
||||
#: dashboard/main.cpp:27 dashboard/qml/Main.qml:12
|
||||
#: dashboard/main.cpp:26
|
||||
#, kde-format
|
||||
msgid "WiVRn dashboard"
|
||||
msgstr "WiVRn 控制面板"
|
||||
msgctxt "@title"
|
||||
msgid "WiVRn"
|
||||
msgstr "WiVRn"
|
||||
|
||||
#: dashboard/main.cpp:28
|
||||
#, kde-format
|
||||
msgid "WiVRn server"
|
||||
msgstr "WiVRn 服务端"
|
||||
|
||||
#: dashboard/main.cpp:30
|
||||
#, kde-format
|
||||
msgid "(c) 2022-2026 WiVRn development team"
|
||||
msgstr "(c) 2022-2026 WiVRn 开发团队"
|
||||
|
||||
#: dashboard/main.cpp:40
|
||||
#, kde-format
|
||||
msgid "Monado"
|
||||
msgstr "Monado"
|
||||
|
||||
#: dashboard/main.cpp:41
|
||||
#, kde-format
|
||||
msgid "OpenXR runtime"
|
||||
msgstr "OpenXR 运行时"
|
||||
|
||||
#: dashboard/qml/About.qml:17 dashboard/qml/ApkInstallPage.qml:65
|
||||
#: dashboard/qml/HeadsetsPage.qml:183 dashboard/qml/HeadsetStatsPage.qml:36
|
||||
#: dashboard/qml/TroubleshootPage.qml:71
|
||||
#, kde-format
|
||||
msgctxt "go back to the home page"
|
||||
msgid "Back"
|
||||
msgstr "返回"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137
|
||||
#, kde-format
|
||||
@@ -90,8 +119,8 @@ msgstr "正在检查最新版本..."
|
||||
msgid "No APK is available for this version"
|
||||
msgstr "此版本无预编译 APK"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:321
|
||||
#: dashboard/qml/Main.qml:386 dashboard/qml/WizardPage.qml:211
|
||||
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:350
|
||||
#: dashboard/qml/Main.qml:408 dashboard/qml/WizardPage.qml:211
|
||||
#: dashboard/qml/WizardPage.qml:337
|
||||
#, kde-format
|
||||
msgid "ADB is not installed"
|
||||
@@ -112,13 +141,6 @@ msgstr ""
|
||||
"请按照 <a href=\"https://github.com/WiVRn/WiVRn/blob/master/docs/"
|
||||
"building.md#client-headset\">文档</a>中的说明构建您自己的客户端。"
|
||||
|
||||
#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetsPage.qml:183
|
||||
#: dashboard/qml/HeadsetStatsPage.qml:36 dashboard/qml/TroubleshootPage.qml:71
|
||||
#, kde-format
|
||||
msgctxt "go back to the home page"
|
||||
msgid "Back"
|
||||
msgstr "返回"
|
||||
|
||||
#: dashboard/qml/ConnectUsbDialog.qml:11
|
||||
#, kde-format
|
||||
msgid "Select your headset"
|
||||
@@ -139,7 +161,7 @@ msgstr "重新安装 WiVRn"
|
||||
msgid "Install WiVRn"
|
||||
msgstr "安装 WiVRn"
|
||||
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:391
|
||||
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:413
|
||||
#, kde-format
|
||||
msgid "Headsets"
|
||||
msgstr "头显"
|
||||
@@ -230,39 +252,44 @@ msgstr "配对新的头显"
|
||||
msgid "Headset statistics"
|
||||
msgstr "头显统计信息"
|
||||
|
||||
#: dashboard/qml/Main.qml:120
|
||||
#: dashboard/qml/Main.qml:12
|
||||
#, kde-format
|
||||
msgid "WiVRn dashboard"
|
||||
msgstr "WiVRn 控制面板"
|
||||
|
||||
#: dashboard/qml/Main.qml:124
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not installed"
|
||||
msgstr "Avahi 守护进程未安装"
|
||||
|
||||
#: dashboard/qml/Main.qml:128
|
||||
#: dashboard/qml/Main.qml:132
|
||||
#, kde-format
|
||||
msgid "Avahi daemon is not started"
|
||||
msgstr "Avahi 守护进程未启用"
|
||||
|
||||
#: dashboard/qml/Main.qml:135 dashboard/qml/Main.qml:149
|
||||
#: dashboard/qml/Main.qml:201
|
||||
#: dashboard/qml/Main.qml:139 dashboard/qml/Main.qml:153
|
||||
#: dashboard/qml/Main.qml:205
|
||||
#, kde-format
|
||||
msgid "Fix it"
|
||||
msgstr "修复"
|
||||
|
||||
#: dashboard/qml/Main.qml:143
|
||||
#: dashboard/qml/Main.qml:147
|
||||
#, kde-format
|
||||
msgid "Firewall may not allow port 9757"
|
||||
msgstr "防火墙可能禁止了端口 9757"
|
||||
|
||||
#: dashboard/qml/Main.qml:157
|
||||
#: dashboard/qml/Main.qml:161
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
|
||||
msgstr "NVIDIA 显卡至少需要驱动程序版本 565.77,目前版本为 %1"
|
||||
|
||||
#: dashboard/qml/Main.qml:163
|
||||
#: dashboard/qml/Main.qml:167
|
||||
#, kde-format
|
||||
msgid "More info"
|
||||
msgstr "更多信息"
|
||||
|
||||
#: dashboard/qml/Main.qml:171
|
||||
#: dashboard/qml/Main.qml:175
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Use the Mesa (radv) driver for AMD GPUs\n"
|
||||
@@ -271,7 +298,7 @@ msgstr ""
|
||||
"AMD 显卡请使用 Mesa (radv) 驱动程序\n"
|
||||
"使用 vaapi 的硬件编码不适用于 AMDVLK 和 AMDGPU-PRO"
|
||||
|
||||
#: dashboard/qml/Main.qml:179
|
||||
#: dashboard/qml/Main.qml:183
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
|
||||
@@ -280,95 +307,129 @@ msgstr ""
|
||||
"系统未检测到 OpenVR 兼容层,Steam 平台上的 VR 游戏无法正常加载。\n"
|
||||
"请安装 xrizer 或 OpenComposite"
|
||||
|
||||
#: dashboard/qml/Main.qml:187
|
||||
#: dashboard/qml/Main.qml:191
|
||||
#, kde-format
|
||||
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
|
||||
msgstr "Steam 是以 snap 方式安装的。Snap 与 WiVRn 不兼容。"
|
||||
|
||||
#: dashboard/qml/Main.qml:195
|
||||
#: dashboard/qml/Main.qml:199
|
||||
#, kde-format
|
||||
msgid ""
|
||||
"Steam is installed as a flatpak but does not have sufficient permissions."
|
||||
msgstr "Steam 是以 flatpak 方式安装的,但权限不足。"
|
||||
|
||||
#: dashboard/qml/Main.qml:210
|
||||
#: dashboard/qml/Main.qml:214
|
||||
#, kde-format
|
||||
msgid "Restart the server for configuration changes to take effect"
|
||||
msgstr "重新启动服务器以使配置更改生效。"
|
||||
|
||||
#: dashboard/qml/Main.qml:216
|
||||
#: dashboard/qml/Main.qml:220
|
||||
#, kde-format
|
||||
msgctxt "restart the server"
|
||||
msgid "Restart now"
|
||||
msgstr "立即重新启动"
|
||||
|
||||
#: dashboard/qml/Main.qml:241
|
||||
#: dashboard/qml/Main.qml:245
|
||||
#, kde-format
|
||||
msgid "Server failed to start"
|
||||
msgstr "服务器启动失败"
|
||||
|
||||
#: dashboard/qml/Main.qml:247 dashboard/qml/TroubleshootPage.qml:89
|
||||
#: dashboard/qml/Main.qml:251 dashboard/qml/TroubleshootPage.qml:89
|
||||
#, kde-format
|
||||
msgid "Open server logs"
|
||||
msgstr "开启服务器日志"
|
||||
|
||||
#: dashboard/qml/Main.qml:276
|
||||
#: dashboard/qml/Main.qml:277
|
||||
#, kde-format
|
||||
msgid "Server status"
|
||||
msgstr "服务器状态"
|
||||
|
||||
#: dashboard/qml/Main.qml:283
|
||||
#, kde-format
|
||||
msgctxt "whether the server is running, displayed in front of a checkbox"
|
||||
msgid "Running"
|
||||
msgstr "运行"
|
||||
|
||||
#: dashboard/qml/Main.qml:291
|
||||
#: dashboard/qml/Main.qml:296
|
||||
#, kde-format
|
||||
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
|
||||
msgid "Pairing"
|
||||
msgstr "配对"
|
||||
|
||||
#: dashboard/qml/Main.qml:304
|
||||
#: dashboard/qml/Main.qml:316
|
||||
#, kde-format
|
||||
msgid "PIN: %1"
|
||||
msgstr "身份识别码: %1"
|
||||
msgid "Headset status"
|
||||
msgstr "头显状态"
|
||||
|
||||
#: dashboard/qml/Main.qml:312 dashboard/qml/WizardPage.qml:329
|
||||
#: dashboard/qml/Main.qml:323
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "通过 USB 连接"
|
||||
msgctxt "label for headset name/status under server running switch"
|
||||
msgid "Headset"
|
||||
msgstr "头显"
|
||||
|
||||
#: dashboard/qml/Main.qml:323 dashboard/qml/WizardPage.qml:339
|
||||
#: dashboard/qml/Main.qml:326
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr "没有检测到头显,或您的头显未启用开发者模式"
|
||||
msgid "Not connected"
|
||||
msgstr "未连接"
|
||||
|
||||
#: dashboard/qml/Main.qml:331
|
||||
#: dashboard/qml/Main.qml:330
|
||||
#, kde-format
|
||||
msgid "Disconnect"
|
||||
msgstr "断开连接"
|
||||
|
||||
#: dashboard/qml/Main.qml:349
|
||||
#: dashboard/qml/Main.qml:339 dashboard/qml/Main.qml:347
|
||||
#: dashboard/qml/Main.qml:354
|
||||
#, kde-format
|
||||
msgctxt "label for USB status or connect button"
|
||||
msgid "USB"
|
||||
msgstr "USB"
|
||||
|
||||
#: dashboard/qml/Main.qml:340
|
||||
#, kde-format
|
||||
msgctxt "usb connect button"
|
||||
msgid "Connect (wired)"
|
||||
msgstr "链接 (有线)"
|
||||
|
||||
#: dashboard/qml/Main.qml:357 dashboard/qml/WizardPage.qml:339
|
||||
#, kde-format
|
||||
msgid "No headset is connected or your headset is not in developer mode"
|
||||
msgstr "没有检测到头显,或您的头显未启用开发者模式"
|
||||
|
||||
#: dashboard/qml/Main.qml:378
|
||||
#, kde-format
|
||||
msgid "Steam information"
|
||||
msgstr "Steam 信息"
|
||||
|
||||
#: dashboard/qml/Main.qml:370
|
||||
#: dashboard/qml/Main.qml:394
|
||||
#, kde-format
|
||||
msgid "Wizard"
|
||||
msgstr "向导"
|
||||
|
||||
#: dashboard/qml/Main.qml:377
|
||||
#: dashboard/qml/Main.qml:400
|
||||
#, kde-format
|
||||
msgid "Install the app"
|
||||
msgstr "安装应用程序"
|
||||
|
||||
#: dashboard/qml/Main.qml:398 dashboard/qml/SettingsPage.qml:14
|
||||
#: dashboard/qml/Main.qml:419 dashboard/qml/SettingsPage.qml:14
|
||||
#, kde-format
|
||||
msgid "Settings"
|
||||
msgstr "设置"
|
||||
|
||||
#: dashboard/qml/Main.qml:405 dashboard/qml/TroubleshootPage.qml:10
|
||||
#: dashboard/qml/Main.qml:425
|
||||
#, kde-format
|
||||
msgid "About"
|
||||
msgstr "关于"
|
||||
|
||||
#: dashboard/qml/Main.qml:430 dashboard/qml/TroubleshootPage.qml:10
|
||||
#, kde-format
|
||||
msgid "Troubleshoot"
|
||||
msgstr "疑难解答"
|
||||
|
||||
#: dashboard/qml/Main.qml:437
|
||||
#, kde-format
|
||||
msgid "Version %1"
|
||||
msgstr "版本 %1"
|
||||
|
||||
#: dashboard/qml/SelectGame.qml:14
|
||||
#, kde-format
|
||||
msgctxt "don't start an application automatically"
|
||||
@@ -799,6 +860,11 @@ msgstr ""
|
||||
msgid "To connect over USB, click on \"Connect by USB\"."
|
||||
msgstr "要通过 USB 连接,请点击 \"通过 USB 连接\"。"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:329
|
||||
#, kde-format
|
||||
msgid "Connect by USB"
|
||||
msgstr "通过 USB 连接"
|
||||
|
||||
#: dashboard/qml/WizardPage.qml:349
|
||||
#, kde-format
|
||||
msgid "Troubleshooting"
|
||||
@@ -845,16 +911,20 @@ msgstr "完成"
|
||||
msgid "Finished"
|
||||
msgstr "已完成"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:533
|
||||
#: dashboard/wivrn_server.cpp:538
|
||||
#, kde-format
|
||||
msgid "xrizer"
|
||||
msgstr "xrizer"
|
||||
|
||||
#: dashboard/wivrn_server.cpp:534
|
||||
#: dashboard/wivrn_server.cpp:539
|
||||
#, kde-format
|
||||
msgid "Open Composite"
|
||||
msgstr "Open Composite"
|
||||
|
||||
#, kde-format
|
||||
#~ msgid "PIN: %1"
|
||||
#~ msgstr "身份识别码: %1"
|
||||
|
||||
#, kde-format
|
||||
#~ msgctxt "automatically started application"
|
||||
#~ msgid "Application"
|
||||
|
||||
+127
-100
@@ -8,8 +8,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WiVRn\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2025-12-12 12:59+0800\n"
|
||||
"PO-Revision-Date: 2025-12-14 20:11+0800\n"
|
||||
"POT-Creation-Date: 2025-12-29 22:56+0800\n"
|
||||
"PO-Revision-Date: 2025-12-31 18:23+0800\n"
|
||||
"Last-Translator: BERADQ <adqber123@outlook.com>\n"
|
||||
"Language-Team: Chinese (China)\n"
|
||||
"Language: zh_CN\n"
|
||||
@@ -68,11 +68,11 @@ msgstr "无法连接至 {} ({}): {}"
|
||||
msgid "Waiting for connection"
|
||||
msgstr "等待连接"
|
||||
|
||||
#: client/scenes/lobby.cpp:1310
|
||||
#: client/scenes/lobby.cpp:1319
|
||||
msgid "Passthrough"
|
||||
msgstr "透视"
|
||||
|
||||
#: client/scenes/lobby.cpp:1322
|
||||
#: client/scenes/lobby.cpp:1331
|
||||
msgid "Default environment"
|
||||
msgstr "默认环境"
|
||||
|
||||
@@ -96,9 +96,9 @@ msgstr "停用"
|
||||
msgid "Disconnect"
|
||||
msgstr "终止连接"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:749
|
||||
#: client/scenes/lobby_gui_customize.cpp:840
|
||||
#: client/scenes/lobby_gui_customize.cpp:896 client/scenes/stream_gui.cpp:1011
|
||||
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
|
||||
#: client/scenes/lobby_gui_customize.cpp:844
|
||||
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011
|
||||
msgid "Close"
|
||||
msgstr "关闭"
|
||||
|
||||
@@ -135,7 +135,7 @@ msgstr "端口"
|
||||
msgid "TCP only"
|
||||
msgstr "仅限 TCP"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:651
|
||||
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
|
||||
#: client/scenes/stream_gui.cpp:968
|
||||
msgid "Cancel"
|
||||
msgstr "取消"
|
||||
@@ -181,17 +181,17 @@ msgstr "语言"
|
||||
msgid "System language"
|
||||
msgstr "系统语言"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:579 client/scenes/stream_gui.cpp:417
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417
|
||||
msgid "Refresh rate"
|
||||
msgstr "刷新率"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:579 client/scenes/lobby_gui.cpp:581
|
||||
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
|
||||
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419
|
||||
msgctxt "automatic refresh rate"
|
||||
msgid "Automatic"
|
||||
msgstr "自动"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:588 client/scenes/stream_gui.cpp:427
|
||||
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427
|
||||
msgid ""
|
||||
"Select refresh rate based on measured application performance.\n"
|
||||
"May cause flicker when a change happens."
|
||||
@@ -199,117 +199,133 @@ msgstr ""
|
||||
"根据测量的应用程序性能选择刷新率。\n"
|
||||
"更改时可能会造成闪烁。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:605 client/scenes/stream_gui.cpp:445
|
||||
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445
|
||||
msgid "Minimum refresh rate"
|
||||
msgstr "最低刷新率"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:631
|
||||
#: client/scenes/lobby_gui.cpp:632
|
||||
msgid "Foveation level"
|
||||
msgstr "注视点渲染等级"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:654
|
||||
#: client/scenes/lobby_gui.cpp:655
|
||||
msgid "Render resolution"
|
||||
msgstr "渲染分辨率"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:658
|
||||
#: client/scenes/lobby_gui.cpp:659
|
||||
#, c-format, c++-format
|
||||
msgid "{}%% - {}x{} per eye"
|
||||
msgstr "{}%% - 单眼 {}x{}"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:669
|
||||
#: client/scenes/lobby_gui.cpp:670
|
||||
#, c++-format
|
||||
msgid "Resolution larger than {}x{} may not be supported by the headset"
|
||||
msgstr "分辨率高于 {}x{} 可能不被头显支持"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:679
|
||||
msgid "Stream resolution"
|
||||
msgstr "串流分辨率"
|
||||
#: client/scenes/lobby_gui.cpp:680
|
||||
msgid "Foveated encoding"
|
||||
msgstr "注视点编码"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:683
|
||||
#: client/scenes/lobby_gui.cpp:684
|
||||
#, c-format, c++-format
|
||||
msgid "{}%%"
|
||||
msgstr "{}%%"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:697
|
||||
msgid ""
|
||||
"Higher values focus image quality where you look at,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
msgstr ""
|
||||
"更高的数值会降低注视点之外的画面质量,\n"
|
||||
"从而改善延迟、提升能效并优化整体画质。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:700
|
||||
msgid ""
|
||||
"Higher values focus image quality at the center,\n"
|
||||
"improving latency, power efficiency and quality."
|
||||
msgstr ""
|
||||
"更高的数值会降低画面中心点之外的画面质量,\n"
|
||||
"从而改善延迟、提高能效并优化整体画质。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:709
|
||||
msgctxt "Codec"
|
||||
msgid "Automatic"
|
||||
msgstr "自动"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:701
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
msgctxt "Codec"
|
||||
msgid "H.264"
|
||||
msgstr "H.264"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:703
|
||||
#: client/scenes/lobby_gui.cpp:715
|
||||
msgctxt "Codec"
|
||||
msgid "H.265"
|
||||
msgstr "H.265"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:705
|
||||
#: client/scenes/lobby_gui.cpp:717
|
||||
msgctxt "Codec"
|
||||
msgid "AV1"
|
||||
msgstr "AV1"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:713
|
||||
#: client/scenes/lobby_gui.cpp:725
|
||||
msgid "Codec"
|
||||
msgstr "编解码器"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:741
|
||||
#: client/scenes/lobby_gui.cpp:753
|
||||
msgid "10-bit"
|
||||
msgstr "10-bit"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:756
|
||||
#: client/scenes/lobby_gui.cpp:768
|
||||
msgid "Bitrate"
|
||||
msgstr "码率"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:760
|
||||
#: client/scenes/lobby_gui.cpp:772
|
||||
#, c++-format
|
||||
msgid "{}Mbit/s"
|
||||
msgstr "{}Mbit/s"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:771
|
||||
#: client/scenes/lobby_gui.cpp:783
|
||||
msgid "High power mode"
|
||||
msgstr "高耗电模式"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:774
|
||||
#: client/scenes/lobby_gui.cpp:786
|
||||
msgid "Increase power usage to allow higher resolution and refresh rate"
|
||||
msgstr "增加功耗以支持更高的分辨率和刷新率"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:780
|
||||
#: client/scenes/lobby_gui.cpp:792
|
||||
msgid "Enable microphone"
|
||||
msgstr "启用麦克风"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:789
|
||||
#: client/scenes/lobby_gui.cpp:801
|
||||
msgid "Unprocessed Microphone Audio"
|
||||
msgstr "未处理的麦克风音频"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:795
|
||||
#: client/scenes/lobby_gui.cpp:807
|
||||
msgid "Force disable audio filters, such as noise cancellation"
|
||||
msgstr "强制停用音频滤波器,如降噪"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:802
|
||||
#: client/scenes/lobby_gui.cpp:814
|
||||
msgid "Enable hand tracking"
|
||||
msgstr "启用手部追踪"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:808 client/scenes/lobby_gui.cpp:820
|
||||
#: client/scenes/lobby_gui.cpp:832 client/scenes/lobby_gui.cpp:849
|
||||
#: client/scenes/lobby_gui_customize.cpp:636
|
||||
#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831
|
||||
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856
|
||||
#: client/scenes/lobby_gui_customize.cpp:640
|
||||
msgid "This feature is not supported by your headset"
|
||||
msgstr "您的头显不支持此功能"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:814
|
||||
#: client/scenes/lobby_gui.cpp:825
|
||||
msgid "Enable eye tracking"
|
||||
msgstr "启用眼动追踪"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:826
|
||||
#: client/scenes/lobby_gui.cpp:836
|
||||
msgid "Enable face tracking"
|
||||
msgstr "启用面部追踪"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:840
|
||||
#: client/scenes/lobby_gui.cpp:848
|
||||
msgid "Enable body tracking"
|
||||
msgstr "启用身体追踪"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:854
|
||||
#: client/scenes/lobby_gui.cpp:861
|
||||
msgid ""
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
"tracking settings,\n"
|
||||
@@ -318,11 +334,11 @@ msgstr ""
|
||||
"需要在 Quest 运动追踪设置中启用「手部和身体追踪」,\n"
|
||||
"否则身体数据将根据手柄和头显的位置进行猜测"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:864
|
||||
#: client/scenes/lobby_gui.cpp:871
|
||||
msgid "Enable lower body tracking"
|
||||
msgstr "启用下半身追踪"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:870
|
||||
#: client/scenes/lobby_gui.cpp:877
|
||||
msgid ""
|
||||
"Estimate lower body joint positions using Generative Legs\n"
|
||||
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
|
||||
@@ -331,11 +347,11 @@ msgstr ""
|
||||
"使用 Generative Legs 猜测下半身关节位置\n"
|
||||
"需要在 Quest 运动追踪设置中启用「手部和身体追踪」"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:873
|
||||
#: client/scenes/lobby_gui.cpp:880
|
||||
msgid "Enable hip tracking"
|
||||
msgstr "启用臀部(腰部)追踪"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:879
|
||||
#: client/scenes/lobby_gui.cpp:886
|
||||
msgid ""
|
||||
"Only takes affect with lower body tracking enabled\n"
|
||||
"May be desired when using another source of hip tracking"
|
||||
@@ -343,11 +359,11 @@ msgstr ""
|
||||
"仅在启用下半身追踪时生效\n"
|
||||
"在使用其他臀部追踪时可能需要此功能"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:887
|
||||
#: client/scenes/lobby_gui.cpp:895
|
||||
msgid "Enable in-stream window"
|
||||
msgstr "启用串流中窗口"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:890
|
||||
#: client/scenes/lobby_gui.cpp:898
|
||||
msgid ""
|
||||
"Enables the configuration window to be shown while the game is streaming.\n"
|
||||
"If enabled, the window is activated by pressing both thumbsticks."
|
||||
@@ -355,15 +371,23 @@ msgstr ""
|
||||
"在游戏串流期间启用配置窗口显示\n"
|
||||
"若启用此功能,同时按下两只摇杆,将会显示该窗口。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:904 client/scenes/stream_gui.cpp:479
|
||||
#: client/scenes/lobby_gui.cpp:902
|
||||
msgid "Extended configuration values"
|
||||
msgstr "扩大配置值范围"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:905
|
||||
msgid "Allows unsafe configuration values, use at your own risk."
|
||||
msgstr "允许使用不安全的配置值,风险自负。"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479
|
||||
msgid "OpenXR post-processing"
|
||||
msgstr "OpenXR 后处理"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:908 client/scenes/stream_gui.cpp:483
|
||||
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483
|
||||
msgid "Supersampling"
|
||||
msgstr "超采样"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:928 client/scenes/stream_gui.cpp:504
|
||||
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504
|
||||
msgid ""
|
||||
"Reduce flicker for high contrast edges.\n"
|
||||
"Useful when the input resolution is high compared to the headset display"
|
||||
@@ -371,11 +395,11 @@ msgstr ""
|
||||
"减少高对比度边缘的闪烁。\n"
|
||||
"当串流分辨率高于头显原生分辨率时很有用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:933 client/scenes/stream_gui.cpp:509
|
||||
#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:509
|
||||
msgid "Sharpening"
|
||||
msgstr "锐化"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:953 client/scenes/stream_gui.cpp:530
|
||||
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530
|
||||
msgid ""
|
||||
"Improve clarity of high contrast edges and counteract blur.\n"
|
||||
"Useful when the input resolution is low compared to the headset display"
|
||||
@@ -383,129 +407,129 @@ msgstr ""
|
||||
"改善高对比边缘的清晰度并抵消模糊。\n"
|
||||
"当串流分辨率低于头显原生分辨率时很有用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1137 client/scenes/lobby_gui.cpp:1145
|
||||
#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160
|
||||
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373
|
||||
msgid "CPU time"
|
||||
msgstr "CPU 时间"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1141
|
||||
#: client/scenes/lobby_gui.cpp:1156
|
||||
msgid "CPU time [ms]"
|
||||
msgstr "CPU 时间 [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1151 client/scenes/lobby_gui.cpp:1159
|
||||
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
|
||||
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374
|
||||
msgid "GPU time"
|
||||
msgstr "GPU 时间"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1155
|
||||
#: client/scenes/lobby_gui.cpp:1170
|
||||
msgid "GPU time [ms]"
|
||||
msgstr "GPU 时间 [ms]"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1219
|
||||
#: client/scenes/lobby_gui.cpp:1234
|
||||
msgid "Enable the microphone?"
|
||||
msgstr "是否启用麦克风?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1224
|
||||
#: client/scenes/lobby_gui.cpp:1239
|
||||
msgid "Enable eye tracking?"
|
||||
msgstr "是否启用眼动追踪?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1229
|
||||
#: client/scenes/lobby_gui.cpp:1244
|
||||
msgid "Enable face tracking?"
|
||||
msgstr "是否启用面部追踪?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1234
|
||||
#: client/scenes/lobby_gui.cpp:1249
|
||||
msgid "Enable body tracking?"
|
||||
msgstr "是否启用身体追踪?"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1242
|
||||
#: client/scenes/lobby_gui.cpp:1257
|
||||
msgid "Welcome to WiVRn"
|
||||
msgstr "欢迎使用 WiVRn"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1270
|
||||
#: client/scenes/lobby_gui.cpp:1285
|
||||
msgid "Yes"
|
||||
msgstr "是"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1277
|
||||
#: client/scenes/lobby_gui.cpp:1292
|
||||
msgid "No"
|
||||
msgstr "否"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1296 client/scenes/lobby_gui.cpp:1942
|
||||
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
|
||||
msgid "Licenses"
|
||||
msgstr "许可证"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1572
|
||||
#: client/scenes/lobby_gui.cpp:1587
|
||||
msgid "Microphone is enabled"
|
||||
msgstr "麦克风已启用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1573
|
||||
#: client/scenes/lobby_gui.cpp:1588
|
||||
msgid "Microphone is disabled"
|
||||
msgstr "麦克风已停用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1582
|
||||
#: client/scenes/lobby_gui.cpp:1597
|
||||
msgid "Hand tracking is enabled"
|
||||
msgstr "手部追踪已启用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1583
|
||||
#: client/scenes/lobby_gui.cpp:1598
|
||||
msgid "Hand tracking is disabled"
|
||||
msgstr "手部追踪已停用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1592
|
||||
#: client/scenes/lobby_gui.cpp:1607
|
||||
msgid "Eye tracking is enabled"
|
||||
msgstr "眼动追踪已启用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1593
|
||||
#: client/scenes/lobby_gui.cpp:1608
|
||||
msgid "Eye tracking is disabled"
|
||||
msgstr "眼动追踪已停用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1603
|
||||
#: client/scenes/lobby_gui.cpp:1618
|
||||
msgid "Face tracking is enabled"
|
||||
msgstr "面部追踪已启用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1604
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
msgid "Face tracking is disabled"
|
||||
msgstr "面部追踪已停用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1618
|
||||
#: client/scenes/lobby_gui.cpp:1633
|
||||
msgid "Body tracking is enabled"
|
||||
msgstr "身体追踪已启用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1619
|
||||
#: client/scenes/lobby_gui.cpp:1634
|
||||
msgid "Body tracking is disabled"
|
||||
msgstr "身体追踪已停用"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1635
|
||||
#: client/scenes/lobby_gui.cpp:1650
|
||||
msgid "Add server"
|
||||
msgstr "新增服务器"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1921
|
||||
#: client/scenes/lobby_gui.cpp:1936
|
||||
msgid "Server list"
|
||||
msgstr "服务器列表"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1924 client/scenes/stream_gui.cpp:996
|
||||
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996
|
||||
msgid "Settings"
|
||||
msgstr "设置"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1927
|
||||
#: client/scenes/lobby_gui.cpp:1942
|
||||
msgid "Post-processing"
|
||||
msgstr "后处理"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1930
|
||||
#: client/scenes/lobby_gui.cpp:1945
|
||||
msgid "Customize"
|
||||
msgstr "自定义"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1934
|
||||
#: client/scenes/lobby_gui.cpp:1949
|
||||
msgid "Debug"
|
||||
msgstr "Debug"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1939
|
||||
#: client/scenes/lobby_gui.cpp:1954
|
||||
msgid "About"
|
||||
msgstr "关于"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1945
|
||||
#: client/scenes/lobby_gui.cpp:1960
|
||||
msgid "Exit"
|
||||
msgstr "退出"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1962
|
||||
#: client/scenes/lobby_gui.cpp:1977
|
||||
msgid ""
|
||||
"Press the grip button or put your palm up\n"
|
||||
"to move the main window"
|
||||
@@ -513,51 +537,51 @@ msgstr ""
|
||||
"按下抓握键,或手掌向上\n"
|
||||
"以移动主窗口"
|
||||
|
||||
#: client/scenes/lobby_gui.cpp:1964
|
||||
#: client/scenes/lobby_gui.cpp:1979
|
||||
msgid "Press the grip button to move the main window"
|
||||
msgstr "按下抓握键以移动主窗口"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:208
|
||||
#: client/scenes/lobby_gui_customize.cpp:213
|
||||
msgid "Locally loaded environment"
|
||||
msgstr "从本地加载了环境"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:221
|
||||
#: client/scenes/lobby_gui_customize.cpp:226
|
||||
#, c++-format
|
||||
msgid "Locally loaded environment ({})"
|
||||
msgstr "从本地加载了环境 ({})"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:296
|
||||
#: client/scenes/lobby_gui_customize.cpp:300
|
||||
#, c++-format
|
||||
msgid "Cannot load local environment: {}"
|
||||
msgstr "无法加载本地环境:{}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:329
|
||||
#: client/scenes/lobby_gui_customize.cpp:333
|
||||
#, c++-format
|
||||
msgid "Cannot load environment list: {}"
|
||||
msgstr "无法加载环境列表:{}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:459
|
||||
#: client/scenes/lobby_gui_customize.cpp:463
|
||||
#, c++-format
|
||||
msgid "Author: {}"
|
||||
msgstr "作者: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:463
|
||||
#: client/scenes/lobby_gui_customize.cpp:467
|
||||
#, c++-format
|
||||
msgid "Size: {:.1f} MB"
|
||||
msgstr "大小: {:.1f} MB"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:543
|
||||
#: client/scenes/lobby_gui_customize.cpp:547
|
||||
msgid "Delete this model"
|
||||
msgstr "删除此模型"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:579
|
||||
#: client/scenes/lobby_gui_customize.cpp:785
|
||||
#: client/scenes/lobby_gui_customize.cpp:583
|
||||
#: client/scenes/lobby_gui_customize.cpp:789
|
||||
#, c++-format
|
||||
msgid "HTTP error {} when downloading {}"
|
||||
msgstr "发生了 HTTP 错误 {} 于下载 {} 时"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:587
|
||||
#: client/scenes/lobby_gui_customize.cpp:793
|
||||
#: client/scenes/lobby_gui_customize.cpp:591
|
||||
#: client/scenes/lobby_gui_customize.cpp:797
|
||||
#, c++-format
|
||||
msgid ""
|
||||
"Curl error when downloading {}\n"
|
||||
@@ -566,29 +590,29 @@ msgstr ""
|
||||
"通过 Curl 下载时发生了错误 {}\n"
|
||||
"{}:{}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:648
|
||||
#: client/scenes/lobby_gui_customize.cpp:652
|
||||
#, c++-format
|
||||
msgid "Really delete {}?"
|
||||
msgstr "真的要删除 {} 吗?"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:652
|
||||
#: client/scenes/lobby_gui_customize.cpp:656
|
||||
msgid "Delete"
|
||||
msgstr "删除"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:733
|
||||
#: client/scenes/lobby_gui_customize.cpp:737
|
||||
#, c++-format
|
||||
msgid "Cannot load environment: {}"
|
||||
msgstr "无法加载环境: {}"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:741
|
||||
#: client/scenes/lobby_gui_customize.cpp:745
|
||||
msgid "Loading environment"
|
||||
msgstr "环境加载中"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:820
|
||||
#: client/scenes/lobby_gui_customize.cpp:824
|
||||
msgid "Download more environments"
|
||||
msgstr "下载更多环境"
|
||||
|
||||
#: client/scenes/lobby_gui_customize.cpp:828
|
||||
#: client/scenes/lobby_gui_customize.cpp:832
|
||||
msgid "Open local glTF model"
|
||||
msgstr "打开本地 glTF 模型"
|
||||
|
||||
@@ -765,6 +789,9 @@ msgstr "无法验证身份识别码"
|
||||
msgid "Pairing is disabled on server"
|
||||
msgstr "服务器上已停用配对"
|
||||
|
||||
#~ msgid "Stream resolution"
|
||||
#~ msgstr "串流分辨率"
|
||||
|
||||
#~ msgid "Resolution scale"
|
||||
#~ msgstr "分辨率缩放比例"
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
20e0dacbdd2de863923790326beec76e848b056a
|
||||
93d5848d2f5f835fe29291dc7e0f094f3e02de78
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From ffccc272cb6c0f566c862169a846d212ef1358c5 Mon Sep 17 00:00:00 2001
|
||||
From cdc149ced7ae13d7b8601ab5af532f3e7739df2c Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Tue, 22 Oct 2024 15:23:19 +0200
|
||||
Subject: [PATCH 01/10] c/multi: early wake of compositor
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 094859d490114d28dbe0f8d2665617b942275ccb Mon Sep 17 00:00:00 2001
|
||||
From 418da3425889c5577b4099c089de326ef066e655 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Tue, 8 Oct 2024 22:13:15 +0200
|
||||
Subject: [PATCH 02/10] Use extern socket fd
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 107759c42b200fedba37418a1934f4093eec787d Mon Sep 17 00:00:00 2001
|
||||
From b75d0230a7f2380ed05ec87e24c61dcbbd66c1b5 Mon Sep 17 00:00:00 2001
|
||||
From: galister <85970-galister@users.noreply.gitlab.freedesktop.org>
|
||||
Date: Sat, 23 Nov 2024 02:42:12 +0900
|
||||
Subject: [PATCH 03/10] change environment blend mode selection logic
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From bdad4291984a1975e475558e9a0eddc140f05858 Mon Sep 17 00:00:00 2001
|
||||
From 1fed94d509b7e0b7c6ef89118e646338d88f5a9c Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Sat, 15 Mar 2025 22:19:48 +0100
|
||||
Subject: [PATCH 04/10] st/oxr: forward 0 refresh rate
|
||||
@@ -22,10 +22,10 @@ index 41dfe48bc..e29795e42 100644
|
||||
return result;
|
||||
}
|
||||
diff --git a/src/xrt/state_trackers/oxr/oxr_api_session.c b/src/xrt/state_trackers/oxr/oxr_api_session.c
|
||||
index be9b4dd77..b0da05aa8 100644
|
||||
index f58bdac52..556e12100 100644
|
||||
--- a/src/xrt/state_trackers/oxr/oxr_api_session.c
|
||||
+++ b/src/xrt/state_trackers/oxr/oxr_api_session.c
|
||||
@@ -716,15 +716,11 @@ oxr_xrRequestDisplayRefreshRateFB(XrSession session, float displayRefreshRate)
|
||||
@@ -454,15 +454,11 @@ oxr_xrRequestDisplayRefreshRateFB(XrSession session, float displayRefreshRate)
|
||||
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrRequestDisplayRefreshRateFB");
|
||||
OXR_VERIFY_SESSION_NOT_LOST(&log, sess);
|
||||
|
||||
|
||||
@@ -1,45 +1,24 @@
|
||||
From 92a26a8fcf88ec231a36ea16aaba51a94b4d134d Mon Sep 17 00:00:00 2001
|
||||
From 405df0e880a8fff52a01992eb96fa634cc795ba6 Mon Sep 17 00:00:00 2001
|
||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||
Date: Wed, 11 Sep 2024 22:56:29 +0200
|
||||
Subject: [PATCH 05/10] Replace distortion with foveation
|
||||
|
||||
---
|
||||
src/xrt/compositor/CMakeLists.txt | 4 +-
|
||||
src/xrt/compositor/main/comp_renderer.c | 6 +-
|
||||
src/xrt/compositor/main/comp_target.h | 3 +-
|
||||
src/xrt/compositor/render/CMakeLists.txt | 2 +-
|
||||
src/xrt/compositor/render/render_compute.c | 410 +++++++-----------
|
||||
src/xrt/compositor/render/render_interface.h | 95 ++--
|
||||
src/xrt/compositor/render/render_resources.c | 106 ++---
|
||||
src/xrt/compositor/shaders/CMakeLists.txt | 2 +-
|
||||
src/xrt/compositor/shaders/clear.comp | 4 +-
|
||||
src/xrt/compositor/shaders/distortion.comp | 182 ++++----
|
||||
.../compositor/util/comp_high_level_render.c | 6 +-
|
||||
.../compositor/util/comp_high_level_render.h | 9 +-
|
||||
src/xrt/compositor/util/comp_render.h | 11 +-
|
||||
src/xrt/compositor/util/comp_render_cs.c | 112 ++---
|
||||
12 files changed, 356 insertions(+), 592 deletions(-)
|
||||
13 files changed, 356 insertions(+), 592 deletions(-)
|
||||
|
||||
diff --git a/src/xrt/compositor/CMakeLists.txt b/src/xrt/compositor/CMakeLists.txt
|
||||
index 1ba5ec438..7435a9ce3 100644
|
||||
--- a/src/xrt/compositor/CMakeLists.txt
|
||||
+++ b/src/xrt/compositor/CMakeLists.txt
|
||||
@@ -105,7 +105,7 @@ if(XRT_HAVE_VULKAN)
|
||||
spirv_shaders(
|
||||
SHADER_HEADERS
|
||||
SPIRV_VERSION
|
||||
- 1.0 # Currently targeting Vulkan 1.0
|
||||
+ 1.6 # Currently targeting Vulkan 1.3
|
||||
SOURCES
|
||||
${SHADERS}
|
||||
)
|
||||
@@ -115,7 +115,7 @@ if(XRT_HAVE_VULKAN)
|
||||
${SHADER_HEADERS}
|
||||
render/render_buffer.c
|
||||
render/render_compute.c
|
||||
- render/render_distortion.c
|
||||
+ # render/render_distortion.c implemented in wivrn
|
||||
render/render_gfx.c
|
||||
render/render_interface.h
|
||||
render/render_resources.c
|
||||
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
|
||||
index 16c16fd7a..40b219cef 100644
|
||||
--- a/src/xrt/compositor/main/comp_renderer.c
|
||||
@@ -78,6 +57,19 @@ index 2122f46e7..53dcd631b 100644
|
||||
};
|
||||
|
||||
/*!
|
||||
diff --git a/src/xrt/compositor/render/CMakeLists.txt b/src/xrt/compositor/render/CMakeLists.txt
|
||||
index 8b0014d39..60afb0ce2 100644
|
||||
--- a/src/xrt/compositor/render/CMakeLists.txt
|
||||
+++ b/src/xrt/compositor/render/CMakeLists.txt
|
||||
@@ -10,7 +10,7 @@ add_library(
|
||||
comp_render STATIC
|
||||
render_buffer.c
|
||||
render_compute.c
|
||||
- render_distortion.c
|
||||
+ # render/render_distortion.c implemented in wivrn
|
||||
render_gfx.c
|
||||
render_interface.h
|
||||
render_resources.c
|
||||
diff --git a/src/xrt/compositor/render/render_compute.c b/src/xrt/compositor/render/render_compute.c
|
||||
index 62d7138b9..44c3f0aee 100644
|
||||
--- a/src/xrt/compositor/render/render_compute.c
|
||||
@@ -655,10 +647,10 @@ index 62d7138b9..44c3f0aee 100644
|
||||
.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
|
||||
.image = target_image,
|
||||
diff --git a/src/xrt/compositor/render/render_interface.h b/src/xrt/compositor/render/render_interface.h
|
||||
index 9b9c8efa8..1aeab7693 100644
|
||||
index 8ca26704a..b7d1d96a8 100644
|
||||
--- a/src/xrt/compositor/render/render_interface.h
|
||||
+++ b/src/xrt/compositor/render/render_interface.h
|
||||
@@ -80,12 +80,8 @@ extern "C" {
|
||||
@@ -82,12 +82,8 @@ extern "C" {
|
||||
#define RENDER_MAX_LAYER_RUNS_SIZE (XRT_MAX_VIEWS)
|
||||
#define RENDER_MAX_LAYER_RUNS_COUNT(RENDER_RESOURCES) (RENDER_RESOURCES->view_count)
|
||||
|
||||
@@ -673,7 +665,7 @@ index 9b9c8efa8..1aeab7693 100644
|
||||
|
||||
//! The binding that the layer projection and quad shader have their UBO on.
|
||||
#define RENDER_BINDING_LAYER_SHARED_UBO 0
|
||||
@@ -118,12 +114,6 @@ extern "C" {
|
||||
@@ -120,12 +116,6 @@ extern "C" {
|
||||
uint32_t
|
||||
render_max_layers_capable(const struct vk_bundle *vk, bool use_compute, uint32_t desired_max_layers);
|
||||
|
||||
@@ -686,7 +678,7 @@ index 9b9c8efa8..1aeab7693 100644
|
||||
/*!
|
||||
* Calculates a timewarp matrix which takes in NDC coords and gives out results
|
||||
* in [-1, 1] space that needs a perspective divide.
|
||||
@@ -511,7 +501,8 @@ struct render_resources
|
||||
@@ -465,7 +455,8 @@ struct render_resources
|
||||
uint32_t distortion_binding;
|
||||
|
||||
//! Writing the image out too.
|
||||
@@ -696,7 +688,7 @@ index 9b9c8efa8..1aeab7693 100644
|
||||
|
||||
//! Uniform data binding.
|
||||
uint32_t ubo_binding;
|
||||
@@ -548,9 +539,6 @@ struct render_resources
|
||||
@@ -502,9 +493,6 @@ struct render_resources
|
||||
//! Doesn't depend on target so is static.
|
||||
VkPipeline pipeline;
|
||||
|
||||
@@ -706,7 +698,7 @@ index 9b9c8efa8..1aeab7693 100644
|
||||
//! Target info.
|
||||
struct render_buffer ubo;
|
||||
} distortion;
|
||||
@@ -572,17 +560,11 @@ struct render_resources
|
||||
@@ -526,17 +514,11 @@ struct render_resources
|
||||
//! Transform to go from UV to tangle angles.
|
||||
struct xrt_normalized_rect uv_to_tanangle[XRT_MAX_VIEWS];
|
||||
|
||||
@@ -728,7 +720,7 @@ index 9b9c8efa8..1aeab7693 100644
|
||||
} distortion;
|
||||
};
|
||||
|
||||
@@ -1300,6 +1282,7 @@ struct render_compute_layer_ubo_data
|
||||
@@ -1254,6 +1236,7 @@ struct render_compute_layer_ubo_data
|
||||
//! Timewarp matrices
|
||||
struct xrt_matrix_4x4 transforms_timewarp[RENDER_MAX_LAYERS];
|
||||
|
||||
@@ -736,7 +728,7 @@ index 9b9c8efa8..1aeab7693 100644
|
||||
/*!
|
||||
* For quad layers
|
||||
*/
|
||||
@@ -1339,6 +1322,14 @@ struct render_compute_distortion_ubo_data
|
||||
@@ -1293,6 +1276,14 @@ struct render_compute_distortion_ubo_data
|
||||
struct xrt_matrix_4x4 transform_timewarp_scanout_end[XRT_MAX_VIEWS];
|
||||
};
|
||||
|
||||
@@ -751,7 +743,7 @@ index 9b9c8efa8..1aeab7693 100644
|
||||
/*!
|
||||
* Init struct and create resources needed for compute rendering.
|
||||
*
|
||||
@@ -1392,7 +1383,8 @@ render_compute_layers(struct render_compute *render,
|
||||
@@ -1346,7 +1337,8 @@ render_compute_layers(struct render_compute *render,
|
||||
VkSampler src_samplers[RENDER_MAX_IMAGES_SIZE],
|
||||
VkImageView src_image_views[RENDER_MAX_IMAGES_SIZE],
|
||||
uint32_t num_srcs,
|
||||
@@ -761,7 +753,7 @@ index 9b9c8efa8..1aeab7693 100644
|
||||
const struct render_viewport_data *view,
|
||||
bool timewarp);
|
||||
|
||||
@@ -1400,44 +1392,14 @@ render_compute_layers(struct render_compute *render,
|
||||
@@ -1354,44 +1346,14 @@ render_compute_layers(struct render_compute *render,
|
||||
* @public @memberof render_compute
|
||||
*/
|
||||
void
|
||||
@@ -814,7 +806,7 @@ index 9b9c8efa8..1aeab7693 100644
|
||||
|
||||
/*!
|
||||
* @public @memberof render_compute
|
||||
@@ -1445,7 +1407,8 @@ render_compute_projection_no_timewarp(struct render_compute *render,
|
||||
@@ -1399,7 +1361,8 @@ render_compute_projection_no_timewarp(struct render_compute *render,
|
||||
void
|
||||
render_compute_clear(struct render_compute *render,
|
||||
VkImage target_image,
|
||||
@@ -1073,6 +1065,19 @@ index d28caaed8..5232a774d 100644
|
||||
D(PipelineLayout, r->compute.distortion.pipeline_layout);
|
||||
|
||||
D(Pipeline, r->compute.clear.pipeline);
|
||||
diff --git a/src/xrt/compositor/shaders/CMakeLists.txt b/src/xrt/compositor/shaders/CMakeLists.txt
|
||||
index d8aca97e2..ffc79ca6e 100644
|
||||
--- a/src/xrt/compositor/shaders/CMakeLists.txt
|
||||
+++ b/src/xrt/compositor/shaders/CMakeLists.txt
|
||||
@@ -25,7 +25,7 @@ set(SHADERS
|
||||
spirv_shaders(
|
||||
SHADER_HEADERS
|
||||
SPIRV_VERSION
|
||||
- 1.0 # Currently targeting Vulkan 1.0
|
||||
+ 1.6 # Currently targeting Vulkan 1.6
|
||||
SOURCES
|
||||
${SHADERS}
|
||||
)
|
||||
diff --git a/src/xrt/compositor/shaders/clear.comp b/src/xrt/compositor/shaders/clear.comp
|
||||
index 1f0e732b8..e02307415 100644
|
||||
--- a/src/xrt/compositor/shaders/clear.comp
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 1ccefbfc699c2b60f5a7b6eaa256930372bf0b6d Mon Sep 17 00:00:00 2001
|
||||
From e642d6e1ed14dfaed47417043fe40cc9ed46eccc Mon Sep 17 00:00:00 2001
|
||||
From: no name <git-am@invalid>
|
||||
Date: Sun, 28 Sep 2025 11:33:10 +0200
|
||||
Subject: [PATCH 06/10] d/steamvr_lh: prevent crash on vive pro2/WiVRn
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 7e8179f0d0347518804df1931b066981f3c0a90d Mon Sep 17 00:00:00 2001
|
||||
From ab48560e8e94c11d10ade2543faae3102bb90732 Mon Sep 17 00:00:00 2001
|
||||
From: Sapphire <imsapphire0@gmail.com>
|
||||
Date: Fri, 7 Nov 2025 20:41:16 -0600
|
||||
Subject: [PATCH 07/10] st/oxr: push XrEventDataInteractionProfileChanged when
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 604495bce0665ba1050574582809c67bf6751c7b Mon Sep 17 00:00:00 2001
|
||||
From 8c1184b92396ea927f639b9a068307c81123fbf6 Mon Sep 17 00:00:00 2001
|
||||
From: rcelyte <rcelyte@battletrains.org>
|
||||
Date: Mon, 8 Dec 2025 19:29:28 +0000
|
||||
Subject: [PATCH 08/10] d/solarxr: Fix flatpak socket path
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From c6f7cb6a737c849aa2b33c40b5f5380794578db4 Mon Sep 17 00:00:00 2001
|
||||
From 4c35c93877ba26f43190a80ec9d8f551ecd0b022 Mon Sep 17 00:00:00 2001
|
||||
From: rcelyte <rcelyte@battletrains.org>
|
||||
Date: Fri, 14 Nov 2025 19:48:59 +0000
|
||||
Subject: [PATCH 09/10] d/solarxr: Sync at fixed rate This improves tracking
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
From 9041dad492652ed1173cb381ee4da9b16b1a96f8 Mon Sep 17 00:00:00 2001
|
||||
From 0d7ea2766bbb7d3c729e0e1af703a19b87bf6497 Mon Sep 17 00:00:00 2001
|
||||
From: rcelyte <rcelyte@battletrains.org>
|
||||
Date: Mon, 15 Sep 2025 22:46:15 +0000
|
||||
Subject: [PATCH 10/10] d/solarxr: Feed device poses to server
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
From 38b1b5dbeff17e65e136af337a1385e9e14f8723 Mon Sep 17 00:00:00 2001
|
||||
From: no name <git-am@invalid>
|
||||
Date: Thu, 15 Jan 2026 12:13:06 +0100
|
||||
Subject: [PATCH] Don't get pose data for fast path
|
||||
|
||||
---
|
||||
src/xrt/compositor/main/comp_renderer.c | 17 +++++++++--------
|
||||
1 file changed, 9 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
|
||||
index 40b219cef..febd35faa 100644
|
||||
--- a/src/xrt/compositor/main/comp_renderer.c
|
||||
+++ b/src/xrt/compositor/main/comp_renderer.c
|
||||
@@ -994,14 +994,15 @@ dispatch_compute(struct comp_renderer *r,
|
||||
struct xrt_pose world_poses_scanout_begin[XRT_MAX_VIEWS];
|
||||
struct xrt_pose world_poses_scanout_end[XRT_MAX_VIEWS];
|
||||
struct xrt_pose eye_poses[XRT_MAX_VIEWS];
|
||||
- calc_pose_data( //
|
||||
- r, //
|
||||
- fov_source, //
|
||||
- fovs, //
|
||||
- world_poses_scanout_begin, //
|
||||
- world_poses_scanout_end, //
|
||||
- eye_poses, //
|
||||
- render->r->view_count); //
|
||||
+ if (!c->base.frame_params.one_projection_layer_fast_path)
|
||||
+ calc_pose_data( //
|
||||
+ r, //
|
||||
+ fov_source, //
|
||||
+ fovs, //
|
||||
+ world_poses_scanout_begin, //
|
||||
+ world_poses_scanout_end, //
|
||||
+ eye_poses, //
|
||||
+ render->r->view_count); //
|
||||
|
||||
// Target Vulkan resources..
|
||||
VkImage target_image = r->c->target->images[r->acquired_buffer].handle;
|
||||
--
|
||||
2.52.0
|
||||
|
||||
@@ -98,6 +98,10 @@ if (WIVRN_BUILD_SERVER)
|
||||
driver/app_pacer.cpp
|
||||
driver/clock_offset.cpp
|
||||
driver/configuration.cpp
|
||||
driver/hand_joints_list.cpp
|
||||
driver/pose_list.cpp
|
||||
driver/tracking_control.cpp
|
||||
driver/view_list.cpp
|
||||
driver/wivrn_hmd.cpp
|
||||
driver/wivrn_pacer.cpp
|
||||
driver/wivrn_comp_target.cpp
|
||||
@@ -109,9 +113,6 @@ if (WIVRN_BUILD_SERVER)
|
||||
driver/wivrn_generic_tracker.cpp
|
||||
driver/wivrn_foveation.cpp
|
||||
driver/wivrn_uinput.cpp
|
||||
driver/pose_list.cpp
|
||||
driver/view_list.cpp
|
||||
driver/hand_joints_list.cpp
|
||||
driver/wivrn_session.cpp
|
||||
driver/wivrn_connection.cpp
|
||||
driver/xrt_cast.cpp
|
||||
|
||||
@@ -19,29 +19,28 @@
|
||||
|
||||
#include "accept_connection.h"
|
||||
|
||||
#include "server/ipc_server_interface.h"
|
||||
|
||||
#include "util/u_logging.h"
|
||||
#include "utils/overloaded.h"
|
||||
|
||||
#include "driver/wivrn_session.h"
|
||||
#include "wivrn_config.h"
|
||||
#include "wivrn_ipc.h"
|
||||
#include "wivrn_sockets.h"
|
||||
|
||||
#include <sys/poll.h>
|
||||
|
||||
std::unique_ptr<wivrn::TCP> wivrn::accept_connection(ipc_server * server, int watch_fd, std::function<bool()> quit)
|
||||
std::unique_ptr<wivrn::TCP> wivrn::accept_connection(wivrn_session & cnx, std::stop_token stop, std::function<void(wivrn_session &)> tick)
|
||||
{
|
||||
wivrn_ipc_socket_monado->send(from_monado::headset_disconnected{});
|
||||
|
||||
wivrn::TCPListener listener(wivrn::default_port);
|
||||
|
||||
pollfd fds[3]{
|
||||
{.fd = watch_fd, .events = POLLIN},
|
||||
pollfd fds[2]{
|
||||
{.fd = listener.get_fd(), .events = POLLIN},
|
||||
{.fd = wivrn_ipc_socket_monado->get_fd(), .events = POLLIN},
|
||||
};
|
||||
|
||||
while (not(quit and quit()))
|
||||
while (not stop.stop_requested())
|
||||
{
|
||||
if (poll(fds, std::size(fds), 100) < 0)
|
||||
{
|
||||
@@ -50,21 +49,20 @@ std::unique_ptr<wivrn::TCP> wivrn::accept_connection(ipc_server * server, int wa
|
||||
}
|
||||
|
||||
if (fds[0].revents & POLLIN)
|
||||
return {};
|
||||
|
||||
if (fds[1].revents & POLLIN)
|
||||
{
|
||||
wivrn_ipc_socket_monado->send(from_monado::headset_connected{});
|
||||
return std::make_unique<wivrn::TCP>(listener.accept().first);
|
||||
}
|
||||
|
||||
if (fds[2].revents & POLLIN)
|
||||
if (fds[1].revents & POLLIN)
|
||||
{
|
||||
auto packet = receive_from_main();
|
||||
if (packet)
|
||||
std::visit(utils::overloaded{
|
||||
[server](to_monado::stop) {
|
||||
ipc_server_stop(server);
|
||||
[&cnx](to_monado::stop) {
|
||||
// gets handled in wivrn_session::reconnect since we return nullptr
|
||||
U_LOG_I("Received stop packet during reconnect, stopping");
|
||||
cnx.request_stop();
|
||||
},
|
||||
[](auto &&) {
|
||||
// Ignore request when no headset is connected
|
||||
@@ -72,6 +70,9 @@ std::unique_ptr<wivrn::TCP> wivrn::accept_connection(ipc_server * server, int wa
|
||||
},
|
||||
*packet);
|
||||
}
|
||||
|
||||
if (tick)
|
||||
tick(cnx);
|
||||
}
|
||||
|
||||
return {};
|
||||
|
||||
@@ -19,13 +19,13 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "server/ipc_server.h"
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include <stop_token>
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
class TCP;
|
||||
std::unique_ptr<wivrn::TCP> accept_connection(ipc_server * server, int watch_fd, std::function<bool()> quit = std::function<bool()>());
|
||||
class wivrn_session;
|
||||
std::unique_ptr<wivrn::TCP> accept_connection(wivrn_session & cnx, std::stop_token stop, std::function<void(wivrn_session &)> tick = {});
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -104,6 +104,14 @@ struct pipewire_device : public audio_device
|
||||
.sample_rate = info.speaker->sample_rate,
|
||||
};
|
||||
|
||||
// Calculate quantum size: 5ms buffer for low latency while maintaining stability
|
||||
// Smaller buffers (<5ms) risk underruns, larger ones (>10ms) add perceptible latency
|
||||
uint32_t quantum_size = (desc.speaker->sample_rate * 5) / 1000;
|
||||
uint32_t frame_size = desc.speaker->num_channels * sizeof(int16_t);
|
||||
|
||||
std::string rate_str = std::format("1/{}", desc.speaker->sample_rate);
|
||||
std::string latency_str = std::format("{}/{}", quantum_size, desc.speaker->sample_rate);
|
||||
|
||||
speaker.reset(pw_stream_new_simple(
|
||||
pw_main_loop_get_loop(pw_loop.get()),
|
||||
sink_name.c_str(),
|
||||
@@ -120,6 +128,15 @@ struct pipewire_device : public audio_device
|
||||
"Audio/Sink",
|
||||
PW_KEY_MEDIA_ROLE,
|
||||
"Game",
|
||||
PW_KEY_NODE_VIRTUAL,
|
||||
"true",
|
||||
// Set stream rate to match client, preventing PipeWire from doing
|
||||
// unnecessary resampling which degrades audio quality
|
||||
PW_KEY_NODE_RATE,
|
||||
rate_str.c_str(),
|
||||
// Declare target latency to help PipeWire optimize buffering
|
||||
PW_KEY_NODE_LATENCY,
|
||||
latency_str.c_str(),
|
||||
NULL),
|
||||
&speaker_events,
|
||||
this));
|
||||
@@ -127,22 +144,39 @@ struct pipewire_device : public audio_device
|
||||
std::vector<uint8_t> buffer(1024);
|
||||
spa_pod_builder b = SPA_POD_BUILDER_INIT(buffer.data(), uint32_t(buffer.size()));
|
||||
|
||||
spa_audio_info_raw info{
|
||||
spa_audio_info_raw audio_info{
|
||||
.format = SPA_AUDIO_FORMAT_S16,
|
||||
.rate = desc.speaker->sample_rate,
|
||||
.channels = desc.speaker->num_channels,
|
||||
};
|
||||
const spa_pod * param = spa_format_audio_raw_build(&b, SPA_PARAM_EnumFormat, &info);
|
||||
|
||||
switch (audio_info.channels)
|
||||
{
|
||||
case 1:
|
||||
audio_info.position[0] = SPA_AUDIO_CHANNEL_MONO;
|
||||
break;
|
||||
case 2:
|
||||
audio_info.position[0] = SPA_AUDIO_CHANNEL_FL;
|
||||
audio_info.position[1] = SPA_AUDIO_CHANNEL_FR;
|
||||
break;
|
||||
default:
|
||||
U_LOG_W("No known audio mapping for %d channels speaker", audio_info.channels);
|
||||
}
|
||||
|
||||
const spa_pod * params[1];
|
||||
params[0] = spa_format_audio_raw_build(&b, SPA_PARAM_EnumFormat, &audio_info);
|
||||
|
||||
// Stream flags:
|
||||
// - DRIVER: makes this node the graph clock master, preventing sync drift in the audio chain
|
||||
if (pw_stream_connect(
|
||||
speaker.get(),
|
||||
PW_DIRECTION_INPUT,
|
||||
PW_ID_ANY,
|
||||
pw_stream_flags(PW_STREAM_FLAG_AUTOCONNECT | PW_STREAM_FLAG_MAP_BUFFERS),
|
||||
¶m,
|
||||
pw_stream_flags(PW_STREAM_FLAG_AUTOCONNECT | PW_STREAM_FLAG_MAP_BUFFERS | PW_STREAM_FLAG_RT_PROCESS),
|
||||
params,
|
||||
1) < 0)
|
||||
throw std::runtime_error("failed to connect speaker stream");
|
||||
U_LOG_I("pipewire speaker stream created");
|
||||
U_LOG_I("pipewire speaker stream created (quantum: %u frames, %.2f ms)", quantum_size, (quantum_size * 1000.0) / desc.speaker->sample_rate);
|
||||
}
|
||||
|
||||
if (info.microphone)
|
||||
@@ -152,6 +186,14 @@ struct pipewire_device : public audio_device
|
||||
.sample_rate = info.microphone->sample_rate,
|
||||
};
|
||||
|
||||
// Calculate quantum size: 5ms buffer for low latency while maintaining stability
|
||||
// Smaller buffers (<5ms) risk underruns, larger ones (>10ms) add perceptible latency
|
||||
uint32_t quantum_size = (desc.microphone->sample_rate * 5) / 1000;
|
||||
uint32_t frame_size = desc.microphone->num_channels * sizeof(int16_t);
|
||||
|
||||
std::string rate_str = std::format("1/{}", desc.microphone->sample_rate);
|
||||
std::string latency_str = std::format("{}/{}", quantum_size, desc.microphone->sample_rate);
|
||||
|
||||
microphone.reset(pw_stream_new_simple(
|
||||
pw_main_loop_get_loop(pw_loop.get()),
|
||||
source_name.c_str(),
|
||||
@@ -168,28 +210,52 @@ struct pipewire_device : public audio_device
|
||||
"Audio/Source",
|
||||
PW_KEY_MEDIA_ROLE,
|
||||
"Game",
|
||||
PW_KEY_NODE_VIRTUAL,
|
||||
"true",
|
||||
// Set stream rate to match client, preventing PipeWire from doing
|
||||
// unnecessary resampling which degrades audio quality
|
||||
PW_KEY_NODE_RATE,
|
||||
rate_str.c_str(),
|
||||
// Declare target latency to help PipeWire optimize buffering
|
||||
PW_KEY_NODE_LATENCY,
|
||||
latency_str.c_str(),
|
||||
NULL),
|
||||
&mic_events,
|
||||
this));
|
||||
std::vector<uint8_t> buffer(1024);
|
||||
spa_pod_builder b = SPA_POD_BUILDER_INIT(buffer.data(), uint32_t(buffer.size()));
|
||||
|
||||
spa_audio_info_raw info{
|
||||
spa_audio_info_raw audio_info{
|
||||
.format = SPA_AUDIO_FORMAT_S16,
|
||||
.rate = desc.microphone->sample_rate,
|
||||
.channels = desc.microphone->num_channels,
|
||||
};
|
||||
const spa_pod * param = spa_format_audio_raw_build(&b, SPA_PARAM_EnumFormat, &info);
|
||||
|
||||
switch (audio_info.channels)
|
||||
{
|
||||
case 1:
|
||||
audio_info.position[0] = SPA_AUDIO_CHANNEL_MONO;
|
||||
break;
|
||||
case 2:
|
||||
audio_info.position[0] = SPA_AUDIO_CHANNEL_FL;
|
||||
audio_info.position[1] = SPA_AUDIO_CHANNEL_FR;
|
||||
break;
|
||||
default:
|
||||
U_LOG_W("No known audio mapping for %d channels microphone", audio_info.channels);
|
||||
}
|
||||
|
||||
const spa_pod * params[1];
|
||||
params[0] = spa_format_audio_raw_build(&b, SPA_PARAM_EnumFormat, &audio_info);
|
||||
|
||||
if (pw_stream_connect(
|
||||
microphone.get(),
|
||||
PW_DIRECTION_OUTPUT,
|
||||
PW_ID_ANY,
|
||||
pw_stream_flags(PW_STREAM_FLAG_AUTOCONNECT | PW_STREAM_FLAG_MAP_BUFFERS),
|
||||
¶m,
|
||||
params,
|
||||
1) < 0)
|
||||
throw std::runtime_error("failed to connect microphone stream");
|
||||
U_LOG_I("pipewire microphone stream created");
|
||||
U_LOG_I("pipewire microphone stream created (quantum: %u frames, %.2f ms)", quantum_size, (quantum_size * 1000.0) / desc.microphone->sample_rate);
|
||||
}
|
||||
|
||||
if (desc.speaker or desc.microphone)
|
||||
@@ -217,10 +283,14 @@ void pipewire_device::mic_process(void * self_v)
|
||||
const auto & data = buffer->buffer->datas[0];
|
||||
uint8_t * data_ptr = (uint8_t *)data.data;
|
||||
if (not data.data)
|
||||
{
|
||||
pw_stream_queue_buffer(self->microphone.get(), buffer);
|
||||
return;
|
||||
}
|
||||
|
||||
const size_t frame_size = self->desc.microphone->num_channels * sizeof(int16_t);
|
||||
|
||||
// Use consistent buffer size based on stream quantum
|
||||
#if PW_CHECK_VERSION(0, 3, 49)
|
||||
size_t num_frames = buffer->requested;
|
||||
#else
|
||||
@@ -228,7 +298,8 @@ void pipewire_device::mic_process(void * self_v)
|
||||
#endif
|
||||
if (num_frames == 0)
|
||||
{
|
||||
num_frames = data.maxsize / frame_size;
|
||||
uint32_t quantum_size = (self->desc.microphone->sample_rate * 5) / 1000;
|
||||
num_frames = std::min<size_t>(quantum_size, data.maxsize / frame_size);
|
||||
}
|
||||
data.chunk->offset = 0;
|
||||
data.chunk->size = 0;
|
||||
@@ -283,10 +354,24 @@ void pipewire_device::mic_state_changed(void * self_v, pw_stream_state old, pw_s
|
||||
case PW_STREAM_STATE_UNCONNECTED:
|
||||
case PW_STREAM_STATE_CONNECTING:
|
||||
case PW_STREAM_STATE_PAUSED:
|
||||
self->session.set_enabled(to_headset::tracking_control::id::microphone, false);
|
||||
try
|
||||
{
|
||||
self->session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, false});
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
U_LOG_W("failed to update microphone state: %s", e.what());
|
||||
}
|
||||
return;
|
||||
case PW_STREAM_STATE_STREAMING:
|
||||
self->session.set_enabled(to_headset::tracking_control::id::microphone, true);
|
||||
try
|
||||
{
|
||||
self->session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, true});
|
||||
}
|
||||
catch (std::exception & e)
|
||||
{
|
||||
U_LOG_W("failed to update microphone state: %s", e.what());
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -328,7 +413,7 @@ void pipewire_device::process_mic_data(wivrn::audio_data && sample)
|
||||
mic_buffer_size_bytes += size;
|
||||
}
|
||||
|
||||
std::shared_ptr<audio_device> create_pipewire_handle(
|
||||
std::unique_ptr<audio_device> create_pipewire_handle(
|
||||
const std::string & source_name,
|
||||
const std::string & source_description,
|
||||
const std::string & sink_name,
|
||||
@@ -338,7 +423,7 @@ std::shared_ptr<audio_device> create_pipewire_handle(
|
||||
{
|
||||
try
|
||||
{
|
||||
return std::make_shared<pipewire_device>(
|
||||
return std::make_unique<pipewire_device>(
|
||||
source_name, source_description, sink_name, sink_description, info, session);
|
||||
}
|
||||
catch (std::exception & e)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
namespace wivrn
|
||||
{
|
||||
|
||||
std::shared_ptr<audio_device> create_pipewire_handle(
|
||||
std::unique_ptr<audio_device> create_pipewire_handle(
|
||||
const std::string & source_name,
|
||||
const std::string & source_description,
|
||||
const std::string & sink_name,
|
||||
|
||||
@@ -426,7 +426,7 @@ struct pulse_device : public audio_device
|
||||
if (not mic_pipe)
|
||||
throw std::system_error(errno, std::system_category(), "failed to open mic pipe " + microphone->socket.string());
|
||||
mic_thread = std::thread([this]() { run_mic(); });
|
||||
session.set_enabled(to_headset::tracking_control::id::microphone, true);
|
||||
session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, true});
|
||||
}
|
||||
|
||||
if (info.speaker)
|
||||
@@ -445,7 +445,7 @@ struct pulse_device : public audio_device
|
||||
}
|
||||
};
|
||||
|
||||
std::shared_ptr<audio_device> create_pulse_handle(
|
||||
std::unique_ptr<audio_device> create_pulse_handle(
|
||||
const std::string & source_name,
|
||||
const std::string & source_description,
|
||||
const std::string & sink_name,
|
||||
@@ -455,7 +455,7 @@ std::shared_ptr<audio_device> create_pulse_handle(
|
||||
{
|
||||
try
|
||||
{
|
||||
return std::make_shared<pulse_device>(
|
||||
return std::make_unique<pulse_device>(
|
||||
source_name, source_description, sink_name, sink_description, info, session);
|
||||
}
|
||||
catch (std::exception & e)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
namespace wivrn
|
||||
{
|
||||
|
||||
std::shared_ptr<audio_device> create_pulse_handle(
|
||||
std::unique_ptr<audio_device> create_pulse_handle(
|
||||
const std::string & source_name,
|
||||
const std::string & source_description,
|
||||
const std::string & sink_name,
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "audio_pipewire.h"
|
||||
#endif
|
||||
|
||||
std::shared_ptr<wivrn::audio_device> wivrn::audio_device::create(
|
||||
std::unique_ptr<wivrn::audio_device> wivrn::audio_device::create(
|
||||
const std::string & source_name,
|
||||
const std::string & source_description,
|
||||
const std::string & sink_name,
|
||||
|
||||
@@ -37,7 +37,7 @@ struct audio_device
|
||||
|
||||
virtual void process_mic_data(wivrn::audio_data &&) = 0;
|
||||
|
||||
static std::shared_ptr<audio_device> create(
|
||||
static std::unique_ptr<audio_device> create(
|
||||
const std::string & source_name,
|
||||
const std::string & source_description,
|
||||
const std::string & sink_name,
|
||||
|
||||
Vendored
+1
-1
@@ -3,7 +3,7 @@ Description=OpenXR streaming server
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/wivrn-server --systemd
|
||||
ExecStart=@CMAKE_INSTALL_PREFIX@/bin/wivrn-server
|
||||
CapabilityBoundingSet=CAP_SYS_NICE
|
||||
AmbientCapabilities=CAP_SYS_NICE
|
||||
LockPersonality=true
|
||||
|
||||
@@ -28,6 +28,11 @@ namespace wivrn
|
||||
|
||||
static const size_t num_samples = 100;
|
||||
|
||||
std::chrono::steady_clock::time_point clock_offset_estimator::next() const
|
||||
{
|
||||
return next_sample;
|
||||
}
|
||||
|
||||
void clock_offset_estimator::reset()
|
||||
{
|
||||
std::lock_guard lock(mutex);
|
||||
@@ -38,12 +43,12 @@ void clock_offset_estimator::reset()
|
||||
sample_interval = std::chrono::milliseconds(10);
|
||||
}
|
||||
|
||||
void clock_offset_estimator::request_sample(wivrn_connection & connection)
|
||||
void clock_offset_estimator::request_sample(std::chrono::steady_clock::time_point now, wivrn_connection & connection)
|
||||
{
|
||||
if (std::chrono::steady_clock::now() < next_sample)
|
||||
if (now < next_sample)
|
||||
return;
|
||||
|
||||
next_sample = std::chrono::steady_clock::now() + sample_interval.load();
|
||||
next_sample = now + sample_interval.load();
|
||||
connection.send_stream(
|
||||
wivrn::to_headset::timesync_query{
|
||||
.query = XrTime(os_monotonic_get_ns()),
|
||||
|
||||
@@ -65,8 +65,9 @@ class clock_offset_estimator
|
||||
std::atomic<std::chrono::milliseconds> sample_interval = std::chrono::milliseconds(10);
|
||||
|
||||
public:
|
||||
std::chrono::steady_clock::time_point next() const;
|
||||
void reset();
|
||||
void request_sample(wivrn_connection & connection);
|
||||
void request_sample(std::chrono::steady_clock::time_point now, wivrn_connection & connection);
|
||||
void add_sample(const wivrn::from_headset::timesync_response & sample);
|
||||
|
||||
clock_offset get_offset();
|
||||
|
||||
@@ -37,7 +37,10 @@ static xrt_hand_joint_value interpolate(const xrt_hand_joint_value & a, const xr
|
||||
|
||||
xrt_hand_joint_set hand_joints_list::interpolate(const xrt_hand_joint_set & a, const xrt_hand_joint_set & b, float t)
|
||||
{
|
||||
xrt_hand_joint_set j = a;
|
||||
xrt_hand_joint_set j = {
|
||||
.hand_pose = pose_list::interpolate(a.hand_pose, b.hand_pose, t),
|
||||
.is_active = a.is_active,
|
||||
};
|
||||
for (int i = 0; i < XRT_HAND_JOINT_COUNT; i++)
|
||||
{
|
||||
j.values.hand_joint_set_default[i] = ::wivrn::interpolate(a.values.hand_joint_set_default[i], b.values.hand_joint_set_default[i], t);
|
||||
@@ -47,10 +50,7 @@ xrt_hand_joint_set hand_joints_list::interpolate(const xrt_hand_joint_set & a, c
|
||||
|
||||
xrt_hand_joint_set hand_joints_list::extrapolate(const xrt_hand_joint_set & a, const xrt_hand_joint_set & b, int64_t ta, int64_t tb, int64_t t)
|
||||
{
|
||||
xrt_hand_joint_set j = t <= ta ? a : b;
|
||||
// Only extrapolate the hand pose, individual joints are too noisy
|
||||
j.hand_pose = pose_list::extrapolate(a.hand_pose, b.hand_pose, ta, tb, t);
|
||||
return j;
|
||||
return t <= ta ? a : b;
|
||||
}
|
||||
|
||||
static xrt_space_relation_flags cast_flags(uint8_t in_flags)
|
||||
@@ -80,7 +80,10 @@ static xrt_space_relation to_relation(const from_headset::hand_tracking::pose &
|
||||
{
|
||||
return {
|
||||
.relation_flags = cast_flags(pose.flags),
|
||||
.pose = xrt_cast(pose.pose),
|
||||
.pose = xrt_cast(XrPosef{
|
||||
.orientation = pose.orientation,
|
||||
.position = pose.position,
|
||||
}),
|
||||
.linear_velocity = xrt_cast(pose.linear_velocity),
|
||||
.angular_velocity = xrt_cast(pose.angular_velocity),
|
||||
};
|
||||
@@ -117,14 +120,13 @@ static xrt_hand_joint_set convert_joints(const std::optional<std::array<from_hea
|
||||
return output_joints;
|
||||
}
|
||||
|
||||
bool hand_joints_list::update_tracking(const from_headset::hand_tracking & tracking, const clock_offset & offset)
|
||||
void hand_joints_list::update_tracking(const from_headset::hand_tracking & tracking, const clock_offset & offset)
|
||||
{
|
||||
if (tracking.hand == hand_id)
|
||||
return add_sample(
|
||||
add_sample(
|
||||
tracking.production_timestamp,
|
||||
tracking.timestamp,
|
||||
convert_joints(tracking.joints),
|
||||
offset);
|
||||
return true;
|
||||
}
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -38,6 +38,6 @@ public:
|
||||
hand_joints_list(int hand_id) :
|
||||
hand_id(hand_id) {}
|
||||
|
||||
bool update_tracking(const wivrn::from_headset::hand_tracking & tracking, const clock_offset & offset);
|
||||
void update_tracking(const wivrn::from_headset::hand_tracking & tracking, const clock_offset & offset);
|
||||
};
|
||||
} // namespace wivrn
|
||||
|
||||
+7
-19
@@ -20,7 +20,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "clock_offset.h"
|
||||
#include "os/os_time.h"
|
||||
#include "util/u_time.h"
|
||||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
#include <mutex>
|
||||
@@ -40,21 +40,15 @@ class history
|
||||
std::array<TimedData, MaxSamples> data{};
|
||||
|
||||
std::mutex mutex;
|
||||
XrTime last_request;
|
||||
|
||||
protected:
|
||||
history() :
|
||||
last_request(os_monotonic_get_ns()) {}
|
||||
|
||||
// return true if object is active (last request is not too old)
|
||||
bool add_sample(XrTime produced_timestamp, XrTime timestamp, const Data & sample, const clock_offset & offset)
|
||||
void add_sample(XrTime produced_timestamp, XrTime timestamp, const Data & sample, const clock_offset & offset)
|
||||
{
|
||||
XrTime produced = offset.from_headset(produced_timestamp);
|
||||
XrTime t = offset.from_headset(timestamp);
|
||||
std::lock_guard lock(mutex);
|
||||
|
||||
bool active = produced - last_request < 1'000'000'000;
|
||||
|
||||
TimedData * target = data.data();
|
||||
if (offset)
|
||||
{
|
||||
@@ -62,7 +56,7 @@ protected:
|
||||
{
|
||||
// Discard reordered packets
|
||||
if (item.produced_timestamp > produced)
|
||||
return active;
|
||||
return;
|
||||
|
||||
if (std::abs(item.at_timestamp_ns - t) < 2'000'000)
|
||||
{
|
||||
@@ -75,16 +69,13 @@ protected:
|
||||
}
|
||||
}
|
||||
*target = TimedData(sample, produced, t);
|
||||
return active;
|
||||
}
|
||||
|
||||
public:
|
||||
std::pair<std::chrono::nanoseconds, Data> get_at(XrTime at_timestamp_ns)
|
||||
std::pair<XrTime, Data> get_at(XrTime at_timestamp_ns)
|
||||
{
|
||||
std::lock_guard lock(mutex);
|
||||
|
||||
last_request = os_monotonic_get_ns();
|
||||
|
||||
TimedData * before = nullptr;
|
||||
TimedData * after = nullptr;
|
||||
|
||||
@@ -110,24 +101,22 @@ public:
|
||||
if (before)
|
||||
produced = std::max(produced, before->produced_timestamp);
|
||||
|
||||
std::chrono::nanoseconds ex(std::max<XrDuration>(0, at_timestamp_ns - produced));
|
||||
|
||||
if (before and after)
|
||||
{
|
||||
float t = float(after->at_timestamp_ns - at_timestamp_ns) /
|
||||
(after->at_timestamp_ns - before->at_timestamp_ns);
|
||||
return {ex, Derived::interpolate(*before, *after, t)};
|
||||
return {produced, Derived::interpolate(*before, *after, t)};
|
||||
}
|
||||
|
||||
if (before)
|
||||
{
|
||||
if (at_timestamp_ns > before->at_timestamp_ns + U_TIME_1S_IN_NS)
|
||||
return {};
|
||||
return {ex, *before};
|
||||
return {produced, *before};
|
||||
}
|
||||
|
||||
if (after)
|
||||
return {ex, *after};
|
||||
return {produced, *after};
|
||||
|
||||
return {};
|
||||
}
|
||||
@@ -135,7 +124,6 @@ public:
|
||||
{
|
||||
std::lock_guard lock(mutex);
|
||||
data.fill({});
|
||||
last_request = os_monotonic_get_ns();
|
||||
}
|
||||
};
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -0,0 +1,180 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
|
||||
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// xlib sucks
|
||||
#ifdef Success
|
||||
#undef Success
|
||||
#endif
|
||||
|
||||
#include <Eigen/Cholesky>
|
||||
#include <Eigen/Core>
|
||||
#include <Eigen/QR>
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
#include <optional>
|
||||
#include <ranges>
|
||||
|
||||
#include "openxr/openxr.h"
|
||||
#include "wivrn_config.h"
|
||||
|
||||
template <int N, bool quaternion = false, int polynomial_order = 2, int stored_samples = 30>
|
||||
class polynomial_interpolator
|
||||
{
|
||||
public:
|
||||
using value_type = Eigen::Vector<float, N>;
|
||||
|
||||
struct sample
|
||||
{
|
||||
XrTime production_timestamp = std::numeric_limits<XrTime>::lowest();
|
||||
XrTime timestamp;
|
||||
std::optional<value_type> y;
|
||||
std::optional<value_type> dy;
|
||||
};
|
||||
|
||||
XrDuration window = 30'000'000; // time span of samples to use for extrapolation
|
||||
float time_constant = 0.001; // duration (s) to convert velocities into positions
|
||||
|
||||
private:
|
||||
std::array<sample, stored_samples> data;
|
||||
|
||||
public:
|
||||
polynomial_interpolator() = default;
|
||||
polynomial_interpolator(XrDuration window, float time_constant) : window(window), time_constant(time_constant) {}
|
||||
|
||||
void reset()
|
||||
{
|
||||
data.fill({});
|
||||
}
|
||||
|
||||
void add_sample(const sample & s)
|
||||
{
|
||||
sample * oldest = nullptr;
|
||||
for (auto & i: data)
|
||||
{
|
||||
// Avoid samples too close to each other
|
||||
if (std::abs(i.timestamp - s.timestamp) < 2'000'000)
|
||||
{
|
||||
if (i.production_timestamp < s.production_timestamp)
|
||||
i = s;
|
||||
return;
|
||||
}
|
||||
if ((not oldest) or oldest->production_timestamp > i.production_timestamp)
|
||||
oldest = &i;
|
||||
}
|
||||
*oldest = s;
|
||||
if constexpr (quaternion)
|
||||
{
|
||||
if (s.y)
|
||||
{
|
||||
sample * closest = nullptr;
|
||||
for (auto & i: data)
|
||||
{
|
||||
if (&i == oldest or not i.y)
|
||||
continue;
|
||||
if (not closest)
|
||||
closest = &i;
|
||||
else if (std::abs(closest->timestamp - s.timestamp) > std::abs(i.timestamp - s.timestamp))
|
||||
closest = &i;
|
||||
}
|
||||
if (closest and closest->y->dot(*s.y) < 0)
|
||||
*oldest->y *= -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sample get_at(XrTime timestamp)
|
||||
{
|
||||
Eigen::Matrix<float, 2 * stored_samples, polynomial_order + 1> A;
|
||||
Eigen::Matrix<float, 2 * stored_samples, N> b;
|
||||
|
||||
const XrTime production_timestamp = std::ranges::max(data | std::ranges::views::transform(&sample::production_timestamp));
|
||||
// Maximum is the minimum of now + max_extrapolation_ns (outside of this function)
|
||||
// and production_ts + 1.1 * max_extrapolation_ns
|
||||
// This allows a small buffer so that polynomial extrapolation fills the gap of networking hiccups
|
||||
timestamp = std::min(timestamp, production_timestamp + (wivrn::max_extrapolation_ns * 11) / 10);
|
||||
|
||||
int row = 0;
|
||||
for (const auto && [i, sample]: std::ranges::enumerate_view(data))
|
||||
{
|
||||
if (not sample.y)
|
||||
continue;
|
||||
|
||||
int abs_Δt = std::abs(sample.timestamp - timestamp);
|
||||
|
||||
float weight = 1. / (1. + std::pow(abs_Δt / float(window), 3.));
|
||||
|
||||
float Δt = (sample.timestamp - timestamp) * 1.e-9;
|
||||
float Δtⁱ = 1;
|
||||
for (int i = 0; i <= polynomial_order; ++i)
|
||||
{
|
||||
A(row, i) = weight * Δtⁱ;
|
||||
Δtⁱ *= Δt;
|
||||
}
|
||||
b.template block<1, N>(row, 0) = *sample.y * weight;
|
||||
row++;
|
||||
|
||||
if (sample.dy.has_value())
|
||||
{
|
||||
A(row, 0) = 0;
|
||||
|
||||
Δtⁱ = 1;
|
||||
for (int i = 1; i <= polynomial_order; ++i)
|
||||
{
|
||||
A(row, i) = weight * time_constant * i * Δtⁱ;
|
||||
Δtⁱ *= Δt;
|
||||
}
|
||||
b.template block<1, N>(row, 0) = *sample.dy * weight * time_constant;
|
||||
row++;
|
||||
}
|
||||
}
|
||||
|
||||
// Not enough data to extrapolate
|
||||
if (row < 2)
|
||||
{
|
||||
auto closest = std::ranges::min_element(data, std::less{}, [&](const auto & sample) {
|
||||
if (not sample.y)
|
||||
return std::numeric_limits<XrDuration>::max();
|
||||
return std::abs(sample.timestamp - timestamp);
|
||||
});
|
||||
if (closest->y and std::abs(closest->production_timestamp - timestamp) < 1'000'000'000)
|
||||
return *closest;
|
||||
return {};
|
||||
}
|
||||
|
||||
auto Aprime = A.block(0, 0, row, polynomial_order + 1);
|
||||
auto bprime = b.block(0, 0, row, N);
|
||||
|
||||
Eigen::Matrix<float, N, polynomial_order + 1> sol;
|
||||
|
||||
if (row <= polynomial_order)
|
||||
// Underdetermined case
|
||||
sol = Eigen::ColPivHouseholderQR<decltype(Aprime)>{Aprime}.solve(bprime).transpose();
|
||||
else
|
||||
sol = (Aprime.transpose() * Aprime).ldlt().solve(Aprime.transpose() * bprime).transpose();
|
||||
|
||||
return sample{
|
||||
.production_timestamp = production_timestamp,
|
||||
.timestamp = timestamp,
|
||||
.y = sol.template block<N, 1>(0, 0),
|
||||
.dy = sol.template block<N, 1>(0, 1),
|
||||
};
|
||||
}
|
||||
};
|
||||
+200
-22
@@ -18,12 +18,18 @@
|
||||
*/
|
||||
|
||||
#include "pose_list.h"
|
||||
#include "driver/clock_offset.h"
|
||||
#include "driver/polynomial_interpolator.h"
|
||||
#include "math/m_api.h"
|
||||
#include "math/m_eigen_interop.hpp"
|
||||
#include "math/m_space.h"
|
||||
#include "math/m_vec3.h"
|
||||
#include "os/os_time.h"
|
||||
#include "xrt/xrt_defines.h"
|
||||
#include "xrt_cast.h"
|
||||
#include <Eigen/Core>
|
||||
#include <Eigen/Geometry>
|
||||
#include <iostream>
|
||||
#include <magic_enum.hpp>
|
||||
|
||||
using namespace xrt::auxiliary::math;
|
||||
|
||||
@@ -34,7 +40,30 @@ xrt_space_relation pose_list::interpolate(const xrt_space_relation & a, const xr
|
||||
{
|
||||
xrt_space_relation result;
|
||||
xrt_space_relation_flags flags = xrt_space_relation_flags(a.relation_flags & b.relation_flags);
|
||||
m_space_relation_interpolate(const_cast<xrt_space_relation *>(&a), const_cast<xrt_space_relation *>(&b), t, flags, &result);
|
||||
|
||||
if (math_quat_dot(&a.pose.orientation, &b.pose.orientation) > 0)
|
||||
{
|
||||
m_space_relation_interpolate(const_cast<xrt_space_relation *>(&a), const_cast<xrt_space_relation *>(&b), t, flags, &result);
|
||||
}
|
||||
else
|
||||
{
|
||||
xrt_space_relation b2{
|
||||
.relation_flags = b.relation_flags,
|
||||
.pose = {
|
||||
.orientation = {
|
||||
.x = -b.pose.orientation.x,
|
||||
.y = -b.pose.orientation.y,
|
||||
.z = -b.pose.orientation.z,
|
||||
.w = -b.pose.orientation.w,
|
||||
},
|
||||
.position = b.pose.position,
|
||||
},
|
||||
.linear_velocity = b.linear_velocity,
|
||||
.angular_velocity = b.angular_velocity,
|
||||
};
|
||||
|
||||
m_space_relation_interpolate(const_cast<xrt_space_relation *>(&a), &b2, t, flags, &result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -63,19 +92,26 @@ xrt_space_relation pose_list::extrapolate(const xrt_space_relation & a, const xr
|
||||
return res;
|
||||
}
|
||||
|
||||
bool pose_list::update_tracking(const from_headset::tracking & tracking, const clock_offset & offset)
|
||||
pose_list::pose_list(wivrn::device_id id) : device(id)
|
||||
{
|
||||
if (auto dump = std::getenv("WIVRN_DUMP"); dump and dump == std::string_view("list"))
|
||||
std::cerr << "WIVRN_DUMP_" << magic_enum::enum_name(id) << std::endl;
|
||||
if (auto dump = std::getenv(std::format("WIVRN_DUMP_{}", magic_enum::enum_name(id)).c_str()))
|
||||
dumper.emplace(dump);
|
||||
}
|
||||
|
||||
void pose_list::update_tracking(const from_headset::tracking & tracking, const clock_offset & offset)
|
||||
{
|
||||
if (source)
|
||||
return false;
|
||||
return;
|
||||
|
||||
for (const auto & pose: tracking.device_poses)
|
||||
{
|
||||
if (pose.device != device)
|
||||
continue;
|
||||
|
||||
return add_sample(tracking.production_timestamp, tracking.timestamp, convert_pose(pose), offset);
|
||||
return add_sample(tracking.production_timestamp, tracking.timestamp, pose, offset);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void pose_list::set_derived(pose_list * source, xrt_pose offset, bool force)
|
||||
@@ -98,7 +134,7 @@ void pose_list::set_derived(pose_list * source, xrt_pose offset, bool force)
|
||||
}
|
||||
}
|
||||
|
||||
std::tuple<std::chrono::nanoseconds, xrt_space_relation, device_id> pose_list::get_pose_at(XrTime at_timestamp_ns)
|
||||
std::tuple<XrTime, xrt_space_relation, device_id> pose_list::get_pose_at(XrTime at_timestamp_ns)
|
||||
{
|
||||
if (auto source = this->source.load())
|
||||
{
|
||||
@@ -110,24 +146,166 @@ std::tuple<std::chrono::nanoseconds, xrt_space_relation, device_id> pose_list::g
|
||||
return std::tuple_cat(get_at(at_timestamp_ns), std::make_tuple(device));
|
||||
}
|
||||
|
||||
static xrt_space_relation_flags convert_flags(uint8_t flags)
|
||||
void pose_list::reset()
|
||||
{
|
||||
static_assert(int(from_headset::tracking::position_valid) == XRT_SPACE_RELATION_POSITION_VALID_BIT);
|
||||
static_assert(int(from_headset::tracking::orientation_valid) == XRT_SPACE_RELATION_ORIENTATION_VALID_BIT);
|
||||
static_assert(int(from_headset::tracking::linear_velocity_valid) == XRT_SPACE_RELATION_LINEAR_VELOCITY_VALID_BIT);
|
||||
static_assert(int(from_headset::tracking::angular_velocity_valid) == XRT_SPACE_RELATION_ANGULAR_VELOCITY_VALID_BIT);
|
||||
static_assert(int(from_headset::tracking::orientation_tracked) == XRT_SPACE_RELATION_ORIENTATION_TRACKED_BIT);
|
||||
static_assert(int(from_headset::tracking::position_tracked) == XRT_SPACE_RELATION_POSITION_TRACKED_BIT);
|
||||
return xrt_space_relation_flags(flags);
|
||||
std::lock_guard lock(mutex);
|
||||
positions.reset();
|
||||
orientations.reset();
|
||||
}
|
||||
|
||||
xrt_space_relation pose_list::convert_pose(const from_headset::tracking::pose & pose)
|
||||
void pose_list::add_sample(XrTime production_timestamp, XrTime timestamp, const from_headset::tracking::pose & pose, const clock_offset & offset)
|
||||
{
|
||||
return xrt_space_relation{
|
||||
.relation_flags = convert_flags(pose.flags),
|
||||
.pose = xrt_cast(pose.pose),
|
||||
.linear_velocity = xrt_cast(pose.linear_velocity),
|
||||
.angular_velocity = xrt_cast(pose.angular_velocity),
|
||||
};
|
||||
production_timestamp = offset.from_headset(production_timestamp);
|
||||
timestamp = offset.from_headset(timestamp);
|
||||
|
||||
// TODO keep the tracked flag
|
||||
|
||||
polynomial_interpolator<3>::sample position{production_timestamp, timestamp};
|
||||
if (pose.flags & from_headset::tracking::position_valid)
|
||||
position.y.emplace(
|
||||
pose.pose.position.x,
|
||||
pose.pose.position.y,
|
||||
pose.pose.position.z);
|
||||
if (pose.flags & from_headset::tracking::linear_velocity_valid)
|
||||
position.dy.emplace(
|
||||
pose.linear_velocity.x,
|
||||
pose.linear_velocity.y,
|
||||
pose.linear_velocity.z);
|
||||
|
||||
polynomial_interpolator<4, true>::sample orientation{production_timestamp, timestamp};
|
||||
if (pose.flags & from_headset::tracking::orientation_valid)
|
||||
{
|
||||
orientation.y.emplace(
|
||||
pose.pose.orientation.w,
|
||||
pose.pose.orientation.x,
|
||||
pose.pose.orientation.y,
|
||||
pose.pose.orientation.z);
|
||||
|
||||
if (pose.flags & from_headset::tracking::angular_velocity_valid)
|
||||
{
|
||||
Eigen::Quaternionf q{
|
||||
pose.pose.orientation.w,
|
||||
pose.pose.orientation.x,
|
||||
pose.pose.orientation.y,
|
||||
pose.pose.orientation.z};
|
||||
|
||||
Eigen::Quaternionf ω{
|
||||
0,
|
||||
pose.angular_velocity.x,
|
||||
pose.angular_velocity.y,
|
||||
pose.angular_velocity.z};
|
||||
|
||||
orientation.dy.emplace(0.5 * (ω * q).coeffs());
|
||||
}
|
||||
}
|
||||
|
||||
std::lock_guard lock(mutex);
|
||||
positions.add_sample(position);
|
||||
orientations.add_sample(orientation);
|
||||
|
||||
if (dumper)
|
||||
{
|
||||
debug_data item{
|
||||
.in = true,
|
||||
.production_timestamp = production_timestamp,
|
||||
.timestamp = timestamp,
|
||||
.now = os_monotonic_get_ns(),
|
||||
};
|
||||
if (position.y)
|
||||
Eigen::Map<Eigen::Vector<float, 3>>(item.position.data()) = *position.y;
|
||||
if (position.dy)
|
||||
Eigen::Map<Eigen::Vector<float, 3>>(item.dposition.data()) = *position.dy;
|
||||
if (orientation.y)
|
||||
Eigen::Map<Eigen::Vector<float, 4>>(item.orientation.data()) = *orientation.y;
|
||||
if (orientation.dy)
|
||||
Eigen::Map<Eigen::Vector<float, 4>>(item.dorientation.data()) = *orientation.dy;
|
||||
dumper->write(item);
|
||||
}
|
||||
}
|
||||
|
||||
std::pair<XrTime, xrt_space_relation> pose_list::get_at(XrTime at_timestamp_ns)
|
||||
{
|
||||
std::lock_guard lock(mutex);
|
||||
|
||||
xrt_space_relation ret{};
|
||||
auto flags = [&](int f) {
|
||||
ret.relation_flags = xrt_space_relation_flags(int(ret.relation_flags) | f);
|
||||
};
|
||||
|
||||
auto position = positions.get_at(at_timestamp_ns);
|
||||
auto orientation = orientations.get_at(at_timestamp_ns);
|
||||
|
||||
if (position.y)
|
||||
{
|
||||
flags(XRT_SPACE_RELATION_POSITION_VALID_BIT | XRT_SPACE_RELATION_POSITION_TRACKED_BIT);
|
||||
ret.pose.position = {
|
||||
position.y->x(),
|
||||
position.y->y(),
|
||||
position.y->z()};
|
||||
}
|
||||
|
||||
if (position.dy)
|
||||
{
|
||||
flags(XRT_SPACE_RELATION_LINEAR_VELOCITY_VALID_BIT);
|
||||
ret.linear_velocity = {
|
||||
position.dy->x(),
|
||||
position.dy->y(),
|
||||
position.dy->z()};
|
||||
}
|
||||
|
||||
if (orientation.y)
|
||||
{
|
||||
flags(XRT_SPACE_RELATION_ORIENTATION_VALID_BIT | XRT_SPACE_RELATION_ORIENTATION_TRACKED_BIT);
|
||||
|
||||
ret.pose.orientation = {
|
||||
.x = (*orientation.y)[1],
|
||||
.y = (*orientation.y)[2],
|
||||
.z = (*orientation.y)[3],
|
||||
.w = (*orientation.y)[0]};
|
||||
|
||||
if (orientation.dy)
|
||||
{
|
||||
Eigen::Quaternionf q{
|
||||
(*orientation.y)[0],
|
||||
(*orientation.y)[1],
|
||||
(*orientation.y)[2],
|
||||
(*orientation.y)[3]};
|
||||
Eigen::Quaternionf dq{
|
||||
(*orientation.dy)[0],
|
||||
(*orientation.dy)[1],
|
||||
(*orientation.dy)[2],
|
||||
(*orientation.dy)[3]};
|
||||
Eigen::Quaternionf half_ω = dq * q;
|
||||
|
||||
flags(XRT_SPACE_RELATION_ANGULAR_VELOCITY_VALID_BIT);
|
||||
ret.angular_velocity = {
|
||||
2 * half_ω.x(),
|
||||
2 * half_ω.y(),
|
||||
2 * half_ω.z(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
if (dumper)
|
||||
{
|
||||
debug_data item{
|
||||
.in = false,
|
||||
.production_timestamp = position.production_timestamp,
|
||||
.timestamp = at_timestamp_ns,
|
||||
.now = os_monotonic_get_ns(),
|
||||
};
|
||||
if (position.y)
|
||||
Eigen::Map<Eigen::Vector<float, 3>>(item.position.data()) = *position.y;
|
||||
if (position.dy)
|
||||
Eigen::Map<Eigen::Vector<float, 3>>(item.dposition.data()) = *position.dy;
|
||||
if (orientation.y)
|
||||
Eigen::Map<Eigen::Vector<float, 4>>(item.orientation.data()) = *orientation.y;
|
||||
if (orientation.dy)
|
||||
Eigen::Map<Eigen::Vector<float, 4>>(item.dorientation.data()) = *orientation.dy;
|
||||
dumper->write(item);
|
||||
}
|
||||
|
||||
return {position.production_timestamp, ret};
|
||||
}
|
||||
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -19,21 +19,41 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "history.h"
|
||||
#include "polynomial_interpolator.h"
|
||||
#include "utils/csv_logger.h"
|
||||
#include "wivrn_packets.h"
|
||||
#include "xrt/xrt_defines.h"
|
||||
|
||||
#include <atomic>
|
||||
#include <optional>
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
struct clock_offset;
|
||||
|
||||
class pose_list : public history<pose_list, xrt_space_relation>
|
||||
class pose_list
|
||||
{
|
||||
std::atomic<pose_list *> source = nullptr;
|
||||
xrt_pose offset;
|
||||
std::atomic_bool derive_forced = false;
|
||||
std::mutex mutex;
|
||||
|
||||
polynomial_interpolator<3> positions;
|
||||
polynomial_interpolator<4, true> orientations;
|
||||
|
||||
struct debug_data
|
||||
{
|
||||
bool in; // true: received data, false: data request
|
||||
XrTime production_timestamp;
|
||||
XrTime timestamp;
|
||||
XrTime now;
|
||||
std::array<float, 3> position;
|
||||
std::array<float, 3> dposition;
|
||||
std::array<float, 4> orientation;
|
||||
std::array<float, 4> dorientation;
|
||||
};
|
||||
|
||||
std::optional<csv_logger<debug_data>> dumper;
|
||||
|
||||
public:
|
||||
const wivrn::device_id device;
|
||||
@@ -41,14 +61,17 @@ public:
|
||||
static xrt_space_relation interpolate(const xrt_space_relation & a, const xrt_space_relation & b, float t);
|
||||
static xrt_space_relation extrapolate(const xrt_space_relation & a, const xrt_space_relation & b, int64_t ta, int64_t tb, int64_t t);
|
||||
|
||||
pose_list(wivrn::device_id id) :
|
||||
device(id) {}
|
||||
pose_list(wivrn::device_id id);
|
||||
|
||||
bool update_tracking(const wivrn::from_headset::tracking &, const clock_offset & offset);
|
||||
void update_tracking(const wivrn::from_headset::tracking &, const clock_offset & offset);
|
||||
void set_derived(pose_list * source, xrt_pose offset, bool force = false);
|
||||
|
||||
std::tuple<std::chrono::nanoseconds, xrt_space_relation, device_id> get_pose_at(XrTime at_timestamp_ns);
|
||||
std::tuple<XrTime, xrt_space_relation, device_id> get_pose_at(XrTime at_timestamp_ns);
|
||||
|
||||
static xrt_space_relation convert_pose(const wivrn::from_headset::tracking::pose &);
|
||||
void reset();
|
||||
std::pair<XrTime, xrt_space_relation> get_at(XrTime at_timestamp_ns);
|
||||
|
||||
private:
|
||||
void add_sample(XrTime production_timestamp, XrTime timestamp, const from_headset::tracking::pose & pose, const clock_offset & offset);
|
||||
};
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "tracking_control.h"
|
||||
|
||||
#include "driver/wivrn_connection.h"
|
||||
#include "wivrn_config.h"
|
||||
#include <magic_enum_containers.hpp>
|
||||
#include <ranges>
|
||||
|
||||
bool wivrn::tracking_control::advance(std::chrono::steady_clock::time_point now)
|
||||
{
|
||||
if (next > now)
|
||||
return false;
|
||||
next += step;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wivrn::tracking_control::add_request(device_id device, XrTime now, XrTime at_ns, XrTime produced_ns)
|
||||
{
|
||||
std::lock_guard lock(mutex);
|
||||
XrDuration prediction = at_ns - now;
|
||||
reqs[device].min_prediction = std::min(reqs[device].min_prediction, prediction);
|
||||
reqs[device].max_prediction = std::max(reqs[device].max_prediction, prediction);
|
||||
|
||||
if (produced_ns)
|
||||
motions_to_photons = std::max(motions_to_photons, at_ns - produced_ns);
|
||||
|
||||
if (not std::ranges::contains(last_control.pattern, device, &to_headset::tracking_control::sample::device))
|
||||
{
|
||||
last_control.pattern.push_back({.device = device, .prediction_ns = prediction});
|
||||
cnx.send_control(to_headset::tracking_control(last_control));
|
||||
}
|
||||
}
|
||||
|
||||
void wivrn::tracking_control::resolve(XrDuration frame_time, XrDuration latency)
|
||||
{
|
||||
decltype(this->reqs) reqs;
|
||||
{
|
||||
std::lock_guard lock(mutex);
|
||||
std::swap(reqs, this->reqs);
|
||||
}
|
||||
|
||||
wivrn::to_headset::tracking_control res{};
|
||||
|
||||
for (auto [device, req]: std::ranges::enumerate_view(reqs))
|
||||
{
|
||||
// Skip unset data
|
||||
if (req.min_prediction > req.max_prediction)
|
||||
continue;
|
||||
|
||||
XrDuration step = frame_time;
|
||||
switch (device_id(device))
|
||||
{
|
||||
// High frequency polling for those
|
||||
case device_id::HEAD:
|
||||
case device_id::LEFT_GRIP:
|
||||
case device_id::LEFT_AIM:
|
||||
case device_id::LEFT_PALM:
|
||||
case device_id::RIGHT_GRIP:
|
||||
case device_id::RIGHT_AIM:
|
||||
case device_id::RIGHT_PALM:
|
||||
case device_id::LEFT_PINCH_POSE:
|
||||
case device_id::RIGHT_PINCH_POSE:
|
||||
case device_id::EYE_GAZE:
|
||||
step = 3'000'000;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
req.min_prediction = std::clamp(req.min_prediction + latency, 0l, max_extrapolation_ns);
|
||||
req.max_prediction = std::clamp(req.max_prediction + latency, 0l, max_extrapolation_ns);
|
||||
|
||||
for (int64_t t = req.min_prediction; t < req.max_prediction + step; t += step)
|
||||
{
|
||||
res.pattern.push_back({
|
||||
.device = device_id(device),
|
||||
.prediction_ns = t,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
std::lock_guard lock(mutex);
|
||||
res.motions_to_photons = motions_to_photons;
|
||||
last_control = res;
|
||||
motions_to_photons = 0;
|
||||
}
|
||||
cnx.send_control(std::move(res));
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* WiVRn VR streaming
|
||||
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.net>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "wivrn_packets.h"
|
||||
#include <magic_enum_containers.hpp>
|
||||
#include <mutex>
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
class wivrn_connection;
|
||||
class tracking_control
|
||||
{
|
||||
static constexpr std::chrono::milliseconds step{1000};
|
||||
struct requests
|
||||
{
|
||||
XrDuration min_prediction = std::numeric_limits<XrDuration>::max();
|
||||
XrDuration max_prediction = std::numeric_limits<XrDuration>::lowest();
|
||||
};
|
||||
|
||||
std::mutex mutex;
|
||||
magic_enum::containers::array<device_id, requests> reqs;
|
||||
XrDuration motions_to_photons = 0;
|
||||
to_headset::tracking_control last_control;
|
||||
|
||||
wivrn_connection & cnx;
|
||||
|
||||
public:
|
||||
std::chrono::steady_clock::time_point next;
|
||||
|
||||
tracking_control(wivrn_connection & cnx) : cnx(cnx), next(std::chrono::steady_clock::now() + step) {}
|
||||
bool advance(std::chrono::steady_clock::time_point now);
|
||||
void add_request(device_id device, int64_t now, int64_t at_ns, int64_t produced_ns);
|
||||
|
||||
void resolve(XrDuration frame_time, XrDuration latency);
|
||||
};
|
||||
} // namespace wivrn
|
||||
+26
-31
@@ -18,46 +18,41 @@
|
||||
*/
|
||||
|
||||
#include "view_list.h"
|
||||
#include "pose_list.h"
|
||||
#include "xrt_cast.h"
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
|
||||
tracked_views view_list::interpolate(const tracked_views & a, const tracked_views & b, float t)
|
||||
void view_list::update_tracking(const from_headset::tracking & tracking, const clock_offset & offset)
|
||||
{
|
||||
tracked_views result = a;
|
||||
result.relation = pose_list::interpolate(a.relation, b.relation, t);
|
||||
return result;
|
||||
}
|
||||
if (not std::ranges::contains(tracking.device_poses, device_id::HEAD, &from_headset::tracking::pose::device))
|
||||
return;
|
||||
|
||||
tracked_views view_list::extrapolate(const tracked_views & a, const tracked_views & b, int64_t ta, int64_t tb, int64_t t)
|
||||
{
|
||||
tracked_views result = t < ta ? a : b;
|
||||
result.relation = pose_list::extrapolate(a.relation, b.relation, ta, tb, t);
|
||||
return result;
|
||||
}
|
||||
std::lock_guard lock(mutex);
|
||||
flags = tracking.view_flags;
|
||||
|
||||
bool view_list::update_tracking(const from_headset::tracking & tracking, const clock_offset & offset)
|
||||
{
|
||||
for (const auto & pose: tracking.device_poses)
|
||||
for (size_t eye = 0; eye < 2; ++eye)
|
||||
{
|
||||
if (pose.device != device_id::HEAD)
|
||||
continue;
|
||||
|
||||
tracked_views view{};
|
||||
|
||||
view.relation = pose_list::convert_pose(pose);
|
||||
view.flags = tracking.view_flags;
|
||||
|
||||
for (size_t eye = 0; eye < 2; ++eye)
|
||||
{
|
||||
view.poses[eye] = xrt_cast(tracking.views[eye].pose);
|
||||
view.fovs[eye] = xrt_cast(tracking.views[eye].fov);
|
||||
}
|
||||
|
||||
return add_sample(tracking.production_timestamp, tracking.timestamp, view, offset);
|
||||
poses[eye] = xrt_cast(tracking.views[eye].pose);
|
||||
fovs[eye] = xrt_cast(tracking.views[eye].fov);
|
||||
}
|
||||
return true;
|
||||
|
||||
head_poses.update_tracking(tracking, offset);
|
||||
}
|
||||
|
||||
std::pair<XrTime, tracked_views> view_list::get_at(XrTime at_timestamp_ns)
|
||||
{
|
||||
std::lock_guard lock(mutex);
|
||||
auto [t, pose] = head_poses.get_at(at_timestamp_ns);
|
||||
return {
|
||||
t,
|
||||
tracked_views{
|
||||
.flags = flags,
|
||||
.relation = pose,
|
||||
.poses = poses,
|
||||
.fovs = fovs,
|
||||
},
|
||||
|
||||
};
|
||||
}
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -35,12 +35,16 @@ struct tracked_views
|
||||
std::array<xrt_fov, 2> fovs;
|
||||
};
|
||||
|
||||
class view_list : public history<view_list, tracked_views>
|
||||
class view_list
|
||||
{
|
||||
public:
|
||||
static tracked_views interpolate(const tracked_views & a, const tracked_views & b, float t);
|
||||
static tracked_views extrapolate(const tracked_views & a, const tracked_views & b, int64_t ta, int64_t tb, int64_t t);
|
||||
pose_list head_poses{device_id::HEAD};
|
||||
std::mutex mutex;
|
||||
XrViewStateFlags flags;
|
||||
std::array<xrt_pose, 2> poses;
|
||||
std::array<xrt_fov, 2> fovs;
|
||||
|
||||
bool update_tracking(const from_headset::tracking & tracking, const clock_offset & offset);
|
||||
public:
|
||||
void update_tracking(const from_headset::tracking & tracking, const clock_offset & offset);
|
||||
std::pair<XrTime, tracked_views> get_at(XrTime at_timestamp_ns);
|
||||
};
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -31,9 +31,7 @@
|
||||
#include "xrt/xrt_device.h"
|
||||
#include "xrt/xrt_results.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
@@ -84,16 +82,15 @@ void wivrn_android_face_tracker::update_tracking(const from_headset::tracking &
|
||||
.is_valid = face->is_valid,
|
||||
};
|
||||
|
||||
if (not face_list.update_tracking(tracking.production_timestamp, tracking.timestamp, data, offset))
|
||||
cnx.set_enabled(to_headset::tracking_control::id::face, false);
|
||||
face_list.update_tracking(face->sample_time, tracking.timestamp, data, offset);
|
||||
}
|
||||
|
||||
xrt_result_t wivrn_android_face_tracker::get_face_tracking(enum xrt_input_name facial_expression_type, int64_t at_timestamp_ns, struct xrt_facial_expression_set * inout_value)
|
||||
{
|
||||
if (facial_expression_type == XRT_INPUT_ANDROID_FACE_TRACKING)
|
||||
{
|
||||
cnx.set_enabled(to_headset::tracking_control::id::face, true);
|
||||
auto [_, data] = face_list.get_at(at_timestamp_ns);
|
||||
auto [production_timestamp, data] = face_list.get_at(at_timestamp_ns);
|
||||
cnx.add_tracking_request(device_id::FACE, at_timestamp_ns, production_timestamp);
|
||||
|
||||
inout_value->face_expression_set_android.state = data.state;
|
||||
inout_value->face_expression_set_android.is_valid = data.is_valid;
|
||||
@@ -118,4 +115,4 @@ xrt_result_t wivrn_android_face_tracker::get_face_calibration_state_android(bool
|
||||
*out_face_is_calibrated = data.is_calibrated;
|
||||
return XRT_SUCCESS;
|
||||
}
|
||||
} // namespace wivrn
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -75,9 +75,9 @@ public:
|
||||
return result;
|
||||
}
|
||||
|
||||
bool update_tracking(const XrTime & production_timestamp, const XrTime & timestamp, const wivrn_android_face_data & data, const clock_offset & offset)
|
||||
void update_tracking(const XrTime & production_timestamp, const XrTime & timestamp, const wivrn_android_face_data & data, const clock_offset & offset)
|
||||
{
|
||||
return this->add_sample(production_timestamp, timestamp, data, offset);
|
||||
add_sample(production_timestamp, timestamp, data, offset);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -81,13 +81,6 @@ static inline struct vk_bundle * get_vk(struct wivrn_comp_target * cn)
|
||||
return &cn->c->base.vk;
|
||||
}
|
||||
|
||||
static float get_default_rate(const from_headset::headset_info_packet & info, const from_headset::settings_changed & settings)
|
||||
{
|
||||
if (settings.preferred_refresh_rate)
|
||||
return settings.preferred_refresh_rate;
|
||||
return info.available_refresh_rates.back();
|
||||
}
|
||||
|
||||
#ifdef XRT_FEATURE_RENDERDOC
|
||||
static auto renderdoc()
|
||||
{
|
||||
@@ -180,8 +173,8 @@ static VkResult create_images(struct wivrn_comp_target * cn, vk::ImageUsageFlags
|
||||
bool is_10bit = format == vk::Format::eG10X6B10X6R10X62Plane420Unorm3Pack16;
|
||||
|
||||
std::array formats = {
|
||||
is_10bit ? vk::Format::eR10X6UnormPack16 : vk::Format::eR8Unorm,
|
||||
is_10bit ? vk::Format::eR10X6G10X6Unorm2Pack16 : vk::Format::eR8G8Unorm,
|
||||
is_10bit ? vk::Format::eR16Unorm : vk::Format::eR8Unorm,
|
||||
is_10bit ? vk::Format::eR16G16Unorm : vk::Format::eR8G8Unorm,
|
||||
format};
|
||||
|
||||
cn->images = U_TYPED_ARRAY_CALLOC(struct comp_target_image, cn->image_count);
|
||||
@@ -569,7 +562,11 @@ static VkResult comp_wivrn_present(struct comp_target * ct,
|
||||
{
|
||||
if (encoder->stream_idx == 2 and not do_alpha)
|
||||
continue;
|
||||
auto [transfer, sem] = encoder->present_image(psc_image.image, command_buffer, info.frame_id);
|
||||
auto [transfer, sem] = encoder->present_image(
|
||||
psc_image.image,
|
||||
need_queue_transfer,
|
||||
command_buffer,
|
||||
info.frame_id);
|
||||
need_queue_transfer |= transfer;
|
||||
if (sem)
|
||||
present_done_sem.push_back(sem);
|
||||
@@ -578,9 +575,10 @@ static VkResult comp_wivrn_present(struct comp_target * ct,
|
||||
#if WIVRN_USE_VULKAN_ENCODE
|
||||
if (need_queue_transfer)
|
||||
{
|
||||
vk::ImageMemoryBarrier barrier{
|
||||
.srcAccessMask = vk::AccessFlagBits::eMemoryRead,
|
||||
.dstAccessMask = vk::AccessFlagBits::eMemoryWrite,
|
||||
vk::ImageMemoryBarrier2 video_barrier{
|
||||
.srcStageMask = vk::PipelineStageFlagBits2KHR::eTransfer,
|
||||
.srcAccessMask = vk::AccessFlagBits2::eMemoryRead,
|
||||
.dstStageMask = vk::PipelineStageFlagBits2KHR::eVideoEncodeKHR,
|
||||
.oldLayout = vk::ImageLayout::eTransferSrcOptimal,
|
||||
.newLayout = vk::ImageLayout::eVideoEncodeSrcKHR,
|
||||
.srcQueueFamilyIndex = vk->main_queue->family_index,
|
||||
@@ -592,13 +590,10 @@ static VkResult comp_wivrn_present(struct comp_target * ct,
|
||||
.baseArrayLayer = 0,
|
||||
.layerCount = vk::RemainingArrayLayers},
|
||||
};
|
||||
command_buffer.pipelineBarrier(
|
||||
vk::PipelineStageFlagBits::eTransfer,
|
||||
vk::PipelineStageFlagBits::eNone,
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
barrier);
|
||||
command_buffer.pipelineBarrier2({
|
||||
.imageMemoryBarrierCount = 1,
|
||||
.pImageMemoryBarriers = &video_barrier,
|
||||
});
|
||||
}
|
||||
submit_info.setSignalSemaphores(present_done_sem);
|
||||
#endif
|
||||
@@ -632,11 +627,18 @@ static VkResult comp_wivrn_present(struct comp_target * ct,
|
||||
const auto & frame_params = cn->c->base.frame_params;
|
||||
view_info.fov[eye] = xrt_cast(frame_params.fovs[eye]);
|
||||
view_info.pose[eye] = xrt_cast(frame_params.poses[eye]);
|
||||
if (cn->c->debug.atw_off)
|
||||
if (cn->c->base.frame_params.one_projection_layer_fast_path)
|
||||
{
|
||||
const auto & proj = cn->c->base.layer_accum.layers[0].data.proj;
|
||||
view_info.pose[eye] = xrt_cast(proj.v[eye].pose);
|
||||
view_info.fov[eye] = xrt_cast(proj.v[eye].fov);
|
||||
for (const auto & layer: cn->c->base.layer_accum.layers)
|
||||
{
|
||||
if (layer.data.type == XRT_LAYER_PROJECTION)
|
||||
{
|
||||
const auto & proj = cn->c->base.layer_accum.layers[0].data.proj;
|
||||
view_info.pose[eye] = xrt_cast(proj.v[eye].pose);
|
||||
view_info.fov[eye] = xrt_cast(proj.v[eye].fov);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -112,4 +112,11 @@ struct wivrn_comp_target : public comp_target
|
||||
void set_refresh_rate(float);
|
||||
};
|
||||
|
||||
inline float get_default_rate(const from_headset::headset_info_packet & info, const from_headset::settings_changed & settings)
|
||||
{
|
||||
if (settings.preferred_refresh_rate)
|
||||
return settings.preferred_refresh_rate;
|
||||
return info.available_refresh_rates.back();
|
||||
}
|
||||
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -293,13 +293,13 @@ void wivrn::wivrn_connection::init(std::stop_token stop_token, std::function<voi
|
||||
wivrn::update_last_connection_timestamp(clean_key(headset_key.public_key()));
|
||||
}
|
||||
|
||||
void wivrn::wivrn_connection::reset(TCP && tcp, std::function<void()> tick)
|
||||
void wivrn::wivrn_connection::reset(std::stop_token stop, TCP && tcp, std::function<void()> tick)
|
||||
{
|
||||
if (stream)
|
||||
stream = decltype(stream)();
|
||||
|
||||
control = std::move(tcp);
|
||||
init({}, tick);
|
||||
init(stop, tick);
|
||||
}
|
||||
|
||||
void wivrn::wivrn_connection::shutdown()
|
||||
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
{
|
||||
return active;
|
||||
}
|
||||
void reset(TCP && tcp, std::function<void()> tick = []() {});
|
||||
void reset(std::stop_token stop, TCP && tcp, std::function<void()> tick = {});
|
||||
void shutdown();
|
||||
|
||||
template <typename T>
|
||||
|
||||
@@ -23,12 +23,13 @@
|
||||
#include "driver/xrt_cast.h"
|
||||
#include "math/m_api.h"
|
||||
#include "utils/method.h"
|
||||
#include "wivrn_config.h"
|
||||
#include "wivrn_session.h"
|
||||
|
||||
#include "os/os_time.h"
|
||||
#include "util/u_logging.h"
|
||||
#include <array>
|
||||
#include <format>
|
||||
#include <fstream>
|
||||
#include <magic_enum.hpp>
|
||||
#include <numbers>
|
||||
#include <optional>
|
||||
@@ -570,26 +571,6 @@ make_binding_profiles()
|
||||
constexpr auto controller_per_hand_binding_profiles = std::to_array({make_binding_profiles<0>(),
|
||||
make_binding_profiles<1>()});
|
||||
|
||||
struct xrt_space_relation_csv_header
|
||||
{};
|
||||
|
||||
std::ostream & operator<<(std::ostream & out, const xrt_space_relation_csv_header &)
|
||||
{
|
||||
for (auto [value, name]: magic_enum::enum_entries<xrt_space_relation_flags>())
|
||||
{
|
||||
if (value and value != XRT_SPACE_RELATION_BITMASK_ALL)
|
||||
{
|
||||
name = name.substr(strlen("XRT_SPACE_RELATION_"));
|
||||
name = name.substr(0, name.size() - strlen("_BIT"));
|
||||
out << name << ",";
|
||||
}
|
||||
}
|
||||
out << "x,y,z,";
|
||||
out << "qw,qx,qy,qz,";
|
||||
out << "vx,vy,vz,";
|
||||
out << "avx,avy,avz";
|
||||
return out;
|
||||
}
|
||||
} // namespace
|
||||
|
||||
wivrn_controller::wivrn_controller(xrt_device_name name,
|
||||
@@ -643,12 +624,10 @@ wivrn_controller::wivrn_controller(xrt_device_name name,
|
||||
math_quat_from_euler_angles(&rotation_angles, &offset.orientation);
|
||||
|
||||
palm.set_derived(&grip, offset, true);
|
||||
cnx->set_enabled(palm.device, false);
|
||||
}
|
||||
else if (not cnx->get_info().palm_pose)
|
||||
{
|
||||
palm.set_derived(&grip, XRT_POSE_IDENTITY, false);
|
||||
cnx->set_enabled(palm.device, false);
|
||||
}
|
||||
|
||||
if (name != XRT_DEVICE_EXT_HAND_INTERACTION)
|
||||
@@ -793,55 +772,34 @@ void wivrn_controller::set_inputs(const from_headset::inputs & inputs, const clo
|
||||
|
||||
xrt_result_t wivrn_controller::get_tracked_pose(xrt_input_name name, int64_t at_timestamp_ns, xrt_space_relation * res)
|
||||
{
|
||||
std::chrono::nanoseconds extrapolation_time;
|
||||
XrTime production_timestamp;
|
||||
device_id device;
|
||||
XrTime now = os_monotonic_get_ns();
|
||||
auto target_ns = std::min(at_timestamp_ns, now + max_extrapolation_ns);
|
||||
switch (name)
|
||||
{
|
||||
case XRT_INPUT_TOUCH_AIM_POSE:
|
||||
case XRT_INPUT_HAND_AIM_POSE:
|
||||
std::tie(extrapolation_time, *res, device) = aim.get_pose_at(at_timestamp_ns);
|
||||
std::tie(production_timestamp, *res, device) = aim.get_pose_at(target_ns);
|
||||
break;
|
||||
case XRT_INPUT_TOUCH_GRIP_POSE:
|
||||
case XRT_INPUT_HAND_GRIP_POSE:
|
||||
std::tie(extrapolation_time, *res, device) = grip.get_pose_at(at_timestamp_ns);
|
||||
std::tie(production_timestamp, *res, device) = grip.get_pose_at(target_ns);
|
||||
break;
|
||||
case XRT_INPUT_GENERIC_PALM_POSE:
|
||||
std::tie(extrapolation_time, *res, device) = palm.get_pose_at(at_timestamp_ns);
|
||||
std::tie(production_timestamp, *res, device) = palm.get_pose_at(target_ns);
|
||||
break;
|
||||
case XRT_INPUT_HAND_PINCH_POSE:
|
||||
std::tie(extrapolation_time, *res, device) = pinch_ext.get_pose_at(at_timestamp_ns);
|
||||
std::tie(production_timestamp, *res, device) = pinch_ext.get_pose_at(target_ns);
|
||||
break;
|
||||
case XRT_INPUT_HAND_POKE_POSE:
|
||||
std::tie(extrapolation_time, *res, device) = poke_ext.get_pose_at(at_timestamp_ns);
|
||||
std::tie(production_timestamp, *res, device) = poke_ext.get_pose_at(target_ns);
|
||||
break;
|
||||
default:
|
||||
U_LOG_XDEV_UNSUPPORTED_INPUT(this, u_log_get_global_level(), name);
|
||||
return XRT_ERROR_INPUT_UNSUPPORTED;
|
||||
}
|
||||
cnx->set_enabled(device, true);
|
||||
cnx->add_predict_offset(extrapolation_time);
|
||||
if (auto out = tracking_dump())
|
||||
{
|
||||
auto device = [&] {
|
||||
switch (name)
|
||||
{
|
||||
case XRT_INPUT_TOUCH_AIM_POSE: return aim.device;
|
||||
case XRT_INPUT_TOUCH_GRIP_POSE: return grip.device;
|
||||
case XRT_INPUT_GENERIC_PALM_POSE: return palm.device;
|
||||
case XRT_INPUT_HAND_PINCH_POSE: return pinch_ext.device;
|
||||
case XRT_INPUT_HAND_POKE_POSE: return poke_ext.device;
|
||||
default:
|
||||
assert(false);
|
||||
__builtin_unreachable();
|
||||
} }();
|
||||
*out->lock() << magic_enum::enum_name(device) << ','
|
||||
<< os_monotonic_get_ns() << ','
|
||||
<< at_timestamp_ns << ','
|
||||
<< extrapolation_time.count() << ','
|
||||
<< "g,"
|
||||
<< *res << std::endl;
|
||||
;
|
||||
}
|
||||
cnx->add_tracking_request(device, at_timestamp_ns, production_timestamp, now);
|
||||
return XRT_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -852,10 +810,9 @@ xrt_result_t wivrn_controller::get_hand_tracking(xrt_input_name name, int64_t de
|
||||
case XRT_INPUT_HT_UNOBSTRUCTED_LEFT:
|
||||
case XRT_INPUT_HT_UNOBSTRUCTED_RIGHT: {
|
||||
*out_timestamp_ns = desired_timestamp_ns;
|
||||
std::chrono::nanoseconds extrapolation_time;
|
||||
std::tie(extrapolation_time, *out_value) = joints.get_at(desired_timestamp_ns);
|
||||
cnx->add_predict_offset(extrapolation_time);
|
||||
cnx->set_enabled(joints.hand_id == 0 ? to_headset::tracking_control::id::left_hand : to_headset::tracking_control::id::right_hand, true);
|
||||
XrTime production_timestamp;
|
||||
std::tie(production_timestamp, *out_value) = joints.get_at(desired_timestamp_ns);
|
||||
cnx->add_tracking_request(joints.hand_id == 0 ? device_id::LEFT_HAND : device_id::RIGHT_HAND, desired_timestamp_ns, production_timestamp);
|
||||
return XRT_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -878,46 +835,21 @@ void wivrn_controller::set_derived_pose(const from_headset::derived_pose & deriv
|
||||
auto source = list(derived.source);
|
||||
auto target = list(derived.target);
|
||||
if (source and target)
|
||||
{
|
||||
target->set_derived(source, xrt_cast(derived.relation));
|
||||
if (source != target)
|
||||
cnx->set_enabled(derived.target, false);
|
||||
}
|
||||
}
|
||||
|
||||
void wivrn_controller::update_tracking(const from_headset::tracking & tracking, const clock_offset & offset)
|
||||
{
|
||||
if (not aim.update_tracking(tracking, offset))
|
||||
cnx->set_enabled(aim.device, false);
|
||||
if (not grip.update_tracking(tracking, offset))
|
||||
cnx->set_enabled(grip.device, false);
|
||||
if (not palm.update_tracking(tracking, offset))
|
||||
cnx->set_enabled(palm.device, false);
|
||||
if (not pinch_ext.update_tracking(tracking, offset))
|
||||
cnx->set_enabled(pinch_ext.device, false);
|
||||
if (not poke_ext.update_tracking(tracking, offset))
|
||||
cnx->set_enabled(poke_ext.device, false);
|
||||
if (auto out = tracking_dump(); out and offset)
|
||||
{
|
||||
auto locked = out->lock();
|
||||
auto now = os_monotonic_get_ns();
|
||||
for (const auto & pose: tracking.device_poses)
|
||||
{
|
||||
if (pose.device == aim.device or pose.device == grip.device or pose.device == palm.device or pose.device == pinch_ext.device or pose.device == poke_ext.device)
|
||||
*locked << magic_enum::enum_name(pose.device) << ','
|
||||
<< now << ','
|
||||
<< offset.from_headset(tracking.timestamp) << ','
|
||||
<< tracking.timestamp - tracking.production_timestamp << ','
|
||||
<< "r,"
|
||||
<< pose_list::convert_pose(pose) << std::endl;
|
||||
}
|
||||
}
|
||||
aim.update_tracking(tracking, offset);
|
||||
grip.update_tracking(tracking, offset);
|
||||
palm.update_tracking(tracking, offset);
|
||||
pinch_ext.update_tracking(tracking, offset);
|
||||
poke_ext.update_tracking(tracking, offset);
|
||||
}
|
||||
|
||||
void wivrn_controller::update_hand_tracking(const from_headset::hand_tracking & tracking, const clock_offset & offset)
|
||||
{
|
||||
if (not joints.update_tracking(tracking, offset))
|
||||
cnx->set_enabled(joints.hand_id == 0 ? to_headset::tracking_control::id::left_hand : to_headset::tracking_control::id::right_hand, false);
|
||||
joints.update_tracking(tracking, offset);
|
||||
}
|
||||
|
||||
xrt_result_t wivrn_controller::set_output(xrt_output_name name, const xrt_output_value * value)
|
||||
@@ -963,43 +895,4 @@ void wivrn_controller::reset_history()
|
||||
poke_ext.reset();
|
||||
}
|
||||
|
||||
thread_safe<std::ofstream> * wivrn_controller::tracking_dump()
|
||||
{
|
||||
static std::unique_ptr<thread_safe<std::ofstream>> res = [] {
|
||||
if (auto wivrn_dump = std::getenv("WIVRN_DUMP_TRACKING"))
|
||||
{
|
||||
U_LOG_I("Controller tracking dump enabled: %s", wivrn_dump);
|
||||
std::ofstream res;
|
||||
res.open(wivrn_dump);
|
||||
res << "device_id,"
|
||||
"now_ns,"
|
||||
"timestamp_ns,"
|
||||
"extrapolation_ns,"
|
||||
"receive/get,"
|
||||
<< xrt_space_relation_csv_header{} << std::endl;
|
||||
|
||||
return std::make_unique<thread_safe<std::ofstream>>(std::move(res));
|
||||
}
|
||||
return std::unique_ptr<thread_safe<std::ofstream>>();
|
||||
}();
|
||||
return res.get();
|
||||
}
|
||||
} // namespace wivrn
|
||||
|
||||
std::ostream & operator<<(std::ostream & out, const xrt_space_relation & rel)
|
||||
{
|
||||
const auto & pos = rel.pose.position;
|
||||
const auto & o = rel.pose.orientation;
|
||||
const auto & v = rel.linear_velocity;
|
||||
const auto & av = rel.angular_velocity;
|
||||
for (const auto & [value, name]: magic_enum::enum_entries<xrt_space_relation_flags>())
|
||||
{
|
||||
if (value and value != XRT_SPACE_RELATION_BITMASK_ALL)
|
||||
out << bool(rel.relation_flags & value) << ',';
|
||||
}
|
||||
out << pos.x << ',' << pos.y << ',' << pos.z << ',';
|
||||
out << o.w << ',' << o.x << ',' << o.y << ',' << o.z << ',';
|
||||
out << v.x << ',' << v.y << ',' << v.z << ',';
|
||||
out << av.x << ',' << av.y << ',' << av.z;
|
||||
return out;
|
||||
}
|
||||
|
||||
@@ -24,9 +24,7 @@
|
||||
|
||||
#include "hand_joints_list.h"
|
||||
#include "pose_list.h"
|
||||
#include "utils/thread_safe.h"
|
||||
|
||||
#include <fstream>
|
||||
#include <mutex>
|
||||
#include <vector>
|
||||
|
||||
@@ -69,10 +67,6 @@ public:
|
||||
void update_hand_tracking(const from_headset::hand_tracking &, const clock_offset &);
|
||||
|
||||
void reset_history();
|
||||
|
||||
static thread_safe<std::ofstream> * tracking_dump();
|
||||
};
|
||||
|
||||
} // namespace wivrn
|
||||
|
||||
std::ostream & operator<<(std::ostream & out, const xrt_space_relation & rel);
|
||||
|
||||
@@ -21,21 +21,20 @@
|
||||
#include "wivrn_eye_tracker.h"
|
||||
|
||||
#include "wivrn_packets.h"
|
||||
#include "wivrn_session.h"
|
||||
#include "xrt/xrt_defines.h"
|
||||
#include "xrt/xrt_device.h"
|
||||
|
||||
#include "util/u_logging.h"
|
||||
#include "utils/method.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include <openxr/openxr.h>
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
|
||||
wivrn_eye_tracker::wivrn_eye_tracker(xrt_device * hmd) :
|
||||
wivrn_eye_tracker::wivrn_eye_tracker(xrt_device * hmd, wivrn_session & cnx) :
|
||||
xrt_device{
|
||||
.name = XRT_DEVICE_EYE_GAZE_INTERACTION,
|
||||
.device_type = XRT_DEVICE_TYPE_EYE_TRACKER,
|
||||
@@ -55,7 +54,8 @@ wivrn_eye_tracker::wivrn_eye_tracker(xrt_device * hmd) :
|
||||
.active = true,
|
||||
.name = XRT_INPUT_GENERIC_EYE_GAZE_POSE,
|
||||
},
|
||||
gaze(device_id::EYE_GAZE)
|
||||
gaze(device_id::EYE_GAZE),
|
||||
cnx(cnx)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -68,8 +68,9 @@ xrt_result_t wivrn_eye_tracker::get_tracked_pose(xrt_input_name name, int64_t at
|
||||
{
|
||||
if (name == XRT_INPUT_GENERIC_EYE_GAZE_POSE)
|
||||
{
|
||||
auto [_, relation] = gaze.get_at(at_timestamp_ns);
|
||||
auto [production_timestamp, relation] = gaze.get_at(at_timestamp_ns);
|
||||
*out_relation = relation;
|
||||
cnx.add_tracking_request(device_id::EYE_GAZE, at_timestamp_ns, production_timestamp);
|
||||
return XRT_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,16 +30,18 @@
|
||||
|
||||
namespace wivrn
|
||||
{
|
||||
class wivrn_session;
|
||||
|
||||
class wivrn_eye_tracker : public xrt_device
|
||||
{
|
||||
std::mutex mutex;
|
||||
xrt_input gaze_input;
|
||||
pose_list gaze;
|
||||
wivrn_session & cnx;
|
||||
|
||||
public:
|
||||
using base = xrt_device;
|
||||
wivrn_eye_tracker(xrt_device * hmd);
|
||||
wivrn_eye_tracker(xrt_device * hmd, wivrn_session &);
|
||||
|
||||
xrt_result_t update_inputs();
|
||||
void update_tracking(const from_headset::tracking &, const clock_offset &);
|
||||
|
||||
@@ -29,9 +29,7 @@
|
||||
#include "xrt/xrt_device.h"
|
||||
#include "xrt/xrt_results.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include <openxr/openxr.h>
|
||||
|
||||
namespace wivrn
|
||||
@@ -81,16 +79,15 @@ void wivrn_fb_face2_tracker::update_tracking(const from_headset::tracking & trac
|
||||
.time = offset.from_headset(face->time),
|
||||
};
|
||||
|
||||
if (not face_list.update_tracking(tracking.production_timestamp, tracking.timestamp, data, offset))
|
||||
cnx.set_enabled(to_headset::tracking_control::id::face, false);
|
||||
face_list.update_tracking(face->timestamp, tracking.timestamp, data, offset);
|
||||
}
|
||||
|
||||
xrt_result_t wivrn_fb_face2_tracker::get_face_tracking(enum xrt_input_name facial_expression_type, int64_t at_timestamp_ns, struct xrt_facial_expression_set * inout_value)
|
||||
{
|
||||
if (facial_expression_type == XRT_INPUT_FB_FACE_TRACKING2_VISUAL)
|
||||
{
|
||||
cnx.set_enabled(to_headset::tracking_control::id::face, true);
|
||||
auto [_, data] = face_list.get_at(at_timestamp_ns);
|
||||
auto [production_timestamp, data] = face_list.get_at(at_timestamp_ns);
|
||||
cnx.add_tracking_request(device_id::FACE, at_timestamp_ns, production_timestamp);
|
||||
|
||||
inout_value->face_expression_set2_fb.is_valid = data.is_valid;
|
||||
inout_value->face_expression_set2_fb.sample_time_ns = data.time;
|
||||
|
||||
@@ -80,9 +80,9 @@ public:
|
||||
return result;
|
||||
}
|
||||
|
||||
bool update_tracking(const XrTime & production_timestamp, const XrTime & timestamp, const wivrn_fb_face2_data & data, const clock_offset & offset)
|
||||
void update_tracking(const XrTime & production_timestamp, const XrTime & timestamp, const wivrn_fb_face2_data & data, const clock_offset & offset)
|
||||
{
|
||||
return this->add_sample(production_timestamp, timestamp, data, offset);
|
||||
add_sample(production_timestamp, timestamp, data, offset);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user