Merge branch 'sync' of https://github.com/Vindicus999/WiVRn into sync

This commit is contained in:
Vindicus999
2026-07-01 07:09:08 -04:00
52 changed files with 2365 additions and 289 deletions
+7 -7
View File
@@ -18,7 +18,7 @@ jobs:
buildtype: ['Release', 'Debug', 'DebugWithValidationLayer']
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
# Checkout from upstream instead of WiVRn-APK to ensure the GIT_DESC variable is set correctly
repository: 'Vindicus999/WiVRn'
@@ -26,7 +26,7 @@ jobs:
fetch-depth: 0
- name: Prepare Vulkan SDK
uses: humbletim/setup-vulkan-sdk@286ed76c72de45dbf50c515779cf4ca2f6aa3944
uses: humbletim/setup-vulkan-sdk@v1.2.1
with:
vulkan-query-version: 1.3.296.0
vulkan-components: Glslang, SPIRV-Tools
@@ -72,7 +72,7 @@ jobs:
find debug -name libopenxr_loader.so -delete
- name: Archive APK
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: apk-${{ (github.event_name == 'pull_request' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }}
path: apk/*.apk
@@ -80,7 +80,7 @@ jobs:
- name: Archive debug symbols
if: ${{ matrix.buildtype != 'Release' }}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: symbols-${{ matrix.buildtype }}
path: debug/**/*.so
@@ -94,7 +94,7 @@ jobs:
steps:
- name: Download APK artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
path: apk
pattern: 'apk-*'
@@ -109,7 +109,7 @@ jobs:
# done
- name: Download APK debug artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
path: symbols
pattern: 'symbols-*'
@@ -121,7 +121,7 @@ jobs:
zip -r ../debug-symbols.zip .
- name: APK Release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3
with:
token: ${{ secrets.DOWNSTREAM_GITHUB_TOKEN }}
tag_name: "apk-${{ github.sha }}"
+25 -34
View File
@@ -31,21 +31,21 @@ jobs:
packages: libsystemd-dev
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Apt dependencies
uses: awalsh128/cache-apt-pkgs-action@v1.6.0
uses: awalsh128/cache-apt-pkgs-action@v1.6.1
with:
packages: ccache ${{matrix.config.packages}} ${{ startsWith(matrix.config.preset, 'server') && env.SERVER_DEPS || ''}}
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
uses: hendrikmuhs/ccache-action@v1.2.23
with:
key: linux-${{matrix.config.preset}}
job-summary: ""
restore-keys: linux-
- uses: actions/cache@v4
- uses: actions/cache@v5
with:
key: cmake-linux-${{matrix.config.preset}}
path: |
@@ -85,7 +85,7 @@ jobs:
- name: Package build dependencies
if: ${{ matrix.config.preset == 'server' }}
# For easier packaging, build dependencies are made available as a separate archive
run: (cd ${{github.workspace}}/cmake-fetch ; tar --create --xz *-src) > ${{github.workspace}}/server-build-deps.tar.xz
run: cd ${{github.workspace}}/cmake-fetch ; tar --create --xz --exclude .git --file ${{github.workspace}}/server-build-deps.tar.xz *-src
- name: Build
# Build your program with the given configuration
@@ -93,7 +93,7 @@ jobs:
- name: Publish build dependencies
if: ${{ matrix.config.preset == 'server' }}
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: server-build-deps
path: server-build-deps.tar.xz
@@ -115,14 +115,14 @@ jobs:
if: ${{ vars.APK_ONLY == '' }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Prepare
run: |
apt-get update
apt-get install --yes curl wget sudo jq cmake gcc g++ git pkgconf libboost-all-dev libkirigami-dev gettext libarchive-dev nlohmann-json3-dev qcoro-qt6-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev libvulkan-dev libssl-dev librsvg2-dev extra-cmake-modules qml6-module-org-kde-kirigamiaddons-formcard
- uses: actions/cache@v4
- uses: actions/cache@v5
with:
key: cmake-linux-dashboard
path: |
@@ -157,7 +157,7 @@ jobs:
options: --privileged
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -168,22 +168,13 @@ jobs:
tools/gen_flatpak_manifest.py --gitlocal --out flatpak
cat flatpak/io.github.wivrn.wivrn.yml
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6.4
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6.7
with:
manifest-path: flatpak/io.github.wivrn.wivrn.yml
bundle: wivrn-server.flatpak
upload-artifact: false
# Upload manually instead of using flatpak/flatpak-github-actions/flatpak-builder because
# it uses upload-artifact@v3
- name: Publish artifact
uses: actions/upload-artifact@v4
with:
name: wivrn-flatpak-x86_64
path: wivrn-server.flatpak
- name: Debug bundle
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
if: failure()
with:
name: flatpak-debug
@@ -197,7 +188,7 @@ jobs:
if: ${{ vars.APK_ONLY == '' }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -215,7 +206,7 @@ jobs:
buildtype: ['Release', 'Debug', 'DebugWithValidationLayer', 'Oculus']
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0
@@ -226,7 +217,7 @@ jobs:
vulkan-components: Glslang, SPIRV-Tools
vulkan-use-cache: true
- uses: actions/cache@v4
- uses: actions/cache@v5
with:
key: cmake-android-${{matrix.buildtype}}
path: |
@@ -316,7 +307,7 @@ jobs:
assemble${{ matrix.buildtype }}
- name: Upload build dir
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
if: failure()
with:
name: android-cxx-debug-${{ matrix.buildtype }}
@@ -333,7 +324,7 @@ jobs:
find debug -name libopenxr_loader.so -delete
- name: Archive APK
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
if: ${{ matrix.buildtype != 'Oculus' }}
with:
name: apk-${{ (steps.secret-check.outputs.available == 'false' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }}
@@ -341,7 +332,7 @@ jobs:
retention-days: 30
- name: Archive debug symbols
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: symbols-${{ matrix.buildtype }}
path: debug/**/*.so
@@ -385,7 +376,7 @@ jobs:
sudo dpkg --install KTX-Software-4.3.2-Linux-x86_64.deb
npm install --global @gltf-transform/cli
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0
path: wivrn
@@ -427,7 +418,7 @@ jobs:
run: dpkg-buildpackage --build=binary --no-sign
- name: Publish package
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: wivrn-${{ matrix.distro }}
path: |
@@ -445,7 +436,7 @@ jobs:
if: success() && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0
path: wivrn
@@ -460,7 +451,7 @@ jobs:
echo "available=false" >> $GITHUB_OUTPUT;
fi
- uses: actions/checkout@v4
- uses: actions/checkout@v6
if: ${{ steps.flathub-token-check.outputs.available == 'true' }}
with:
fetch-depth: 0
@@ -469,19 +460,19 @@ jobs:
token: ${{ secrets.FLATHUB_TOKEN }}
- name: Download artifacts (APK)
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: apk-Release
path: apk
- name: Download artifacts (flatpak)
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: wivrn-flatpak-x86_64
name: wivrn-server-x86_64.flatpak
path: flatpak
- name: Release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3
with:
tag_name: ${{ inputs.ref }}
generate_release_notes: true
+1 -1
View File
@@ -15,7 +15,7 @@ jobs:
- 'common'
- 'tools/wireshark'
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@v4.16.0
with:
+1 -1
View File
@@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-24.04
if: ${{ vars.APK_ONLY == '' }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Install dependencies
run: |
+11 -2
View File
@@ -23,6 +23,14 @@ include(FetchContent)
include(ExternalProject)
include(GNUInstallDirs)
set(GIT_TAG "" CACHE STRING "Build for a tag (from git if empty)")
set(GIT_DESC "" CACHE STRING "Version to show in UI (from git if empty, exclusive with GIT_TAG)")
set(GIT_COMMIT "" CACHE STRING "Git SHA used to fetch client APK (from git if empty, exclusive with GIT_TAG)")
if (GIT_TAG AND (GIT_DESC OR GIT_COMMIT))
message(FATAL_ERROR "cannot use GIT_DESC or GIT_COMMIT when using GIT_TAG")
endif()
option(WIVRN_USE_SYSTEM_FREETYPE "Use system FreeType" ON)
option(WIVRN_USE_SYSTEM_BOOST "Use system Boost headers" ON)
option(WIVRN_USE_SYSTEM_OPENXR "Use system OpenXR headers" ON)
@@ -54,7 +62,7 @@ option(WIVRN_USE_X264 "Enable x264 software encoder" ON)
option(WIVRN_USE_PIPEWIRE "Enable pipewire backend" ON)
option(WIVRN_USE_PULSEAUDIO "Enable pulseaudio backend" OFF)
set(OVR_COMPAT_SEARCH_PATH "/opt/xrizer:/usr/local/lib/OpenComposite:/usr/lib/OpenComposite:/opt/OpenComposite:/opt/opencomposite"
set(OVR_COMPAT_SEARCH_PATH "/opt/xrizer:/usr/local/lib/OpenComposite:/usr/lib/OpenComposite:/opt/OpenComposite:/opt/opencomposite:/opt/VapoR:/usr/local/lib/VapoR"
CACHE STRING "List of places to search for the OpenVR compatibility layer, separated by :")
option(WIVRN_FEATURE_DEBUG_GUI "Enable Monado debug GUI" OFF)
@@ -185,7 +193,7 @@ endif()
if (WIVRN_BUILD_CLIENT)
find_program(RSVG_CONVERT rsvg-convert REQUIRED)
find_program(TOKTX toktx REQUIRED)
find_program(KTX ktx REQUIRED)
if (WIVRN_COMPRESS_GLB)
find_program(GLTF_TRANSFORM gltf-transform REQUIRED)
@@ -285,6 +293,7 @@ add_custom_target(wivrn-version ALL
-D OUTPUT_FILE=${CMAKE_BINARY_DIR}/version.cpp
-D INPUT_FILE_1=${CMAKE_CURRENT_SOURCE_DIR}/server/u_git_tag.cpp.in
-D OUTPUT_FILE_1=${CMAKE_BINARY_DIR}/u_git_tag.cpp
-D GIT_TAG="${GIT_TAG}"
-D GIT_DESC="${GIT_DESC}"
-D GIT_COMMIT="${GIT_COMMIT}"
-P ${CMAKE_SOURCE_DIR}/cmake/GitVersion.cmake
+4
View File
@@ -169,6 +169,10 @@ If the server list is empty in the headset app:
- Navigate to `${XDG_STATE_HOME}/wivrn/wivrn-dashboard` (with fallback to `${HOME}/.local/state` for `${XDG_STATE_HOME}`, or
- For flatpak, navigate to `${HOME}/.var/app/io.github.wivrn.wivrn/.local/state/wivrn/wivrn-dashboard`.</details>
<details><summary>My NVIDIA GPU P-State is limited to P2 instead of reaching the highest P0 while using the NVIDIA NVENC encoder</summary>
- See [nvenc](docs/nvenc.md) for troubleshooting.</details>
<details><summary>I have high motion latency, black borders following my view, hear corrupted audio or see a corrupted, pixelated image</summary>
- When connecting through USB, make sure the headset isn't connected through WiFi (switch off WiFi)
+12
View File
@@ -123,6 +123,18 @@ 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;
constexpr float gui_max_foveation_speed = 2; // Maximum speed (@ 1m) when changing the foveation distance with the thumbstick
constexpr float gui_min_foveation_distance = 0.5;
constexpr float gui_max_foveation_distance = 100;
constexpr float gui_min_foveation_pitch = -M_PI / 3;
constexpr float gui_max_foveation_pitch = M_PI / 3;
constexpr float gui_max_layer_speed = 10; // Maximum speed (@ 1m) when changing the GUI distance with the thumbstick
constexpr float gui_min_layer_distance = 0.5;
constexpr float gui_max_layer_distance = 3;
} // namespace constants::stream
namespace constants::style
+1 -1
View File
@@ -95,7 +95,7 @@ void libcurl::curl_thread_fn()
};
#endif
std::string user_agent = std::string("WiVRn/") + wivrn::git_version;
std::string user_agent = std::string("WiVRn/") + wivrn::display_version();
// We can't use auto here because of curl_easy_setopt
size_t (*write_callback)(void *, size_t, size_t, void *) = [](void * buffer, size_t size, size_t nmemb, void * userp) -> size_t {
+1
View File
@@ -84,6 +84,7 @@ bool refresh_rate(
rate == config.preferred_refresh_rate and divider == config.fps_divider,
ImGuiSelectableFlags_SelectOnRelease))
{
spdlog::info("configured refresh rate: {}", rate);
session.set_refresh_rate(rate);
config.preferred_refresh_rate = rate;
config.fps_divider = divider;
+35 -40
View File
@@ -506,6 +506,8 @@ void scenes::stream::on_focused()
}
recenter_left = get_action("recenter_left").first;
recenter_right = get_action("recenter_right").first;
gui_distance_left = get_action("gui_distance_left").first;
gui_distance_right = get_action("gui_distance_right").first;
settings_adjust = get_action("settings_adjust").first;
foveation_distance = get_action("foveation_distance").first;
foveation_ok = get_action("foveation_ok").first;
@@ -564,7 +566,7 @@ void scenes::stream::push_blit_handle(shard_accumulator * decoder, std::shared_p
std::swap(handle, decoders[stream].latest_frames[handle->feedback.frame_index % decoders[stream].latest_frames.size()]);
}
if (state_ != state::streaming and not(decoders[0].empty() and decoders[1].empty()))
if (state_ != state::streaming and not(decoders[0].empty() or decoders[1].empty()))
{
set_state(state::streaming);
spdlog::info("Stream scene ready at t={}", instance.now());
@@ -679,52 +681,29 @@ std::shared_ptr<shard_accumulator::blit_handle> scenes::stream::accumulator_imag
return frame;
}
void scenes::stream::update_gui_position(xr::spaces controller)
void scenes::stream::update_gui_position(xr::spaces controller, float predicted_display_period)
{
std::optional<std::pair<glm::vec3, glm::quat>> aim;
if (application::get_hmd_traits().view_locate)
{
aim = application::locate_controller(
application::space(controller),
application::space(xr::spaces::view),
predicted_display_time);
}
else
{
// Pico fails to find its controllers within view space, so use the head position in
// world space as a reference
aim = application::locate_controller(
application::space(controller),
application::space(xr::spaces::world),
predicted_display_time);
auto head_position = application::locate_controller(application::space(xr::spaces::view),
application::space(xr::spaces::world),
predicted_display_time);
if (not(aim and head_position))
return;
aim->first = glm::conjugate(head_position->second) * (aim->first - head_position->first);
aim->second = glm::conjugate(head_position->second) * aim->second;
}
std::optional<std::pair<glm::vec3, glm::quat>> aim = application::locate_controller(
application::space(controller),
application::space(xr::spaces::world),
predicted_display_time);
if (not aim)
return;
auto [offset_position, offset_orientation] = input->offset[controller];
auto head_controller_position = aim->first + glm::mat3_cast(aim->second * offset_orientation) * offset_position;
auto head_controller_orientation = aim->second * offset_orientation;
auto head_controller_direction = -glm::column(glm::mat3_cast(head_controller_orientation), 2);
auto world_controller_position = aim->first + glm::mat3_cast(aim->second * offset_orientation) * offset_position;
auto world_controller_orientation = aim->second * offset_orientation;
auto world_controller_direction = -glm::column(glm::mat3_cast(world_controller_orientation), 2);
if (not recentering_context)
{
// First frame of recentering: get the GUI position relative to the controller
// Compute the intersection of the ray with the GUI
auto gui_controller_direction = glm::conjugate(head_gui_orientation) * head_controller_direction;
auto gui_controller_position = glm::conjugate(head_gui_orientation) * (head_controller_position - head_gui_position);
auto gui_controller_direction = glm::conjugate(world_gui_orientation) * world_controller_direction;
auto gui_controller_position = glm::conjugate(world_gui_orientation) * (world_controller_position - world_gui_position);
float lambda = -gui_controller_position.z / gui_controller_direction.z;
auto gui_intersection = gui_controller_position + lambda * gui_controller_direction;
@@ -739,8 +718,8 @@ void scenes::stream::update_gui_position(xr::spaces controller)
}
else
{
glm::vec3 controller_gui_position = glm::conjugate(head_controller_orientation) * (head_gui_position - head_controller_position);
glm::quat controller_gui_orientation = glm::conjugate(head_controller_orientation) * head_gui_orientation;
glm::vec3 controller_gui_position = glm::conjugate(world_controller_orientation) * (world_gui_position - world_controller_position);
glm::quat controller_gui_orientation = glm::conjugate(world_controller_orientation) * world_gui_orientation;
recentering_context.emplace(controller, controller_gui_position, controller_gui_orientation);
}
@@ -748,10 +727,16 @@ void scenes::stream::update_gui_position(xr::spaces controller)
else
{
// Subsequent frames of recentering: keep the GUI locked to the controller
auto [_, controller_gui_position, controller_gui_orientation] = *recentering_context;
auto & [_, controller_gui_position, controller_gui_orientation] = *recentering_context;
head_gui_position = head_controller_position + head_controller_orientation * controller_gui_position;
head_gui_orientation = head_controller_orientation * controller_gui_orientation;
if (auto gui_distance = application::read_action_float(controller == xr::spaces::aim_left ? gui_distance_left : gui_distance_right))
{
controller_gui_position.z *= std::pow(constants::stream::gui_max_layer_speed, gui_distance->second * predicted_display_period);
controller_gui_position.z = -std::clamp<float>(-controller_gui_position.z, constants::stream::gui_min_layer_distance, constants::stream::gui_max_layer_distance);
}
world_gui_position = world_controller_position + world_controller_orientation * controller_gui_position;
world_gui_orientation = world_controller_orientation * controller_gui_orientation;
}
}
@@ -792,7 +777,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
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 state_ == state::shutdown)
if (not frame_state.shouldRender or decoders[0].empty() or decoders[1].empty() or state_ == state::shutdown)
{
// TODO: stop/restart video stream
session.begin_frame();
@@ -866,7 +851,11 @@ void scenes::stream::render(const XrFrameState & frame_state)
{
auto & blit_handle = current_blit_handles[i];
if (not blit_handle)
{
if (i == view_count)
use_alpha = false;
continue;
}
blit_handle->feedback.blitted = instance.now();
if (blit_handle->feedback.blitted - blit_handle->feedback.received_from_decoder > 1'000'000'000)
@@ -1162,6 +1151,7 @@ void scenes::stream::exit()
void scenes::stream::setup(const to_headset::video_stream_description & description)
{
spdlog::info("setup, refresh rate {}", description.refresh_rate);
session.set_refresh_rate(description.refresh_rate);
std::unique_lock lock(decoder_mutex);
@@ -1186,6 +1176,7 @@ void scenes::stream::setup_reprojection_swapchain(uint32_t swapchain_width, uint
assert(swapchain_width);
assert(swapchain_height);
device.waitIdle();
spdlog::info("swapchain setup, refresh rate {}", video_stream_description->refresh_rate);
session.set_refresh_rate(video_stream_description->refresh_rate);
auto views = system.view_configuration_views(viewconfig);
@@ -1230,6 +1221,8 @@ scene::meta & scenes::stream::get_meta_scene()
{"recenter_left", XR_ACTION_TYPE_BOOLEAN_INPUT},
{"recenter_right", XR_ACTION_TYPE_BOOLEAN_INPUT},
{"gui_distance_left", XR_ACTION_TYPE_FLOAT_INPUT},
{"gui_distance_right", XR_ACTION_TYPE_FLOAT_INPUT},
{"settings_adjust", XR_ACTION_TYPE_FLOAT_INPUT},
{"foveation_distance", XR_ACTION_TYPE_FLOAT_INPUT},
@@ -1264,6 +1257,8 @@ scene::meta & scenes::stream::get_meta_scene()
{"recenter_left", "/user/hand/left/input/squeeze/value"},
{"recenter_right", "/user/hand/right/input/squeeze/value"},
{"gui_distance_left", "/user/hand/left/input/thumbstick/y"},
{"gui_distance_right", "/user/hand/right/input/thumbstick/y"},
{"settings_adjust", "/user/hand/right/input/thumbstick/y"},
{"foveation_distance", "/user/hand/left/input/thumbstick/y"},
{"foveation_ok", "/user/hand/right/input/a/click"},
+8 -2
View File
@@ -157,22 +157,28 @@ private:
XrAction plots_toggle_2 = XR_NULL_HANDLE;
XrAction recenter_left = XR_NULL_HANDLE;
XrAction recenter_right = XR_NULL_HANDLE;
XrAction gui_distance_left = XR_NULL_HANDLE;
XrAction gui_distance_right = XR_NULL_HANDLE;
XrAction settings_adjust = XR_NULL_HANDLE;
XrAction foveation_distance = XR_NULL_HANDLE;
XrAction foveation_ok = XR_NULL_HANDLE;
XrAction foveation_cancel = XR_NULL_HANDLE;
// Position of the GUI relative to the view space, in view space axes
// Position of the GUI relative to the view space, in view space axes, used when the GUI is not interactable
glm::vec3 head_gui_position{-0.1, -0.3, -1.2}; // Shift 10cm left by default so that the stats are centered accounting for the tab list
glm::quat head_gui_orientation{1, 0, 0, 0};
// Position of the GUI relative to the world space, in world space axes, used when the GUI is interactable
glm::vec3 world_gui_position;
glm::quat world_gui_orientation;
bool override_foveation_enable;
float override_foveation_pitch; // The pitch is the opposite as the height displayed in the GUI
float override_foveation_distance;
// Which controller is used for recentering and position of the GUI relative to the controller, in controller axes, during recentering
std::optional<std::tuple<xr::spaces, glm::vec3, glm::quat>> recentering_context;
void update_gui_position(xr::spaces controller);
void update_gui_position(xr::spaces controller, float predicted_display_period);
// Keep a reference to the resources needed to blit the images until vkWaitForFences
std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, decoder_count> current_blit_handles;
+32 -9
View File
@@ -17,6 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <glm/ext/quaternion_common.hpp>
#define IMGUI_DEFINE_MATH_OPERATORS
#include "stream.h"
@@ -507,10 +508,10 @@ void scenes::stream::gui_foveation_settings(float predicted_display_period)
float delta_pitch = application::read_action_float(settings_adjust).value_or(std::pair{0, 0}).second * predicted_display_period;
// Maximum speed 2m/s @ 1m
float delta_distance = std::exp(std::log(2) * application::read_action_float(foveation_distance).value_or(std::pair{0, 0}).second * predicted_display_period);
float delta_distance = std::pow(constants::stream::gui_max_foveation_speed, application::read_action_float(foveation_distance).value_or(std::pair{0, 0}).second * predicted_display_period);
override_foveation_pitch = std::clamp<float>(override_foveation_pitch + delta_pitch, -M_PI / 3, M_PI / 3);
override_foveation_distance = std::clamp<float>(override_foveation_distance * delta_distance, 0.5, 100);
override_foveation_pitch = std::clamp<float>(override_foveation_pitch + delta_pitch, constants::stream::gui_min_foveation_pitch, constants::stream::gui_max_foveation_pitch);
override_foveation_distance = std::clamp<float>(override_foveation_distance * delta_distance, constants::stream::gui_min_foveation_distance, constants::stream::gui_max_foveation_distance);
bool ok = application::read_action_bool(foveation_ok).value_or(std::pair{0, false}).second;
bool cancel = application::read_action_bool(foveation_cancel).value_or(std::pair{0, false}).second;
@@ -635,6 +636,24 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
if (auto new_status = next_gui_status.load(); new_status != gui_status)
{
spdlog::info("Switch tab from {} to {}", magic_enum::enum_name(gui_status), magic_enum::enum_name(new_status));
if (not is_gui_interactable() and is_interactable(new_status))
{
if (auto head_position = application::locate_controller(application::space(xr::spaces::view), application::space(xr::spaces::world), predicted_display_time))
{
world_gui_orientation = head_position->second * head_gui_orientation;
world_gui_position = head_position->first + glm::mat3_cast(head_position->second) * head_gui_position;
}
}
else if (is_gui_interactable() and not is_interactable(new_status))
{
if (auto head_position = application::locate_controller(application::space(xr::spaces::view), application::space(xr::spaces::world), predicted_display_time))
{
head_gui_orientation = glm::conjugate(head_position->second) * world_gui_orientation;
head_gui_position = glm::mat3_cast(glm::conjugate(head_position->second)) * (world_gui_position - head_position->first);
}
}
stored_gui_status = gui_status;
gui_status = new_status;
gui_status_last_change = predicted_display_time;
@@ -671,7 +690,7 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
case stream_tab::application_launcher:
break;
}
imgui_ctx->set_controllers_enabled(interactable);
imgui_ctx->set_controllers_enabled(interactable and not recentering_context);
if (interactable)
{
if (system.hand_tracking_supported())
@@ -729,12 +748,16 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
case stream_tab::overlay_only:
case stream_tab::compact:
imgui_ctx->layers()[0].orientation = head_position->second * head_gui_orientation;
imgui_ctx->layers()[0].position = head_position->first + M * head_gui_position;
break;
case stream_tab::stats:
case stream_tab::settings:
case stream_tab::applications:
case stream_tab::application_launcher:
imgui_ctx->layers()[0].orientation = head_position->second * head_gui_orientation;
imgui_ctx->layers()[0].position = head_position->first + M * head_gui_position;
imgui_ctx->layers()[0].orientation = world_gui_orientation;
imgui_ctx->layers()[0].position = world_gui_position;
break;
}
}
@@ -942,14 +965,14 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
}
if (state)
update_gui_position(controller);
update_gui_position(controller, predicted_display_period * 1e-9f);
else
recentering_context.reset();
}
else if (auto state = application::read_action_bool(recenter_left); state and state->second)
update_gui_position(xr::spaces::aim_left);
update_gui_position(xr::spaces::aim_left, predicted_display_period * 1e-9f);
else if (auto state = application::read_action_bool(recenter_right); state and state->second)
update_gui_position(xr::spaces::aim_right);
update_gui_position(xr::spaces::aim_right, predicted_display_period * 1e-9f);
else
recentering_context.reset();
+1
View File
@@ -111,6 +111,7 @@ void scenes::stream::operator()(to_headset::video_stream_description && desc)
void scenes::stream::operator()(to_headset::refresh_rate_change && rate)
{
spdlog::info("refresh rate change request: {}", rate.hz);
session.set_refresh_rate(rate.hz);
std::shared_lock lock(decoder_mutex);
if (video_stream_description)
+1
View File
@@ -304,6 +304,7 @@ void xr::session::set_refresh_rate(float refresh_rate)
{
if (xrRequestDisplayRefreshRateFB)
{
spdlog::info("set refresh rate to {}Hz", refresh_rate);
if (auto res = xrRequestDisplayRefreshRateFB(id, refresh_rate); res != XR_SUCCESS)
spdlog::warn("Refresh rate change failed: {}", xr::to_string(res));
}
+1 -1
View File
@@ -17,7 +17,7 @@ function(wivrn_generate_ktx)
file(MAKE_DIRECTORY ${DEST_DIR})
add_custom_command(OUTPUT ${arg_DESTINATION}
COMMAND ${TOKTX} --encode uastc --uastc_quality 4 --genmipmap --zcmp 20 ${arg_DESTINATION} ${arg_SOURCE}
COMMAND ${KTX} create --encode uastc --uastc-quality 4 --generate-mipmap --zstd 20 --format R8G8B8A8_SRGB ${arg_SOURCE} ${arg_DESTINATION}
DEPENDS ${arg_SOURCE})
if (DEFINED arg_TARGET)
+44 -22
View File
@@ -1,32 +1,54 @@
if (NOT GIT_DESC)
if (GIT_TAG AND (GIT_DESC OR GIT_COMMIT))
message(FATAL_ERROR "cannot use GIT_DESC or GIT_COMMIT when using GIT_TAG")
endif()
if (NOT (GIT_TAG OR GIT_DESC OR GIT_COMMIT))
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --tags --always
OUTPUT_VARIABLE GIT_DESC
COMMAND ${GIT_EXECUTABLE} describe --exact-match --tags
OUTPUT_VARIABLE GIT_TAG
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
string(STRIP "${GIT_DESC}" GIT_DESC)
message(STATUS "Setting version to ${GIT_DESC} from git")
endif()
if (GIT_TAG)
set(GIT_DESC "${GIT_TAG}")
set(GIT_COMMIT "${GIT_TAG}")
set(GIT_TAG true)
message(STATUS "Building for git tag ${GIT_DESC}")
else()
message(STATUS "Setting version to ${GIT_DESC} from parameters")
endif()
if (NOT GIT_DESC)
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --tags --always
OUTPUT_VARIABLE GIT_DESC
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
message(STATUS "Setting version to ${GIT_DESC} from git")
else()
message(STATUS "Setting version to ${GIT_DESC} from parameters")
endif()
if (NOT GIT_COMMIT)
execute_process(
COMMAND ${GIT_EXECUTABLE} rev-parse HEAD
OUTPUT_VARIABLE GIT_COMMIT
ERROR_QUIET
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
string(STRIP "${GIT_COMMIT}" GIT_COMMIT)
endif()
if (NOT GIT_COMMIT)
execute_process(
COMMAND ${GIT_EXECUTABLE} rev-parse HEAD
OUTPUT_VARIABLE GIT_COMMIT
ERROR_QUIET
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
string(STRIP "${GIT_COMMIT}" GIT_COMMIT)
endif()
if (NOT GIT_DESC)
message(FATAL_ERROR "GIT_DESC cannot be inferred from .git and was not provided at build time")
endif()
if (NOT GIT_DESC)
message(FATAL_ERROR "GIT_DESC cannot be inferred from .git and was not provided at build time")
endif()
if (GIT_COMMIT)
message(STATUS "Setting commit to ${GIT_COMMIT}")
else()
message(FATAL_ERROR "GIT_COMMIT cannot be inferred from .git and was not provided at build time")
if (GIT_COMMIT)
message(STATUS "Setting commit to ${GIT_COMMIT}")
else()
message(FATAL_ERROR "GIT_COMMIT cannot be inferred from .git and was not provided at build time")
endif()
set(GIT_TAG false)
endif()
configure_file(${INPUT_FILE} ${OUTPUT_FILE})
+2 -1
View File
@@ -437,7 +437,8 @@ std::vector<wivrn::steam::application> wivrn::steam::list_applications()
else
{
// Is it a good idea to just iterate over all users?
for (auto const & entry: std::filesystem::directory_iterator{root / "userdata"})
std::error_code ec;
for (auto const & entry: std::filesystem::directory_iterator{root / "userdata", ec})
try
{
read_steam_shortcuts(entry.path() / "config/shortcuts.vdf", res, shortcut_icons);
+12 -9
View File
@@ -20,19 +20,22 @@
#include <cctype>
#include <iterator>
static const char git_desc[] = "@GIT_DESC@";
namespace wivrn
{
extern const char git_version[];
const char git_version[] = "@GIT_DESC@";
extern const char git_commit[];
const char git_commit[] = "@GIT_COMMIT@";
extern const char git_commit[];
const char git_commit[] = "@GIT_COMMIT@";
const char* display_version()
extern const bool is_tag;
const bool is_tag = @GIT_TAG@;
const char * display_version()
{
if (std::size(git_version) > 2 and git_version[0] == 'v' and isdigit(git_version[1]))
return git_version + 1;
if (std::size(git_desc) > 2 and git_desc[0] == 'v' and isdigit(git_desc[1]))
return git_desc + 1;
else
return git_version;
}
return git_desc;
}
} // namespace wivrn
+1 -1
View File
@@ -2,8 +2,8 @@
namespace wivrn
{
extern const char git_version[];
extern const char git_commit[];
extern const bool is_tag;
const char * display_version();
} // namespace wivrn
+10 -1
View File
@@ -57,7 +57,16 @@ public:
.pData = &values,
}
{
fill_entries();
if constexpr (sizeof...(Args) == 1)
{
info_.dataSize = sizeof(std::get<0>(values));
info_.pData = &std::get<0>(values);
entries = {vk::SpecializationMapEntry{
.size = info_.dataSize,
}};
}
else
fill_entries();
}
operator vk::SpecializationInfo *()
+3 -7
View File
@@ -23,21 +23,17 @@
#include <QCoroNetworkReply>
#include <QCoroProcess>
#include <nlohmann/json.hpp>
#include <regex>
using namespace std::chrono_literals;
apk_installer::apk_installer()
{
if (isTagged())
m_apkFile.setFileName(QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + "/wivrn-" + QString::fromStdString(wivrn::git_version) + ".apk");
else
m_apkFile.setFileName(QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + "/wivrn-" + QString::fromStdString(wivrn::git_commit) + ".apk");
m_apkFile.setFileName(QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + "/wivrn-" + QString::fromStdString(wivrn::git_commit) + ".apk");
}
bool apk_installer::isTagged() const
{
return not std::regex_match(wivrn::git_version, std::regex(".*-g[0-9a-f]+"));
return wivrn::is_tag;
}
QString apk_installer::currentVersion() const
@@ -74,7 +70,7 @@ QCoro::Task<> apk_installer::doRefreshLatestVersion()
QUrl metadata_url;
if (isTagged())
metadata_url = QString{"https://api.github.com/repos/WiVRn/WiVRn/releases/tags/"} + wivrn::git_version;
metadata_url = QString{"https://api.github.com/repos/WiVRn/WiVRn/releases/tags/"} + wivrn::git_commit;
else
metadata_url = QString{"https://api.github.com/repos/WiVRn/WiVRn-APK/releases/tags/apk-"} + wivrn::git_commit;
+2
View File
@@ -90,6 +90,8 @@ public:
bool need_setup() override
{
// Some setups prompt for credentials in getServices, which triggers on every dashboard start
return false;
QDBusReply<QStringList> res = zone.call("getServices", "");
if (not res.isValid())
{
+2 -1
View File
@@ -5,4 +5,5 @@ GenericName=WiVRn dashboard
Exec=@CMAKE_INSTALL_PREFIX@/bin/wivrn-dashboard
Icon=io.github.wivrn.wivrn
Type=Application
Categories=Network
Categories=Network;
Keywords=VR;Virtual reality;OpenVR;OpenXR;
@@ -68,6 +68,18 @@
<content_rating type="oars-1.1" />
<releases>
<release version="26.6" date="2026-06-10">
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v26.6</url>
<description>
<ul>
<li>Improved reconnection mechanism, now with warnings and errors</li>
<li>Improved image quality when content does not fill the whole field of view</li>
<li>Add a half FPS mode to reduce load at the expense of framerate</li>
<li>Fixed Vulkan video encode on NVIDIA GPUs</li>
<li>Many bugfixes</li>
</ul>
</description>
</release>
<release version="26.2" date="2026-02-08">
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v26.2</url>
<description>
+1 -1
View File
@@ -143,7 +143,7 @@ Kirigami.ScrollablePage {
Dialogs.FileDialog {
id: adb_browse
onAccepted: {
adb_location.text = new URL(selectedFile).pathname;
adb_location.text = WivrnServer.host_path(new URL(selectedFile).pathname);
}
}
+1 -1
View File
@@ -54,7 +54,7 @@ Depends:
${shlibs:Depends},
${misc:Depends},
Description: OpenXR streaming application to a standalone headset
WiVRn wirelessly connects a standalone VR headset to a Linu
WiVRn wirelessly connects a standalone VR headset to a Linux
computer. You can then play PCVR games on the headset while
processing is done on the computer.
.
+64
View File
@@ -0,0 +1,64 @@
# Notes for NVIDIA NVENC encoder
### Introduction
NVIDIA GPUs use performance states (P-states), which influence how the driver manages GPU core and memory clocks. P0 is generally the highest-performance state, while P8 is typically one of the lowest-power states.
WiVRn's NVIDIA NVENC encoder implementation relies on CUDA, which may cause NVIDIA drivers to keep the GPU in the P2 performance state instead of allowing it to enter P0.
This behavior is associated with CUDA workloads and may be used by NVIDIA drivers to improve stability.
NVIDIA drivers support an application profile setting named `CudaNoStablePerfLimit`, users have reported that it resolves the issue. [open-gpu-kernel-modules](https://github.com/NVIDIA/open-gpu-kernel-modules/issues/333#issuecomment-3669477571)
Some distributions already ship application profiles that exclude specific applications from these performance limits. You can see examples of how they apply this in [Pop!_OS](https://github.com/pop-os/nvidia-graphics-drivers/blob/master/debian/application-profiles/cuda-no-stable-perf-limit) or [CachyOS](https://github.com/CachyOS/CachyOS-PKGBUILDS/blob/master/nvidia/nvidia-utils/cuda-no-stable-perf-limit).
### Identifying the issue
To check whether your system is affected, monitor the GPU P-State using `watch nvidia-smi -q -d PERFORMANCE` while playing a game with the NVIDIA NVENC encoder enabled. If the GPU remains in P2 under load while using NVENC, but reaches P0 with the Vulkan encoder or after applying this profile, the system is likely affected.
### Workaround instructions
> [!NOTE]
> If your GPU already enters P0 while using the NVIDIA encoder, this workaround is unlikely to provide any benefit.
1. Create the NVIDIA configuration directory
The application profiles configuration file is located at:
`$HOME/.nv/nvidia-application-profiles-rc`
If the `.nv` directory does not already exist, create it:
`mkdir -p "$HOME/.nv"`
2. Create the configuration file
Open `$HOME/.nv/nvidia-application-profiles-rc` in your preferred text editor and add the following contents:
```
{
"profiles": [
{
"name": "WiVRnServer",
"settings": [
{
"key" : "0x166c5e",
"value" : 0
}
]
}
],
"rules": [
{ "pattern" : { "feature" : "procname", "matches" : "wivrn-server" }, "profile" : "WiVRnServer" }
]
}
```
3. Save the file
Save the file and `restart wivrn-server`. The profile should be applied automatically by the NVIDIA driver.
| Settings key | Reference name | Value | Description |
| --- | --- | :---: | --- |
| `0x166c5e` | CUDA - Force P2 State | 0 | Controls forcing of the CUDA P-State. When set to 0, prevents automatic forcing of a specific P-State. |
<!--
| `GLVRRAllowed` | G-SYNC VRR | false | Enables VRR support for applications on G-SYNC compatible monitors. Set to false to disable this feature. |
| `VKDirectGSYNCAllowed` | Vulkan Direct G-SYNC | false | Enables VRR support for vulkan direct-to-display applications on G-SYNC compatible monitors. Set to false to disable this feature. |
| `VKDirectGSYNCCompatibleAllowed` | Vulkan Direct Compatible G-SYNC | 0 | Allows VRR on validated or unvalidated G-SYNC compatible monitors for Vulkan Direct-to-Display applications. Set to value 0 to disable this feature. |
| `GLShowGraphicsOSD` | Graphics API OSD | false | Control whether the graphics API visual indicator is rendered on top of OpenGL and Vulkan applications. Set to false to disable this feature. |
-->
+5 -1
View File
@@ -19,6 +19,10 @@
pkgs.libpng
pkgs.kdePackages.kirigami-addons
# for client build
pkgs.curl
pkgs.ktx-tools
];
extraNativeBuildInputs = [
pkgs.util-linux
@@ -57,7 +61,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-x8VuG9N1P0UL3Hy3XSI0gVVyF3sbWIhr6t2iu5Z+Flc=";
hash = "sha256-SzuCQ1uX15vFGwGt3gswlVF2Su8sIND4R3tsTJ4T1LY=";
};
};
+20 -13
View File
@@ -1,11 +1,11 @@
# kate: syntax yaml
id: io.github.wivrn.wivrn
runtime: org.kde.Platform
runtime-version: '6.9'
runtime-version: '6.10'
sdk: org.kde.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
- org.freedesktop.Sdk.Extension.llvm18
- org.freedesktop.Sdk.Extension.llvm20
command: wivrn-dashboard
separate-locales: false
@@ -73,7 +73,7 @@ modules:
sources:
- type: git
url: https://github.com/crosstool-ng/crosstool-ng.git
tag: 620b909cd0713f68084378b63cf61b5232757b90
commit: 620b909cd0713f68084378b63cf61b5232757b90
- type: shell
commands:
# Make the build lighter:
@@ -96,7 +96,7 @@ modules:
sources:
- type: git
url: https://github.com/RsyncProject/rsync.git
tag: 3305a7a063ab0167cab5bf7029da53abaa9fdb6e
commit: 3305a7a063ab0167cab5bf7029da53abaa9fdb6e
cleanup:
- '*'
@@ -180,6 +180,7 @@ modules:
- type: git
url: https://github.com/avahi/avahi.git
tag: v0.8
commit: f060abee2807c943821d88839c013ce15db17b58
cleanup:
- /share/locale
- /share/runtime/locale
@@ -192,7 +193,7 @@ modules:
sources:
- type: git
url: https://code.videolan.org/videolan/x264.git
tag: 31e19f92f00c7003fa115047ce50978bc98c3a0d
commit: 31e19f92f00c7003fa115047ce50978bc98c3a0d
cleanup:
- /bin/x264
@@ -220,7 +221,8 @@ modules:
sources:
- type: git
url: https://gitlab.com/freedesktop-sdk/mirrors/ffmpeg/ffmpeg.git
tag: n7.0.1
tag: n7.1.4
commit: 9abe92e3af7fa7becc8f7f742b1457b4c28220a6
- name: eigen3
buildsystem: cmake-ninja
@@ -231,6 +233,7 @@ modules:
- type: git
url: https://gitlab.com/libeigen/eigen.git
tag: 5.0.1
commit: bc3b39870ecb690a623a3f49149a358b95c5781d
cleanup:
- '*'
@@ -241,7 +244,8 @@ modules:
sources:
- type: git
url: https://github.com/nlohmann/json.git
tag: v3.11.3
tag: v3.12.0
commit: 55f93686c01528224f448c19128836e7df245f72
- name: cli11
buildsystem: cmake-ninja
@@ -253,7 +257,8 @@ modules:
sources:
- type: git
url: https://github.com/CLIUtils/CLI11
tag: v2.4.2
tag: v2.6.2
commit: 37bb6edc5317e99af72ef48405e65d9ca5218861
cleanup:
- '*'
@@ -279,12 +284,12 @@ modules:
sources:
- type: git
url: https://gitlab.com/znixian/OpenOVR.git
tag: cff07db75c4823afe93ed7027b03d5f7bc86f164
commit: cff07db75c4823afe93ed7027b03d5f7bc86f164
- name: xrizer
buildsystem: simple
build-options:
append-path: /usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm18/bin
append-path: /usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm20/bin
cflags: -idirafter/usr/include
cxxflags: -idirafter/usr/include
env:
@@ -310,7 +315,7 @@ modules:
sources:
- type: git
url: https://github.com/Supreeeme/xrizer.git
tag: be664bb93eebdd82336d00230154bacc6f8b9765
commit: be664bb93eebdd82336d00230154bacc6f8b9765
- xrizer-gen-src.json
- name: wivrn-library
@@ -344,6 +349,7 @@ modules:
- -DWIVRN_WERROR=ON
- -DFETCHCONTENT_FULLY_DISCONNECTED=ON
- -DFETCHCONTENT_BASE_DIR=deps
- -DGIT_TAG=WIVRN_GIT_TAG
- -DGIT_DESC=WIVRN_GIT_DESC
- -DGIT_COMMIT=WIVRN_GIT_COMMIT
- -Wno-dev
@@ -353,7 +359,7 @@ modules:
WIVRN_SRC3
- type: git
url: https://gitlab.freedesktop.org/monado/monado
tag: MONADO_COMMIT
commit: MONADO_COMMIT
dest: deps/monado-src
- type: shell
commands:
@@ -380,6 +386,7 @@ modules:
- -DWIVRN_FEATURE_STEAMVR_LIGHTHOUSE=OFF
- -DFETCHCONTENT_FULLY_DISCONNECTED=ON
- -DFETCHCONTENT_BASE_DIR=deps
- -DGIT_TAG=WIVRN_GIT_TAG
- -DGIT_DESC=WIVRN_GIT_DESC
- -DGIT_COMMIT=WIVRN_GIT_COMMIT
- -Wno-dev
@@ -393,7 +400,7 @@ modules:
sha256: BOOST_SHA256
- type: git
url: https://gitlab.freedesktop.org/monado/monado
tag: MONADO_COMMIT
commit: MONADO_COMMIT
dest: deps/monado-src
- type: shell
commands:
File diff suppressed because it is too large Load Diff
+835
View File
@@ -0,0 +1,835 @@
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the WiVRn package.
#
# SPDX-FileCopyrightText: 2026 Snowflakes <Snowflakes@gmx.at>
msgid ""
msgstr ""
"Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-06-15 21:25+0200\n"
"PO-Revision-Date: 2026-06-18 17:59+0200\n"
"Last-Translator: Snowflakes <Snowflakes@gmx.at>\n"
"Language-Team: German <>\n"
"Language: de_DE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Lokalize 26.04.2\n"
#: client/scene.cpp:74
msgid "No supported swapchain format"
msgstr "Kein unterstütztes Swapchain-Format."
#: client/scenes/app_launcher.cpp:119
msgid "Connected to WiVRn server"
msgstr "Verbunden zum WiVRn-Server"
#: client/scenes/app_launcher.cpp:121
#, c++-format
msgid "Connected to {}"
msgstr "Verbunden zu {}"
#: client/scenes/app_launcher.cpp:127
msgid "Start an application on the server to start streaming."
msgstr "Starte eine Anwendung am Server, um mit dem Streamen zu beginnen."
#: client/scenes/app_launcher.cpp:137
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Starte eine Anwendung am Computer oder wähle eine aus, um mit dem Streamen zu "
"beginnen."
#: client/scenes/app_launcher.cpp:139
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr ""
"Starte eine Anwendung am {} oder wähle eine aus um mit dem Streamen zu "
"beginnen."
#: client/scenes/gui_common.cpp:39 client/scenes/gui_common.cpp:65
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automatisch"
#: client/scenes/gui_common.cpp:43
#, c++-format
msgctxt "refresh rate selection, with reprojection"
msgid "{} ({} with space warp)"
msgstr "{} ({} mit Space Warp)"
#: client/scenes/gui_common.cpp:61
msgid "Refresh rate"
msgstr "Bildwiederholrate"
#: client/scenes/gui_common.cpp:75
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
msgstr ""
"Wählt die Bildwiederholrate basierend auf der gemessenen Leistung der "
"Anwendung.\n"
"Kann bei Änderungen ein Flackern verursachen."
#: client/scenes/gui_common.cpp:103
msgid "Minimum refresh rate"
msgstr "Mindest-Bildwiederholrate"
#: client/scenes/gui_common.cpp:126
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normal"
#: client/scenes/gui_common.cpp:129
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Qualität"
#: client/scenes/gui_common.cpp:131
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Deaktiviert"
#: client/scenes/gui_common.cpp:143
msgid "OpenXR post-processing"
msgstr "OpenXR Post-Processing"
#: client/scenes/gui_common.cpp:148
msgid "Supersampling"
msgstr "Supersampling"
#: client/scenes/gui_common.cpp:169
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
msgstr ""
"Reduziert Flackern bei kontrastreichen Kanten.\n"
"Nützlich, wenn die Auflösung des Servers vergleichsweise hoch zum Headset ist"
#: client/scenes/gui_common.cpp:174
msgid "Sharpening"
msgstr "Bildschärfung"
#: client/scenes/gui_common.cpp:195
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
msgstr ""
"Verbesseret die Klarheit kontrastreicher Kanten und wirkt Unschärfe entgegen."
"\n"
"Nützlich, wenn die Auflösung des Servers vergleichsweise niedrig zum "
"Headset ist"
#: client/scenes/lobby.cpp:220
msgid "Incompatible WiVRn server: no protocol field in TXT"
msgstr "Inkompatibler WiVRn Server: Kein Protokoll-Feld im TXT."
#: client/scenes/lobby.cpp:223
#, c++-format
msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
msgstr "Inkompatibles WiVRn Server Protokoll (Client: {}, Server: {})"
#: client/scenes/lobby.cpp:238
#, c++-format
msgid "Cannot resolve hostname: {}"
msgstr "Hostname kann nicht aufgelöst werden: {}"
#: client/scenes/lobby.cpp:325 client/scenes/lobby.cpp:331
#, c++-format
msgid "Cannot connect to {} ({}): {}"
msgstr "Kann keine Verbindung herstellen zu {} ({}): {}"
#: client/scenes/lobby.cpp:409
msgid "Waiting for connection"
msgstr "Warte auf Verbindung"
#: client/scenes/lobby.cpp:1314
msgid "Passthrough"
msgstr "Passthrough"
#: client/scenes/lobby.cpp:1326
msgid "Default environment"
msgstr "Standard-Umgebung"
#: client/scenes/lobby_gui.cpp:100 client/scenes/lobby_gui.cpp:240
#: client/scenes/stream_gui.cpp:932
msgid "Disconnect"
msgstr "Trennen"
#: client/scenes/lobby_gui.cpp:120 client/scenes/lobby_gui.cpp:250
#: client/scenes/lobby_gui_customize.cpp:752
#: client/scenes/lobby_gui_customize.cpp:843
#: client/scenes/lobby_gui_customize.cpp:899 client/scenes/stream_gui.cpp:928
msgid "Close"
msgstr "Schließen"
#: client/scenes/lobby_gui.cpp:126
msgid "Connection"
msgstr "Verbindung"
#: client/scenes/lobby_gui.cpp:128
#, c++-format
msgid "Connection to {}"
msgstr "Verbinung zu {}"
#: client/scenes/lobby_gui.cpp:158
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:180
msgid "Input the PIN displayed on the dashboard"
msgstr "Gib die angezeigte PIN vom Dashboard ein"
#: client/scenes/lobby_gui.cpp:268
msgid "Disconnected"
msgstr "Getrennt"
#: client/scenes/lobby_gui.cpp:270
#, c++-format
msgid "Disconnected from {}"
msgstr "Getrennt von {}"
#: client/scenes/lobby_gui.cpp:302
msgid "Name"
msgstr "Name"
#: client/scenes/lobby_gui.cpp:313
msgid "Address"
msgstr "Adresse"
#: client/scenes/lobby_gui.cpp:322
msgid "Port"
msgstr "Port"
#: client/scenes/lobby_gui.cpp:330
msgid "TCP only"
msgstr "Nur TPC"
#: client/scenes/lobby_gui.cpp:337 client/scenes/lobby_gui_customize.cpp:654
#: client/scenes/stream_gui.cpp:883
msgid "Cancel"
msgstr "Abbrechen"
#: client/scenes/lobby_gui.cpp:351
msgid "Save"
msgstr "Speichern"
#: client/scenes/lobby_gui.cpp:404
msgid ""
"Start a WiVRn server on your\n"
"local network"
msgstr ""
"Starte einen WiVRn Server im\n"
"lokalen Netzwerk"
#: client/scenes/lobby_gui.cpp:436
msgid "Autoconnect"
msgstr "Automatisch verbinden"
#: client/scenes/lobby_gui.cpp:462
msgid "Connect"
msgstr "Verbinden"
#: client/scenes/lobby_gui.cpp:472 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Inkompatible Server Version"
#: client/scenes/lobby_gui.cpp:474
msgid "Server not available"
msgstr "Server nicht verfügbar"
#: client/scenes/lobby_gui.cpp:567
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "Deutsch"
#: client/scenes/lobby_gui.cpp:581
msgid "Language"
msgstr "Sprache"
#: client/scenes/lobby_gui.cpp:581 client/scenes/lobby_gui.cpp:583
msgid "System language"
msgstr "Systemsprache"
#: client/scenes/lobby_gui.cpp:612
msgid "Render resolution"
msgstr "Renderauflösung"
#: client/scenes/lobby_gui.cpp:616
#, c-format, c++-format
msgid "{}%% - {}x{} per eye"
msgstr "{}%% - {}x{} per Auge"
#: client/scenes/lobby_gui.cpp:627
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr ""
"Auflösungen größer als {}x{} werden möglicherweise nicht vom Headset "
"unterstützt"
#: client/scenes/lobby_gui.cpp:633
#, c++-format
msgctxt "resolution is higher than recommended"
msgid "Recommended maximum is {}%"
msgstr "Empfohlenes Maximum ist {}%"
#: client/scenes/lobby_gui.cpp:643
msgid "Foveated encoding"
msgstr "Foveated Encoding"
#: client/scenes/lobby_gui.cpp:647
#, c-format, c++-format
msgid "{}%%"
msgstr "{}%%"
#: client/scenes/lobby_gui.cpp:660
msgid ""
"Higher values focus image quality where you look at,\n"
"improving latency, power efficiency and quality."
msgstr ""
"Höhere Werte fokusieren die Bildqualität darauf wo hingesehen wird,\n"
"was Latenz, Energieeffizienz und Bildqualität verbessert."
#: client/scenes/lobby_gui.cpp:663
msgid ""
"Higher values focus image quality at the center,\n"
"improving latency, power efficiency and quality."
msgstr ""
"Höhere Werte fokussieren die Bildqualität im Zentrum,\n"
"was Latenz, Energieeffizienz und Bildqualität verbessert."
#: client/scenes/lobby_gui.cpp:671
#, c++-format
msgctxt "foveation is lower than recommended"
msgid "Recommended minimum is {}%"
msgstr "Empfohlenes Minimum ist {}%"
#: client/scenes/lobby_gui.cpp:678
msgctxt "Codec"
msgid "Automatic"
msgstr "Automatisch"
#: client/scenes/lobby_gui.cpp:682
msgctxt "Codec"
msgid "H.264"
msgstr "H.264"
#: client/scenes/lobby_gui.cpp:684
msgctxt "Codec"
msgid "H.265"
msgstr "H.265"
#: client/scenes/lobby_gui.cpp:686
msgctxt "Codec"
msgid "AV1"
msgstr "AV1"
#: client/scenes/lobby_gui.cpp:694
msgid "Codec"
msgstr "Codec"
#: client/scenes/lobby_gui.cpp:722
msgid "10-bit"
msgstr "10-bit"
#: client/scenes/lobby_gui.cpp:738
msgid "Bitrate"
msgstr "Bitrate"
#: client/scenes/lobby_gui.cpp:742
#, c++-format
msgid "{}Mbit/s"
msgstr "{}Mbit/s"
#: client/scenes/lobby_gui.cpp:753
#, c++-format
msgctxt "bitrate value is higher than recommended"
msgid "Recommended maximum is {}Mbit/s"
msgstr "Empfohlenes Maximum ist {}Mbit/s"
#: client/scenes/lobby_gui.cpp:759
msgid "High power mode"
msgstr "Höchstleistungsmodus"
#: client/scenes/lobby_gui.cpp:762
msgid "Increase power usage to allow higher resolution and refresh rate"
msgstr ""
"Erhöht den Stromverbrauch, um höhere Auflösungen und Bildwiederholungsraten "
"zu ermöglichen"
#: client/scenes/lobby_gui.cpp:768
msgid "Enable microphone"
msgstr "Mikrofon aktivieren"
#: client/scenes/lobby_gui.cpp:777
msgid "Unprocessed Microphone Audio"
msgstr "Unverarbeitetes Mikrofon-Audio"
#: client/scenes/lobby_gui.cpp:783
msgid "Force disable audio filters, such as noise cancellation"
msgstr "Erzwingt das Deaktivieren der Audiofilter, wie die Rauschunterdrückung"
#: client/scenes/lobby_gui.cpp:790
msgid "Enable hand tracking"
msgstr "Hand Tracking aktivieren"
#: client/scenes/lobby_gui.cpp:796 client/scenes/lobby_gui.cpp:807
#: client/scenes/lobby_gui.cpp:817 client/scenes/lobby_gui.cpp:832
#: client/scenes/lobby_gui_customize.cpp:639
msgid "This feature is not supported by your headset"
msgstr "Diese Funktion wird vom Headset nicht unterstützt"
#: client/scenes/lobby_gui.cpp:801
msgid "Enable eye tracking"
msgstr "Eye-Tracking aktivieren"
#: client/scenes/lobby_gui.cpp:812
msgid "Enable face tracking"
msgstr "Face-Tracking aktivieren"
#: client/scenes/lobby_gui.cpp:824
msgid "Enable body tracking"
msgstr "Body-Tracking aktivieren"
#: client/scenes/lobby_gui.cpp:837
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
"otherwise body data will be guessed from controller and headset positions"
msgstr ""
"Hand- und Body-Tracking muss in den Quest Bewegungstracking Einstellungen "
"aktiviert sein,\n"
"ansonsten wird die Position des Körpers von Controller und Headset Positionen "
"geschätzt."
#: client/scenes/lobby_gui.cpp:847
msgid "Enable lower body tracking"
msgstr "Lower-Body-Tracking aktivieren"
#: client/scenes/lobby_gui.cpp:853
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings"
msgstr ""
"Schätze die Gelenkpositionen des Unterkörpers mithilfe von Generative Legs\n"
"Hand- und Body-Tracking muss in den Quest Bewegungstracking Einstellungen "
"aktiviert sein"
#: client/scenes/lobby_gui.cpp:856
msgid "Enable hip tracking"
msgstr "Hip-Tracking aktivieren"
#: client/scenes/lobby_gui.cpp:862
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
msgstr ""
"Wird erst wirksam, wenn Lower-Body-Tracking aktiviert ist\n"
"Kann sinnvoll sein, wenn eine andere Quelle für Hip-Tracking genutzt wird"
#: client/scenes/lobby_gui.cpp:871
msgid "Enable in-stream window"
msgstr "In-Stream-Fenster aktivieren"
#: client/scenes/lobby_gui.cpp:874
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
msgstr ""
"Erlaubt, dass das Konfigurations-Fenster angezeigt wird, während ein "
"Spiel gestreamt wird.\n"
"Wenn es aktiviert ist, dann kann das Fenster angezeigt werden, indem "
"beide Thumbsticks gedrückt werden."
#: client/scenes/lobby_gui.cpp:878
msgid "Extended configuration values"
msgstr "Erweiterte Konfigurationswerte"
#: client/scenes/lobby_gui.cpp:881
msgid "Allows unsafe configuration values, use at your own risk."
msgstr "Erlaubt unsichere Konfigurationswerte. Benützung auf eigene Gefahr."
#: client/scenes/lobby_gui.cpp:1069 client/scenes/lobby_gui.cpp:1077
#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:373
msgid "CPU time"
msgstr "CPU Zeit"
#: client/scenes/lobby_gui.cpp:1073
msgid "CPU time [ms]"
msgstr "CPU Zeit [ms]"
#: client/scenes/lobby_gui.cpp:1083 client/scenes/lobby_gui.cpp:1091
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:374
msgid "GPU time"
msgstr "GPU Zeit"
#: client/scenes/lobby_gui.cpp:1087
msgid "GPU time [ms]"
msgstr "GPU Zeit [ms]"
#: client/scenes/lobby_gui.cpp:1151
msgid "Enable the microphone?"
msgstr "Mikrofon aktivieren?"
#: client/scenes/lobby_gui.cpp:1156
msgid "Enable eye tracking?"
msgstr "Eye-Tracking aktivieren?"
#: client/scenes/lobby_gui.cpp:1161
msgid "Enable face tracking?"
msgstr "Face-Tracking aktivieren?"
#: client/scenes/lobby_gui.cpp:1166
msgid "Enable body tracking?"
msgstr "Body-Tracking aktivieren?"
#: client/scenes/lobby_gui.cpp:1174
msgid "Welcome to WiVRn"
msgstr "Willkommen zu WiVRn"
#: client/scenes/lobby_gui.cpp:1202
msgid "Yes"
msgstr "Ja"
#: client/scenes/lobby_gui.cpp:1209
msgid "No"
msgstr "Nein"
#: client/scenes/lobby_gui.cpp:1228 client/scenes/lobby_gui.cpp:1874
msgid "Licenses"
msgstr "Lizenzen"
#: client/scenes/lobby_gui.cpp:1504
msgid "Microphone is enabled"
msgstr "Mikrofon ist aktiviert"
#: client/scenes/lobby_gui.cpp:1505
msgid "Microphone is disabled"
msgstr "Mikrofon ist deaktiviert"
#: client/scenes/lobby_gui.cpp:1514
msgid "Hand tracking is enabled"
msgstr "Hand-Tracking ist aktiviert"
#: client/scenes/lobby_gui.cpp:1515
msgid "Hand tracking is disabled"
msgstr "Hand-Tracking ist deaktiviert"
#: client/scenes/lobby_gui.cpp:1524
msgid "Eye tracking is enabled"
msgstr "Eye-Tracking ist aktiviert"
#: client/scenes/lobby_gui.cpp:1525
msgid "Eye tracking is disabled"
msgstr "Eye-Tracking ist deaktiviert"
#: client/scenes/lobby_gui.cpp:1535
msgid "Face tracking is enabled"
msgstr "Face-Tracking ist aktiviert"
#: client/scenes/lobby_gui.cpp:1536
msgid "Face tracking is disabled"
msgstr "Face-Tracking ist deaktiviert"
#: client/scenes/lobby_gui.cpp:1550
msgid "Body tracking is enabled"
msgstr "Body-Tracking ist aktiviert"
#: client/scenes/lobby_gui.cpp:1551
msgid "Body tracking is disabled"
msgstr "Body-Tracking ist deaktiviert"
#: client/scenes/lobby_gui.cpp:1567
msgid "Add server"
msgstr "Server hinzufügen"
#: client/scenes/lobby_gui.cpp:1853
msgid "Server list"
msgstr "Server Liste"
#: client/scenes/lobby_gui.cpp:1856 client/scenes/stream_gui.cpp:913
msgid "Settings"
msgstr "Einstellungen"
#: client/scenes/lobby_gui.cpp:1859
msgid "Post-processing"
msgstr "Post-Processing"
#: client/scenes/lobby_gui.cpp:1862
msgid "Customize"
msgstr "Anpassen"
#: client/scenes/lobby_gui.cpp:1866
msgid "Debug"
msgstr "Debug"
#: client/scenes/lobby_gui.cpp:1871
msgid "About"
msgstr "Über WiVRn"
#: client/scenes/lobby_gui.cpp:1877
msgid "Exit"
msgstr "Beenden"
#: client/scenes/lobby_gui.cpp:1894
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
msgstr ""
"Drücke die Grip-Taste oder halte die Handfläche nach oben\n"
"um das Hauptfenster zu bewegen"
#: client/scenes/lobby_gui.cpp:1896
msgid "Press the grip button to move the main window"
msgstr "Drücke die Grip-Taste, um das Hauptfenster zu bewegen"
#: client/scenes/lobby_gui_customize.cpp:213
msgid "Locally loaded environment"
msgstr "Lokal geladene Umgebung"
#: client/scenes/lobby_gui_customize.cpp:226
#, c++-format
msgid "Locally loaded environment ({})"
msgstr "Lokal geladene Umgebung ({})"
#: client/scenes/lobby_gui_customize.cpp:299
#, c++-format
msgid "Cannot load local environment: {}"
msgstr "Kann lokale Umgebung nicht laden: {}"
#: client/scenes/lobby_gui_customize.cpp:332
#, c++-format
msgid "Cannot load environment list: {}"
msgstr "Kann Umgebungsliste nicht laden: {}"
#: client/scenes/lobby_gui_customize.cpp:462
#, c++-format
msgid "Author: {}"
msgstr "Ersteller: {}"
#: client/scenes/lobby_gui_customize.cpp:466
#, c++-format
msgid "Size: {:.1f} MB"
msgstr "Größe: {:.1f} MB"
#: client/scenes/lobby_gui_customize.cpp:546
msgid "Delete this model"
msgstr "Lösche dieses Modell"
#: client/scenes/lobby_gui_customize.cpp:582
#: client/scenes/lobby_gui_customize.cpp:788
#, c++-format
msgid "HTTP error {} when downloading {}"
msgstr "HTTP Fehler {} beim Herunterladen von {}"
#: client/scenes/lobby_gui_customize.cpp:590
#: client/scenes/lobby_gui_customize.cpp:796
#, c++-format
msgid ""
"Curl error when downloading {}\n"
"{}: {}"
msgstr ""
"Curl Fehler beim Herunterladen von {}\n"
"{}: {}"
#: client/scenes/lobby_gui_customize.cpp:651
#, c++-format
msgid "Really delete {}?"
msgstr "Wirklich {} löschen?"
#: client/scenes/lobby_gui_customize.cpp:655
msgid "Delete"
msgstr "Löschen"
#: client/scenes/lobby_gui_customize.cpp:736
#, c++-format
msgid "Cannot load environment: {}"
msgstr "Kann Umgebung nicht laden: {}"
#: client/scenes/lobby_gui_customize.cpp:744
msgid "Loading environment"
msgstr "Umgebung wird geladen"
#: client/scenes/lobby_gui_customize.cpp:823
msgid "Download more environments"
msgstr "Mehr Umgebungen herunterladen"
#: client/scenes/lobby_gui_customize.cpp:831
msgid "Open local glTF model"
msgstr "Öffne lokales glTF Modell"
#: client/scenes/stream_gui.cpp:177
msgid "Defoveate"
msgstr "Defoveate"
#: client/scenes/stream_gui.cpp:179
msgid "Network"
msgstr "Netzwerk"
#: client/scenes/stream_gui.cpp:179 client/scenes/stream_gui.cpp:371
msgid "Download"
msgstr "Download"
#: client/scenes/stream_gui.cpp:180 client/scenes/stream_gui.cpp:372
msgid "Upload"
msgstr "Upload"
#: client/scenes/stream_gui.cpp:249
#, c++-format
msgid "Decoder {}"
msgstr "Decoder {}"
#: client/scenes/stream_gui.cpp:261
msgid "Timings [ms]"
msgstr "Timings [ms]"
#: client/scenes/stream_gui.cpp:321
msgid "Encode"
msgstr "Encodieren"
#: client/scenes/stream_gui.cpp:322
msgid "Send"
msgstr "Senden"
#: client/scenes/stream_gui.cpp:323
msgid "Receive"
msgstr "Empfangen"
#: client/scenes/stream_gui.cpp:324
msgid "Decode"
msgstr "Decodieren"
#: client/scenes/stream_gui.cpp:325
msgid "Blitted"
msgstr "Geblittet"
#: client/scenes/stream_gui.cpp:326
msgid "Displayed"
msgstr "Angezeigt"
#: client/scenes/stream_gui.cpp:327
msgid "Predicted"
msgstr "Vorhergesagt"
#: client/scenes/stream_gui.cpp:346
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Geschätzte Bewegung-zu-Bild-Latenz: {}ms"
#: client/scenes/stream_gui.cpp:351
msgid "Press the grip button to move the window"
msgstr "Drücke die Grip-Taste, um das Fenster zu bewegen"
#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:627
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Drücke beide Thumbsticks um das WiVRn-Fenster anzuzeigen"
#: client/scenes/stream_gui.cpp:375
msgid "Motion to photon latency"
msgstr "Bewegung-zu-Bild-Latenz"
#: client/scenes/stream_gui.cpp:404
msgid "Bitrate:"
msgstr "Bitrate:"
#: client/scenes/stream_gui.cpp:414
msgid "Click to adjust bitrate"
msgstr "Klicke, um die Bitrate zu adjustieren"
#: client/scenes/stream_gui.cpp:421
msgid "Foveation center override"
msgstr "Foveation-Zentrum überschreiben"
#: client/scenes/stream_gui.cpp:424
msgid "Enable"
msgstr "Aktivieren"
#: client/scenes/stream_gui.cpp:432 client/scenes/stream_gui.cpp:503
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Höhe {:.1f} deg"
#: client/scenes/stream_gui.cpp:433 client/scenes/stream_gui.cpp:504
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Distanz {:.2f} m"
#: client/scenes/stream_gui.cpp:434
msgid "Default"
msgstr "Standard"
#: client/scenes/stream_gui.cpp:445
msgid "Change"
msgstr "Ändern"
#: client/scenes/stream_gui.cpp:477
msgid "Use the right thumbstick to adjust the bitrate"
msgstr "Bewege den rechten Thumbstick, um die Bitrate zu adjustieren"
#: client/scenes/stream_gui.cpp:478
msgid "Press A to go back"
msgstr "Drücke A, um zurückzugehen"
#: client/scenes/stream_gui.cpp:479
#, c++-format
msgid "Bitrate: {}Mbit/s"
msgstr "Bitrate: {}Mbit/s"
#: client/scenes/stream_gui.cpp:501
msgid "Use the thumbsticks to move the foveation center"
msgstr "Bewege die Thumbsticks, um das Foveation-Zentrum zu bewegen"
#: client/scenes/stream_gui.cpp:502
msgid "Press A to save or B to cancel"
msgstr "Drücke A, um zu speichern oder B, um abzubrechen"
#: client/scenes/stream_gui.cpp:560
msgid "Running XR applications:"
msgstr "Laufende XR Anwendungen:"
#: client/scenes/stream_gui.cpp:577
msgid "Overlays"
msgstr "Overlays"
#: client/scenes/stream_gui.cpp:616
msgid "Request to quit, may be ignored by the application"
msgstr ""
"Beendigungsanfrage gesendet, wird von der Anwendung möglicherweise "
"ignoriert"
#: client/scenes/stream_gui.cpp:899
msgid "Applications"
msgstr "Anwendungen"
#: client/scenes/stream_gui.cpp:902
msgid "Start"
msgstr "Start"
#: client/scenes/stream_gui.cpp:916
msgid "Stats"
msgstr "Statistiken"
#: client/scenes/stream_gui.cpp:922
msgid "Statistics overlay"
msgstr "Statistik-Overlay"
#: client/scenes/stream_gui.cpp:925
msgid "Compact view"
msgstr "Kompakte Anzeige"
#: client/wivrn_client.cpp:98 client/wivrn_client.cpp:202
msgid "Timeout"
msgstr "Timeout"
#: client/wivrn_client.cpp:149
msgid "Incorrect PIN"
msgstr "PIN inkorrekt"
#: client/wivrn_client.cpp:153
msgid "Unable to check PIN"
msgstr "PIN kann nicht überprüft werden"
#: client/wivrn_client.cpp:182
msgid "Pairing is disabled on server"
msgstr "Koppeln ist am Server deaktiviert"
+28 -20
View File
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-05-27 13:42+0200\n"
"PO-Revision-Date: 2026-05-28 11:17+0200\n"
"POT-Creation-Date: 2026-05-31 21:58+0200\n"
"PO-Revision-Date: 2026-06-02 14:23+0200\n"
"Last-Translator: not\n"
"Language-Team: Slovak <>\n"
"Language: sk\n"
@@ -305,8 +305,7 @@ msgstr "Firewall môže blokovať port 9757"
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
msgstr ""
"NVIDIA GPUs vyžadujú minimálne verziu ovládača 565.77, aktuálna verzia je "
"%1"
"NVIDIA GPUs vyžadujú minimálne verziu ovládača 565.77, aktuálna verzia je %1"
#: dashboard/qml/Main.qml:185
#, kde-format
@@ -317,8 +316,8 @@ msgstr "Viac info"
#, kde-format
msgid "Vulkan drivers cannot be found, you may need to run \"flatpak update\""
msgstr ""
"Nepodarilo sa nájsť ovládače Vulkan. Možno bude potrebné spustiť \"flatpak upd"
"ate\""
"Nepodarilo sa nájsť ovládače Vulkan. Možno bude potrebné spustiť \"flatpak "
"update\""
#: dashboard/qml/Main.qml:193
#, kde-format
@@ -340,8 +339,8 @@ msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
"Install xrizer or OpenComposite."
msgstr ""
"Kompatibilita s OpenVR nebola zistená, Hry v steame nebude možné "
"spustiť vo VR.\n"
"Kompatibilita s OpenVR nebola zistená, Hry v steame nebude možné spustiť vo "
"VR.\n"
"Nainštalujte xrizer alebo OpenComposite."
#: dashboard/qml/Main.qml:217
@@ -564,8 +563,9 @@ msgid ""
"server. Client OS may reserve specific keys and combinations, which cannot "
"be forwarded."
msgstr ""
"Klávesnica a myš pripojené ku klientovi sa budú správať, akoby boli pripojené "
"k serveru. Niektoré klávesy alebo skratky však môže klientský systém blokovať."
"Klávesnica a myš pripojené ku klientovi sa budú správať, akoby boli "
"pripojené k serveru. Niektoré klávesy alebo skratky však môže klientský "
"systém blokovať."
#: dashboard/qml/SettingsPage.qml:122
#, kde-format
@@ -672,11 +672,12 @@ msgstr "Neviem nájsť aplikáciu WiVRn v headsete"
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:353
#, kde-format
msgid ""
"If you installed WiVRn over USB on a Meta headset, the app is in the "
"If you installed WiVRn over USB on a Meta or Pico headset, the app is in the "
"\"unknown sources\" section."
msgstr ""
"Ak ste nainštalovali WiVRn cez USB na Meta headsete, aplikácia sa nachádza v "
"sekcii „neznáme zdroje“."
"Ak ste nainštalovali WiVRn cez USB na Meta alebo Pico headsete, aplikácia sa n"
"achádza v \""
"\"sekcii „neznáme zdroje“."
#: dashboard/qml/TroubleshootPage.qml:24
#, kde-format
@@ -757,8 +758,7 @@ msgid ""
"When the headset is connected, select \"WiVRn\" as the default audio output "
"device for applications to use it."
msgstr ""
"Keď je headset pripojený, vyberte „WiVRn“ ako predvolené zvukové zariadenie,"
" "
"Keď je headset pripojený, vyberte „WiVRn“ ako predvolené zvukové zariadenie, "
"aby ho aplikácie používali."
#: dashboard/qml/TroubleshootPage.qml:61
@@ -772,9 +772,9 @@ msgid ""
"For game specific issues, check on <a href=\"https://db.vronlinux.org/"
"\">vronlinux DB</a> if there are known bugs or workarounds."
msgstr ""
"Pri problémoch konkrétnych hier skontrolujte <a href=\"https://db.vronlinux.or"
"g/"
"\">vronlinux databázu</a> , či neexistujú známe chyby alebo riešenia."
"Pri problémoch konkrétnych hier skontrolujte <a href=\"https://"
"db.vronlinux.org/\">vronlinux databázu</a> , či neexistujú známe chyby alebo "
"riešenia."
#: dashboard/qml/TroubleshootPage.qml:79
#, kde-format
@@ -942,8 +942,8 @@ msgid ""
"If the server is not visible or the connection fails, check that ports 5353 "
"(UDP) and 9757 (TCP and UDP) are open in your firewall."
msgstr ""
"Ak server nie je viditeľný alebo pripojenie zlyhá, skontrolujte, či máte vo fi"
"rewalle otvorené porty 5353 (UDP) a 9757 (TCP aj UDP)."
"Ak server nie je viditeľný alebo pripojenie zlyhá, skontrolujte, či máte vo "
"firewalle otvorené porty 5353 (UDP) a 9757 (TCP aj UDP)."
#: dashboard/qml/WizardPage.qml:371
#, kde-format
@@ -989,6 +989,14 @@ msgstr "xrizer"
msgid "Open Composite"
msgstr "Open Composite"
#, kde-format
#~ msgid ""
#~ "If you installed WiVRn over USB on a Meta headset, the app is in the "
#~ "\"unknown sources\" section."
#~ msgstr ""
#~ "Ak ste nainštalovali WiVRn cez USB na Meta headsete, aplikácia sa "
#~ "nachádza v sekcii „neznáme zdroje“."
#, kde-format
#~ msgid "No precompiled APK is available for this version"
#~ msgstr "Pre túto verziu nie je dostupné predkompilované APK"
+1 -1
View File
@@ -1 +1 @@
6578e7ec7f971deaa96d87c91427f1c4b09c10e4
1b526bb3a0ff326ecd05af4c2c541407f53c6d4b
@@ -1,4 +1,4 @@
From 56bc78165b70a84e40bfc22ca5c2b95b0612d0cd Mon Sep 17 00:00:00 2001
From de3b592fc26d7b26b4850fcc78d7e6b21147f76b 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
@@ -10,7 +10,7 @@ Subject: [PATCH 1/8] c/multi: early wake of compositor
3 files changed, 41 insertions(+), 7 deletions(-)
diff --git a/src/xrt/compositor/multi/comp_multi_compositor.c b/src/xrt/compositor/multi/comp_multi_compositor.c
index 1fc135ce4..25b64aca8 100644
index 33675d43f..71c5ebf9e 100644
--- a/src/xrt/compositor/multi/comp_multi_compositor.c
+++ b/src/xrt/compositor/multi/comp_multi_compositor.c
@@ -236,7 +236,21 @@ wait_for_scheduled_free(struct multi_compositor *mc)
@@ -36,10 +36,10 @@ index 1fc135ce4..25b64aca8 100644
static void *
diff --git a/src/xrt/compositor/multi/comp_multi_private.h b/src/xrt/compositor/multi/comp_multi_private.h
index 0e777f442..d39b8d76d 100644
index 6c7ec05f8..588878e38 100644
--- a/src/xrt/compositor/multi/comp_multi_private.h
+++ b/src/xrt/compositor/multi/comp_multi_private.h
@@ -364,6 +364,10 @@ struct multi_system_compositor
@@ -365,6 +365,10 @@ struct multi_system_compositor
*/
struct os_mutex list_and_timing_lock;
@@ -51,19 +51,19 @@ index 0e777f442..d39b8d76d 100644
{
int64_t predicted_display_time_ns;
diff --git a/src/xrt/compositor/multi/comp_multi_system.c b/src/xrt/compositor/multi/comp_multi_system.c
index e673afcb0..cf07a2d1c 100644
index 5a4f35b81..cbda39c24 100644
--- a/src/xrt/compositor/multi/comp_multi_system.c
+++ b/src/xrt/compositor/multi/comp_multi_system.c
@@ -24,6 +24,8 @@
#include "util/u_trace_marker.h"
#include "util/u_distortion_mesh.h"
@@ -14,6 +14,8 @@
#include "xrt/xrt_defines.h"
#include "xrt/xrt_session.h"
+#include "math/m_api.h"
+
#ifdef XRT_OS_LINUX
#include "util/u_linux.h"
#endif
@@ -393,17 +395,24 @@ broadcast_timings_to_pacers(struct multi_system_compositor *msc,
#include "os/os_time.h"
#include "os/os_threading.h"
@@ -426,17 +428,24 @@ broadcast_timings_to_pacers(struct multi_system_compositor *msc,
}
static void
@@ -93,7 +93,7 @@ index e673afcb0..cf07a2d1c 100644
}
static void
@@ -530,10 +539,13 @@ multi_main_loop(struct multi_system_compositor *msc)
@@ -562,10 +571,13 @@ multi_main_loop(struct multi_system_compositor *msc)
broadcast_timings_to_clients(msc, predicted_display_time_ns);
// Now we can wait.
@@ -109,7 +109,7 @@ index e673afcb0..cf07a2d1c 100644
// Now we know the diff, broadcast to pacers.
broadcast_timings_to_pacers(msc, predicted_display_time_ns, predicted_display_period_ns, diff_ns);
@@ -731,6 +743,8 @@ system_compositor_destroy(struct xrt_system_compositor *xsc)
@@ -785,6 +797,8 @@ system_compositor_destroy(struct xrt_system_compositor *xsc)
xrt_comp_native_destroy(&msc->xcn);
os_mutex_destroy(&msc->list_and_timing_lock);
@@ -118,7 +118,7 @@ index e673afcb0..cf07a2d1c 100644
free(msc);
}
@@ -788,6 +802,8 @@ comp_multi_create_system_compositor(struct xrt_compositor_native *xcn,
@@ -843,6 +857,8 @@ comp_multi_create_system_compositor(struct xrt_compositor_native *xcn,
msc->get_view_config_callback = get_view_config_callback;
os_mutex_init(&msc->list_and_timing_lock);
@@ -128,5 +128,5 @@ index e673afcb0..cf07a2d1c 100644
//! @todo Make the clients not go from IDLE to READY before we have completed a first frame.
// Make sure there is at least some sort of valid frame data here.
--
2.53.0
2.54.0
@@ -1,4 +1,4 @@
From 8d323aae4c6436644e62a8e50f536672e09e7df1 Mon Sep 17 00:00:00 2001
From 22d9bf87e9dd6a0d5970258a6b6cd6ca82c3bb26 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
@@ -34,5 +34,5 @@ index a0bef3dde..453dd38ca 100644
// We may have been launched with socket activation
int num_fds = sd_listen_fds(0);
--
2.53.0
2.54.0
@@ -1,4 +1,4 @@
From 021c00d87dc8a956984a255c651658f4b6f76cc6 Mon Sep 17 00:00:00 2001
From 3c7450d800b0e3f35440f41d3bfcf5b5abe6dfe8 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
@@ -8,10 +8,10 @@ Subject: [PATCH 3/8] change environment blend mode selection logic
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/src/xrt/compositor/multi/comp_multi_system.c b/src/xrt/compositor/multi/comp_multi_system.c
index cf07a2d1c..417964770 100644
index cbda39c24..c0c6c9f60 100644
--- a/src/xrt/compositor/multi/comp_multi_system.c
+++ b/src/xrt/compositor/multi/comp_multi_system.c
@@ -233,23 +233,31 @@ find_active_blend_mode(struct multi_compositor **overlay_sorted_clients, size_t
@@ -231,23 +231,31 @@ find_active_blend_mode(struct multi_compositor **overlay_sorted_clients, size_t
if (overlay_sorted_clients == NULL)
return XRT_BLEND_MODE_OPAQUE;
@@ -53,5 +53,5 @@ index cf07a2d1c..417964770 100644
}
--
2.53.0
2.54.0
@@ -1,4 +1,4 @@
From acd0e5bd5845f43fe443f70d54ae2df27bbec823 Mon Sep 17 00:00:00 2001
From b26876c29205f2d2fb07fbdbe009d5635eb32bfd 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
@@ -9,10 +9,10 @@ Subject: [PATCH 4/8] st/oxr: forward 0 refresh rate
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c
index 0d35fcb42..b54a8f048 100644
index b44271622..a1e112e89 100644
--- a/src/xrt/compositor/main/comp_compositor.c
+++ b/src/xrt/compositor/main/comp_compositor.c
@@ -380,7 +380,7 @@ compositor_request_display_refresh_rate(struct xrt_compositor *xc, float display
@@ -391,7 +391,7 @@ compositor_request_display_refresh_rate(struct xrt_compositor *xc, float display
if (c->target && c->target->request_refresh_rate) {
xrt_result_t result = comp_target_request_refresh_rate(c->target, display_refresh_rate_hz);
// Assume refresh rate change is immediate
@@ -43,5 +43,5 @@ index 09297f885..9f3a7ebc2 100644
if ((int)(displayRefreshRate * 100.0f) == (int)(sess->sys->xsysc->info.refresh_rates_hz[i] * 100.0f)) {
found = true;
--
2.53.0
2.54.0
@@ -1,4 +1,4 @@
From f592eb8af17a15b8cd6a20c308ee0f254c88463f Mon Sep 17 00:00:00 2001
From 7230746571d1256d32557fd99528ac90a1d75957 Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Sun, 28 Sep 2025 11:33:10 +0200
Subject: [PATCH 5/8] d/steamvr_lh: prevent crash on vive pro2/WiVRn
@@ -8,10 +8,10 @@ Subject: [PATCH 5/8] d/steamvr_lh: prevent crash on vive pro2/WiVRn
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 5c36e4e89..b77288bd0 100644
index 347d22068..d34d3331e 100644
--- a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
+++ b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
@@ -956,7 +956,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out
@@ -985,7 +985,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out
// Include the HMD
if (svrs->ctx->hmd) {
@@ -21,5 +21,5 @@ index 5c36e4e89..b77288bd0 100644
}
--
2.53.0
2.54.0
@@ -1,4 +1,4 @@
From e013455ead67f79e18afc5a6bbb453caae76dac9 Mon Sep 17 00:00:00 2001
From f400f0e63259bcadd9a7955ae0275caa5aea3ded Mon Sep 17 00:00:00 2001
From: Sapphire <imsapphire0@gmail.com>
Date: Fri, 7 Nov 2025 20:41:16 -0600
Subject: [PATCH 6/8] st/oxr: push XrEventDataInteractionProfileChanged when
@@ -23,5 +23,5 @@ index 2bd3ea009..93659ba35 100644
action_context->X = path; \
interaction_profile_changed = true; \
--
2.53.0
2.54.0
@@ -1,4 +1,4 @@
From 6834120e579093e2f2bfa0d4269a051e7047b9ee Mon Sep 17 00:00:00 2001
From 0832cc9a2ccd0f67b3bd3a11ec1b1d1398dfebda Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Sun, 25 Jan 2026 10:09:10 +0100
Subject: [PATCH 7/8] don't verify GL stuff
@@ -29,5 +29,5 @@ index 8f35222cf..1418a8231 100644
}
--
2.53.0
2.54.0
@@ -1,4 +1,4 @@
From c28b6f2c536e1a0db93389f050cf61a506b286e4 Mon Sep 17 00:00:00 2001
From d79de5d82def9641484b8d88212d3c2e97e38734 Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Fri, 20 Mar 2026 16:51:18 +0100
Subject: [PATCH 8/8] configure u_git_tag in WiVRn
@@ -8,7 +8,7 @@ Subject: [PATCH 8/8] configure u_git_tag in WiVRn
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/xrt/auxiliary/util/CMakeLists.txt b/src/xrt/auxiliary/util/CMakeLists.txt
index a30c3c5a6..983d44f04 100644
index 79646b181..21adcd446 100644
--- a/src/xrt/auxiliary/util/CMakeLists.txt
+++ b/src/xrt/auxiliary/util/CMakeLists.txt
@@ -10,11 +10,6 @@
@@ -23,7 +23,7 @@ index a30c3c5a6..983d44f04 100644
add_library(
aux_util STATIC
u_autoexpgain.c
@@ -116,7 +111,7 @@ add_library(
@@ -120,7 +115,7 @@ add_library(
u_worker.cpp
u_worker.h
u_worker.hpp
@@ -33,5 +33,5 @@ index a30c3c5a6..983d44f04 100644
target_link_libraries(
aux_util
--
2.53.0
2.54.0
+20 -1
View File
@@ -174,8 +174,11 @@ active_runtime::active_runtime() :
try
{
auto ovr_compat = openvr_compat_path();
if (not ovr_compat.empty())
if (ovr_compat.empty())
std::cerr << "Not setting an OpenVR compatibility library" << std::endl;
else
{
std::cerr << "Setting the OpenVR compatibility library to " << ovr_compat.native() << std::endl;
if (not wivrn::is_flatpak())
{
auto vrclient = ovr_compat / "bin"
@@ -235,4 +238,20 @@ active_runtime::~active_runtime()
std::cerr << "Cannot unset active OpenVR runtime: " << e.what() << std::endl;
}
}
void active_runtime::cleanup_openxr()
{
for (const auto & manifest: manifest_path())
{
auto active_runtime = xdg_config_home() / ("openxr/1/active_runtime" + get_abi(manifest) + ".json");
std::error_code ec;
if (std::filesystem::equivalent(manifest, active_runtime, ec))
{
std::cerr << "Removing stale file " << active_runtime << std::endl;
std::filesystem::remove(active_runtime, ec);
}
std::filesystem::rename(backup_name(manifest), manifest, ec);
}
}
} // namespace wivrn
+2
View File
@@ -39,5 +39,7 @@ public:
static std::vector<std::filesystem::path> manifest_path();
static std::filesystem::path openvr_compat_path();
static void cleanup_openxr();
};
} // namespace wivrn
+12 -8
View File
@@ -293,7 +293,7 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle)
U_LOG_IFL_D(log_level, "frame %ld commit %d layers", frame.rendering.id, layer_accum.layer_count);
if (encode_request >= 0 // encoders have not picked up the previous frame
or layer_accum.layer_count == 0 or not session.connected() or not session.get_offset())
or not session.connected() or not session.get_offset())
{
comp_frame_clear_locked(&frame.rendering);
return XRT_SUCCESS;
@@ -558,14 +558,18 @@ xrt_result_t compositor::get_display_refresh_rate(float * hz)
xrt_result_t compositor::request_display_refresh_rate(float hz)
{
try
requested_refresh_rate = hz;
U_LOG_I("request refresh rate: %fHz", hz);
if (hz > 0)
{
requested_refresh_rate = hz;
session.send_control(to_headset::refresh_rate_change{.hz = hz});
}
catch (std::exception & e)
{
U_LOG_W("refresh rate change failed: %s", e.what());
try
{
session.send_control(to_headset::refresh_rate_change{.hz = hz});
}
catch (std::exception & e)
{
U_LOG_W("refresh rate change failed: %s", e.what());
}
}
return XRT_SUCCESS;
}
+40 -22
View File
@@ -21,6 +21,7 @@
#include "driver/xrt_cast.h"
#include "utils/wivrn_vk_bundle.h"
#include "vk/specialization_constants.h"
#include "wivrn_packets.h"
#include "xrt/xrt_defines.h"
@@ -41,8 +42,6 @@ struct ubo_data
{
uint32_t x[XRT_MAX_VIEWS * RENDER_FOVEATION_BUFFER_DIMENSIONS];
uint32_t y[XRT_MAX_VIEWS * RENDER_FOVEATION_BUFFER_DIMENSIONS];
uint32_t alpha_width;
VkBool32 alpha;
};
vk::raii::Sampler make_sampler(wivrn::vk_bundle & vk)
@@ -112,20 +111,39 @@ vk::raii::PipelineLayout make_layout(wivrn::vk_bundle & vk, vk::DescriptorSetLay
return res;
}
vk::raii::Pipeline make_pipeline(wivrn::vk_bundle & vk, vk::PipelineLayout layout)
std::array<vk::raii::Pipeline, 2> make_pipelines(wivrn::vk_bundle & vk, vk::PipelineLayout layout, int32_t alpha_width)
{
vk::raii::Pipeline res(
vk.device,
nullptr,
vk::ComputePipelineCreateInfo{
.stage = {
.stage = vk::ShaderStageFlagBits::eCompute,
.module = *vk.load_shader("foveation"),
.pName = "main",
auto shader = vk.load_shader("foveation");
auto spc = make_specialization_constants(alpha_width);
std::array res{
vk::raii::Pipeline{
vk.device,
nullptr,
vk::ComputePipelineCreateInfo{
.stage = {
.stage = vk::ShaderStageFlagBits::eCompute,
.module = *shader,
.pName = "main",
},
.layout = layout,
},
.layout = layout,
});
vk.name(*res, "foveation pipeline");
},
vk::raii::Pipeline{
vk.device,
nullptr,
vk::ComputePipelineCreateInfo{
.stage = {
.stage = vk::ShaderStageFlagBits::eCompute,
.module = *shader,
.pName = "main",
.pSpecializationInfo = spc,
},
.layout = layout,
},
},
};
vk.name(*res[0], "foveation pipeline");
vk.name(*res[1], "foveation+alpha pipeline");
return res;
}
@@ -390,14 +408,14 @@ foveation::foveation(wivrn::vk_bundle & bundle, vk::Extent3D foveated_size) :
.usage = vk::BufferUsageFlagBits::eTransferDst | vk::BufferUsageFlagBits::eStorageBuffer,
},
VmaAllocationCreateInfo{
.flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT,
.flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_SEQUENTIAL_WRITE_BIT,
.usage = VMA_MEMORY_USAGE_AUTO_PREFER_DEVICE,
},
"foveation storage buffer"),
sampler(make_sampler(bundle)),
ds_layout(make_ds_layout(bundle)),
layout(make_layout(bundle, ds_layout)),
pipeline(make_pipeline(bundle, layout)),
pipeline(make_pipelines(bundle, layout, foveated_size.width / 2)),
descriptor_pool(make_ds_pool(bundle)),
descriptor_set(bundle.device.allocateDescriptorSets(vk::DescriptorSetAllocateInfo{
.descriptorPool = descriptor_pool,
@@ -517,7 +535,7 @@ void foveation::update_ubo(
compute_params();
auto ubo = gpu_buffer.data<ubo_data>();
ubo_data ubo;
for (size_t view = 0; view < 2; ++view)
{
bool flip = false;
@@ -534,7 +552,7 @@ void foveation::update_ubo(
offset = src_rect[view].offset.w;
extent = src_rect[view].extent.w;
}
fill_ubo(std::span(ubo->x + view * RENDER_FOVEATION_BUFFER_DIMENSIONS, RENDER_FOVEATION_BUFFER_DIMENSIONS),
fill_ubo(std::span(ubo.x + view * RENDER_FOVEATION_BUFFER_DIMENSIONS, RENDER_FOVEATION_BUFFER_DIMENSIONS),
params[view].x,
flip,
offset,
@@ -553,13 +571,15 @@ void foveation::update_ubo(
offset = src_rect[view].offset.h;
extent = src_rect[view].extent.h;
}
fill_ubo(std::span(ubo->y + view * RENDER_FOVEATION_BUFFER_DIMENSIONS, RENDER_FOVEATION_BUFFER_DIMENSIONS),
fill_ubo(std::span(ubo.y + view * RENDER_FOVEATION_BUFFER_DIMENSIONS, RENDER_FOVEATION_BUFFER_DIMENSIONS),
params[view].y,
flip,
offset,
extent,
foveated_size.height);
}
vmaCopyMemoryToAllocation(vk_allocator::instance(), &ubo, gpu_buffer, 0, sizeof(ubo));
std::memcpy(gpu_buffer.data<ubo_data>(), &ubo, sizeof(ubo));
}
std::array<to_headset::foveation_parameter, 2> foveation::foveate(
@@ -575,8 +595,6 @@ std::array<to_headset::foveation_parameter, 2> foveation::foveate(
{
update_ubo(cmd, flip_y, src_rect, src_fov);
auto ubo = gpu_buffer.data<ubo_data>();
ubo->alpha_width = foveated_size.width / 2;
ubo->alpha = alpha;
std::array src_image_info{
vk::DescriptorImageInfo{
@@ -638,7 +656,7 @@ std::array<to_headset::foveation_parameter, 2> foveation::foveate(
device.updateDescriptorSets(writes, {});
cmd.bindPipeline(vk::PipelineBindPoint::eCompute, *pipeline);
cmd.bindPipeline(vk::PipelineBindPoint::eCompute, *pipeline[alpha]);
cmd.bindDescriptorSets(vk::PipelineBindPoint::eCompute, *layout, 0, descriptor_set, {});
cmd.dispatch(divide_and_round_up(foveated_size.width, 8),
divide_and_round_up(foveated_size.height, 8),
+1 -1
View File
@@ -55,7 +55,7 @@ class foveation
vk::raii::DescriptorSetLayout ds_layout;
vk::raii::PipelineLayout layout;
vk::raii::Pipeline pipeline;
std::array<vk::raii::Pipeline, 2> pipeline;
vk::raii::DescriptorPool descriptor_pool;
vk::DescriptorSet descriptor_set;
+4 -1
View File
@@ -614,7 +614,10 @@ layer_squasher::do_layers(
writes[0].descriptorCount = image_array_size;
}
device.updateDescriptorSets(writes, {});
if (writes[0].descriptorCount == 0)
device.updateDescriptorSets(std::span(writes).subspan(1), {});
else
device.updateDescriptorSets(writes, {});
cmd.bindDescriptorSets(vk::PipelineBindPoint::eCompute, *layout, 0, descriptor_sets[view], {});
auto [w, h] = calc_dispatch_dims_1_view(viewports[view]);
+30 -18
View File
@@ -35,14 +35,13 @@ layout(set = 0, binding = 1, std430) buffer restrict Config
// foveation parameters
uint x[2*MAX_DIM];
uint y[2*MAX_DIM];
// output parameters
uint alpha_width;
bool alpha;
} ubo;
layout(set = 0, binding = 2) uniform writeonly restrict image2DArray luma;
layout(set = 0, binding = 3) uniform writeonly restrict image2DArray chroma;
layout(constant_id = 0) const int alpha_width = 0;
const mat3 color_space = mat3(
// R G B
/* Y */ 0.2126, 0.7152, 0.0722,
@@ -72,24 +71,38 @@ vec3 from_linear_to_srgb(vec3 linear_rgb)
);
}
uint ABfe(uint src,uint off,uint bits){return bitfieldExtract(src,int(off),int(bits));}
uint ABfiM(uint src,uint ins,uint bits){return bitfieldInsert(src,ins,0,int (bits));}
// More complex remap 64x1 to 8x8 which is necessary for 2D wave reductions.
// 543210
// ======
// .xx..x
// y..yy.
// Details,
// LANE TO 8x8 MAPPING
// ===================
// 00 01 08 09 10 11 18 19
// 02 03 0a 0b 12 13 1a 1b
// 04 05 0c 0d 14 15 1c 1d
// 06 07 0e 0f 16 17 1e 1f
// 20 21 28 29 30 31 38 39
// 22 23 2a 2b 32 33 3a 3b
// 24 25 2c 2d 34 35 3c 3d
// 26 27 2e 2f 36 37 3e 3f
uint ARmpRed8x8_x(uint a){return ABfiM(ABfe(a,2u,3u),a,1u);}
uint ARmpRed8x8_y(uint a){return ABfiM(ABfe(a,3u,3u),ABfe(a,1u,2u),2u);}
//uvec2 ARmpRed8x8(uint32_t a){return uvec2(ABfiM(ABfe(a,2u,3u),a,1u),ABfiM(ABfe(a,3u,3u),ABfe(a,1u,2u),2u));}
void main()
{
uint iz = gl_GlobalInvocationID.z;
// In order to know how subgroup are mapped, we have to do the swizzling ourselves
// in the work group, consider pixels in the following order:
//
// 0 1 4 5 8 9 12 13
// 2 3 6 7 10 11 14 15
// 16 17 20 21 24 25 28 29
// 18 19 22 23 26 27 30 31
// ...
// in the work group.
uint id = gl_SubgroupID * gl_SubgroupSize + gl_SubgroupInvocationID;
uint quad = id / 4;
id -= 4 * quad;
uint iy = gl_WorkGroupID.y * gl_WorkGroupSize.y + ARmpRed8x8_y(id);
uint ix = gl_WorkGroupID.x * gl_WorkGroupSize.x + ARmpRed8x8_x(id);
uint iy = gl_WorkGroupID.y * gl_WorkGroupSize.y + 2 * uint(quad / (gl_WorkGroupSize.y / 2)) + id / 2;
uint ymin = ubo.y[MAX_DIM * iz + iy];
uint ymax = ubo.y[MAX_DIM * iz + iy + 1];
if (ymin > ymax)
@@ -98,7 +111,6 @@ void main()
ymin = ymax;
ymax = tmp;
}
uint ix = gl_WorkGroupID.x * gl_WorkGroupSize.x + 2 * (quad % (gl_WorkGroupSize.y / 2)) + (id % 2);
uint xmin = ubo.x[MAX_DIM * iz + ix];
uint xmax = ubo.x[MAX_DIM * iz + ix + 1];
@@ -121,15 +133,15 @@ void main()
vec4 sum = colour + subgroupShuffleDown(colour, 1) + subgroupShuffleDown(colour, 2) + subgroupShuffleDown(colour, 3);
if (id == 0)
if ((id % 4)== 0)
{
// actual chroma
imageStore(chroma, ivec3(ix/2, iy/2, iz), vec4(sum.y, sum.z, 0, 0) / 4);
if (ubo.alpha)
if (alpha_width > 0)
{
// alpha in luma
int offset = int(ubo.alpha_width * iz);
int offset = alpha_width * int(iz);
imageStore(luma, ivec3(offset + ix/2, iy/2, 2), vec4(sum.w, 0, 0, 0) / 4);
imageStore(chroma, ivec3(offset + ix/2, iy/2, 2), vec4(0.5, 0.5, 0, 0));
}
+11 -5
View File
@@ -40,6 +40,7 @@
#include "wivrn_packets.h"
#include "xr/to_string.h"
#include "b_hand_tracker.h"
#include "b_system.h"
#include "target_builder_helpers.h"
#include "util/u_logging.h"
@@ -78,6 +79,7 @@ bool is_forced_extension(const char * ext_name)
wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection, b_system & system) :
xrt_system_devices{
.get_roles = method_pointer<&wivrn_session::get_roles>,
.create_hand_tracker = b_hand_tracker_create,
.feature_inc = method_pointer<&wivrn_session::feature_inc>,
.feature_dec = method_pointer<&wivrn_session::feature_dec>,
.destroy = method_pointer<&wivrn_session::destroy>,
@@ -401,11 +403,15 @@ void wivrn_session::resume_session()
if (target_fps != current_fps)
{
auto s = settings.lock();
(*this)(from_headset::refresh_rate_changed{
.from = current_fps * s->fps_divider,
.to = target_fps * s->fps_divider,
});
compositor.set_framerate(target_fps);
push_event(
{
.display = {
.type = XRT_SESSION_EVENT_DISPLAY_REFRESH_RATE_CHANGE,
.from_display_refresh_rate_hz = current_fps,
.to_display_refresh_rate_hz = target_fps,
},
});
}
}
+6 -11
View File
@@ -133,13 +133,6 @@ static bool pressure_vessel_openxr_support()
return pv_var and pv_var == std::string_view("1");
}
static void append_delim(std::string & to, std::string_view what, char delim)
{
if (not to.empty())
to += delim;
to += what;
}
// search for the directory in path named needle
// with d = /a/b/c/d/e and needle = c
// return /a/b/c
@@ -159,7 +152,7 @@ static std::string steam_command()
std::string command;
if (not pressure_vessel_openxr_support())
command = "PRESSURE_VESSEL_IMPORT_OPENXR_1_RUNTIMES=1";
command = "PRESSURE_VESSEL_IMPORT_OPENXR_1_RUNTIMES=1 ";
std::string_view home{"\0", 1};
if (auto h = std::getenv("HOME"))
@@ -169,13 +162,13 @@ static std::string steam_command()
{
// /usr cannot be shared in pressure vessel container
if (p.starts_with("/usr"))
append_delim(command, " VR_OVERRIDE=/run/host" + p, ' ');
command += "VR_OVERRIDE=/run/host" + p + ' ';
else if (p.starts_with("/var") and not p.starts_with(home))
append_delim(command, "PRESSURE_VESSEL_FILESYSTEMS_RW=" + find_dir(p, "io.github.wivrn.wivrn").string(), ' ');
command += "PRESSURE_VESSEL_FILESYSTEMS_RW=" + find_dir(p, "io.github.wivrn.wivrn").string() + ' ';
}
if (not command.empty())
command += " %command%";
command += "%command%";
return command;
}
@@ -949,6 +942,8 @@ int inner_main(int argc, char * argv[], bool show_instructions)
std::filesystem::create_directories(socket_path().parent_path());
if (do_active_runtime)
active_runtime::cleanup_openxr();
listen_socket = create_listen_socket();
u_trace_marker_init();
+1 -1
View File
@@ -123,7 +123,7 @@ int get_queue_index(const std::vector<vk::QueueFamilyProperties> & queues, std::
auto count = queues.at(family_index).queueCount;
if (info.queueCount == count)
{
U_LOG_W("Insufficient vulkan queues for family %d", family_index);
U_LOG_D("Insufficient vulkan queues for family %d", family_index);
return -1;
}
return info.queueCount++;
+10 -6
View File
@@ -50,7 +50,7 @@ if __name__ == "__main__":
# Get dependencies for xrizer
xrizer_repo = "https://github.com/Supreeeme/xrizer"
xrizer_commit = re.findall(f"url: {xrizer_repo}.git[ \n]*tag: ([a-f0-9]*)", template)[0]
xrizer_commit = re.findall(f"url: {xrizer_repo}.git[ \n]*commit: ([a-f0-9]*)", template)[0]
lock = urlopen(f"{xrizer_repo}/raw/{xrizer_commit}/Cargo.lock")
gen_src = asyncio.run(flatpakcargogenerator.generate_sources(
toml.loads(lock.read().decode())))
@@ -63,20 +63,23 @@ if __name__ == "__main__":
boost_sha256 = cmake.get("boost", "URL_HASH").split("=")[-1]
try:
git_commit = subprocess.check_output(
git_tag = subprocess.check_output(
["git", "describe", "--exact-match", "--tags"],
cwd=root,
stderr=subprocess.DEVNULL
).decode().strip()
git_commit = ""
git_desc = ""
except subprocess.CalledProcessError:
git_tag = ""
git_commit = subprocess.check_output(
["git", "rev-parse", "HEAD"],
cwd=root
).decode().strip()
git_desc = subprocess.check_output(
["git", "describe", "--tags", "--always"],
cwd=root
).decode().strip()
git_desc = subprocess.check_output(
["git", "describe", "--tags", "--always"],
cwd=root
).decode().strip()
if args.git or args.gitlocal:
template = template.replace("WIVRN_SRC1", "type: git")
@@ -90,6 +93,7 @@ if __name__ == "__main__":
template = template.replace("WIVRN_SRC2", f"path: {root}")
template = template.replace("WIVRN_SRC3", "")
template = template.replace("WIVRN_GIT_TAG", git_tag)
template = template.replace("WIVRN_GIT_DESC", git_desc)
template = template.replace("WIVRN_GIT_COMMIT", git_commit)