Compare commits

...
Author SHA1 Message Date
Vindicus999 47643977ef Merge remote-tracking branch 'upstream/master' 2026-02-28 02:10:14 +00:00
Patrick Nicolas 51855e195c FR locale 2026-02-27 16:12:46 +01:00
Patrick Nicolas 34ce871f2d IT locale 2026-02-27 16:11:37 +01:00
caszuu 4a1c58a137 fix tracking thread softlock on xr session begin 2026-02-27 16:03:18 +01:00
caszuu 1903d5c910 refuse pair enable requests while session is running 2026-02-27 16:03:18 +01:00
caszuu b96833cc9b semi-workaround for quest gpu memory corruption
From pure trial and error, is seems that swapchain
management on the quest platform is broken. After a
swapchain is destroyed, there is a _chance_ the
next created swapchain will be unusable.

This seems to happen no matter what, where or when
the client decides to clean up its resources and the
safest bet is to not recreate swapchains much.
2026-02-27 16:03:18 +01:00
caszuu 93ee0cc577 add minimal feedback to reconnect errors 2026-02-27 16:03:18 +01:00
caszuu 9a2f31e011 set user presence on session pause / resume 2026-02-27 16:03:18 +01:00
caszuu b5e93607df set refresh rate on session pause / resume 2026-02-27 16:03:18 +01:00
caszuu 9a81bc8213 ignore network errors instead of crashing
wrap some code paths which could cause uncaught
exceptions if called from one of the monado owned
threads.
2026-02-27 16:03:18 +01:00
caszuu a823df96d3 add server error messages 2026-02-27 16:03:18 +01:00
caszuu c44940d004 add server messages (with toasts!) 2026-02-27 16:03:18 +01:00
caszuu 7d11674b2a respect current client selection on session resume
this fixes a bug where non-current non-overlay
clients could get up to the focused session state
when a reconnect occured.
2026-02-27 16:03:18 +01:00
caszuu adf4b1fc84 verify headset compatibility on reconnect 2026-02-27 16:03:18 +01:00
caszuu 5b6e172b41 skip encoding when session paused
this is already done by `offset_est.reset()` as a
side-effect but it's implemented formally in case
that breaks by future changes.
2026-02-27 16:03:18 +01:00
caszuu a8504545e9 refactor reconnect logic
try to merge as much code between the first-time
connect and reconnects under `resume_session()`
without changing current behavior.
2026-02-27 16:03:18 +01:00
Sapphire e81393fe87 Use pose data from device for projection when layer is old 2026-02-27 09:55:07 +01:00
Vindicus999 906e6e5744 Merge remote-tracking branch 'upstream/master' 2026-02-27 02:26:53 +00:00
Patrick Nicolas bfe44c6b8d Drop norm > 0.9 assertion 2026-02-26 23:09:41 +01:00
Patrick Nicolas 9df870a7fa Project layers on the first projection one 2026-02-26 22:21:54 +01:00
Schmarni 8a7cc105cb Call openvrChanged instead of tcpOnlyChanged in set_openvr
Signed-off-by: Schmarni <marnistromer@gmail.com>
2026-02-26 15:00:39 +01:00
Schmarni 1e6937d4a4 Add port and hostname config options
Signed-off-by: Schmarni <marnistromer@gmail.com>
2026-02-26 15:00:39 +01:00
BERADQ 0f21191e9b Check NVENC intra-refresh capability before enabling the feature 2026-02-26 15:00:05 +01:00
BERADQ 6254386370 Set intra refresh period and count to fixed values. 2026-02-26 15:00:05 +01:00
BERADQ e32d3bbf36 Enable intra refresh for H264/HEVC/AV1 with period=fps and count=fps/2 2026-02-26 15:00:05 +01:00
Vindicus999 c1c703b445 Merge remote-tracking branch 'upstream/master' 2026-02-26 02:28:17 +00:00
Patrick Nicolas 63cb9ff179 Use same trigger threshold as in Monado 2026-02-25 21:08:18 +01:00
BERADQ a16a0df1c0 Update Simplified Chinese localization -> close #599 2026-02-25 14:56:26 +01:00
Vindicus999 b4d610f52a Merge remote-tracking branch 'upstream/master' 2026-02-24 02:31:10 +00:00
Patrick Nicolas f476f9a1db Default refresh rate < 100Hz 2026-02-23 19:14:44 +01:00
46 changed files with 1175 additions and 591 deletions
+1 -1
View File
@@ -1340,7 +1340,7 @@ void application::initialize()
spaces[size_t(xr::spaces::view)] = xr_session.create_reference_space(XR_REFERENCE_SPACE_TYPE_VIEW);
spaces[size_t(xr::spaces::world)] = xr_session.create_reference_space(XR_REFERENCE_SPACE_TYPE_STAGE);
config.emplace(xr_system_id);
config.emplace(xr_system_id, xr_session);
// HTC face tracker fails if created later
// we can destroy it right away, it actually stores static handles
+20 -4
View File
@@ -19,6 +19,7 @@
#include "configuration.h"
#include "application.h"
#include "utils/contains.h"
#include "utils/json_string.h"
#include "wivrn_packets.h"
@@ -29,6 +30,9 @@
#include "android/permissions.h"
#endif
// If no refresh rate is configured, don't select a too high one
static const float max_default_rate = 100;
bool configuration::check_feature(feature f) const
{
{
@@ -95,7 +99,7 @@ void configuration::set_feature(feature f, bool state)
save();
}
configuration::configuration(xr::system & system)
configuration::configuration(xr::system & system, xr::session & session)
{
passthrough_enabled = system.passthrough_supported() == xr::passthrough_type::color;
features[feature::hand_tracking] = system.hand_tracking_supported();
@@ -122,6 +126,15 @@ configuration::configuration(xr::system & system)
high_power_mode = true;
break;
}
const auto & rates = session.get_refresh_rates();
for (auto rate: rates)
{
if (rate >= max_default_rate)
break;
preferred_refresh_rate = rate;
}
try
{
simdjson::dom::parser parser;
@@ -145,7 +158,11 @@ configuration::configuration(xr::system & system)
}
if (auto val = root["preferred_refresh_rate"]; val.is_double())
preferred_refresh_rate = val.get_double();
{
float f = val.get_double();
if (f == 0 or utils::contains(rates, f))
preferred_refresh_rate = f;
}
if (auto val = root["minimum_refresh_rate"]; val.is_double())
minimum_refresh_rate = val.get_double();
@@ -285,8 +302,7 @@ void configuration::save()
std::ofstream json(application::get_config_path() / "client.json");
json << "{\"servers\":[" << servers_str << "]";
if (preferred_refresh_rate)
json << ",\"preferred_refresh_rate\":" << *preferred_refresh_rate;
json << ",\"preferred_refresh_rate\":" << preferred_refresh_rate;
if (minimum_refresh_rate)
json << ",\"minimum_refresh_rate\":" << *minimum_refresh_rate;
json << ",\"resolution_scale\":" << resolution_scale;
+4 -3
View File
@@ -31,8 +31,9 @@
namespace xr
{
class session;
class system;
}
} // namespace xr
class configuration
{
@@ -48,7 +49,7 @@ public:
};
std::map<std::string, server_data> servers;
std::optional<float> preferred_refresh_rate;
float preferred_refresh_rate = 0;
std::optional<float> minimum_refresh_rate;
float resolution_scale = 1.0;
std::optional<wivrn::video_codec> codec;
@@ -99,7 +100,7 @@ private:
void parse_openxr_post_processing_options(simdjson::simdjson_result<simdjson::dom::object> root);
public:
configuration(xr::system &);
configuration(xr::system &, xr::session &);
configuration() = default;
void save();
+4 -1
View File
@@ -40,7 +40,7 @@ constexpr int font_size_large = 75;
constexpr float scroll_ratio = 10;
// Threshold on the trigger value to register a click
constexpr float trigger_click_thd = 0.8;
constexpr float trigger_click_thd = 0.7;
// Thresholds on the distance between the fingertip and GUI layers (positive: in front of the GUI, negative: behind the GUI)
constexpr float palm_distance_close_thd_lo = 0.18; // Distance to switch between touch and aim interaction
@@ -117,6 +117,9 @@ namespace constants::stream
constexpr float fade_delay = 3;
constexpr float fade_duration = 0.25;
constexpr float urgent_fade_delay = 5;
constexpr ImVec4 urgent_border_color = {8.f, .6f, 0.f, .8f};
// Dimming for the streamed video when the GUI is interactable
constexpr float dimming_scale = 0.4;
constexpr float dimming_bias = 0.01;
+13 -6
View File
@@ -882,10 +882,19 @@ void scenes::lobby::render(const XrFrameState & frame_state)
if (next_scene)
{
if (!next_scene->alive())
next_scene.reset();
else if (next_scene->current_state() == scenes::stream::state::streaming)
application::push_scene(next_scene);
switch (next_scene->current_state())
{
case scenes::stream::state::streaming:
application::push_scene(next_scene);
break;
case scenes::stream::state::shutdown:
current_tab = tab::server_list;
break;
default:
break;
}
}
update_server_list();
@@ -1329,7 +1338,6 @@ void scenes::lobby::on_focused()
std::ranges::sort(local_environments, std::less{});
setup_passthrough();
session.set_refresh_rate(application::get_config().preferred_refresh_rate.value_or(0));
multicast = application::get_wifi_lock().get_multicast_lock();
session.set_performance_level(XR_PERF_SETTINGS_DOMAIN_CPU_EXT, XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT);
@@ -1362,7 +1370,6 @@ void scenes::lobby::on_unfocused()
right_hand.reset();
face_tracker.emplace<std::monostate>();
clear_swapchains();
multicast.reset();
}
+1
View File
@@ -224,6 +224,7 @@ class lobby : public scene_impl<lobby>
void gui_connecting(locked_notifiable<pin_request_data> & request);
void gui_enter_pin(locked_notifiable<pin_request_data> & request);
void gui_connected(XrTime predicted_display_time);
void gui_disconnected();
void gui_server_list();
void gui_new_server();
void gui_settings();
+53 -10
View File
@@ -249,11 +249,7 @@ void scenes::lobby::gui_enter_pin(locked_notifiable<pin_request_data> & pin_requ
void scenes::lobby::gui_connected(XrTime predicted_display_time)
{
if (not next_scene)
{
current_tab = tab::server_list;
return;
}
assert(next_scene);
if (next_scene->apps.draw_gui(*imgui_ctx, _("Disconnect")) == app_launcher::Cancel)
{
@@ -262,6 +258,42 @@ void scenes::lobby::gui_connected(XrTime predicted_display_time)
}
}
void scenes::lobby::gui_disconnected()
{
using constants::style::button_size;
std::string close_button_label = _("Close");
if (!async_error)
{
async_error = next_scene->pop_stream_error();
if (!async_error)
{
next_scene.reset();
ImGui::CloseCurrentPopup();
return;
}
}
ImGui::Dummy({1000, 1});
ImGui::PushFont(nullptr, constants::gui::font_size_large);
if (server_name == "")
CenterTextH(fmt::format(_F("Disconnected")));
else
CenterTextH(fmt::format(_F("Disconnected from {}"), server_name));
ImGui::PopFont();
ImGui::Text("%s", async_error->c_str());
ImGui::SetCursorPosX(ImGui::GetWindowContentRegionMax().x - button_size.x - ImGui::GetStyle().WindowPadding.x);
if (ImGui::Button(close_button_label.c_str(), button_size))
{
async_error.reset();
}
imgui_ctx->vibrate_on_hover();
}
void scenes::lobby::gui_new_server()
{
using constants::style::button_size;
@@ -496,8 +528,12 @@ void scenes::lobby::gui_server_list()
config.save();
}
// Check if we need to report errors after a disconnect
if (next_scene and next_scene->current_state() == scenes::stream::state::shutdown and not ImGui::IsPopupOpen("", ImGuiPopupFlags_AnyPopup))
ImGui::OpenPopup("disconnected");
// Check if an automatic connection has started
if ((async_session.valid() || next_scene) and not ImGui::IsPopupOpen("connecting"))
if ((async_session.valid() || next_scene) and not ImGui::IsPopupOpen("", ImGuiPopupFlags_AnyPopup))
ImGui::OpenPopup("connecting");
const auto & popup_layer = imgui_ctx->layers()[1];
@@ -516,6 +552,13 @@ void scenes::lobby::gui_server_list()
ImGui::EndPopup();
}
ImGui::SetNextWindowPos({popup_layer_center.x, popup_layer_center.y}, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
if (ImGui::BeginPopupModal("disconnected", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize))
{
gui_disconnected();
ImGui::EndPopup();
}
ImGui::SetNextWindowSize({800, 0});
ImGui::SetNextWindowPos({popup_layer_center.x, popup_layer_center.y}, ImGuiCond_FirstUseEver, ImVec2(0.5f, 0.5f));
if (ImGui::BeginPopupModal("add or edit server", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize))
@@ -576,10 +619,10 @@ void scenes::lobby::gui_settings()
const auto & refresh_rates = session.get_refresh_rates();
if (not refresh_rates.empty())
{
float active_rate = config.preferred_refresh_rate.value_or(refresh_rates.back());
float active_rate = config.preferred_refresh_rate;
if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? fmt::format("{}", active_rate).c_str() : _cS("automatic refresh rate", "Automatic")))
{
if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), config.preferred_refresh_rate == 0, ImGuiSelectableFlags_SelectOnRelease))
if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), active_rate == 0, ImGuiSelectableFlags_SelectOnRelease))
{
session.set_refresh_rate(0);
config.preferred_refresh_rate = 0;
@@ -589,7 +632,7 @@ void scenes::lobby::gui_settings()
imgui_ctx->tooltip(_("Select refresh rate based on measured application performance.\nMay cause flicker when a change happens."));
for (float rate: refresh_rates)
{
if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == config.preferred_refresh_rate, ImGuiSelectableFlags_SelectOnRelease))
if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == active_rate, ImGuiSelectableFlags_SelectOnRelease))
{
session.set_refresh_rate(rate);
config.preferred_refresh_rate = rate;
@@ -600,7 +643,7 @@ void scenes::lobby::gui_settings()
}
imgui_ctx->vibrate_on_hover();
if (config.preferred_refresh_rate == 0 and refresh_rates.size() > 2)
if (active_rate == 0 and refresh_rates.size() > 2)
{
float min_rate = config.minimum_refresh_rate.value_or(refresh_rates.front());
if (ImGui::BeginCombo(_S("Minimum refresh rate"), fmt::format("{}", min_rate).c_str()))
+25 -22
View File
@@ -36,7 +36,6 @@
#include "hardware.h"
#include "inplace_vector.hpp"
#include "spdlog/spdlog.h"
#include "utils/contains.h"
#include "utils/named_thread.h"
#include "utils/ranges.h"
#include "wivrn_packets.h"
@@ -233,20 +232,8 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
if (self->instance.has_extension(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME))
{
info.available_refresh_rates = self->session.get_refresh_rates();
// I can't find anything in specification the ensures it won't be empty
if (not info.available_refresh_rates.empty())
{
if (config.preferred_refresh_rate and (config.preferred_refresh_rate == 0 or utils::contains(info.available_refresh_rates, *config.preferred_refresh_rate)))
{
info.settings.preferred_refresh_rate = *config.preferred_refresh_rate;
info.settings.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0);
}
else
{
// Default to highest refresh rate
info.settings.preferred_refresh_rate = info.available_refresh_rates.back();
}
}
info.settings.preferred_refresh_rate = config.preferred_refresh_rate;
info.settings.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0);
}
if (info.available_refresh_rates.empty())
@@ -261,6 +248,11 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
info.hand_tracking = config.check_feature(feature::hand_tracking);
info.eye_gaze = config.check_feature(feature::eye_gaze);
if (self->instance.has_extension(XR_EXT_USER_PRESENCE_EXTENSION_NAME))
{
info.user_presence = self->system.user_presence_properties().supportsUserPresence;
}
if (config.check_feature(feature::face_tracking))
{
switch (self->system.face_tracker_supported())
@@ -536,7 +528,6 @@ void scenes::stream::on_unfocused()
renderer->wait_idle(); // Must be before the scene data because the renderer uses its descriptor sets;
world.clear();
input.reset();
clear_swapchains();
left_hand.reset();
right_hand.reset();
apps.reset();
@@ -575,7 +566,7 @@ void scenes::stream::push_blit_handle(shard_accumulator * decoder, std::shared_p
if (state_ != state::streaming and not(decoders[0].empty() and decoders[1].empty()))
{
state_ = state::streaming;
set_state(state::streaming);
spdlog::info("Stream scene ready at t={}", instance.now());
}
}
@@ -772,16 +763,16 @@ bool scenes::stream::is_gui_interactable() const
void scenes::stream::render(const XrFrameState & frame_state)
{
if (exiting)
if (state_ == state::shutdown)
application::pop_scene();
display_time_phase = frame_state.predictedDisplayTime % frame_state.predictedDisplayPeriod;
display_time_phase = frame_state.predictedDisplayPeriod ? frame_state.predictedDisplayTime % frame_state.predictedDisplayPeriod : 0;
display_time_period = frame_state.predictedDisplayPeriod;
real_display_period = last_display_time ? frame_state.predictedDisplayTime - last_display_time : frame_state.predictedDisplayPeriod;
last_display_time = frame_state.predictedDisplayTime;
std::shared_lock lock(decoder_mutex);
if (not frame_state.shouldRender or (decoders[0].empty() and decoders[1].empty()) or exiting)
if (not frame_state.shouldRender or (decoders[0].empty() and decoders[1].empty()) or state_ == state::shutdown)
{
// TODO: stop/restart video stream
session.begin_frame();
@@ -861,7 +852,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
blit_handle->feedback.blitted = instance.now();
if (blit_handle->feedback.blitted - blit_handle->feedback.received_from_decoder > 1'000'000'000)
state_ = stream::state::stalled;
set_state(state::stalled);
++blit_handle->feedback.times_displayed;
blit_handle->feedback.displayed = frame_state.predictedDisplayTime;
@@ -1149,7 +1140,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
void scenes::stream::exit()
{
exiting = true;
state_ = state::shutdown;
}
void scenes::stream::setup(const to_headset::video_stream_description & description)
@@ -1274,6 +1265,18 @@ scene::meta & scenes::stream::get_meta_scene()
return m;
}
std::optional<std::string> scenes::stream::pop_stream_error()
{
auto queue = stream_error_queue.lock();
if (queue->empty())
return std::nullopt;
auto err = std::make_optional(queue->front());
queue->pop();
return err;
}
void scenes::stream::on_xr_event(const xr::event & event)
{
switch (event.header.type)
+27 -9
View File
@@ -32,6 +32,7 @@
#include "wivrn_packets.h"
#include "xr/space.h"
#include <mutex>
#include <queue>
#include <shared_mutex>
#include <thread>
#include <vulkan/vulkan_core.h>
@@ -45,7 +46,8 @@ public:
{
initializing,
streaming,
stalled
stalled,
shutdown,
};
static const size_t image_buffer_size = 3;
@@ -72,7 +74,6 @@ private:
std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, decoder_count> common_frame(XrTime display_time);
std::unique_ptr<wivrn_session> network_session;
std::atomic<bool> exiting = false;
std::thread network_thread;
thread_safe<to_headset::tracking_control> tracking_control{};
std::array<std::atomic<interaction_profile>, 2> interaction_profiles; // left and right hand
@@ -104,7 +105,16 @@ private:
std::unordered_multimap<device_id, haptics_action> haptics_actions;
std::vector<std::tuple<device_id, XrAction, XrActionType>> input_actions;
state state_ = state::initializing;
std::atomic<state> state_ = state::initializing;
void set_state(state new_state)
{
state prev = state_;
if (prev == state::shutdown)
return;
state_.compare_exchange_strong(prev, new_state);
}
xr::swapchain swapchain;
@@ -134,14 +144,24 @@ private:
application_launcher,
};
struct gui_toast
{
std::string content;
bool is_urgent = false;
};
bool is_gui_interactable() const;
std::atomic<gui_status> gui_status = gui_status::hidden;
enum gui_status last_gui_status = gui_status::hidden;
enum gui_status next_gui_status = gui_status::applications;
XrTime gui_status_last_change;
float dimming = 0;
thread_safe<std::optional<gui_toast>> gui_toast;
std::atomic<XrTime> gui_status_last_change;
thread_safe<std::queue<std::string>> stream_error_queue;
XrAction plots_toggle_1 = XR_NULL_HANDLE;
XrAction plots_toggle_2 = XR_NULL_HANDLE;
XrAction recenter_left = XR_NULL_HANDLE;
@@ -198,6 +218,7 @@ public:
void operator()(to_headset::pin_check_2 &&) {};
void operator()(to_headset::pin_check_4 &&) {};
void operator()(to_headset::handshake &&) {};
void operator()(to_headset::server_message &&);
void operator()(to_headset::video_stream_data_shard &&);
void operator()(to_headset::haptics &&);
void operator()(to_headset::timesync_query &&);
@@ -221,14 +242,10 @@ public:
}
void exit();
bool alive() const
{
return !exiting;
}
void start_application(std::string appid);
static meta & get_meta_scene();
std::optional<std::string> pop_stream_error();
private:
void process_packets();
@@ -312,6 +329,7 @@ private:
void gui_bitrate_settings(float predicted_display_period);
void gui_foveation_settings(float predicted_display_period);
void gui_applications();
void gui_toasts();
void draw_gui(XrTime predicted_display_time, XrDuration predicted_display_period);
};
} // namespace scenes
+43 -11
View File
@@ -26,7 +26,6 @@
#include "imgui.h"
#include "imgui_internal.h"
#include "implot.h"
#include "utils/contains.h"
#include "utils/i18n.h"
#include "utils/ranges.h"
#include <IconsFontAwesome6.h>
@@ -384,9 +383,9 @@ static void send_settings_changed_packet(xr::session & session, wivrn_session *
from_headset::settings_changed packet{
.bitrate_bps = config.bitrate_bps,
};
if (config.preferred_refresh_rate and (config.preferred_refresh_rate == 0 or utils::contains(refresh_rates, *config.preferred_refresh_rate)))
if (not refresh_rates.empty())
{
packet.preferred_refresh_rate = *config.preferred_refresh_rate;
packet.preferred_refresh_rate = config.preferred_refresh_rate;
packet.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0);
}
else
@@ -409,12 +408,11 @@ void scenes::stream::gui_settings(float predicted_display_period)
const auto & refresh_rates = session.get_refresh_rates();
if (not refresh_rates.empty())
{
float active_rate = config.preferred_refresh_rate.value_or(refresh_rates.back());
float active_rate = config.preferred_refresh_rate;
if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? fmt::format("{}", active_rate).c_str() : _cS("automatic refresh rate", "Automatic")))
{
if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), config.preferred_refresh_rate == 0, ImGuiSelectableFlags_SelectOnRelease))
if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), active_rate == 0, ImGuiSelectableFlags_SelectOnRelease))
{
session.set_refresh_rate(0);
config.preferred_refresh_rate = 0;
send_settings_changed_packet(session, network_session.get(), config, predicted_display_period);
config.save();
@@ -423,7 +421,7 @@ void scenes::stream::gui_settings(float predicted_display_period)
imgui_ctx->tooltip(_("Select refresh rate based on measured application performance.\nMay cause flicker when a change happens."));
for (float rate: refresh_rates)
{
if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == config.preferred_refresh_rate, ImGuiSelectableFlags_SelectOnRelease))
if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == active_rate, ImGuiSelectableFlags_SelectOnRelease))
{
session.set_refresh_rate(rate);
config.preferred_refresh_rate = rate;
@@ -435,7 +433,7 @@ void scenes::stream::gui_settings(float predicted_display_period)
}
imgui_ctx->vibrate_on_hover();
if (config.preferred_refresh_rate == 0 and refresh_rates.size() > 2)
if (active_rate == 0 and refresh_rates.size() > 2)
{
float min_rate = config.minimum_refresh_rate.value_or(refresh_rates.front());
if (ImGui::BeginCombo(_S("Minimum refresh rate"), fmt::format("{}", min_rate).c_str()))
@@ -731,6 +729,19 @@ void scenes::stream::gui_applications()
ImGui::PopStyleVar(3);
}
void scenes::stream::gui_toasts()
{
auto toast = gui_toast.lock();
if (!toast->has_value())
{
ImGui::Text("%s", _S("Press both thumbsticks to display the WiVRn window"));
return;
}
ImGui::Text("%s", (*toast)->content.c_str());
}
void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicted_display_period)
{
if (not(plots_toggle_1 and plots_toggle_2))
@@ -790,14 +801,23 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
}
float alpha = 1;
bool is_urgent = false;
if (gui_status == gui_status::hidden)
{
float t = (predicted_display_time - gui_status_last_change) * 1.e-9f;
auto toast = gui_toast.lock();
if (toast->has_value())
is_urgent = (*toast)->is_urgent;
alpha = std::clamp<float>(1 - (t - constants::stream::fade_delay) / constants::stream::fade_duration, 0, 1);
float t = (predicted_display_time - gui_status_last_change) * 1.e-9f;
float delay = is_urgent ? constants::stream::urgent_fade_delay : constants::stream::fade_delay;
alpha = std::clamp<float>(1 - (t - delay) / constants::stream::fade_duration, 0, 1);
if (alpha == 0)
{
toast->reset();
return;
}
}
// Lock the GUI position to the head, do it before displaying the GUI to avoid being off by one frame when gui_status changes
@@ -881,6 +901,12 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
break;
}
if (is_urgent)
{
ImGui::PushStyleColor(ImGuiCol_Border, constants::stream::urgent_border_color);
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 4);
}
ImGui::PushStyleVar(ImGuiStyleVar_ChildBorderSize, 0);
if (always_auto_resize)
{
@@ -893,13 +919,19 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
ImGui::Begin("Stream settings", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove);
}
if (is_urgent)
{
ImGui::PopStyleColor(1);
ImGui::PopStyleVar(1);
}
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {8, 8});
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 10);
switch (gui_status)
{
case gui_status::hidden:
ImGui::Text("%s", _S("Press both thumbsticks to display the WiVRn window"));
gui_toasts();
break;
case gui_status::overlay_only:
+23 -1
View File
@@ -33,7 +33,7 @@ void scenes::stream::process_packets()
#ifdef __ANDROID__
application::instance().setup_jni();
#endif
while (not exiting)
while (state_ != state::shutdown)
{
try
{
@@ -47,6 +47,28 @@ void scenes::stream::process_packets()
}
}
void scenes::stream::operator()(to_headset::server_message && message)
{
switch (message.kind)
{
case to_headset::server_message::kind::toast:
case to_headset::server_message::kind::toast_urgent: {
auto toast = gui_toast.lock();
toast->emplace(message.msg, message.kind == to_headset::server_message::kind::toast_urgent);
gui_status_last_change = instance.now();
break;
}
case to_headset::server_message::kind::error: {
auto queue = stream_error_queue.lock();
queue->emplace(std::move(message.msg));
break;
}
}
}
void scenes::stream::operator()(to_headset::video_stream_data_shard && shard)
{
std::shared_lock lock(decoder_mutex);
+1 -1
View File
@@ -341,7 +341,7 @@ void scenes::stream::tracking()
XrDuration frame_duration;
XrTime pattern_begin = instance.now();
while (not exiting)
while (state_ != state::shutdown)
{
try
{
+17
View File
@@ -608,6 +608,22 @@ struct handshake
int stream_port;
};
struct server_message
{
enum class kind : uint8_t
{
// in-stream toasts (not buffered)
toast,
toast_urgent,
// displayed in lobby after disconnect (buffered)
error,
};
kind kind;
std::string msg;
};
struct foveation_parameter
{
// The number of source pixels for each ratio,
@@ -766,6 +782,7 @@ using packets = std::variant<
pin_check_2,
pin_check_4,
handshake,
server_message,
audio_stream_description,
video_stream_description,
audio_data,
+1 -1
View File
@@ -165,7 +165,7 @@ Kirigami.ApplicationWindow {
text: i18n("Firewall may not allow port 9757")
type: Kirigami.MessageType.Warning
showCloseButton: true
visible: DashboardSettings.show_system_checks && Firewall.needSetup
visible: DashboardSettings.show_system_checks && Firewall.needSetup && Settings.port == Settings.default_port
actions: [
Kirigami.Action {
text: i18n("Fix it")
+45 -1
View File
@@ -21,6 +21,7 @@
#include "escape_string.h"
#include "gui_config.h"
#include "utils/flatpak.h"
#include "wivrn_config.h"
#include "wivrn_server.h"
#include <QList>
#include <QObject>
@@ -121,6 +122,8 @@ void Settings::emitAllChanged()
debugGuiChanged();
steamVrLhChanged();
hidForwardingChanged();
portChanged();
hostnameChanged();
}
void Settings::load(const wivrn_server * server)
@@ -429,6 +432,40 @@ void Settings::set_tcpOnly(const bool & value)
tcpOnlyChanged();
}
int Settings::port() const
{
auto it = m_jsonSettings.find("port");
if (it != m_jsonSettings.end() and it->is_number_integer())
return *it;
return wivrn::default_port;
}
void Settings::set_port(const int & value)
{
auto old = port();
m_jsonSettings["port"] = value;
if (old != value)
portChanged();
}
QString Settings::hostname() const
{
if (auto it = m_jsonSettings.find("hostname"); it != m_jsonSettings.end() and it->is_string())
return QString::fromStdString(*it);
return "";
}
void Settings::set_hostname(const QString & value)
{
auto old = hostname();
if (value == "")
m_jsonSettings.erase("hostname");
else
m_jsonSettings["hostname"] = value.toStdString();
if (old != value)
hostnameChanged();
}
QString Settings::openvr() const
{
// OpenVR compat library
@@ -452,7 +489,7 @@ void Settings::set_openvr(const QString & value)
else
m_jsonSettings["openvr-compat-path"] = value.toStdString();
if (old != value)
tcpOnlyChanged();
openvrChanged();
}
QList<Settings::video_codec> Settings::allowedCodecs() const
@@ -504,6 +541,8 @@ void Settings::restore_defaults()
m_jsonSettings.erase("use-steamvr-lh");
m_jsonSettings.erase("tcp-only");
m_jsonSettings.erase("application");
m_jsonSettings.erase("port");
m_jsonSettings.erase("hostname");
emitAllChanged();
}
@@ -512,6 +551,11 @@ bool Settings::flatpak() const
return wivrn::is_flatpak();
}
int Settings::default_port() const
{
return wivrn::default_port;
}
bool Settings::debug_gui() const
{
#if WIVRN_FEATURE_DEBUG_GUI
+6
View File
@@ -68,6 +68,8 @@ public:
Q_PROPERTY(bool tenbit READ tenbit WRITE set_tenbit NOTIFY tenbitChanged)
Q_PROPERTY(bool tcpOnly READ tcpOnly WRITE set_tcpOnly NOTIFY tcpOnlyChanged)
Q_PROPERTY(int port READ port WRITE set_port NOTIFY portChanged)
Q_PROPERTY(QString hostname READ hostname WRITE set_hostname NOTIFY hostnameChanged)
Q_PROPERTY(QString application READ application WRITE set_application NOTIFY applicationChanged)
Q_PROPERTY(QString openvr READ openvr WRITE set_openvr NOTIFY openvrChanged)
@@ -76,6 +78,7 @@ public:
Q_PROPERTY(bool steamVrLh READ steamVrLh WRITE set_steamVrLh NOTIFY steamVrLhChanged)
Q_PROPERTY(bool flatpak READ flatpak CONSTANT)
Q_PROPERTY(int default_port READ default_port CONSTANT)
Q_PROPERTY(bool hid_forwarding_supported READ hid_forwarding CONSTANT)
Q_PROPERTY(bool debug_gui_supported READ debug_gui CONSTANT)
Q_PROPERTY(bool steamvr_lh_supported READ steamvr_lh CONSTANT)
@@ -89,6 +92,8 @@ public:
SETTER_GETTER_NOTIFY(bool, debugGui)
SETTER_GETTER_NOTIFY(bool, steamVrLh)
SETTER_GETTER_NOTIFY(bool, tcpOnly)
SETTER_GETTER_NOTIFY(int, port)
SETTER_GETTER_NOTIFY(QString, hostname)
SETTER_GETTER_NOTIFY(QString, openvr)
private:
nlohmann::json m_jsonSettings = nlohmann::json::object();
@@ -107,6 +112,7 @@ public:
bool can10bit() const;
bool flatpak() const;
int default_port() const;
bool debug_gui() const;
bool steamvr_lh() const;
bool hid_forwarding() const;
+10
View File
@@ -158,3 +158,13 @@ Default value: `false`
Only available when built with `WIVRN_FEATURE_STEAMVR_LIGHTHOUSE`
Enables the driver to load SteamVR Lighthouse devices.
## `port`
Default value: `9757`
Change the TCP/UDP port used for the connection.
## `hostname`
Default value: unset
If set, overrides the name displayed in the server list.
+155 -145
View File
@@ -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 0.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-12-29 15:36+0100\n"
"PO-Revision-Date: 2025-12-29 15:40+0100\n"
"POT-Creation-Date: 2026-02-27 16:09+0100\n"
"PO-Revision-Date: 2026-02-27 16:12+0100\n"
"Last-Translator: Guillaume Meunier <guillaume.meunier@centraliens.net>\n"
"Language-Team: French <>\n"
"Language: French\n"
@@ -21,27 +21,27 @@ msgstr ""
msgid "No supported swapchain format"
msgstr "Aucun format de swapchain supporté"
#: client/scenes/app_launcher.cpp:128
#: client/scenes/app_launcher.cpp:127
msgid "Connected to WiVRn server"
msgstr "Connecté au serveur WiVRn"
#: client/scenes/app_launcher.cpp:130
#: client/scenes/app_launcher.cpp:129
#, c++-format
msgid "Connected to {}"
msgstr "Connecté à {}"
#: client/scenes/app_launcher.cpp:136
#: client/scenes/app_launcher.cpp:135
msgid "Start an application on the server to start streaming."
msgstr ""
"Démarrez une application sur le serveur pour commencer la transmission."
#: client/scenes/app_launcher.cpp:146
#: client/scenes/app_launcher.cpp:145
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Démarrez une application sur le serveur ou depuis la liste pour commencer la "
"transmission."
#: client/scenes/app_launcher.cpp:148
#: client/scenes/app_launcher.cpp:147
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr ""
@@ -73,11 +73,11 @@ msgstr "Impossible de se connecter à {} ({}) : {}"
msgid "Waiting for connection"
msgstr "Attente de connexion"
#: client/scenes/lobby.cpp:1319
#: client/scenes/lobby.cpp:1316
msgid "Passthrough"
msgstr "Vue réelle"
#: client/scenes/lobby.cpp:1331
#: client/scenes/lobby.cpp:1328
msgid "Default environment"
msgstr "Environnement par défaut"
@@ -96,14 +96,15 @@ msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Désactivé"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
#: client/scenes/stream_gui.cpp:1015
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254
#: client/scenes/stream_gui.cpp:1026
msgid "Disconnect"
msgstr "Déconnecter"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264
#: 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
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022
msgid "Close"
msgstr "Fermer"
@@ -124,32 +125,41 @@ msgstr "Code PIN"
msgid "Input the PIN displayed on the dashboard"
msgstr "Entrez le code PIN affiché sur le tableau de bord"
#: client/scenes/lobby_gui.cpp:282
msgid "Disconnected"
msgstr "Connexion terminée"
#: client/scenes/lobby_gui.cpp:284
#, c++-format
msgid "Disconnected from {}"
msgstr "Connexion à {} terminée"
#: client/scenes/lobby_gui.cpp:316
msgid "Name"
msgstr "Nom"
#: client/scenes/lobby_gui.cpp:295
#: client/scenes/lobby_gui.cpp:327
msgid "Address"
msgstr "Adresse"
#: client/scenes/lobby_gui.cpp:304
#: client/scenes/lobby_gui.cpp:336
msgid "Port"
msgstr "Port"
#: client/scenes/lobby_gui.cpp:312
#: client/scenes/lobby_gui.cpp:344
msgid "TCP only"
msgstr "TCP seulement"
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:968
#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:978
msgid "Cancel"
msgstr "Annuler"
#: client/scenes/lobby_gui.cpp:333
#: client/scenes/lobby_gui.cpp:365
msgid "Save"
msgstr "Enregistrer"
#: client/scenes/lobby_gui.cpp:386
#: client/scenes/lobby_gui.cpp:418
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -157,46 +167,46 @@ msgstr ""
"Démarrez un serveur WiVRn sur\n"
"le réseau local"
#: client/scenes/lobby_gui.cpp:418
#: client/scenes/lobby_gui.cpp:450
msgid "Autoconnect"
msgstr "Autoconnexion"
#: client/scenes/lobby_gui.cpp:444
#: client/scenes/lobby_gui.cpp:476
msgid "Connect"
msgstr "Connexion"
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Version du serveur incompatible"
#: client/scenes/lobby_gui.cpp:456
#: client/scenes/lobby_gui.cpp:488
msgid "Server not available"
msgstr "Serveur non disponible"
#: client/scenes/lobby_gui.cpp:538
#: client/scenes/lobby_gui.cpp:581
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "Français"
#: client/scenes/lobby_gui.cpp:552
#: client/scenes/lobby_gui.cpp:595
msgid "Language"
msgstr "Langue"
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554
#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597
msgid "System language"
msgstr "Langue système"
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417
#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412
msgid "Refresh rate"
msgstr "Taux de rafraichissement"
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419
#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625
#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automatique"
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427
#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -205,38 +215,38 @@ msgstr ""
"des performances mesurées.\n"
"Peut causer des clignotements lors du changement de fréquence."
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445
#: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439
msgid "Minimum refresh rate"
msgstr "Taux minimal"
#: client/scenes/lobby_gui.cpp:632
#: client/scenes/lobby_gui.cpp:675
msgid "Foveation level"
msgstr "Niveau de fovéation"
#: client/scenes/lobby_gui.cpp:655
#: client/scenes/lobby_gui.cpp:698
msgid "Render resolution"
msgstr "Résolution de rendu"
#: client/scenes/lobby_gui.cpp:659
#: client/scenes/lobby_gui.cpp:702
#, c-format, c++-format
msgid "{}%% - {}x{} per eye"
msgstr "{} %% - {}x{} par œil"
#: client/scenes/lobby_gui.cpp:670
#: client/scenes/lobby_gui.cpp:713
#, 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:680
#: client/scenes/lobby_gui.cpp:723
msgid "Foveated encoding"
msgstr "Fovéation d'encodage"
#: client/scenes/lobby_gui.cpp:684
#: client/scenes/lobby_gui.cpp:727
#, c-format, c++-format
msgid "{}%%"
msgstr "{} %%"
#: client/scenes/lobby_gui.cpp:697
#: client/scenes/lobby_gui.cpp:740
msgid ""
"Higher values focus image quality where you look at,\n"
"improving latency, power efficiency and quality."
@@ -245,7 +255,7 @@ msgstr ""
"porte le regard, ce qui diminue la latence, réduit la\n"
"consommation d'énergie et améliore la qualité."
#: client/scenes/lobby_gui.cpp:700
#: client/scenes/lobby_gui.cpp:743
msgid ""
"Higher values focus image quality at the center,\n"
"improving latency, power efficiency and quality."
@@ -254,88 +264,88 @@ msgstr ""
"de l'image, ce qui diminue la latence, réduit la\n"
"consommation d'énergie et améliore la qualité."
#: client/scenes/lobby_gui.cpp:709
#: client/scenes/lobby_gui.cpp:752
msgctxt "Codec"
msgid "Automatic"
msgstr "Automatique"
#: client/scenes/lobby_gui.cpp:713
#: client/scenes/lobby_gui.cpp:756
msgctxt "Codec"
msgid "H.264"
msgstr "H.264"
#: client/scenes/lobby_gui.cpp:715
#: client/scenes/lobby_gui.cpp:758
msgctxt "Codec"
msgid "H.265"
msgstr "H.265"
#: client/scenes/lobby_gui.cpp:717
#: client/scenes/lobby_gui.cpp:760
msgctxt "Codec"
msgid "AV1"
msgstr "AV1"
#: client/scenes/lobby_gui.cpp:725
#: client/scenes/lobby_gui.cpp:768
msgid "Codec"
msgstr "Codec"
#: client/scenes/lobby_gui.cpp:753
#: client/scenes/lobby_gui.cpp:796
msgid "10-bit"
msgstr "10 bits"
#: client/scenes/lobby_gui.cpp:768
#: client/scenes/lobby_gui.cpp:812
msgid "Bitrate"
msgstr "Débit"
#: client/scenes/lobby_gui.cpp:772
#: client/scenes/lobby_gui.cpp:816
#, c++-format
msgid "{}Mbit/s"
msgstr "{} Mbit/s"
#: client/scenes/lobby_gui.cpp:783
#: client/scenes/lobby_gui.cpp:827
msgid "High power mode"
msgstr "Mode haute consommation"
#: client/scenes/lobby_gui.cpp:786
#: client/scenes/lobby_gui.cpp:830
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:792
#: client/scenes/lobby_gui.cpp:836
msgid "Enable microphone"
msgstr "Activer le micro"
#: client/scenes/lobby_gui.cpp:801
#: client/scenes/lobby_gui.cpp:845
msgid "Unprocessed Microphone Audio"
msgstr "Utiliser les données brutes du micro"
#: client/scenes/lobby_gui.cpp:807
#: client/scenes/lobby_gui.cpp:851
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:814
#: client/scenes/lobby_gui.cpp:858
msgid "Enable hand tracking"
msgstr "Activer le suivi des mains"
#: 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.cpp:864 client/scenes/lobby_gui.cpp:875
#: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900
#: 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:825
#: client/scenes/lobby_gui.cpp:869
msgid "Enable eye tracking"
msgstr "Activer le suivi des yeux"
#: client/scenes/lobby_gui.cpp:836
#: client/scenes/lobby_gui.cpp:880
msgid "Enable face tracking"
msgstr "Activer le suivi du visage"
#: client/scenes/lobby_gui.cpp:848
#: client/scenes/lobby_gui.cpp:892
msgid "Enable body tracking"
msgstr "Activer le suivi du corps"
#: client/scenes/lobby_gui.cpp:861
#: client/scenes/lobby_gui.cpp:905
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -346,11 +356,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:871
#: client/scenes/lobby_gui.cpp:915
msgid "Enable lower body tracking"
msgstr "Activer le suivi du bas du corps"
#: client/scenes/lobby_gui.cpp:877
#: client/scenes/lobby_gui.cpp:921
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -361,11 +371,11 @@ msgstr ""
"paramètres\n"
"de suivi de mouvements du casque."
#: client/scenes/lobby_gui.cpp:880
#: client/scenes/lobby_gui.cpp:924
msgid "Enable hip tracking"
msgstr "Activer le suivi des hanches"
#: client/scenes/lobby_gui.cpp:886
#: client/scenes/lobby_gui.cpp:930
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -373,11 +383,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:895
#: client/scenes/lobby_gui.cpp:939
msgid "Enable in-stream window"
msgstr "Activer la fenêtre WiVRn lors de la transmission"
#: client/scenes/lobby_gui.cpp:898
#: client/scenes/lobby_gui.cpp:942
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
@@ -387,25 +397,25 @@ msgstr ""
"Lorsque activé, la fenêtre peut être affichée en appuyant sur les deux "
"sticks."
#: client/scenes/lobby_gui.cpp:902
#: client/scenes/lobby_gui.cpp:946
msgid "Extended configuration values"
msgstr "Valeurs de configuration étendues"
#: client/scenes/lobby_gui.cpp:905
#: client/scenes/lobby_gui.cpp:949
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
#: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473
msgid "OpenXR post-processing"
msgstr "Post-traitement OpenXR"
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483
#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477
msgid "Supersampling"
msgstr "Suréchantillonnage"
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504
#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -413,11 +423,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:948 client/scenes/stream_gui.cpp:509
#: client/scenes/lobby_gui.cpp:992 client/scenes/stream_gui.cpp:503
msgid "Sharpening"
msgstr "Affinage de netteté"
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530
#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -425,129 +435,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:1152 client/scenes/lobby_gui.cpp:1160
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373
#: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371
msgid "CPU time"
msgstr "Temps CPU"
#: client/scenes/lobby_gui.cpp:1156
#: client/scenes/lobby_gui.cpp:1200
msgid "CPU time [ms]"
msgstr "Temps CPU [ms]"
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372
msgid "GPU time"
msgstr "Temps GPU"
#: client/scenes/lobby_gui.cpp:1170
#: client/scenes/lobby_gui.cpp:1214
msgid "GPU time [ms]"
msgstr "Temps GPU [ms]"
#: client/scenes/lobby_gui.cpp:1234
#: client/scenes/lobby_gui.cpp:1278
msgid "Enable the microphone?"
msgstr "Activer le micro ?"
#: client/scenes/lobby_gui.cpp:1239
#: client/scenes/lobby_gui.cpp:1283
msgid "Enable eye tracking?"
msgstr "Activer le suivi des yeux ?"
#: client/scenes/lobby_gui.cpp:1244
#: client/scenes/lobby_gui.cpp:1288
msgid "Enable face tracking?"
msgstr "Activer le suivi du visage ?"
#: client/scenes/lobby_gui.cpp:1249
#: client/scenes/lobby_gui.cpp:1293
msgid "Enable body tracking?"
msgstr "Activer le suivi du corps ?"
#: client/scenes/lobby_gui.cpp:1257
#: client/scenes/lobby_gui.cpp:1301
msgid "Welcome to WiVRn"
msgstr "Bienvenue sur WiVRn"
#: client/scenes/lobby_gui.cpp:1285
#: client/scenes/lobby_gui.cpp:1329
msgid "Yes"
msgstr "Oui"
#: client/scenes/lobby_gui.cpp:1292
#: client/scenes/lobby_gui.cpp:1336
msgid "No"
msgstr "Non"
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
#: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001
msgid "Licenses"
msgstr "Licences"
#: client/scenes/lobby_gui.cpp:1587
#: client/scenes/lobby_gui.cpp:1631
msgid "Microphone is enabled"
msgstr "Le micro est activé"
#: client/scenes/lobby_gui.cpp:1588
#: client/scenes/lobby_gui.cpp:1632
msgid "Microphone is disabled"
msgstr "Le micro est désactivé"
#: client/scenes/lobby_gui.cpp:1597
#: client/scenes/lobby_gui.cpp:1641
msgid "Hand tracking is enabled"
msgstr "Le suivi des mains est activé"
#: client/scenes/lobby_gui.cpp:1598
#: client/scenes/lobby_gui.cpp:1642
msgid "Hand tracking is disabled"
msgstr "Le suivi des mains est désactivé"
#: client/scenes/lobby_gui.cpp:1607
#: client/scenes/lobby_gui.cpp:1651
msgid "Eye tracking is enabled"
msgstr "Le suivi des yeux est activé"
#: client/scenes/lobby_gui.cpp:1608
#: client/scenes/lobby_gui.cpp:1652
msgid "Eye tracking is disabled"
msgstr "Le suivi des yeux est désactivé"
#: client/scenes/lobby_gui.cpp:1618
#: client/scenes/lobby_gui.cpp:1662
msgid "Face tracking is enabled"
msgstr "Le suivi du visage est activé"
#: client/scenes/lobby_gui.cpp:1619
#: client/scenes/lobby_gui.cpp:1663
msgid "Face tracking is disabled"
msgstr "Le suivi du visage est désactivé"
#: client/scenes/lobby_gui.cpp:1633
#: client/scenes/lobby_gui.cpp:1677
msgid "Body tracking is enabled"
msgstr "Le suivi du corps est activé"
#: client/scenes/lobby_gui.cpp:1634
#: client/scenes/lobby_gui.cpp:1678
msgid "Body tracking is disabled"
msgstr "Le suivi du corps est désactivé"
#: client/scenes/lobby_gui.cpp:1650
#: client/scenes/lobby_gui.cpp:1694
msgid "Add server"
msgstr "Ajouter un serveur"
#: client/scenes/lobby_gui.cpp:1936
#: client/scenes/lobby_gui.cpp:1980
msgid "Server list"
msgstr "Serveurs"
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996
#: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007
msgid "Settings"
msgstr "Paramètres"
#: client/scenes/lobby_gui.cpp:1942
#: client/scenes/lobby_gui.cpp:1986
msgid "Post-processing"
msgstr "Post-traitement"
#: client/scenes/lobby_gui.cpp:1945
#: client/scenes/lobby_gui.cpp:1989
msgid "Customize"
msgstr "Personnaliser"
#: client/scenes/lobby_gui.cpp:1949
#: client/scenes/lobby_gui.cpp:1993
msgid "Debug"
msgstr "Debug"
#: client/scenes/lobby_gui.cpp:1954
#: client/scenes/lobby_gui.cpp:1998
msgid "About"
msgstr "À propos"
#: client/scenes/lobby_gui.cpp:1960
#: client/scenes/lobby_gui.cpp:2004
msgid "Exit"
msgstr "Quitter"
#: client/scenes/lobby_gui.cpp:1977
#: client/scenes/lobby_gui.cpp:2021
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
@@ -555,7 +565,7 @@ 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:1979
#: client/scenes/lobby_gui.cpp:2023
msgid "Press the grip button to move the main window"
msgstr "Serrez la gâchette latérale pour bouger la fenêtre principale"
@@ -634,56 +644,56 @@ msgstr "Télécharger plus d'environnements"
msgid "Open local glTF model"
msgstr "Ouvrir un modèle glTF local"
#: client/scenes/stream_gui.cpp:174
#: client/scenes/stream_gui.cpp:175
msgid "Defoveate"
msgstr "Défovéation"
#: client/scenes/stream_gui.cpp:176
#: client/scenes/stream_gui.cpp:177
msgid "Network"
msgstr "Réseau"
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
msgid "Download"
msgstr "Téléchargement"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
msgid "Upload"
msgstr "Téléversement"
#: client/scenes/stream_gui.cpp:246
#: client/scenes/stream_gui.cpp:247
#, c++-format
msgid "Decoder {}"
msgstr "Décodeur {}"
#: client/scenes/stream_gui.cpp:258
#: client/scenes/stream_gui.cpp:259
msgid "Timings [ms]"
msgstr "Durées [ms]"
#: client/scenes/stream_gui.cpp:318
#: client/scenes/stream_gui.cpp:319
msgid "Encode"
msgstr "Encodage"
#: client/scenes/stream_gui.cpp:319
#: client/scenes/stream_gui.cpp:320
msgid "Send"
msgstr "Envoi"
#: client/scenes/stream_gui.cpp:320
#: client/scenes/stream_gui.cpp:321
msgid "Receive"
msgstr "Réception"
#: client/scenes/stream_gui.cpp:321
#: client/scenes/stream_gui.cpp:322
msgid "Decode"
msgstr "Décodage"
#: client/scenes/stream_gui.cpp:322
#: client/scenes/stream_gui.cpp:323
msgid "Blitted"
msgstr "Copie"
#: client/scenes/stream_gui.cpp:323
#: client/scenes/stream_gui.cpp:324
msgid "Displayed"
msgstr "Affichage"
#: client/scenes/stream_gui.cpp:324
#: client/scenes/stream_gui.cpp:325
msgid "Predicted"
msgstr "Prédiction"
@@ -692,102 +702,102 @@ msgstr "Prédiction"
msgid "Estimated motion to photons latency: {}ms"
msgstr "Latence mouvement à photons estimée : {} ms"
#: client/scenes/stream_gui.cpp:351
#: client/scenes/stream_gui.cpp:349
msgid "Press the grip button to move the window"
msgstr "Serrez la gâchette latérale pour bouger la fenêtre"
#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:924
#: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Appuyez sur les deux sticks pour afficher la fenêtre de WiVRn"
#: client/scenes/stream_gui.cpp:375
#: client/scenes/stream_gui.cpp:373
msgid "Motion to photon latency"
msgstr "Latence mouvements à photons"
#: client/scenes/stream_gui.cpp:464
#: client/scenes/stream_gui.cpp:458
msgid "Bitrate:"
msgstr "Débit :"
#: client/scenes/stream_gui.cpp:474
#: client/scenes/stream_gui.cpp:468
msgid "Click to adjust bitrate"
msgstr "Cliquez pour modifier le débit"
#: client/scenes/stream_gui.cpp:537
#: client/scenes/stream_gui.cpp:532
msgid "Foveation center override"
msgstr "Zone de fovéation manuelle"
#: client/scenes/stream_gui.cpp:540
#: client/scenes/stream_gui.cpp:535
msgid "Enable"
msgstr "Activer"
#: client/scenes/stream_gui.cpp:548 client/scenes/stream_gui.cpp:620
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Hauteur : {:.1f} deg"
#: client/scenes/stream_gui.cpp:549 client/scenes/stream_gui.cpp:621
#: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Distance {:.2f} m"
#: client/scenes/stream_gui.cpp:550
#: client/scenes/stream_gui.cpp:545
msgid "Default"
msgstr "Réinitialiser"
#: client/scenes/stream_gui.cpp:561
#: client/scenes/stream_gui.cpp:556
msgid "Change"
msgstr "Ajuster"
#: client/scenes/stream_gui.cpp:594
#: client/scenes/stream_gui.cpp:588
msgid "Use the right thumbstick to adjust the bitrate"
msgstr "Utilisez le stick droit pour modifier le débit"
#: client/scenes/stream_gui.cpp:595
#: client/scenes/stream_gui.cpp:589
msgid "Press A to go back"
msgstr "Appuyez sur A pour revenir"
#: client/scenes/stream_gui.cpp:596
#: client/scenes/stream_gui.cpp:590
#, c++-format
msgid "Bitrate: {}Mbit/s"
msgstr "Débit : {} MBit/s"
#: client/scenes/stream_gui.cpp:618
#: client/scenes/stream_gui.cpp:612
msgid "Use the thumbsticks to move the foveation center"
msgstr "Utiliser le stick pour bouger le centre de fovéation"
#: client/scenes/stream_gui.cpp:619
#: client/scenes/stream_gui.cpp:613
msgid "Press A to save or B to cancel"
msgstr "A pour sauvegarder, B pour annuler"
#: client/scenes/stream_gui.cpp:677
#: client/scenes/stream_gui.cpp:671
msgid "Running XR applications:"
msgstr "Applications XR lancées :"
#: client/scenes/stream_gui.cpp:694
#: client/scenes/stream_gui.cpp:688
msgid "Overlays"
msgstr "Surcouches"
#: client/scenes/stream_gui.cpp:733
#: client/scenes/stream_gui.cpp:727
msgid "Request to quit, may be ignored by the application"
msgstr "Demande de quitter, peut être ignoré par l'application"
#: client/scenes/stream_gui.cpp:983
#: client/scenes/stream_gui.cpp:993
msgid "Applications"
msgstr "Applications"
#: client/scenes/stream_gui.cpp:986
#: client/scenes/stream_gui.cpp:996
msgid "Start"
msgstr "Démarrer"
#: client/scenes/stream_gui.cpp:999
#: client/scenes/stream_gui.cpp:1010
msgid "Stats"
msgstr "Statistiques"
#: client/scenes/stream_gui.cpp:1005
#: client/scenes/stream_gui.cpp:1016
msgid "Statistics overlay"
msgstr "Statistiques seules"
#: client/scenes/stream_gui.cpp:1008
#: client/scenes/stream_gui.cpp:1019
msgid "Compact view"
msgstr "Vue compacte"
+155 -145
View File
@@ -1,12 +1,12 @@
#
# Albano Battistella <albanobattistella@gmail.com>, 2025.
# Albano Battistella <albanobattistella@gmail.com>, 2025-2026.
#
msgid ""
msgstr ""
"Project-Id-Version: WiVRn 0.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-12-29 15:36+0100\n"
"PO-Revision-Date: 2025-12-29 15:38+0100\n"
"POT-Creation-Date: 2026-02-27 16:09+0100\n"
"PO-Revision-Date: 2026-02-27 16:11+0100\n"
"Last-Translator: Albano Battistella <albanobattistella@gmail.com>\n"
"Language-Team: Italian <>\n"
"Language: Italian\n"
@@ -19,26 +19,26 @@ msgstr ""
msgid "No supported swapchain format"
msgstr "Nessun formato swapchain supportato"
#: client/scenes/app_launcher.cpp:128
#: client/scenes/app_launcher.cpp:127
msgid "Connected to WiVRn server"
msgstr "Connesso al server WiVRn"
#: client/scenes/app_launcher.cpp:130
#: client/scenes/app_launcher.cpp:129
#, c++-format
msgid "Connected to {}"
msgstr "Connesso a {}"
#: client/scenes/app_launcher.cpp:136
#: client/scenes/app_launcher.cpp:135
msgid "Start an application on the server to start streaming."
msgstr "Avvia un applicazione sul server per incominciare a trasmettere."
#: client/scenes/app_launcher.cpp:146
#: client/scenes/app_launcher.cpp:145
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Avvia un applicazione sul computer o scegli dalla lista per incominciare a "
"trasmettere."
#: client/scenes/app_launcher.cpp:148
#: client/scenes/app_launcher.cpp:147
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr ""
@@ -68,11 +68,11 @@ msgstr "Impossibile connettersi a {} ({}): {}"
msgid "Waiting for connection"
msgstr "In attesa di connessione"
#: client/scenes/lobby.cpp:1319
#: client/scenes/lobby.cpp:1316
msgid "Passthrough"
msgstr "Vista reale"
#: client/scenes/lobby.cpp:1331
#: client/scenes/lobby.cpp:1328
msgid "Default environment"
msgstr "Ambiente di default"
@@ -91,14 +91,15 @@ msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Disattivato"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
#: client/scenes/stream_gui.cpp:1015
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254
#: client/scenes/stream_gui.cpp:1026
msgid "Disconnect"
msgstr "Sconnetti"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264
#: 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
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022
msgid "Close"
msgstr "Chiudi"
@@ -119,32 +120,41 @@ msgstr "PIN"
msgid "Input the PIN displayed on the dashboard"
msgstr "Digitare il PIN visibile sul server"
#: client/scenes/lobby_gui.cpp:282
msgid "Disconnected"
msgstr "Connessione chiusa"
#: client/scenes/lobby_gui.cpp:284
#, c++-format
msgid "Disconnected from {}"
msgstr "Connessione con {} chiusa"
#: client/scenes/lobby_gui.cpp:316
msgid "Name"
msgstr "Nome"
#: client/scenes/lobby_gui.cpp:295
#: client/scenes/lobby_gui.cpp:327
msgid "Address"
msgstr "Indirizzo"
#: client/scenes/lobby_gui.cpp:304
#: client/scenes/lobby_gui.cpp:336
msgid "Port"
msgstr "Porta"
#: client/scenes/lobby_gui.cpp:312
#: client/scenes/lobby_gui.cpp:344
msgid "TCP only"
msgstr "Solo TCP"
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:968
#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:978
msgid "Cancel"
msgstr "Annulla"
#: client/scenes/lobby_gui.cpp:333
#: client/scenes/lobby_gui.cpp:365
msgid "Save"
msgstr "Salva"
#: client/scenes/lobby_gui.cpp:386
#: client/scenes/lobby_gui.cpp:418
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -152,46 +162,46 @@ msgstr ""
"Avvia un server WiVRn sulla\n"
"rete locale"
#: client/scenes/lobby_gui.cpp:418
#: client/scenes/lobby_gui.cpp:450
msgid "Autoconnect"
msgstr "Connessione automatica"
#: client/scenes/lobby_gui.cpp:444
#: client/scenes/lobby_gui.cpp:476
msgid "Connect"
msgstr "Connetti"
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Versione del server incompatibile"
#: client/scenes/lobby_gui.cpp:456
#: client/scenes/lobby_gui.cpp:488
msgid "Server not available"
msgstr "Server non disponibile"
#: client/scenes/lobby_gui.cpp:538
#: client/scenes/lobby_gui.cpp:581
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "Italiano"
#: client/scenes/lobby_gui.cpp:552
#: client/scenes/lobby_gui.cpp:595
msgid "Language"
msgstr "Lingua"
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554
#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597
msgid "System language"
msgstr "Lingua del sistema"
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417
#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412
msgid "Refresh rate"
msgstr "Frequenza di aggiornamento"
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419
#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625
#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automatica"
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427
#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -200,39 +210,39 @@ msgstr ""
"misurate dell'applicazione.\n"
"Può causare un flash quando avviene il cambiamento."
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445
#: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439
msgid "Minimum refresh rate"
msgstr "Frequenza minima"
#: client/scenes/lobby_gui.cpp:632
#: client/scenes/lobby_gui.cpp:675
msgid "Foveation level"
msgstr "Intensità di foveazione"
#: client/scenes/lobby_gui.cpp:655
#: client/scenes/lobby_gui.cpp:698
msgid "Render resolution"
msgstr "Risoluzione del gioco"
#: client/scenes/lobby_gui.cpp:659
#: client/scenes/lobby_gui.cpp:702
#, c-format, c++-format
msgid "{}%% - {}x{} per eye"
msgstr "{}%% - {}x{} per occhio"
#: client/scenes/lobby_gui.cpp:670
#: client/scenes/lobby_gui.cpp:713
#, 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:680
#: client/scenes/lobby_gui.cpp:723
msgid "Foveated encoding"
msgstr "Foveazione della codifica"
#: client/scenes/lobby_gui.cpp:684
#: client/scenes/lobby_gui.cpp:727
#, c-format, c++-format
msgid "{}%%"
msgstr "{}%%"
#: client/scenes/lobby_gui.cpp:697
#: client/scenes/lobby_gui.cpp:740
msgid ""
"Higher values focus image quality where you look at,\n"
"improving latency, power efficiency and quality."
@@ -240,7 +250,7 @@ msgstr ""
"Valori alti concentrano la qualità dove si guarda,\n"
"migliorando la latenza, efficienza energetica e qualità"
#: client/scenes/lobby_gui.cpp:700
#: client/scenes/lobby_gui.cpp:743
msgid ""
"Higher values focus image quality at the center,\n"
"improving latency, power efficiency and quality."
@@ -248,88 +258,88 @@ msgstr ""
"Valori alti concentrano la qualità al centro dell'immagine,\n"
"migliorando la latenza, efficienza energetica e qualità"
#: client/scenes/lobby_gui.cpp:709
#: client/scenes/lobby_gui.cpp:752
msgctxt "Codec"
msgid "Automatic"
msgstr "Automatico"
#: client/scenes/lobby_gui.cpp:713
#: client/scenes/lobby_gui.cpp:756
msgctxt "Codec"
msgid "H.264"
msgstr "H.264"
#: client/scenes/lobby_gui.cpp:715
#: client/scenes/lobby_gui.cpp:758
msgctxt "Codec"
msgid "H.265"
msgstr "H.265"
#: client/scenes/lobby_gui.cpp:717
#: client/scenes/lobby_gui.cpp:760
msgctxt "Codec"
msgid "AV1"
msgstr "AV1"
#: client/scenes/lobby_gui.cpp:725
#: client/scenes/lobby_gui.cpp:768
msgid "Codec"
msgstr "Codec"
#: client/scenes/lobby_gui.cpp:753
#: client/scenes/lobby_gui.cpp:796
msgid "10-bit"
msgstr "10 bit"
#: client/scenes/lobby_gui.cpp:768
#: client/scenes/lobby_gui.cpp:812
msgid "Bitrate"
msgstr "Velocità di trasmissione"
#: client/scenes/lobby_gui.cpp:772
#: client/scenes/lobby_gui.cpp:816
#, c++-format
msgid "{}Mbit/s"
msgstr "{}Mbit/s"
#: client/scenes/lobby_gui.cpp:783
#: client/scenes/lobby_gui.cpp:827
msgid "High power mode"
msgstr "Modalità alto consumo"
#: client/scenes/lobby_gui.cpp:786
#: client/scenes/lobby_gui.cpp:830
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:792
#: client/scenes/lobby_gui.cpp:836
msgid "Enable microphone"
msgstr "Attiva il microfono"
#: client/scenes/lobby_gui.cpp:801
#: client/scenes/lobby_gui.cpp:845
msgid "Unprocessed Microphone Audio"
msgstr "Usare dati grezzi del microfono"
#: client/scenes/lobby_gui.cpp:807
#: client/scenes/lobby_gui.cpp:851
msgid "Force disable audio filters, such as noise cancellation"
msgstr "Disattiva gli effetti come la cancellazione del rumore"
#: client/scenes/lobby_gui.cpp:814
#: client/scenes/lobby_gui.cpp:858
msgid "Enable hand tracking"
msgstr "Abilita il tracciamento delle mani"
#: 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.cpp:864 client/scenes/lobby_gui.cpp:875
#: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900
#: 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:825
#: client/scenes/lobby_gui.cpp:869
msgid "Enable eye tracking"
msgstr "Abilita il tracciamento oculare"
#: client/scenes/lobby_gui.cpp:836
#: client/scenes/lobby_gui.cpp:880
msgid "Enable face tracking"
msgstr "Abilita il tracciamento facciale"
#: client/scenes/lobby_gui.cpp:848
#: client/scenes/lobby_gui.cpp:892
msgid "Enable body tracking"
msgstr "Abilita il tracciamento del corpo"
#: client/scenes/lobby_gui.cpp:861
#: client/scenes/lobby_gui.cpp:905
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -342,11 +352,11 @@ msgstr ""
"controller e\n"
"del visore."
#: client/scenes/lobby_gui.cpp:871
#: client/scenes/lobby_gui.cpp:915
msgid "Enable lower body tracking"
msgstr "Abilita il tracciamento del basso del corpo"
#: client/scenes/lobby_gui.cpp:877
#: client/scenes/lobby_gui.cpp:921
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -357,11 +367,11 @@ msgstr ""
"impostazioni,\n"
"sezione \"Tracking dei movimenti\"."
#: client/scenes/lobby_gui.cpp:880
#: client/scenes/lobby_gui.cpp:924
msgid "Enable hip tracking"
msgstr "Abilitia il tracciamento delle anche"
#: client/scenes/lobby_gui.cpp:886
#: client/scenes/lobby_gui.cpp:930
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -370,11 +380,11 @@ msgstr ""
"Può essere utile se un altro metodo viene usato per il tracciamento\n"
"delle anche."
#: client/scenes/lobby_gui.cpp:895
#: client/scenes/lobby_gui.cpp:939
msgid "Enable in-stream window"
msgstr "Attiva la finestra di WiVRn durante la trasmissione"
#: client/scenes/lobby_gui.cpp:898
#: client/scenes/lobby_gui.cpp:942
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
@@ -382,23 +392,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:902
#: client/scenes/lobby_gui.cpp:946
msgid "Extended configuration values"
msgstr "Valori di configurazione estesi"
#: client/scenes/lobby_gui.cpp:905
#: client/scenes/lobby_gui.cpp:949
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
#: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473
msgid "OpenXR post-processing"
msgstr "Post-trattamento OpenXR"
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483
#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477
msgid "Supersampling"
msgstr "Supersamping"
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504
#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -406,11 +416,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:948 client/scenes/stream_gui.cpp:509
#: client/scenes/lobby_gui.cpp:992 client/scenes/stream_gui.cpp:503
msgid "Sharpening"
msgstr "Miglioramento della nitidezza"
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530
#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -419,129 +429,129 @@ msgstr ""
"Utile quando la risoluzione d'entrate è bassa in contronto a quella del "
"visore"
#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373
#: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371
msgid "CPU time"
msgstr "Tempo CPU"
#: client/scenes/lobby_gui.cpp:1156
#: client/scenes/lobby_gui.cpp:1200
msgid "CPU time [ms]"
msgstr "Tempo CPU [ms]"
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372
msgid "GPU time"
msgstr "Tempo GPU"
#: client/scenes/lobby_gui.cpp:1170
#: client/scenes/lobby_gui.cpp:1214
msgid "GPU time [ms]"
msgstr "Tempo GPU [ms]"
#: client/scenes/lobby_gui.cpp:1234
#: client/scenes/lobby_gui.cpp:1278
msgid "Enable the microphone?"
msgstr "Attivare il microfono?"
#: client/scenes/lobby_gui.cpp:1239
#: client/scenes/lobby_gui.cpp:1283
msgid "Enable eye tracking?"
msgstr "Attivare il tracciamento oculare?"
#: client/scenes/lobby_gui.cpp:1244
#: client/scenes/lobby_gui.cpp:1288
msgid "Enable face tracking?"
msgstr "Attivare il tracciamento facciale?"
#: client/scenes/lobby_gui.cpp:1249
#: client/scenes/lobby_gui.cpp:1293
msgid "Enable body tracking?"
msgstr "Attivare il tracciamento del corpo?"
#: client/scenes/lobby_gui.cpp:1257
#: client/scenes/lobby_gui.cpp:1301
msgid "Welcome to WiVRn"
msgstr "Benvenuto su WiVRn"
#: client/scenes/lobby_gui.cpp:1285
#: client/scenes/lobby_gui.cpp:1329
msgid "Yes"
msgstr "Sì"
#: client/scenes/lobby_gui.cpp:1292
#: client/scenes/lobby_gui.cpp:1336
msgid "No"
msgstr "No"
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
#: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001
msgid "Licenses"
msgstr "Licenze"
#: client/scenes/lobby_gui.cpp:1587
#: client/scenes/lobby_gui.cpp:1631
msgid "Microphone is enabled"
msgstr "Microfono attivo"
#: client/scenes/lobby_gui.cpp:1588
#: client/scenes/lobby_gui.cpp:1632
msgid "Microphone is disabled"
msgstr "Microfono disattivato"
#: client/scenes/lobby_gui.cpp:1597
#: client/scenes/lobby_gui.cpp:1641
msgid "Hand tracking is enabled"
msgstr "Tracciamento delle mani attivo"
#: client/scenes/lobby_gui.cpp:1598
#: client/scenes/lobby_gui.cpp:1642
msgid "Hand tracking is disabled"
msgstr "Tracciamento delle mani disattivato"
#: client/scenes/lobby_gui.cpp:1607
#: client/scenes/lobby_gui.cpp:1651
msgid "Eye tracking is enabled"
msgstr "Tracciamento oculare attivo"
#: client/scenes/lobby_gui.cpp:1608
#: client/scenes/lobby_gui.cpp:1652
msgid "Eye tracking is disabled"
msgstr "Tracciamento oculare disattivato"
#: client/scenes/lobby_gui.cpp:1618
#: client/scenes/lobby_gui.cpp:1662
msgid "Face tracking is enabled"
msgstr "Tracciamento facciale attivato"
#: client/scenes/lobby_gui.cpp:1619
#: client/scenes/lobby_gui.cpp:1663
msgid "Face tracking is disabled"
msgstr "Tracciamento facciale disattivato"
#: client/scenes/lobby_gui.cpp:1633
#: client/scenes/lobby_gui.cpp:1677
msgid "Body tracking is enabled"
msgstr "Tracciamento del corpo attivato"
#: client/scenes/lobby_gui.cpp:1634
#: client/scenes/lobby_gui.cpp:1678
msgid "Body tracking is disabled"
msgstr "Tracciamento del corpo disattivato"
#: client/scenes/lobby_gui.cpp:1650
#: client/scenes/lobby_gui.cpp:1694
msgid "Add server"
msgstr "Aggiungi server"
#: client/scenes/lobby_gui.cpp:1936
#: client/scenes/lobby_gui.cpp:1980
msgid "Server list"
msgstr "Elenco dei server"
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996
#: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007
msgid "Settings"
msgstr "Impostazioni"
#: client/scenes/lobby_gui.cpp:1942
#: client/scenes/lobby_gui.cpp:1986
msgid "Post-processing"
msgstr "Post-trattamento"
#: client/scenes/lobby_gui.cpp:1945
#: client/scenes/lobby_gui.cpp:1989
msgid "Customize"
msgstr "Personalizzazione"
#: client/scenes/lobby_gui.cpp:1949
#: client/scenes/lobby_gui.cpp:1993
msgid "Debug"
msgstr "Debug"
#: client/scenes/lobby_gui.cpp:1954
#: client/scenes/lobby_gui.cpp:1998
msgid "About"
msgstr "Informazioni"
#: client/scenes/lobby_gui.cpp:1960
#: client/scenes/lobby_gui.cpp:2004
msgid "Exit"
msgstr "Esci"
#: client/scenes/lobby_gui.cpp:1977
#: client/scenes/lobby_gui.cpp:2021
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
@@ -549,7 +559,7 @@ 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:1979
#: client/scenes/lobby_gui.cpp:2023
msgid "Press the grip button to move the main window"
msgstr "Premi il pulsante laterale per spostare la finestra principale"
@@ -628,56 +638,56 @@ msgstr "Scaricare più ambienti"
msgid "Open local glTF model"
msgstr "Aprire un modello glTF"
#: client/scenes/stream_gui.cpp:174
#: client/scenes/stream_gui.cpp:175
msgid "Defoveate"
msgstr "Defoveazione"
#: client/scenes/stream_gui.cpp:176
#: client/scenes/stream_gui.cpp:177
msgid "Network"
msgstr "Rete"
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
msgid "Download"
msgstr "Download"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
msgid "Upload"
msgstr "Upload"
#: client/scenes/stream_gui.cpp:246
#: client/scenes/stream_gui.cpp:247
#, c++-format
msgid "Decoder {}"
msgstr "Decoder {}"
#: client/scenes/stream_gui.cpp:258
#: client/scenes/stream_gui.cpp:259
msgid "Timings [ms]"
msgstr "Durata [ms]"
#: client/scenes/stream_gui.cpp:318
#: client/scenes/stream_gui.cpp:319
msgid "Encode"
msgstr "Compressione"
#: client/scenes/stream_gui.cpp:319
#: client/scenes/stream_gui.cpp:320
msgid "Send"
msgstr "Invio"
#: client/scenes/stream_gui.cpp:320
#: client/scenes/stream_gui.cpp:321
msgid "Receive"
msgstr "Ricezione"
#: client/scenes/stream_gui.cpp:321
#: client/scenes/stream_gui.cpp:322
msgid "Decode"
msgstr "Decodifica"
#: client/scenes/stream_gui.cpp:322
#: client/scenes/stream_gui.cpp:323
msgid "Blitted"
msgstr "Copiato"
#: client/scenes/stream_gui.cpp:323
#: client/scenes/stream_gui.cpp:324
msgid "Displayed"
msgstr "Visualizzato"
#: client/scenes/stream_gui.cpp:324
#: client/scenes/stream_gui.cpp:325
msgid "Predicted"
msgstr "Previsto"
@@ -686,102 +696,102 @@ msgstr "Previsto"
msgid "Estimated motion to photons latency: {}ms"
msgstr "Latenza stimata da movimento a fotoni: {}ms"
#: client/scenes/stream_gui.cpp:351
#: client/scenes/stream_gui.cpp:349
msgid "Press the grip button to move the window"
msgstr "Premi il pulsante laterale per spostare la finestra"
#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:924
#: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Premi entrabli gli stick per mostrare la finestra di WiVRn"
#: client/scenes/stream_gui.cpp:375
#: client/scenes/stream_gui.cpp:373
msgid "Motion to photon latency"
msgstr "Latenza da movimento a fotoni"
#: client/scenes/stream_gui.cpp:464
#: client/scenes/stream_gui.cpp:458
msgid "Bitrate:"
msgstr "Velocità di trasmissione"
#: client/scenes/stream_gui.cpp:474
#: client/scenes/stream_gui.cpp:468
msgid "Click to adjust bitrate"
msgstr "Clicca per cambiare la velocità di trasmissione"
#: client/scenes/stream_gui.cpp:537
#: client/scenes/stream_gui.cpp:532
msgid "Foveation center override"
msgstr "Centro di foveazione manuale"
#: client/scenes/stream_gui.cpp:540
#: client/scenes/stream_gui.cpp:535
msgid "Enable"
msgstr "Attiva"
#: client/scenes/stream_gui.cpp:548 client/scenes/stream_gui.cpp:620
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Altezza {:.1f} deg"
#: client/scenes/stream_gui.cpp:549 client/scenes/stream_gui.cpp:621
#: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Distanza {:.2f} m"
#: client/scenes/stream_gui.cpp:550
#: client/scenes/stream_gui.cpp:545
msgid "Default"
msgstr "Reimposta"
#: client/scenes/stream_gui.cpp:561
#: client/scenes/stream_gui.cpp:556
msgid "Change"
msgstr "Cambia"
#: client/scenes/stream_gui.cpp:594
#: client/scenes/stream_gui.cpp:588
msgid "Use the right thumbstick to adjust the bitrate"
msgstr "Usa lo stick destro per cambiare la velocità di trasmissione"
#: client/scenes/stream_gui.cpp:595
#: client/scenes/stream_gui.cpp:589
msgid "Press A to go back"
msgstr "Premi A per tornare indietro"
#: client/scenes/stream_gui.cpp:596
#: client/scenes/stream_gui.cpp:590
#, c++-format
msgid "Bitrate: {}Mbit/s"
msgstr "Velocità di trasmissione: {}Mbit/s"
#: client/scenes/stream_gui.cpp:618
#: client/scenes/stream_gui.cpp:612
msgid "Use the thumbsticks to move the foveation center"
msgstr "Usa gli stick per spostare il centro di foveazione"
#: client/scenes/stream_gui.cpp:619
#: client/scenes/stream_gui.cpp:613
msgid "Press A to save or B to cancel"
msgstr "A per salvare, B per annullare"
#: client/scenes/stream_gui.cpp:677
#: client/scenes/stream_gui.cpp:671
msgid "Running XR applications:"
msgstr "Applicazioni XR avviate:"
#: client/scenes/stream_gui.cpp:694
#: client/scenes/stream_gui.cpp:688
msgid "Overlays"
msgstr "Overlays"
#: client/scenes/stream_gui.cpp:733
#: client/scenes/stream_gui.cpp:727
msgid "Request to quit, may be ignored by the application"
msgstr "Chiede di chiudere, può essere ignorato dall'applicazione"
#: client/scenes/stream_gui.cpp:983
#: client/scenes/stream_gui.cpp:993
msgid "Applications"
msgstr "Applicazioni"
#: client/scenes/stream_gui.cpp:986
#: client/scenes/stream_gui.cpp:996
msgid "Start"
msgstr "Avvio"
#: client/scenes/stream_gui.cpp:999
#: client/scenes/stream_gui.cpp:1010
msgid "Stats"
msgstr "Statistiche"
#: client/scenes/stream_gui.cpp:1005
#: client/scenes/stream_gui.cpp:1016
msgid "Statistics overlay"
msgstr "Solo statistiche"
#: client/scenes/stream_gui.cpp:1008
#: client/scenes/stream_gui.cpp:1019
msgid "Compact view"
msgstr "Modalità compatta"
+44 -34
View File
@@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-02-02 21:05+0800\n"
"PO-Revision-Date: 2026-02-08 12:43+0800\n"
"POT-Creation-Date: 2026-02-18 16:24+0800\n"
"PO-Revision-Date: 2026-02-25 21:21+0800\n"
"Last-Translator: BERADQ <adqber123@outlook.com>\n"
"Language-Team: Chinese (China)\n"
"Language: zh_CN\n"
@@ -119,8 +119,8 @@ msgstr "正在检查最新版本..."
msgid "No APK is available for this version"
msgstr "此版本无预编译 APK"
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:368
#: dashboard/qml/Main.qml:426 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:376
#: dashboard/qml/Main.qml:434 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/WizardPage.qml:337
#, kde-format
msgid "ADB is not installed"
@@ -161,7 +161,7 @@ msgstr "重新安装 WiVRn"
msgid "Install WiVRn"
msgstr "安装 WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:431
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:439
#, kde-format
msgid "Headsets"
msgstr "头显"
@@ -282,7 +282,7 @@ msgid "Avahi daemon is not started"
msgstr "Avahi 守护进程未启用"
#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171
#: dashboard/qml/Main.qml:223
#: dashboard/qml/Main.qml:231
#, kde-format
msgid "Fix it"
msgstr "修复"
@@ -305,6 +305,16 @@ msgstr "更多信息"
#: dashboard/qml/Main.qml:193
#, kde-format
msgid "Vulkan drivers cannot be found, you may need to run \"flatpak update\""
msgstr "找不到 Vulkan 设备,您或许需要执行 \"flatpak update\""
#: dashboard/qml/Main.qml:193
#, kde-format
msgid "Vulkan drivers cannot be found"
msgstr "无法找到 Vulkan 设备"
#: dashboard/qml/Main.qml:201
#, kde-format
msgid ""
"Use the Mesa (radv) driver for AMD GPUs\n"
"Hardware encoding with vaapi does not work with AMDVLK and AMDGPU-PRO"
@@ -312,7 +322,7 @@ msgstr ""
"AMD 显卡请使用 Mesa (radv) 驱动程序\n"
"使用 vaapi 的硬件编码不适用于 AMDVLK 和 AMDGPU-PRO"
#: dashboard/qml/Main.qml:201
#: dashboard/qml/Main.qml:209
#, kde-format
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
@@ -321,142 +331,142 @@ msgstr ""
"系统未检测到 OpenVR 兼容层,Steam 平台上的 VR 游戏无法正常加载。\n"
"请安装 xrizer 或 OpenComposite"
#: dashboard/qml/Main.qml:209
#: dashboard/qml/Main.qml:217
#, kde-format
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
msgstr "Steam 是以 snap 方式安装的。Snap 与 WiVRn 不兼容。"
#: dashboard/qml/Main.qml:217
#: dashboard/qml/Main.qml:225
#, kde-format
msgid ""
"Steam is installed as a flatpak but does not have sufficient permissions."
msgstr "Steam 是以 flatpak 方式安装的,但权限不足。"
#: dashboard/qml/Main.qml:232
#: dashboard/qml/Main.qml:240
#, kde-format
msgid "Restart the server for configuration changes to take effect"
msgstr "重新启动服务器以使配置更改生效。"
#: dashboard/qml/Main.qml:238
#: dashboard/qml/Main.qml:246
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "立即重新启动"
#: dashboard/qml/Main.qml:263
#: dashboard/qml/Main.qml:271
#, kde-format
msgid "Server failed to start"
msgstr "服务器启动失败"
#: dashboard/qml/Main.qml:269 dashboard/qml/TroubleshootPage.qml:89
#: dashboard/qml/Main.qml:277 dashboard/qml/TroubleshootPage.qml:89
#, kde-format
msgid "Open server logs"
msgstr "开启服务器日志"
#: dashboard/qml/Main.qml:295
#: dashboard/qml/Main.qml:303
#, kde-format
msgid "Server status"
msgstr "服务器状态"
#: dashboard/qml/Main.qml:301
#: dashboard/qml/Main.qml:309
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "运行"
#: dashboard/qml/Main.qml:314
#: dashboard/qml/Main.qml:322
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "配对"
#: dashboard/qml/Main.qml:334
#: dashboard/qml/Main.qml:342
#, kde-format
msgid "Headset status"
msgstr "头显状态"
#: dashboard/qml/Main.qml:341
#: dashboard/qml/Main.qml:349
#, kde-format
msgctxt "label for headset name/status under server running switch"
msgid "Headset"
msgstr "头显"
#: dashboard/qml/Main.qml:344
#: dashboard/qml/Main.qml:352
#, kde-format
msgid "Not connected"
msgstr "未连接"
#: dashboard/qml/Main.qml:348
#: dashboard/qml/Main.qml:356
#, kde-format
msgid "Disconnect"
msgstr "断开连接"
#: dashboard/qml/Main.qml:357 dashboard/qml/Main.qml:365
#: dashboard/qml/Main.qml:372
#: dashboard/qml/Main.qml:365 dashboard/qml/Main.qml:373
#: dashboard/qml/Main.qml:380
#, kde-format
msgctxt "label for USB status or connect button"
msgid "USB"
msgstr "USB"
#: dashboard/qml/Main.qml:358
#: dashboard/qml/Main.qml:366
#, kde-format
msgctxt "usb connect button"
msgid "Connect (wired)"
msgstr "链接 (有线)"
#: dashboard/qml/Main.qml:375 dashboard/qml/WizardPage.qml:339
#: dashboard/qml/Main.qml:383 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:396
#: dashboard/qml/Main.qml:404
#, kde-format
msgid "Steam information"
msgstr "Steam 信息"
#: dashboard/qml/Main.qml:412
#: dashboard/qml/Main.qml:420
#, kde-format
msgid "Wizard"
msgstr "向导"
#: dashboard/qml/Main.qml:418
#: dashboard/qml/Main.qml:426
#, kde-format
msgid "Install the app"
msgstr "安装应用程序"
#: dashboard/qml/Main.qml:437 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:445 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "设置"
#: dashboard/qml/Main.qml:443
#: dashboard/qml/Main.qml:451
#, kde-format
msgid "About"
msgstr "关于"
#: dashboard/qml/Main.qml:448 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:456 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "疑难解答"
#: dashboard/qml/Main.qml:455
#: dashboard/qml/Main.qml:463
#, kde-format
msgid "Version %1"
msgstr "版本 %1"
#: dashboard/qml/SelectGame.qml:14
#: dashboard/qml/SelectGame.qml:12
#, kde-format
msgctxt "don't start an application automatically"
msgid "None"
msgstr "无"
#: dashboard/qml/SelectGame.qml:20
#: dashboard/qml/SelectGame.qml:18
#, kde-format
msgctxt "choose a custom application to start"
msgid "Custom"
msgstr "自定义"
#: dashboard/qml/SelectGame.qml:72
#: dashboard/qml/SelectGame.qml:70
#, kde-format
msgctxt "browse a file to choose the application to start"
msgid "Browse"
+39 -39
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-02-07 17:21+0800\n"
"POT-Creation-Date: 2026-02-24 02:14+0800\n"
"PO-Revision-Date: 2025-12-31 18:23+0800\n"
"Last-Translator: BERADQ <adqber123@outlook.com>\n"
"Language-Team: Chinese (China)\n"
@@ -68,11 +68,11 @@ msgstr "无法连接至 {} ({}): {}"
msgid "Waiting for connection"
msgstr "等待连接"
#: client/scenes/lobby.cpp:1316
#: client/scenes/lobby.cpp:1307
msgid "Passthrough"
msgstr "透视"
#: client/scenes/lobby.cpp:1328
#: client/scenes/lobby.cpp:1319
msgid "Default environment"
msgstr "默认环境"
@@ -92,13 +92,13 @@ msgid "Disabled"
msgstr "停用"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
#: client/scenes/stream_gui.cpp:1010
#: client/scenes/stream_gui.cpp:992
msgid "Disconnect"
msgstr "终止连接"
#: 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:1006
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:988
msgid "Close"
msgstr "关闭"
@@ -136,7 +136,7 @@ msgid "TCP only"
msgstr "仅限 TCP"
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:962
#: client/scenes/stream_gui.cpp:944
msgid "Cancel"
msgstr "取消"
@@ -181,12 +181,12 @@ msgstr "语言"
msgid "System language"
msgstr "系统语言"
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:411
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:412
msgid "Refresh rate"
msgstr "刷新率"
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
#: client/scenes/stream_gui.cpp:411 client/scenes/stream_gui.cpp:413
#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "自动"
@@ -408,7 +408,7 @@ msgstr ""
"当串流分辨率低于头显原生分辨率时很有用"
#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:370
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371
msgid "CPU time"
msgstr "CPU 时间"
@@ -417,7 +417,7 @@ msgid "CPU time [ms]"
msgstr "CPU 时间 [ms]"
#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:371
#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372
msgid "GPU time"
msgstr "GPU 时间"
@@ -505,7 +505,7 @@ msgstr "新增服务器"
msgid "Server list"
msgstr "服务器列表"
#: client/scenes/lobby_gui.cpp:1940 client/scenes/stream_gui.cpp:991
#: client/scenes/lobby_gui.cpp:1940 client/scenes/stream_gui.cpp:973
msgid "Settings"
msgstr "设置"
@@ -616,73 +616,73 @@ msgstr "下载更多环境"
msgid "Open local glTF model"
msgstr "打开本地 glTF 模型"
#: client/scenes/stream_gui.cpp:174
#: client/scenes/stream_gui.cpp:175
msgid "Defoveate"
msgstr "去凹形畸变"
#: client/scenes/stream_gui.cpp:176
#: client/scenes/stream_gui.cpp:177
msgid "Network"
msgstr "网络"
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:368
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
msgid "Download"
msgstr "下载"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
msgid "Upload"
msgstr "上传"
#: client/scenes/stream_gui.cpp:246
#: client/scenes/stream_gui.cpp:247
#, c++-format
msgid "Decoder {}"
msgstr "解码器 {}"
#: client/scenes/stream_gui.cpp:258
#: client/scenes/stream_gui.cpp:259
msgid "Timings [ms]"
msgstr "时间信息 [ms]"
#: client/scenes/stream_gui.cpp:318
#: client/scenes/stream_gui.cpp:319
msgid "Encode"
msgstr "编码"
#: client/scenes/stream_gui.cpp:319
#: client/scenes/stream_gui.cpp:320
msgid "Send"
msgstr "发送"
#: client/scenes/stream_gui.cpp:320
#: client/scenes/stream_gui.cpp:321
msgid "Receive"
msgstr "接收"
#: client/scenes/stream_gui.cpp:321
#: client/scenes/stream_gui.cpp:322
msgid "Decode"
msgstr "解码"
#: client/scenes/stream_gui.cpp:322
#: client/scenes/stream_gui.cpp:323
msgid "Blitted"
msgstr "已传输位块"
#: client/scenes/stream_gui.cpp:323
#: client/scenes/stream_gui.cpp:324
msgid "Displayed"
msgstr "已显示"
#: client/scenes/stream_gui.cpp:324
#: client/scenes/stream_gui.cpp:325
msgid "Predicted"
msgstr "已预测"
#: client/scenes/stream_gui.cpp:343
#: client/scenes/stream_gui.cpp:344
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "估计从运动到显示延迟: {}ms"
#: client/scenes/stream_gui.cpp:348
#: client/scenes/stream_gui.cpp:349
msgid "Press the grip button to move the window"
msgstr "按下抓握键来移动窗口"
#: client/scenes/stream_gui.cpp:350 client/scenes/stream_gui.cpp:918
#: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:900
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "同时按下两侧摇杆以显示 WiVRn 窗口"
#: client/scenes/stream_gui.cpp:372
#: client/scenes/stream_gui.cpp:373
msgid "Motion to photon latency"
msgstr "从动作到显示的延迟"
@@ -694,29 +694,29 @@ msgstr "码率:"
msgid "Click to adjust bitrate"
msgstr "点击以调整码率"
#: client/scenes/stream_gui.cpp:531
#: client/scenes/stream_gui.cpp:532
msgid "Foveation center override"
msgstr "注视点渲染位置覆盖"
#: client/scenes/stream_gui.cpp:534
#: client/scenes/stream_gui.cpp:535
msgid "Enable"
msgstr "启用"
#: client/scenes/stream_gui.cpp:542 client/scenes/stream_gui.cpp:614
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614
#, c++-format
msgid "Height {:.1f} deg"
msgstr "俯仰 {:.1f}°"
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:615
#: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615
#, c++-format
msgid "Distance {:.2f} m"
msgstr "距离 {:.2f}m"
#: client/scenes/stream_gui.cpp:544
#: client/scenes/stream_gui.cpp:545
msgid "Default"
msgstr "默认"
#: client/scenes/stream_gui.cpp:555
#: client/scenes/stream_gui.cpp:556
msgid "Change"
msgstr "变更"
@@ -753,23 +753,23 @@ msgstr "叠加层"
msgid "Request to quit, may be ignored by the application"
msgstr "退出请求可能会被应用程序忽略"
#: client/scenes/stream_gui.cpp:977
#: client/scenes/stream_gui.cpp:959
msgid "Applications"
msgstr "应用程序"
#: client/scenes/stream_gui.cpp:980
#: client/scenes/stream_gui.cpp:962
msgid "Start"
msgstr "启动"
#: client/scenes/stream_gui.cpp:994
#: client/scenes/stream_gui.cpp:976
msgid "Stats"
msgstr "统计"
#: client/scenes/stream_gui.cpp:1000
#: client/scenes/stream_gui.cpp:982
msgid "Statistics overlay"
msgstr "统计数据叠加"
#: client/scenes/stream_gui.cpp:1003
#: client/scenes/stream_gui.cpp:985
msgid "Compact view"
msgstr "概览"
@@ -1,4 +1,4 @@
From 31c816e45b57fe9c19b35ce6c40624608391f5bd Mon Sep 17 00:00:00 2001
From 563f347bf4d59b4a82144e25c3be894a0cd17c8d Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 22 Oct 2024 15:23:19 +0200
Subject: [PATCH 1/9] c/multi: early wake of compositor
@@ -1,4 +1,4 @@
From 282ac382841ec5208b6a8a98b63b50d007eeb5de Mon Sep 17 00:00:00 2001
From 7d7c139b9ed03ec492256760c6acd1c7364c2e2a Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 8 Oct 2024 22:13:15 +0200
Subject: [PATCH 2/9] Use extern socket fd
@@ -1,4 +1,4 @@
From b798f1574943241b1ac47feba4f66524a282fc23 Mon Sep 17 00:00:00 2001
From 1328192bc28f312e728460d6c29ab150a9b655bd 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 3/9] change environment blend mode selection logic
@@ -1,4 +1,4 @@
From 085aa329b48a9f43d23c321b6d8badd4f5cc0346 Mon Sep 17 00:00:00 2001
From 18f87ff2f292e2f4cab8718601e6d5ba236a5013 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Sat, 15 Mar 2025 22:19:48 +0100
Subject: [PATCH 4/9] st/oxr: forward 0 refresh rate
@@ -1,4 +1,4 @@
From 74d980d760e437dccb2c99591d9224e70d8b0065 Mon Sep 17 00:00:00 2001
From 8c322edfafa6179875bfe1dca1517c4043f0c5b4 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Wed, 11 Sep 2024 22:56:29 +0200
Subject: [PATCH 5/9] Replace distortion with foveation
@@ -1,4 +1,4 @@
From e4e8c532a6f5e46e91b67641feeb09d3f4b52bc7 Mon Sep 17 00:00:00 2001
From b9acd6d83db324c6f31572615fb6738a6f93d63c Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Sun, 28 Sep 2025 11:33:10 +0200
Subject: [PATCH 6/9] d/steamvr_lh: prevent crash on vive pro2/WiVRn
@@ -1,4 +1,4 @@
From 78aa739c623f7c797f92f2905b59bc73446f3e32 Mon Sep 17 00:00:00 2001
From 8c6580e84690ffe8f082cdff5ead8443d1f6bf23 Mon Sep 17 00:00:00 2001
From: Sapphire <imsapphire0@gmail.com>
Date: Fri, 7 Nov 2025 20:41:16 -0600
Subject: [PATCH 7/9] st/oxr: push XrEventDataInteractionProfileChanged when
@@ -9,10 +9,10 @@ Subject: [PATCH 7/9] st/oxr: push XrEventDataInteractionProfileChanged when
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/src/xrt/state_trackers/oxr/actions/oxr_input.c b/src/xrt/state_trackers/oxr/actions/oxr_input.c
index 95eef613a..c76dfcb0c 100644
index 349c9adcb..667163142 100644
--- a/src/xrt/state_trackers/oxr/actions/oxr_input.c
+++ b/src/xrt/state_trackers/oxr/actions/oxr_input.c
@@ -1885,26 +1885,21 @@ oxr_session_update_action_bindings(struct oxr_logger *log, struct oxr_session *s
@@ -1945,26 +1945,21 @@ oxr_session_update_action_bindings(struct oxr_logger *log, struct oxr_session *s
}
}
@@ -1,40 +0,0 @@
From 8f62c1a61729d0550280d0e4e02ffa7cc3f7fdae Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Thu, 15 Jan 2026 12:13:06 +0100
Subject: [PATCH 8/9] 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 ff9728a59..08cdef540 100644
--- a/src/xrt/compositor/main/comp_renderer.c
+++ b/src/xrt/compositor/main/comp_renderer.c
@@ -972,14 +972,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.53.0
@@ -0,0 +1,85 @@
From 959707499b31f8db80f28492d1bfc01e34b23368 Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Thu, 15 Jan 2026 12:13:06 +0100
Subject: [PATCH 8/9] Don't get pose data in compositor
Reproject onto the first projection layer's pose, if there isn't any get
it from device instead.
---
src/xrt/compositor/main/comp_renderer.c | 53 +++++++++++++++++++++----
1 file changed, 45 insertions(+), 8 deletions(-)
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
index ff9728a59..4a91bbcd0 100644
--- a/src/xrt/compositor/main/comp_renderer.c
+++ b/src/xrt/compositor/main/comp_renderer.c
@@ -948,6 +948,24 @@ dispatch_graphics(struct comp_renderer *r,
*
*/
+static struct comp_layer *
+get_projection_layer(struct comp_layer_accum *layers)
+{
+ for (uint32_t layer = 0; layer < layers->layer_count; ++layer) {
+ switch (layers->layers[layer].data.type) {
+ case XRT_LAYER_PROJECTION:
+ case XRT_LAYER_PROJECTION_DEPTH: return &layers->layers[layer];
+ case XRT_LAYER_QUAD:
+ case XRT_LAYER_CUBE:
+ case XRT_LAYER_CYLINDER:
+ case XRT_LAYER_EQUIRECT1:
+ case XRT_LAYER_EQUIRECT2:
+ case XRT_LAYER_PASSTHROUGH: break;
+ }
+ }
+ return NULL;
+}
+
/*!
* @pre render_compute_init(render, &c->nr)
*/
@@ -972,14 +990,33 @@ 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) {
+ struct comp_layer *proj_layer = get_projection_layer(&c->base.layer_accum);
+ int64_t predicted_display_time_ns = c->frame.rendering.predicted_display_time_ns;
+ int64_t cutoff_ns = 3 * c->frame_interval_ns;
+ if (proj_layer && llabs(predicted_display_time_ns - proj_layer->data.timestamp) <= cutoff_ns) {
+ struct xrt_layer_projection_view_data *data = proj_layer->data.proj.v;
+ // depth has the same first member as proj
+ for (int view = 0; view < XRT_MAX_VIEWS; ++view) {
+ fovs[view] = data[view].fov;
+ world_poses_scanout_begin[view] = data[view].pose;
+ world_poses_scanout_end[view] = data[view].pose;
+ eye_poses[view] = data[view].pose;
+
+ r->c->base.frame_params.fovs[view] = data[view].fov;
+ r->c->base.frame_params.poses[view] = data[view].pose;
+ }
+ } else {
+ 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.53.0
@@ -1,4 +1,4 @@
From 45dec6300290d4b7199f15948206fc6492fe41ed Mon Sep 17 00:00:00 2001
From 14e5d4a2f29b95f0f7933dbf2dde5000c0a98866 Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Sun, 25 Jan 2026 10:09:10 +0100
Subject: [PATCH 9/9] don't verify GL stuff
+2 -2
View File
@@ -22,8 +22,8 @@
#include "util/u_logging.h"
#include "utils/overloaded.h"
#include "driver/configuration.h"
#include "driver/wivrn_session.h"
#include "wivrn_config.h"
#include "wivrn_ipc.h"
#include "wivrn_sockets.h"
@@ -33,7 +33,7 @@ std::unique_ptr<wivrn::TCP> wivrn::accept_connection(wivrn_session & cnx, std::s
{
wivrn_ipc_socket_monado->send(from_monado::headset_disconnected{});
wivrn::TCPListener listener(wivrn::default_port);
wivrn::TCPListener listener(configuration().port);
pollfd fds[2]{
{.fd = listener.get_fd(), .events = POLLIN},
+9 -2
View File
@@ -79,7 +79,8 @@ struct pipewire_device : public audio_device
static void mic_state_changed(void * self_v, pw_stream_state old, pw_stream_state state, const char * error);
void process_mic_data(wivrn::audio_data &&) override;
void on_connect() override;
void pause() override;
void resume() override;
~pipewire_device()
{
@@ -415,8 +416,14 @@ void pipewire_device::process_mic_data(wivrn::audio_data && sample)
if (mic_samples.write(std::move(sample)))
mic_buffer_size_bytes += size;
}
void pipewire_device::on_connect()
void pipewire_device::pause()
{
}
void pipewire_device::resume()
{
session.send_control(description());
session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, mic_state == PW_STREAM_STATE_STREAMING});
}
+7 -2
View File
@@ -404,9 +404,14 @@ struct pulse_device : public audio_device
mic_buffer.push(std::move(mic_data));
}
void on_connect() override
void pause() override
{
session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, true});
}
void resume() override
{
session.send_control(description());
session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, (bool)microphone});
}
pulse_device(
+3 -2
View File
@@ -34,9 +34,10 @@ struct audio_device
virtual ~audio_device() = default;
virtual wivrn::to_headset::audio_stream_description description() const = 0;
virtual void process_mic_data(wivrn::audio_data &&) = 0;
virtual void on_connect() = 0;
virtual void pause() = 0;
virtual void resume() = 0;
static std::unique_ptr<audio_device> create(
const std::string & source_name,
+6
View File
@@ -204,6 +204,12 @@ configuration::configuration()
if (auto it = json.find("tcp-only"); it != json.end())
tcp_only = *it;
if (auto it = json.find("port"); it != json.end())
port = *it;
if (auto it = json.find("hostname"); it != json.end())
hostname = *it;
if (auto it = json.find("publish-service"); it != json.end())
{
publication = *it;
+4
View File
@@ -19,6 +19,8 @@
#pragma once
#include "hostname.h"
#include "wivrn_config.h"
#include <array>
#include <chrono>
#include <filesystem>
@@ -57,6 +59,8 @@ struct configuration
bool use_steamvr_lh = false;
bool hid_forwarding = false;
bool tcp_only = false;
int port = wivrn::default_port;
std::string hostname = wivrn::hostname();
service_publication publication = service_publication::avahi;
// monostate: default value, string: user defined, nullptr: disabled
-9
View File
@@ -31,7 +31,6 @@
#include <Eigen/Core>
#include <Eigen/QR>
#include <algorithm>
#include <cassert>
#include <limits>
#include <optional>
#include <ranges>
@@ -199,14 +198,6 @@ public:
else
sol = (Aprime.transpose() * Aprime).ldlt().solve(Aprime.transpose() * bprime).transpose();
#ifndef NDEBUG
if constexpr (quaternion)
{
float norm = sol.template block<N, 1>(0, 0).norm();
assert(norm > 0.9);
}
#endif
return sample{
.production_timestamp = production_timestamp,
.timestamp = timestamp,
+9 -2
View File
@@ -43,8 +43,15 @@ void wivrn::tracking_control::add_request(device_id device, XrTime now, XrTime a
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));
try
{
cnx.send_control(to_headset::tracking_control(last_control));
last_control.pattern.push_back({.device = device, .prediction_ns = prediction});
}
catch (...)
{
// ignore network errors
}
}
}
+29 -2
View File
@@ -523,7 +523,7 @@ static VkResult comp_wivrn_present(struct comp_target * ct,
.pWaitDstStageMask = &wait_stage,
};
if (cn->c->base.layer_accum.layer_count == 0 or not cn->cnx.get_offset())
if (cn->c->base.layer_accum.layer_count == 0 or not cn->cnx.get_offset() or cn->skip_encoding)
{
scoped_lock lock(vk->main_queue->mutex);
cn->wivrn_bundle->queue.submit(submit_info);
@@ -785,7 +785,15 @@ static xrt_result_t comp_wivrn_request_refresh_rate(struct comp_target * ct, flo
if (refresh_rate_hz == 0.0f)
refresh_rate_hz = get_default_rate(cn->cnx.get_info(), *cn->cnx.get_settings());
cn->cnx.send_control(to_headset::refresh_rate_change{.fps = refresh_rate_hz});
try
{
cn->cnx.send_control(to_headset::refresh_rate_change{.fps = refresh_rate_hz});
}
catch (...)
{
// ignore network errors
}
return XRT_SUCCESS;
}
@@ -827,6 +835,20 @@ void wivrn_comp_target::reset_encoders()
cnx.send_control(to_headset::video_stream_description{desc});
}
void wivrn_comp_target::pause()
{
skip_encoding = true;
}
void wivrn_comp_target::resume()
{
if (!skip_encoding)
return;
reset_encoders();
skip_encoding = false;
}
void wivrn_comp_target::set_bitrate(uint32_t bitrate_bps)
{
for (auto & encoder: encoders)
@@ -847,6 +869,11 @@ void wivrn_comp_target::set_refresh_rate(float refresh_rate_hz)
encoder->set_framerate(refresh_rate_hz);
}
float wivrn_comp_target::get_refresh_rate()
{
return desc.fps;
}
wivrn_comp_target::wivrn_comp_target(wivrn::wivrn_session & cnx, struct comp_compositor * c) :
comp_target{
.c = c,
+6 -1
View File
@@ -101,15 +101,20 @@ struct wivrn_comp_target : public comp_target
std::optional<wivrn_foveation> foveation;
std::atomic<float> requested_refresh_rate;
std::atomic<bool> skip_encoding;
wivrn_comp_target(wivrn::wivrn_session & cnx, struct comp_compositor * c);
~wivrn_comp_target();
void on_feedback(const from_headset::feedback &, const clock_offset &);
void reset_encoders();
void set_bitrate(uint32_t bitrate_bps);
void pause();
void resume();
void set_bitrate(uint32_t bitrate_bps);
void set_refresh_rate(float);
float get_refresh_rate();
};
inline float get_default_rate(const from_headset::headset_info_packet & info, const from_headset::settings_changed & settings)
+265 -79
View File
@@ -55,6 +55,7 @@
#include <magic_enum.hpp>
#include <stdexcept>
#include <string.h>
#include <utility>
#include <vulkan/vulkan.h>
#if WIVRN_FEATURE_STEAMVR_LIGHTHOUSE
@@ -127,6 +128,7 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
.destroy = [](xrt_system_devices * self) { delete ((wivrn_session *)self); },
},
connection(std::move(connection)),
headset_info(this->connection->info()),
xrt_system(system),
control(*this->connection),
hmd(this, get_info()),
@@ -145,11 +147,6 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
"WiVRn",
get_info(),
*this);
if (audio_handle)
{
send_control(audio_handle->description());
audio_handle->on_connect();
}
}
catch (const std::exception & e)
{
@@ -157,12 +154,6 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
throw;
}
(*this)(from_headset::get_application_list{
.language = get_info().language,
.country = get_info().country,
.variant = get_info().variant,
});
static_roles.head = xdevs[xdev_count++] = &hmd;
if (hmd.supported.face_tracking)
@@ -290,7 +281,6 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
try
{
uinput_handler.emplace();
send_control(to_headset::feature_control{to_headset::feature_control::hid_input, true});
}
catch (...)
{
@@ -392,7 +382,7 @@ void wivrn_session::start(ipc_server * server)
assert(not net_thread.joinable());
mnd_ipc_server = server;
net_thread = std::jthread([this](auto stop_token) { return run_net(stop_token); });
worker_thread = std::jthread([this](std::stop_token stop) { return run_worker(stop); });
resume_session();
}
void wivrn_session::stop()
@@ -410,6 +400,85 @@ bool wivrn_session::request_stop()
return b;
}
void wivrn_session::pause_session()
{
assert(mnd_ipc_server);
// notify clients about session pause
update_client_states(false, false);
if (get_info().user_presence)
{
(*this)(from_headset::user_presence_changed{
.present = false,
});
}
// pause session components
worker_thread = std::jthread();
offset_est.reset();
if (audio_handle)
audio_handle->pause();
{
std::shared_lock lock(comp_target_mutex);
if (comp_target)
comp_target->pause();
}
}
void wivrn_session::resume_session()
{
assert(mnd_ipc_server);
// reset session components and send descriptor packets to headset
if (audio_handle)
audio_handle->resume();
if (uinput_handler)
send_control(to_headset::feature_control{to_headset::feature_control::hid_input, true});
{
std::shared_lock lock(comp_target_mutex);
if (comp_target)
{
float target_fps = get_default_rate(get_info(), *get_settings());
if (target_fps != comp_target->get_refresh_rate())
{
(*this)(from_headset::refresh_rate_changed{
.from = comp_target->get_refresh_rate(),
.to = target_fps,
});
}
comp_target->resume();
}
}
if (get_info().user_presence)
{
(*this)(from_headset::user_presence_changed{
.present = true,
});
}
(*this)(from_headset::get_application_list{
.language = get_info().language,
.country = get_info().country,
.variant = get_info().variant,
});
// resume session and notify clients
worker_thread = std::jthread([this](std::stop_token stop) { return run_worker(stop); });
update_client_states(true, true);
}
clock_offset wivrn_session::get_offset()
{
return offset_est.get_offset();
@@ -715,7 +784,6 @@ void wivrn_session::operator()(from_headset::visibility_mask_changed && mask)
void wivrn_session::operator()(from_headset::session_state_changed && event)
{
assert(mnd_ipc_server);
U_LOG_I("Session state changed: %s", xr::to_string(event.state));
bool visible, focused;
switch (event.state)
@@ -733,22 +801,8 @@ void wivrn_session::operator()(from_headset::session_state_changed && event)
focused = false;
break;
}
scoped_lock lock(mnd_ipc_server->global_state.lock);
auto locked = session_loss.lock();
for (auto & t: mnd_ipc_server->threads)
{
auto id = t.ics.client_state.id;
if (t.ics.server_thread_index < 0 or t.ics.xc == nullptr or locked->contains(id))
continue;
bool current = t.ics.client_state.session_overlay or
mnd_ipc_server->global_state.active_client_index == t.ics.server_thread_index;
U_LOG_D("Setting session state for app %s: visible=%s focused=%s current=%s",
t.ics.client_state.info.application_name,
visible ? "true" : "false",
focused ? "true" : "false",
current ? "true" : "false");
xrt_syscomp_set_state(system_compositor, t.ics.xc, visible and current, focused and current, os_monotonic_get_ns());
}
update_client_states(visible, focused);
}
void wivrn_session::operator()(from_headset::user_presence_changed && event)
{
@@ -984,17 +1038,29 @@ void wivrn_session::run_net(std::stop_token stop)
}
catch (const std::exception & e)
{
U_LOG_E("Exception in network thread: %s", e.what());
worker_thread = std::jthread();
U_LOG_W("Exception in network thread: %s, Session paused.", e.what());
pause_session();
reconnect(stop);
worker_thread = std::jthread([this](std::stop_token stop) { return run_worker(stop); });
if (stop.stop_requested())
break;
try
{
resume_session();
U_LOG_I("Headset connected, Session resumed.");
}
catch (const std::exception & e)
{
U_LOG_E("Exception on session resume: %s", e.what());
}
}
}
}
void wivrn_session::run_worker(std::stop_token stop)
{
refresh_rate_adjuster refresh(connection->info(), settings, app_pacers);
refresh_rate_adjuster refresh(get_info(), settings, app_pacers);
while (not stop.stop_requested())
{
try
@@ -1066,62 +1132,182 @@ void wivrn_session::quit_if_no_client()
}
}
static bool is_audio_changed(const from_headset::headset_info_packet & prev_info, const from_headset::headset_info_packet & info)
{
bool changed = false;
if (prev_info.speaker and info.speaker)
{
changed |= prev_info.speaker->num_channels != info.speaker->num_channels;
changed |= prev_info.speaker->sample_rate != info.speaker->sample_rate;
}
if (prev_info.microphone and info.microphone)
{
changed |= prev_info.microphone->num_channels != info.microphone->num_channels;
changed |= prev_info.microphone->sample_rate != info.microphone->sample_rate;
}
return changed;
}
std::pair<bool, std::optional<std::string>> wivrn_session::validate_headset_info(const from_headset::headset_info_packet & info)
{
const auto & prev_info = get_info();
bool refuse = false; // refuse to connect headset outright
bool warn = false; // allow headset but display a pop-up warning about outdated settings
// stream settings
{
warn |= prev_info.render_eye_width != info.render_eye_width;
warn |= prev_info.render_eye_height != info.render_eye_height;
warn |= prev_info.stream_eye_width != info.stream_eye_width;
warn |= prev_info.stream_eye_height != info.stream_eye_height;
refuse |= prev_info.supported_codecs != info.supported_codecs;
refuse |= prev_info.bit_depth != info.bit_depth;
if (refuse)
{
return std::make_pair(false, "video codec mismatch.");
}
}
// audio settings
{
refuse |= is_audio_changed(prev_info, info);
warn |= (bool)prev_info.speaker != (bool)info.speaker;
warn |= (bool)prev_info.microphone != (bool)info.microphone;
if (refuse)
{
return std::make_pair(false, "audio config changed.");
}
}
// headset features
{
// allow toggling some features but changes won't be visible to applications
warn |= prev_info.hand_tracking != info.hand_tracking;
warn |= prev_info.face_tracking != info.face_tracking;
warn |= prev_info.eye_gaze != info.eye_gaze;
warn |= prev_info.num_generic_trackers != info.num_generic_trackers;
// only allow connecting from the "same" headset
refuse |= prev_info.system_name != info.system_name;
for (uint32_t i = 0; i < 2; i++)
{
refuse |= prev_info.fov[i].angleDown != info.fov[i].angleDown;
refuse |= prev_info.fov[i].angleUp != info.fov[i].angleUp;
refuse |= prev_info.fov[i].angleRight != info.fov[i].angleRight;
refuse |= prev_info.fov[i].angleLeft != info.fov[i].angleLeft;
}
refuse |= prev_info.palm_pose != info.palm_pose;
refuse |= prev_info.user_presence != info.user_presence;
refuse |= prev_info.passthrough != info.passthrough;
refuse |= prev_info.available_refresh_rates != info.available_refresh_rates;
if (refuse)
{
std::make_pair(false, "headset features changed.");
}
}
return std::make_pair(warn, std::nullopt);
}
void wivrn_session::reconnect(std::stop_token stop)
{
assert(mnd_ipc_server);
// Notify clients about disconnected status
xrt_session_event event{
.state = {
.type = XRT_SESSION_EVENT_STATE_CHANGE,
.visible = false,
.focused = false,
},
};
auto result = push_event(event);
if (result != XRT_SUCCESS)
{
U_LOG_W("Failed to notify session state change: %s", xrt_result_to_string(result).c_str());
}
U_LOG_I("Waiting for new connection");
auto tcp = accept_connection(*this, stop, &wivrn_session::quit_if_no_client);
if (stop.stop_requested())
return;
if (not tcp)
while (not stop.stop_requested())
{
request_stop();
return;
}
try
{
offset_est.reset();
connection->reset(stop, std::move(*tcp), [this]() { quit_if_no_client(); });
const auto & info = connection->info();
(*this)(info.settings);
try
{
std::shared_lock lock(comp_target_mutex);
if (comp_target)
comp_target->reset_encoders();
// await a new headset connection
auto tcp = accept_connection(*this, stop, &wivrn_session::quit_if_no_client);
if (stop.stop_requested())
return;
if (not tcp)
{
request_stop();
return;
}
connection->reset(stop, std::move(*tcp), [this]() { quit_if_no_client(); });
// validate if headset is compatible with the current session
const auto & info = connection->info();
const auto [warn_conn, refuse_conn] = validate_headset_info(info);
// TODO: add server-side localization
if (refuse_conn)
{
send_control(to_headset::server_message{
.kind = to_headset::server_message::kind::error,
.msg = std::format("Headset incompatible with session: {}", *refuse_conn),
});
connection->shutdown();
throw std::runtime_error("headset config incompatible with current session");
}
if (warn_conn)
{
send_control(to_headset::server_message{
.kind = to_headset::server_message::kind::toast_urgent,
.msg = "Stream resumed with outdated settings. Restart the server for settings to apply.",
});
U_LOG_W("Session resumed with outdated settings. Restart the server for settings to apply.");
}
// update headset info
headset_info.settings = info.settings;
(*this)(headset_info.settings);
headset_info.language = info.language;
headset_info.country = info.country;
headset_info.variant = info.variant;
break;
}
if (audio_handle)
catch (std::exception & e)
{
send_control(audio_handle->description());
audio_handle->on_connect();
}
event.state.visible = true;
event.state.focused = true;
result = push_event(event);
if (result != XRT_SUCCESS)
{
U_LOG_W("Failed to notify session state change: %s", xrt_result_to_string(result).c_str());
U_LOG_W("Exception while connecting headset: %s", e.what());
}
}
catch (const std::exception & e)
}
void wivrn_session::update_client_states(bool visible, bool focused)
{
assert(mnd_ipc_server);
scoped_lock lock(mnd_ipc_server->global_state.lock);
auto locked = session_loss.lock();
for (auto & t: mnd_ipc_server->threads)
{
U_LOG_E("Reconnection failed: %s", e.what());
auto id = t.ics.client_state.id;
if (t.ics.server_thread_index < 0 or t.ics.xc == nullptr or locked->contains(id))
continue;
bool current = t.ics.client_state.session_overlay or
mnd_ipc_server->global_state.active_client_index == t.ics.server_thread_index;
U_LOG_D("Setting session state for app %s: visible=%s focused=%s current=%s",
t.ics.client_state.info.application_name,
visible ? "true" : "false",
focused ? "true" : "false",
current ? "true" : "false");
xrt_syscomp_set_state(system_compositor, t.ics.xc, visible and current, focused and current, os_monotonic_get_ns());
}
}
+9 -1
View File
@@ -66,6 +66,7 @@ class wivrn_session : public xrt_system_devices
{
friend wivrn_comp_target_factory;
std::unique_ptr<wivrn_connection> connection;
from_headset::headset_info_packet headset_info;
pacing_app_factory app_pacers;
u_system & xrt_system;
@@ -140,7 +141,7 @@ public:
bool connected();
const from_headset::headset_info_packet & get_info() const
{
return connection->info();
return headset_info;
};
locked<from_headset::settings_changed> get_settings()
@@ -216,8 +217,15 @@ private:
void run_worker(std::stop_token stop);
void reconnect(std::stop_token stop);
void pause_session();
void resume_session();
void update_client_states(bool visible, bool focused);
void poll_session_loss();
// checks if a headset is usable with this session
std::pair<bool, std::optional<std::string>> validate_headset_info(const from_headset::headset_info_packet & info);
// xrt_system implementation
xrt_result_t get_roles(xrt_system_roles * out_roles);
xrt_result_t feature_inc(xrt_device_feature_type type);
+25 -2
View File
@@ -222,6 +222,26 @@ video_encoder_nvenc::video_encoder_nvenc(
}
}
const uint32_t intra_refresh_period = 100;
const uint32_t intra_refresh_cnt = 50;
auto set_intra_refresh = [&](auto & codec_config) {
NV_ENC_CAPS_PARAM cap_param{
.version = NV_ENC_CAPS_PARAM_VER,
.capsToQuery = NV_ENC_CAPS_SUPPORT_INTRA_REFRESH,
};
int res = 0;
NVENC_CHECK(shared_state->fn.nvEncGetEncodeCaps(session_handle, encodeGUID, &cap_param, &res));
if (res != 1)
{
U_LOG_W("nvenc: intra refresh not supported, disabling feature");
return;
}
codec_config.enableIntraRefresh = 1;
codec_config.intraRefreshPeriod = intra_refresh_period;
codec_config.intraRefreshCnt = intra_refresh_cnt;
};
switch (settings.codec)
{
case video_codec::h264:
@@ -230,8 +250,9 @@ video_encoder_nvenc::video_encoder_nvenc(
config.encodeCodecConfig.h264Config.repeatSPSPPS = 1;
config.encodeCodecConfig.h264Config.maxNumRefFrames = 0;
config.encodeCodecConfig.h264Config.idrPeriod = NVENC_INFINITE_GOPLENGTH;
config.encodeCodecConfig.h264Config.h264VUIParameters.videoFullRangeFlag = 1;
config.encodeCodecConfig.h264Config.idrPeriod = NVENC_INFINITE_GOPLENGTH;
set_intra_refresh(config.encodeCodecConfig.h264Config);
break;
case video_codec::h265:
@@ -246,8 +267,9 @@ video_encoder_nvenc::video_encoder_nvenc(
config.encodeCodecConfig.hevcConfig.repeatSPSPPS = 1;
config.encodeCodecConfig.hevcConfig.maxNumRefFramesInDPB = 0;
config.encodeCodecConfig.hevcConfig.idrPeriod = NVENC_INFINITE_GOPLENGTH;
config.encodeCodecConfig.hevcConfig.hevcVUIParameters.videoFullRangeFlag = 1;
config.encodeCodecConfig.hevcConfig.idrPeriod = NVENC_INFINITE_GOPLENGTH;
set_intra_refresh(config.encodeCodecConfig.hevcConfig);
break;
case video_codec::av1:
@@ -263,6 +285,7 @@ video_encoder_nvenc::video_encoder_nvenc(
config.encodeCodecConfig.av1Config.repeatSeqHdr = 1;
config.encodeCodecConfig.av1Config.maxNumRefFramesInDPB = 0;
config.encodeCodecConfig.av1Config.idrPeriod = NVENC_INFINITE_GOPLENGTH;
set_intra_refresh(config.encodeCodecConfig.av1Config);
break;
case video_codec::raw:
+12 -3
View File
@@ -15,7 +15,6 @@
#include "driver/configuration.h"
#include "driver/wivrn_connection.h"
#include "exit_codes.h"
#include "hostname.h"
#include "ipc_server_cb.h"
#include "protocol_version.h"
#include "start_application.h"
@@ -315,7 +314,7 @@ void start_listening()
assert(listener_watch == 0);
listener = std::make_unique<TCPListener>(wivrn::default_port);
listener = std::make_unique<TCPListener>(configuration().port);
auto source_listener = g_unix_fd_source_new(listener->get_fd(), GIOCondition::G_IO_IN);
g_source_set_callback(source_listener, G_SOURCE_FUNC(&headset_connected), nullptr, nullptr);
listener_watch = g_source_attach(source_listener, nullptr);
@@ -352,7 +351,8 @@ void start_publishing()
{"version", wivrn::display_version()},
{"cookie", server_cookie()},
};
publisher.emplace(poll_api, hostname(), "_wivrn._tcp", wivrn::default_port, TXT);
auto configuration = wivrn::configuration();
publisher.emplace(poll_api, configuration.hostname, "_wivrn._tcp", configuration.port, TXT);
}
}
}
@@ -657,6 +657,15 @@ gboolean on_handle_rename_key(WivrnServer * skeleton, GDBusMethodInvocation * in
gboolean on_handle_enable_pairing(WivrnServer * skeleton, GDBusMethodInvocation * invocation, gpointer user_data)
{
bool server_running = server_watch != 0 or connection_thread;
if (server_running)
{
std::cerr << "Cannot enable pairing while session is active." << pin << std::endl;
g_dbus_method_invocation_return_value(invocation, g_variant_new("(s)", ""));
return G_SOURCE_CONTINUE;
}
set_encryption_state(wivrn_connection::encryption_state::pairing);
if (pairing_timeout)
+7
View File
@@ -20,6 +20,7 @@
#include <chrono>
#include <format>
#include <ranges>
#include <string_view>
#include <systemd/sd-bus.h>
#include <type_traits>
@@ -196,6 +197,12 @@ void pair(int duration)
if (ret < 0)
throw std::system_error(-ret, std::system_category(), "Failed to read PIN");
if (std::string_view(pin) == "")
{
std::cout << "Cannot enable pairing while session is active." << pin << std::endl;
return;
}
std::cout << "PIN: " << pin << std::endl;
}
}