Compare commits

...
Author SHA1 Message Date
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
Vindicus999 5f6dd17149 Merge remote-tracking branch 'upstream/master' 2026-02-23 02:34:49 +00:00
Gabriel ea84391ba3 Unacceptable and deplorable typo fixed 2026-02-22 15:33:33 +01:00
Vindicus999 ed5986e83b Merge remote-tracking branch 'upstream/master' 2026-02-22 02:33:59 +00:00
Sapphire 71ee653312 Update Monado 2026-02-21 17:11:22 +01:00
Sapphire 19ac929be9 Update Monado 2026-02-21 17:11:22 +01:00
Sapphire 4ff91f1e13 Update Monado 2026-02-21 17:11:22 +01:00
Sapphire e837396944 Update Monado 2026-02-21 17:11:22 +01:00
Vindicus999 eed74ee35e Merge remote-tracking branch 'upstream/master' 2026-02-21 02:22:54 +00:00
Patrick Nicolas 51ee0b46ac Be less strict for quaternions norm 2026-02-20 23:38:43 +01:00
Patrick Nicolas eddda44def Don't recreate hand trackers on each frame 2026-02-20 17:34:31 +01:00
Patrick Nicolas f8a6db5834 vk/video: fix crash on iGPU 2026-02-20 15:56:34 +01:00
35 changed files with 371 additions and 240 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ WiVRn support a wide range of VR devices:
## PC Server/Dashboard
We recommend using native packages if available for your distribution:
- [Arch User Repositoy](https://aur.archlinux.org/packages/wivrn-dashboard)
- [Arch User Repository](https://aur.archlinux.org/packages/wivrn-dashboard)
- [Fedora](https://packages.fedoraproject.org/pkgs/wivrn/wivrn/)
- [Gentoo Guru](https://gitweb.gentoo.org/repo/proj/guru.git/tree/media-libs/wivrn)
- [NixOS](https://search.nixos.org/packages?channel=25.11&show=wivrn)
+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();
+1 -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
-1
View File
@@ -1329,7 +1329,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);
+4 -4
View File
@@ -576,10 +576,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 +589,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 +600,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()))
+2 -15
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())
+10 -10
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()))
@@ -759,8 +757,10 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
{
if (system.hand_tracking_supported())
{
left_hand = session.create_hand_tracker(XR_HAND_LEFT_EXT);
right_hand = session.create_hand_tracker(XR_HAND_RIGHT_EXT);
if (not left_hand)
left_hand = session.create_hand_tracker(XR_HAND_LEFT_EXT);
if (not right_hand)
right_hand = session.create_hand_tracker(XR_HAND_RIGHT_EXT);
}
}
else
+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.
+1 -1
View File
@@ -58,7 +58,7 @@
# Keep in sync with CMakeLists.txt monado rev
rev = lib.strings.trim (builtins.readFile ./monado-rev);
# Nix will output the correct hash when it doesn't match
hash = "sha256-wGqvTI/X22apc8XCN3GCGQClHfBW5xk73mZnwWvHtyI=";
hash = "sha256-aIHry5C30pZVIkB5fptJ0Ncbmg8EKf0M7evB4IJZEI0=";
};
};
+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 -1
View File
@@ -1 +1 @@
723652b545a79609f9f04cb89fcbf807d9d6451a
ee655a920cb4b50bafa2af2c92333a503e40cae6
@@ -1,7 +1,7 @@
From 2884795b7d352e3e45348473a17660a568260d6e 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/8] c/multi: early wake of compositor
Subject: [PATCH 1/9] c/multi: early wake of compositor
---
.../compositor/multi/comp_multi_compositor.c | 14 +++++++++
@@ -1,17 +1,17 @@
From 8d22720c9574146f7115f5ba7ac39f3c4e4f48ae 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/8] Use extern socket fd
Subject: [PATCH 2/9] Use extern socket fd
---
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/xrt/ipc/server/ipc_server_mainloop_linux.c b/src/xrt/ipc/server/ipc_server_mainloop_linux.c
index 36bf3e31d..e40447bb2 100644
index 777a31e96..9235375e6 100644
--- a/src/xrt/ipc/server/ipc_server_mainloop_linux.c
+++ b/src/xrt/ipc/server/ipc_server_mainloop_linux.c
@@ -48,6 +48,8 @@
@@ -49,6 +49,8 @@
#endif
@@ -20,7 +20,7 @@ index 36bf3e31d..e40447bb2 100644
/*
*
* Static functions.
@@ -56,6 +58,12 @@
@@ -57,6 +59,12 @@
static int
get_systemd_socket(struct ipc_server_mainloop *ml, int *out_fd)
{
@@ -1,7 +1,7 @@
From dc8c6b0fdd002631827528b0cd831e762cf74c31 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/8] change environment blend mode selection logic
Subject: [PATCH 3/9] change environment blend mode selection logic
---
src/xrt/compositor/multi/comp_multi_system.c | 26 +++++++++++++-------
@@ -1,7 +1,7 @@
From f4b4c07740dcc58438340171ec473570b002b379 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/8] st/oxr: forward 0 refresh rate
Subject: [PATCH 4/9] st/oxr: forward 0 refresh rate
---
src/xrt/compositor/main/comp_compositor.c | 2 +-
@@ -22,7 +22,7 @@ index b6c4947bf..0e8ed02b7 100644
return result;
}
diff --git a/src/xrt/state_trackers/oxr/oxr_api_session.c b/src/xrt/state_trackers/oxr/oxr_api_session.c
index 587cdf28f..b1f96df54 100644
index 09297f885..9f3a7ebc2 100644
--- a/src/xrt/state_trackers/oxr/oxr_api_session.c
+++ b/src/xrt/state_trackers/oxr/oxr_api_session.c
@@ -455,15 +455,11 @@ oxr_xrRequestDisplayRefreshRateFB(XrSession session, float displayRefreshRate)
@@ -1,14 +1,14 @@
From 73f329eaba1e46bf62ff6579e27cd39f0d9e6730 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/8] Replace distortion with foveation
Subject: [PATCH 5/9] Replace distortion with foveation
---
src/xrt/compositor/main/comp_renderer.c | 6 +-
src/xrt/compositor/main/comp_target.h | 3 +-
src/xrt/compositor/render/CMakeLists.txt | 2 +-
src/xrt/compositor/render/render_compute.c | 410 +++++++-----------
src/xrt/compositor/render/render_interface.h | 95 ++--
src/xrt/compositor/render/render_interface.h | 94 ++--
src/xrt/compositor/render/render_resources.c | 106 ++---
src/xrt/compositor/shaders/CMakeLists.txt | 2 +-
src/xrt/compositor/shaders/clear.comp | 4 +-
@@ -17,7 +17,7 @@ Subject: [PATCH 5/8] Replace distortion with foveation
.../compositor/util/comp_high_level_render.h | 9 +-
src/xrt/compositor/util/comp_render.h | 11 +-
src/xrt/compositor/util/comp_render_cs.c | 112 ++---
13 files changed, 356 insertions(+), 592 deletions(-)
13 files changed, 355 insertions(+), 592 deletions(-)
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
index f6c403015..ff9728a59 100644
@@ -647,10 +647,10 @@ index 62d7138b9..44c3f0aee 100644
.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
.image = target_image,
diff --git a/src/xrt/compositor/render/render_interface.h b/src/xrt/compositor/render/render_interface.h
index 2b7893881..3c59645dc 100644
index 8a198707f..a4b5c53a2 100644
--- a/src/xrt/compositor/render/render_interface.h
+++ b/src/xrt/compositor/render/render_interface.h
@@ -82,12 +82,8 @@ extern "C" {
@@ -83,12 +83,8 @@ extern "C" {
#define RENDER_MAX_LAYER_RUNS_SIZE (XRT_MAX_VIEWS)
#define RENDER_MAX_LAYER_RUNS_COUNT(RENDER_RESOURCES) (RENDER_RESOURCES->view_count)
@@ -665,7 +665,7 @@ index 2b7893881..3c59645dc 100644
//! The binding that the layer projection and quad shader have their UBO on.
#define RENDER_BINDING_LAYER_SHARED_UBO 0
@@ -120,12 +116,6 @@ extern "C" {
@@ -121,12 +117,6 @@ extern "C" {
uint32_t
render_max_layers_capable(const struct vk_bundle *vk, bool use_compute, uint32_t desired_max_layers);
@@ -678,7 +678,7 @@ index 2b7893881..3c59645dc 100644
/*!
* Calculates a timewarp matrix which takes in NDC coords and gives out results
* in [-1, 1] space that needs a perspective divide.
@@ -465,7 +455,8 @@ struct render_resources
@@ -466,7 +456,8 @@ struct render_resources
uint32_t distortion_binding;
//! Writing the image out too.
@@ -688,7 +688,7 @@ index 2b7893881..3c59645dc 100644
//! Uniform data binding.
uint32_t ubo_binding;
@@ -502,9 +493,6 @@ struct render_resources
@@ -503,9 +494,6 @@ struct render_resources
//! Doesn't depend on target so is static.
VkPipeline pipeline;
@@ -698,7 +698,7 @@ index 2b7893881..3c59645dc 100644
//! Target info.
struct render_buffer ubo;
} distortion;
@@ -526,17 +514,11 @@ struct render_resources
@@ -527,17 +515,11 @@ struct render_resources
//! Transform to go from UV to tangle angles.
struct xrt_normalized_rect uv_to_tanangle[XRT_MAX_VIEWS];
@@ -720,15 +720,7 @@ index 2b7893881..3c59645dc 100644
} distortion;
};
@@ -1262,6 +1244,7 @@ struct render_compute_layer_ubo_data
//! Timewarp matrices
struct xrt_matrix_4x4 transforms_timewarp[RENDER_MAX_LAYERS];
+
/*!
* For quad layers
*/
@@ -1307,6 +1290,14 @@ struct render_compute_distortion_ubo_data
@@ -1315,6 +1297,14 @@ struct render_compute_distortion_ubo_data
struct xrt_matrix_4x4 transform_timewarp_scanout_end[XRT_MAX_VIEWS];
};
@@ -743,7 +735,7 @@ index 2b7893881..3c59645dc 100644
/*!
* Init struct and create resources needed for compute rendering.
*
@@ -1360,7 +1351,8 @@ render_compute_layers(struct render_compute *render,
@@ -1368,7 +1358,8 @@ render_compute_layers(struct render_compute *render,
VkSampler src_samplers[RENDER_MAX_IMAGES_SIZE],
VkImageView src_image_views[RENDER_MAX_IMAGES_SIZE],
uint32_t num_srcs,
@@ -753,7 +745,7 @@ index 2b7893881..3c59645dc 100644
const struct render_viewport_data *view,
bool timewarp);
@@ -1368,44 +1360,14 @@ render_compute_layers(struct render_compute *render,
@@ -1376,44 +1367,14 @@ render_compute_layers(struct render_compute *render,
* @public @memberof render_compute
*/
void
@@ -806,7 +798,7 @@ index 2b7893881..3c59645dc 100644
/*!
* @public @memberof render_compute
@@ -1413,7 +1375,8 @@ render_compute_projection_no_timewarp(struct render_compute *render,
@@ -1421,7 +1382,8 @@ render_compute_projection_no_timewarp(struct render_compute *render,
void
render_compute_clear(struct render_compute *render,
VkImage target_image,
@@ -817,7 +809,7 @@ index 2b7893881..3c59645dc 100644
diff --git a/src/xrt/compositor/render/render_resources.c b/src/xrt/compositor/render/render_resources.c
index d28caaed8..5232a774d 100644
index e1b4f0916..9a993dc81 100644
--- a/src/xrt/compositor/render/render_resources.c
+++ b/src/xrt/compositor/render/render_resources.c
@@ -184,14 +184,15 @@ init_mesh_ubo_buffers(struct vk_bundle *vk, struct render_buffer ubo[XRT_MAX_VIE
@@ -906,7 +898,7 @@ index d28caaed8..5232a774d 100644
};
VkDescriptorSetLayoutCreateInfo set_layout_info = {
@@ -295,12 +309,6 @@ struct compute_layer_params
@@ -294,12 +308,6 @@ struct compute_layer_params
uint32_t image_array_size;
};
@@ -919,7 +911,7 @@ index d28caaed8..5232a774d 100644
XRT_CHECK_RESULT static VkResult
create_compute_layer_pipeline(struct vk_bundle *vk,
VkPipelineCache pipeline_cache,
@@ -345,35 +353,15 @@ create_compute_distortion_pipeline(struct vk_bundle *vk,
@@ -343,35 +351,15 @@ create_compute_distortion_pipeline(struct vk_bundle *vk,
VkPipelineCache pipeline_cache,
VkShaderModule shader,
VkPipelineLayout pipeline_layout,
@@ -956,7 +948,7 @@ index d28caaed8..5232a774d 100644
out_compute_pipeline); // out_compute_pipeline
}
@@ -539,8 +527,9 @@ render_resources_init(struct render_resources *r,
@@ -537,8 +525,9 @@ render_resources_init(struct render_resources *r,
}
r->compute.src_binding = 0;
r->compute.distortion_binding = 1;
@@ -967,7 +959,7 @@ index d28caaed8..5232a774d 100644
r->compute.layer.image_array_size =
MIN(vk->limits.max_per_stage_descriptor_sampled_images, RENDER_MAX_IMAGES_SIZE);
@@ -834,9 +823,9 @@ render_resources_init(struct render_resources *r,
@@ -832,9 +821,9 @@ render_resources_init(struct render_resources *r,
struct vk_descriptor_pool_info compute_pool_info = {
.uniform_per_descriptor_count = 1,
// layer images
@@ -979,7 +971,7 @@ index d28caaed8..5232a774d 100644
.descriptor_count = compute_descriptor_count,
.freeable = false,
};
@@ -856,7 +845,8 @@ render_resources_init(struct render_resources *r,
@@ -854,7 +843,8 @@ render_resources_init(struct render_resources *r,
ret = create_compute_layer_descriptor_set_layout( //
vk, // vk_bundle
r->compute.src_binding, // src_binding,
@@ -989,7 +981,7 @@ index d28caaed8..5232a774d 100644
r->compute.ubo_binding, // ubo_binding,
r->compute.layer.image_array_size, // source_images_count,
&r->compute.layer.descriptor_set_layout); // out_descriptor_set_layout
@@ -937,7 +927,8 @@ render_resources_init(struct render_resources *r,
@@ -933,7 +923,8 @@ render_resources_init(struct render_resources *r,
vk, // vk_bundle
r->compute.src_binding, // src_binding,
r->compute.distortion_binding, // distortion_binding,
@@ -999,7 +991,7 @@ index d28caaed8..5232a774d 100644
r->compute.ubo_binding, // ubo_binding,
&r->compute.distortion.descriptor_set_layout); // out_descriptor_set_layout
VK_CHK_WITH_RET(ret, "create_compute_distortion_descriptor_set_layout", false);
@@ -954,39 +945,16 @@ render_resources_init(struct render_resources *r,
@@ -950,39 +941,16 @@ render_resources_init(struct render_resources *r,
VK_NAME_PIPELINE_LAYOUT(vk, r->compute.distortion.pipeline_layout,
"render_resources compute distortion pipeline layout");
@@ -1039,7 +1031,7 @@ index d28caaed8..5232a774d 100644
size_t distortion_ubo_size = sizeof(struct render_compute_distortion_ubo_data);
ret = render_buffer_init( //
@@ -1039,15 +1007,8 @@ render_resources_init(struct render_resources *r,
@@ -1035,15 +1003,8 @@ render_resources_init(struct render_resources *r,
* Compute distortion textures, not created until later.
*/
@@ -1057,7 +1049,7 @@ index d28caaed8..5232a774d 100644
/*
@@ -1124,7 +1085,6 @@ render_resources_fini(struct render_resources *r)
@@ -1120,7 +1081,6 @@ render_resources_fini(struct render_resources *r)
D(DescriptorSetLayout, r->compute.distortion.descriptor_set_layout);
D(Pipeline, r->compute.distortion.pipeline);
@@ -1066,10 +1058,10 @@ index d28caaed8..5232a774d 100644
D(Pipeline, r->compute.clear.pipeline);
diff --git a/src/xrt/compositor/shaders/CMakeLists.txt b/src/xrt/compositor/shaders/CMakeLists.txt
index d8aca97e2..ffc79ca6e 100644
index c8c3ce3ab..b5d899cc9 100644
--- a/src/xrt/compositor/shaders/CMakeLists.txt
+++ b/src/xrt/compositor/shaders/CMakeLists.txt
@@ -25,7 +25,7 @@ set(SHADERS
@@ -26,7 +26,7 @@ set(SHADERS
spirv_shaders(
SHADER_HEADERS
SPIRV_VERSION
@@ -1415,7 +1407,7 @@ index bd7ab2957..c2b95d68d 100644
bool do_timewarp);
diff --git a/src/xrt/compositor/util/comp_render_cs.c b/src/xrt/compositor/util/comp_render_cs.c
index 6e93eabe8..4a304c6f7 100644
index a2b6e0d01..0868e515b 100644
--- a/src/xrt/compositor/util/comp_render_cs.c
+++ b/src/xrt/compositor/util/comp_render_cs.c
@@ -370,7 +370,8 @@ crc_clear_output(struct render_compute *render, const struct comp_render_dispatc
@@ -1,17 +1,17 @@
From 9d1294834f49fc90ea22f5d841d7c0e5c0c1045d 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/8] d/steamvr_lh: prevent crash on vive pro2/WiVRn
Subject: [PATCH 6/9] d/steamvr_lh: prevent crash on vive pro2/WiVRn
---
src/xrt/drivers/steamvr_lh/steamvr_lh.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
index 25c68a0ea..86baa9fd4 100644
index 0fbe4f563..dc9e3d3a5 100644
--- a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
+++ b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
@@ -913,7 +913,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out
@@ -954,7 +954,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out
// Include the HMD
if (svrs->ctx->hmd) {
@@ -1,18 +1,18 @@
From b9af535cf229acdbf7f1b534e9804c1b4e3fa3e1 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/8] st/oxr: push XrEventDataInteractionProfileChanged when
Subject: [PATCH 7/9] st/oxr: push XrEventDataInteractionProfileChanged when
profile changes to NULL
---
src/xrt/state_trackers/oxr/oxr_input.c | 15 +++++----------
src/xrt/state_trackers/oxr/actions/oxr_input.c | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/src/xrt/state_trackers/oxr/oxr_input.c b/src/xrt/state_trackers/oxr/oxr_input.c
index df2b479eb..c4b36ba81 100644
--- a/src/xrt/state_trackers/oxr/oxr_input.c
+++ b/src/xrt/state_trackers/oxr/oxr_input.c
@@ -1881,26 +1881,21 @@ oxr_session_update_action_bindings(struct oxr_logger *log, struct oxr_session *s
diff --git a/src/xrt/state_trackers/oxr/actions/oxr_input.c b/src/xrt/state_trackers/oxr/actions/oxr_input.c
index 349c9adcb..667163142 100644
--- a/src/xrt/state_trackers/oxr/actions/oxr_input.c
+++ b/src/xrt/state_trackers/oxr/actions/oxr_input.c
@@ -1945,26 +1945,21 @@ oxr_session_update_action_bindings(struct oxr_logger *log, struct oxr_session *s
}
}
@@ -1,40 +0,0 @@
From 02206ede3aae832be5024263a805cafee2264080 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/8] 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,83 @@
From 3ec6ede2610ebbaa4ac6e9a76b387a2867db13a2 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 | 51 +++++++++++++++++++++----
1 file changed, 43 insertions(+), 8 deletions(-)
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
index ff9728a59..1f01662b6 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,31 @@ 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);
+ if (proj_layer) {
+ 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,17 +1,17 @@
From 6f17ee6c92b62a2418164f627775f267eb6d19fc 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] don't verify GL stuff
Subject: [PATCH 9/9] don't verify GL stuff
---
src/xrt/state_trackers/oxr/oxr_verify.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/src/xrt/state_trackers/oxr/oxr_verify.c b/src/xrt/state_trackers/oxr/oxr_verify.c
index e9197d501..71f81c954 100644
index 68906d7de..239f87fba 100644
--- a/src/xrt/state_trackers/oxr/oxr_verify.c
+++ b/src/xrt/state_trackers/oxr/oxr_verify.c
@@ -608,16 +608,6 @@ oxr_verify_XrGraphicsBindingOpenGLXlibKHR(struct oxr_logger *log, const XrGraphi
@@ -610,16 +610,6 @@ oxr_verify_XrGraphicsBindingOpenGLXlibKHR(struct oxr_logger *log, const XrGraphi
"XrGraphicsBindingOpenGLXlibKHR::glxDrawable is NULL");
}
@@ -29,5 +29,5 @@ index e9197d501..71f81c954 100644
}
--
2.52.0
2.53.0
+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},
+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,
+1 -2
View File
@@ -260,8 +260,7 @@ std::pair<XrTime, xrt_space_relation> pose_list::get_at(XrTime at_timestamp_ns)
if (orientation.y)
{
if (auto norm2 = orientation.y->squaredNorm();
norm2 > 0.9 and norm2 < 1.1)
if (auto norm2 = orientation.y->squaredNorm(); norm2 > 0.1)
{
flags(XRT_SPACE_RELATION_ORIENTATION_VALID_BIT | XRT_SPACE_RELATION_ORIENTATION_TRACKED_BIT);
+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:
+1 -1
View File
@@ -567,7 +567,7 @@ std::optional<wivrn::video_encoder::data> wivrn::video_encoder_vulkan::encode(ui
// We don't copy the whole buffer, but an estimate of how much we'll need
// If that wasn't enough, we have to issue a second copy command for the rest
if (size > slot_item.copy_size)
if (slot_item.host_buffer and size > slot_item.copy_size)
{
U_LOG_D("additional copy needed: %ld", size - slot_item.copy_size);
const bool main_queue = *slot_item.transfer_cmd_buf;
+3 -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);
}
}
}