Compare commits

...
Author SHA1 Message Date
gitea 410c505099 Actualiser .github/workflows/APK-Release.yml
Build / Linux server (flatpak) (push) Skipped
Build / Test Nix package and devshell (push) Skipped
Build / Android (Debug) (push) Skipped
Build / Android (DebugWithValidationLayer) (push) Skipped
Build / Android (Oculus) (push) Skipped
Build / Android (Release) (push) Skipped
Build / Build Ubuntu package (plucky) (push) Skipped
Format / Formatting check (client) (push) Skipped
Format / Formatting check (common) (push) Skipped
Format / Formatting check (dashboard) (push) Skipped
Format / Formatting check (server) (push) Skipped
Format / Formatting check (tools/wireshark) (push) Skipped
Locales / Locale check (push) Skipped
Build / Linux (map[packages:extra-cmake-modules libarchive-dev libboost-all-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev libkirigami-dev librsvg2-dev nlohmann-json3-dev qcoro-qt6-dev qml6-module-org-kde-kirigamiaddons-formcard prese… (push) Canceled after 0s
Build / Linux (map[packages:libboost-all-dev libsystemd-dev preset:server-tracing]) (push) Canceled after 0s
Build / Linux (map[packages:libboost-all-dev libsystemd-dev preset:server]) (push) Canceled after 0s
Build / Linux (map[packages:libboost-all-dev preset:server-no-systemd]) (push) Canceled after 0s
Build / Linux (map[packages:libboost-all-dev wireshark-dev preset:dissector-no-system-boost]) (push) Canceled after 0s
Build / Linux (map[packages:libharfbuzz-dev libfreetype-dev libavcodec-dev libavutil-dev libswscale-dev librsvg2-bin gettext libcurl4-openssl-dev libfontconfig-dev libpipewire-0.3-dev preset:client-no-system-boost]) (push) Canceled after 0s
Build / Linux (map[packages:libsystemd-dev preset:server-no-system-boost]) (push) Canceled after 0s
Build / Steam Frame (push) Canceled after 0s
Build / Create release (push) Canceled after 0s
Build / Sync fork downstream (push) Canceled after 0s
2026-11-28 22:09:37 +00:00
Vindicus999 50924ddd5c Updating cron settings since Github is dropping them out 2026-10-17 20:18:06 -04:00
Vindicus999 20296a7913 Update APK-Release.yml 2026-09-29 16:16:25 -04:00
Vindicus999 1ea133c5e2 Update APK-Release.yml 2026-09-29 15:37:32 -04:00
Vindicus999 6b4aa7460e Updating stuff for steam frame 2026-09-29 15:22:03 -04:00
Vindicus999 5e1998c28a Update Sync.yml 2026-04-04 12:56:07 -04:00
Vindicus999 88d2e03f49 Update Sync.yml 2026-04-03 09:44:04 -04:00
Vindicus999 b5d5a5928c Update APK-Release.yml 2026-04-03 09:29:11 -04:00
Vindicus999 7ad6a2451f Update Sync.yml 2026-04-03 09:09:04 -04:00
Vindicus999 0e20f5bfae Merge branch 'master' of https://github.com/Vindicus999/WiVRn 2026-04-03 09:07:31 -04:00
Vindicus999 c01de0a3d2 Create Sync.yml 2026-04-03 09:07:24 -04:00
Patrick Nicolas 6b58b63a33 Crop FOV in layer squasher 2026-04-03 14:19:54 +02:00
Patrick Nicolas 9d0bbdc357 Bind squasher pipeline only once 2026-04-03 14:19:54 +02:00
Patrick Nicolas 0aaf736b48 Return extent in do_layers() 2026-04-03 14:19:54 +02:00
Patrick Nicolas 3149ced724 request eye gaze in compositor 2026-04-03 07:15:40 +02:00
Patrick Nicolas b71a1eddf5 Add support for intra-refresh with vulkan video 2026-04-02 15:17:17 +02:00
Patrick Nicolas 392ed5c4dd Fix in-stream bitrate and foveation tabs 2026-04-02 14:39:48 +02:00
Patrick Nicolas cd9b3fc031 fix race condition in vulkan encoder 2026-04-02 14:39:48 +02:00
Patrick Nicolas 706f76b18d Prevent concurrent vulkan encode operations 2026-04-02 14:39:48 +02:00
Patrick Nicolas 14089200ab Unify vulkan encode checks 2026-04-02 14:39:48 +02:00
Patrick Nicolas 4f00287c6e Skip frame if encoders are still busy 2026-04-02 14:39:48 +02:00
chicco-carone eda77c9273 Add . button to number keyboard 2026-04-02 11:09:05 +02:00
Patrick Nicolas 2dd6f0e6f9 Fix layer squasher specialization constants 2026-04-01 18:20:21 +02:00
Patrick Nicolas 53d2079801 Print a warning if vrclient.so is not found 2026-03-31 21:00:06 +02:00
Patrick Nicolas 78b449e84b Fix doubled bitrate 2026-03-31 16:30:07 +02:00
Patrick Nicolas 6cabcfb047 fix fence status on skipped frames 2026-03-31 16:16:02 +02:00
Patrick Nicolas fc56ced616 Fill in refresh rates in compositor 2026-03-31 15:18:59 +02:00
Patrick Nicolas 1edae28630 Send video description on reconnect 2026-03-31 09:06:27 +02:00
Patrick Nicolas 91953fbef7 Remove now unused env vars 2026-03-31 09:06:27 +02:00
Patrick Nicolas 5c60d70d24 use reinterpret_cast 2026-03-31 09:06:27 +02:00
Patrick Nicolas 796ec69728 Ignore network error in refresh rate change 2026-03-31 09:06:27 +02:00
Patrick Nicolas 23689abaa7 Skip barrier in no-copy vulkan video encode 2026-03-31 09:06:27 +02:00
Patrick Nicolas 22a819b8c8 Implement main compositor
Replace the patches to Monado's main compositor with a local
implementation, reusing code when relevant.

The layer squasher is very close to comp_render_cs, while distortion is
completely replaced by foveation.
2026-03-31 09:06:27 +02:00
Sefa Eyeoglu b2f95938e6 Add wivrn-version dependency to common-base
This causes the packaging in nixpkgs-xr to fail. Not sure why other
builds aren't affected.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2026-03-28 11:58:39 +01:00
Patrick Nicolas 36a0377dc8 fix build with spaces in directory 2026-03-27 12:58:03 +01:00
Patrick Nicolas fb7703cb76 Only enable AUTOMOC for dashboard 2026-03-24 10:50:54 +01:00
Sapphire 456d65ef8c Use method_pointer to initialise wivrn_session function pointers 2026-03-22 12:50:02 -05:00
Sapphire 902a665c36 Use u_str_xrt_result for pretty-printing xrt_result 2026-03-21 12:26:01 -05:00
Sapphire a491561271 Update Monado 2026-03-20 17:22:00 -05:00
Sapphire 78d7fc40f2 Update Monado 2026-03-20 17:17:50 -05:00
Sapphire 7164a7dbeb Fix build failure in debug 2026-03-20 17:17:48 -05:00
Patrick Nicolas 45907329c7 Set project name + version from git/GIT_DESC 2026-03-20 21:04:02 +01:00
Sapphire 515010aeab C++ify wivrn_comp_target 2026-03-18 21:06:00 -05:00
Patrick Nicolas caa191ff06 Fail on unset GIT_DESC/GIT_COMMIT 2026-03-17 14:41:51 +01:00
Patrick Nicolas 78addc1f22 Add tab interface to wivrnctl 2026-03-14 18:20:32 +01:00
Patrick Nicolas 26f21348f3 Export current client tab on dbus 2026-03-14 18:20:32 +01:00
Patrick Nicolas 7d9031e843 Rework stream tabs management 2026-03-14 17:29:21 +01:00
Patrick Nicolas 79df7370f3 Fix debug build 2026-03-14 17:29:01 +01:00
codedwrench 2b7409b363 fix: correct controller position on pico 2026-03-13 19:58:47 +01:00
Patrick Nicolas b3b2c49da4 Fix vulkan object naming 2026-03-11 18:39:55 +01:00
Patrick Nicolas 13a94f3dec Don't shard over TCP 2026-03-11 18:39:55 +01:00
galister 94ef8945cc add community links to readme 2026-03-06 22:11:06 +01:00
Patrick Nicolas 02d06562a6 Don't reset decoders if there's no change 2026-03-05 10:56:07 +01:00
Patrick Nicolas 9690633030 reset defoveator on decoder change 2026-03-05 10:56:07 +01:00
mitsuami-megane bc115b9969 update ja locale 2026-03-03 07:44:47 +01:00
Patrick Nicolas be75748d5c Fix connection rejecton on headset feature change 2026-03-02 11:52:03 +01:00
Patrick Nicolas 0ad6cf0507 use thread_safe wrapper for hmd battery 2026-03-02 11:47:22 +01:00
Patrick Nicolas 8a4edf46af Simplify decoded frame accessor 2026-03-02 11:26:52 +01:00
Patrick Nicolas 33fac50895 Probe supported codecs only once 2026-03-02 11:07:03 +01:00
Patrick Nicolas 6859db7c34 Add image() accessor in xr::swapchain 2026-03-02 10:57:46 +01:00
Patrick Nicolas f32d6f4710 Drop support for XR_FB_FOVEATION 2026-03-02 10:54:45 +01:00
Patrick Nicolas dfa0fff46d Simplify mdns client object lifetime 2026-03-02 10:32:36 +01:00
Patrick Nicolas 65cc572fde Remove obsolete lock/assertion 2026-03-02 10:18:13 +01:00
Patrick Nicolas ce3e54b2d0 default app_launcher destructor 2026-03-02 10:15:52 +01:00
Cláudio 'Patola' Sampaio 822f28ab23 Translated two 'disconnected' strings 2026-02-28 16:33:36 +01:00
BERADQ 3ac94dc320 Update Simplified Chinese localization -> close #599 2026-02-28 14:48:29 +01:00
BlackCherryCat 7f5d254d8e Update es locale 2026-02-28 09:24:05 +01:00
Patrick Nicolas 51855e195c FR locale 2026-02-27 16:12:46 +01:00
Patrick Nicolas 34ce871f2d IT locale 2026-02-27 16:11:37 +01:00
caszuu 4a1c58a137 fix tracking thread softlock on xr session begin 2026-02-27 16:03:18 +01:00
caszuu 1903d5c910 refuse pair enable requests while session is running 2026-02-27 16:03:18 +01:00
caszuu b96833cc9b semi-workaround for quest gpu memory corruption
From pure trial and error, is seems that swapchain
management on the quest platform is broken. After a
swapchain is destroyed, there is a _chance_ the
next created swapchain will be unusable.

This seems to happen no matter what, where or when
the client decides to clean up its resources and the
safest bet is to not recreate swapchains much.
2026-02-27 16:03:18 +01:00
caszuu 93ee0cc577 add minimal feedback to reconnect errors 2026-02-27 16:03:18 +01:00
caszuu 9a2f31e011 set user presence on session pause / resume 2026-02-27 16:03:18 +01:00
caszuu b5e93607df set refresh rate on session pause / resume 2026-02-27 16:03:18 +01:00
caszuu 9a81bc8213 ignore network errors instead of crashing
wrap some code paths which could cause uncaught
exceptions if called from one of the monado owned
threads.
2026-02-27 16:03:18 +01:00
caszuu a823df96d3 add server error messages 2026-02-27 16:03:18 +01:00
caszuu c44940d004 add server messages (with toasts!) 2026-02-27 16:03:18 +01:00
caszuu 7d11674b2a respect current client selection on session resume
this fixes a bug where non-current non-overlay
clients could get up to the focused session state
when a reconnect occured.
2026-02-27 16:03:18 +01:00
caszuu adf4b1fc84 verify headset compatibility on reconnect 2026-02-27 16:03:18 +01:00
caszuu 5b6e172b41 skip encoding when session paused
this is already done by `offset_est.reset()` as a
side-effect but it's implemented formally in case
that breaks by future changes.
2026-02-27 16:03:18 +01:00
caszuu a8504545e9 refactor reconnect logic
try to merge as much code between the first-time
connect and reconnects under `resume_session()`
without changing current behavior.
2026-02-27 16:03:18 +01:00
Sapphire e81393fe87 Use pose data from device for projection when layer is old 2026-02-27 09:55:07 +01:00
Patrick Nicolas bfe44c6b8d Drop norm > 0.9 assertion 2026-02-26 23:09:41 +01:00
Patrick Nicolas 9df870a7fa Project layers on the first projection one 2026-02-26 22:21:54 +01:00
Schmarni 8a7cc105cb Call openvrChanged instead of tcpOnlyChanged in set_openvr
Signed-off-by: Schmarni <marnistromer@gmail.com>
2026-02-26 15:00:39 +01:00
Schmarni 1e6937d4a4 Add port and hostname config options
Signed-off-by: Schmarni <marnistromer@gmail.com>
2026-02-26 15:00:39 +01:00
BERADQ 0f21191e9b Check NVENC intra-refresh capability before enabling the feature 2026-02-26 15:00:05 +01:00
BERADQ 6254386370 Set intra refresh period and count to fixed values. 2026-02-26 15:00:05 +01:00
BERADQ e32d3bbf36 Enable intra refresh for H264/HEVC/AV1 with period=fps and count=fps/2 2026-02-26 15:00:05 +01:00
Patrick Nicolas 63cb9ff179 Use same trigger threshold as in Monado 2026-02-25 21:08:18 +01:00
BERADQ a16a0df1c0 Update Simplified Chinese localization -> close #599 2026-02-25 14:56:26 +01:00
Patrick Nicolas f476f9a1db Default refresh rate < 100Hz 2026-02-23 19:14:44 +01:00
Gabriel ea84391ba3 Unacceptable and deplorable typo fixed 2026-02-22 15:33:33 +01:00
Sapphire 71ee653312 Update Monado 2026-02-21 17:11:22 +01:00
Sapphire 19ac929be9 Update Monado 2026-02-21 17:11:22 +01:00
Sapphire 4ff91f1e13 Update Monado 2026-02-21 17:11:22 +01:00
Sapphire e837396944 Update Monado 2026-02-21 17:11:22 +01:00
131 changed files with 5824 additions and 5431 deletions
+80 -11
View File
@@ -2,12 +2,81 @@ name: Release APK Only
on: on:
push: push:
branches: [ "master" ] branches: [ "apk-build" ]
env: env:
BUILD_TYPE: RelWithDebInfo BUILD_TYPE: RelWithDebInfo
jobs: jobs:
build-steam-frame:
name: Steam Frame
runs-on: ubuntu-24.04-arm
if: ${{ vars.APK_ONLY != '' }}
container:
image: registry.gitlab.steamos.cloud/steamrt/steamrt4/sdk/arm64:4.0.20260805.254769
volumes:
- ${{github.workspace}}/install:/tmp/install
steps:
- uses: actions/checkout@v6
with:
repository: 'gitea/WiVRn'
ref: ${{ github.sha }}
fetch-depth: 0
fetch-tags: true
- name: Apt dependencies
uses: awalsh128/cache-apt-pkgs-action@v1.6.1
with:
packages: librsvg2-bin npm
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.23
with:
key: steam-frame
job-summary: ""
- uses: actions/cache@v5
with:
key: cmake-frame
path: |
${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.tar.*
${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.zip
${{github.workspace}}/cmake-fetch/*.tar.*
${{github.workspace}}/cmake-fetch/*.tgz
${{github.workspace}}/cmake-fetch/*-src/.git
- name: Install dependencies
run: |
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.4.2/KTX-Software-4.4.2-Linux-arm64.deb
sudo dpkg --install KTX-Software-4.4.2-Linux-arm64.deb
npm install --global @gltf-transform/cli@4.1.1
- name: Configure CMake
run: >
cmake -B "$GITHUB_WORKSPACE/build"
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DWIVRN_CSS=${{env.CSS}}
-DFETCHCONTENT_BASE_DIR="$GITHUB_WORKSPACE/cmake-fetch"
-DCMAKE_C_COMPILER_LAUNCHER=ccache
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_INSTALL_PREFIX=/usr
--preset frame
- name: Build
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
cd "$GITHUB_WORKSPACE/build"
DESTDIR="$GITHUB_WORKSPACE/install" ninja install
- name: Archive
uses: actions/upload-artifact@v7
with:
name: wivrn-frame-client.zip
path: install/usr
if-no-files-found: error
retention-days: 30
build-android-only: build-android-only:
name: Android name: Android
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
@@ -18,10 +87,10 @@ jobs:
buildtype: ['Release', 'Debug', 'DebugWithValidationLayer'] buildtype: ['Release', 'Debug', 'DebugWithValidationLayer']
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
with: with:
# Checkout from upstream instead of WiVRn-APK to ensure the GIT_DESC variable is set correctly # Checkout from upstream instead of WiVRn-APK to ensure the GIT_DESC variable is set correctly
repository: 'WiVRn/WiVRn' repository: 'gitea/WiVRn'
ref: ${{ github.sha }} ref: ${{ github.sha }}
fetch-depth: 0 fetch-depth: 0
@@ -89,7 +158,7 @@ jobs:
release: release:
name: Create APK release name: Create APK release
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
needs: build-android-only needs: [build-android-only, build-steam-frame]
if: ${{ vars.APK_ONLY != '' }} if: ${{ vars.APK_ONLY != '' }}
steps: steps:
@@ -100,13 +169,12 @@ jobs:
pattern: 'apk-*' pattern: 'apk-*'
merge-multiple: true merge-multiple: true
- name: Rename APK artifacts - name: Download Steam Frame artifact
run: | uses: actions/download-artifact@v4
cd apk with:
for f in *.apk; do path: install/usr
BASENAME=`echo ${f}|awk -F '-APK-' '{print $2}'` pattern: 'wivrn-frame-client.zip'
mv "${f}" "org.meumeu.wivrn-${BASENAME}" merge-multiple: true
done
- name: Download APK debug artifacts - name: Download APK debug artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
@@ -130,5 +198,6 @@ jobs:
prerelease: false prerelease: false
fail_on_unmatched_files: true fail_on_unmatched_files: true
files: | files: |
install/usr/wivrn-frame-client.zip
apk/*.apk apk/*.apk
debug-symbols.zip debug-symbols.zip
+118 -87
View File
@@ -6,46 +6,52 @@ on:
env: env:
BUILD_TYPE: Release BUILD_TYPE: Release
SERVER_DEPS: libx264-dev libavcodec-dev libavutil-dev libbsd-dev libavahi-client-dev libavahi-glib-dev libeigen3-dev nlohmann-json3-dev librsvg2-dev libdrm-dev libglib2.0-dev-bin libpipewire-0.3-dev libpulse-dev libcli11-dev libnotify-dev libarchive-dev libudev-dev SERVER_DEPS: libx264-dev libavcodec-dev libavutil-dev libbsd-dev libavahi-client-dev libavahi-glib-dev libeigen3-dev nlohmann-json3-dev librsvg2-dev libdrm-dev libglib2.0-dev-bin libpipewire-0.3-dev libcli11-dev libnotify-dev libarchive-dev libudev-dev
CSS: images/wivrn-${{(github.ref_type == 'tag' && 'release') || 'nightly'}}.css
jobs: jobs:
build-linux: build-linux:
name: Linux name: Linux
runs-on: ubuntu-24.04 runs-on: ubuntu-26.04
if: ${{ vars.APK_ONLY == '' }} if: ${{ vars.APK_ONLY == '' }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
config: config:
- preset: 'client' - preset: 'client-no-system-boost'
packages: libboost-all-dev libharfbuzz-dev libfreetype-dev libavcodec-dev libavutil-dev libswscale-dev librsvg2-bin gettext libcurl4-openssl-dev libfontconfig-dev packages: libharfbuzz-dev libfreetype-dev libavcodec-dev libavutil-dev libswscale-dev librsvg2-bin gettext libcurl4-openssl-dev libfontconfig-dev libpipewire-0.3-dev
# dashboard requires a more recent Ubuntu, have it out of this job - preset: 'dashboard'
packages: extra-cmake-modules libarchive-dev libboost-all-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev libkirigami-dev librsvg2-dev nlohmann-json3-dev qcoro-qt6-dev qml6-module-org-kde-kirigamiaddons-formcard
- preset: 'dissector-no-system-boost' - preset: 'dissector-no-system-boost'
packages: libboost-all-dev wireshark-dev packages: libboost-all-dev wireshark-dev
- preset: 'server' - preset: 'server'
packages: libboost-all-dev libsystemd-dev packages: libboost-all-dev libsystemd-dev
# tracing is opt-in and rarely built; build it here so the instrumentation and the
# Perfetto SDK glue don't bitrot (WIVRN_TRACE_MONADO needs percetto, not packaged in CI)
- preset: 'server-tracing'
packages: libboost-all-dev libsystemd-dev
- preset: 'server-no-systemd' - preset: 'server-no-systemd'
packages: libboost-all-dev packages: libboost-all-dev
- preset: 'server-no-system-boost' - preset: 'server-no-system-boost'
packages: libsystemd-dev packages: libsystemd-dev
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Apt dependencies - name: Apt dependencies
uses: awalsh128/cache-apt-pkgs-action@v1.6.0 uses: awalsh128/cache-apt-pkgs-action@v1.6.1
with: with:
packages: ccache ${{matrix.config.packages}} ${{ startsWith(matrix.config.preset, 'server') && env.SERVER_DEPS || ''}} packages: ccache libvulkan-dev glslang-tools spirv-tools libwayland-dev libxrandr-dev ${{matrix.config.packages}} ${{ startsWith(matrix.config.preset, 'server') && env.SERVER_DEPS || ''}}
- name: ccache - name: ccache
uses: hendrikmuhs/ccache-action@v1.2 uses: hendrikmuhs/ccache-action@v1.2.23
with: with:
key: linux-${{matrix.config.preset}} key: linux-${{matrix.config.preset}}
job-summary: "" job-summary: ""
restore-keys: linux- restore-keys: linux-
- uses: actions/cache@v4 - uses: actions/cache@v5
with: with:
key: cmake-linux-${{matrix.config.preset}} key: cmake-linux-${{matrix.config.preset}}
path: | path: |
@@ -57,18 +63,23 @@ jobs:
restore-keys: cmake-linux- restore-keys: cmake-linux-
- name: Install dependencies - name: Install dependencies
if: ${{ matrix.config.preset == 'client' }} if: ${{ startswith(matrix.config.preset, 'client') }}
run: | run: |
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.4.2/KTX-Software-4.4.2-Linux-x86_64.deb wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.4.2/KTX-Software-4.4.2-Linux-x86_64.deb
sudo dpkg --install KTX-Software-4.4.2-Linux-x86_64.deb sudo dpkg --install KTX-Software-4.4.2-Linux-x86_64.deb
npm install --global @gltf-transform/cli@4.1.1 npm install --global @gltf-transform/cli@4.1.1
- name: Prepare Vulkan SDK - name: Fetch Perfetto SDK
uses: humbletim/setup-vulkan-sdk@v1.2.1 if: ${{ matrix.config.preset == 'server-tracing' }}
with: # The amalgamated SDK is two files; install them where server/CMakeLists.txt looks.
vulkan-query-version: 1.3.296.0 env:
vulkan-components: Vulkan-Headers, Vulkan-Loader, Glslang, SPIRV-Reflect, SPIRV-Tools PERFETTO_TAG: v51.0
vulkan-use-cache: true run: |
sudo mkdir -p /usr/share/perfetto/sdk
for f in perfetto.h perfetto.cc; do
sudo curl -fsSL -o /usr/share/perfetto/sdk/$f \
https://raw.githubusercontent.com/google/perfetto/${PERFETTO_TAG}/sdk/$f
done
- name: Configure CMake - name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
@@ -85,7 +96,7 @@ jobs:
- name: Package build dependencies - name: Package build dependencies
if: ${{ matrix.config.preset == 'server' }} if: ${{ matrix.config.preset == 'server' }}
# For easier packaging, build dependencies are made available as a separate archive # 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 - name: Build
# Build your program with the given configuration # Build your program with the given configuration
@@ -93,7 +104,7 @@ jobs:
- name: Publish build dependencies - name: Publish build dependencies
if: ${{ matrix.config.preset == 'server' }} if: ${{ matrix.config.preset == 'server' }}
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: server-build-deps name: server-build-deps
path: server-build-deps.tar.xz path: server-build-deps.tar.xz
@@ -107,55 +118,84 @@ jobs:
draft: true draft: true
files: server-build-deps.tar.xz files: server-build-deps.tar.xz
build-dashboard: build-steam-frame:
#FIXME: merge with the matrixed build once Ubuntu gets updated name: Steam Frame
name: Linux Dashboard runs-on: ubuntu-24.04-arm
runs-on: ubuntu-24.04
container: ubuntu:plucky
if: ${{ vars.APK_ONLY == '' }} if: ${{ vars.APK_ONLY == '' }}
container:
image: registry.gitlab.steamos.cloud/steamrt/steamrt4/sdk/arm64:4.0.20260805.254769
volumes:
- ${{github.workspace}}/install:/tmp/install
steps: 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
with: with:
key: cmake-linux-dashboard fetch-depth: 0
fetch-tags: true
- name: Apt dependencies
uses: awalsh128/cache-apt-pkgs-action@v1.6.1
with:
packages: librsvg2-bin npm
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.23
with:
key: steam-frame
job-summary: ""
- uses: actions/cache@v5
with:
key: cmake-frame
path: | path: |
${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.tar.* ${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.tar.*
${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.zip ${{github.workspace}}/cmake-fetch/*-subbuild/*-populate-prefix/src/*.zip
${{github.workspace}}/cmake-fetch/*.tar.* ${{github.workspace}}/cmake-fetch/*.tar.*
${{github.workspace}}/cmake-fetch/*.tgz ${{github.workspace}}/cmake-fetch/*.tgz
restore-keys: cmake-linux- ${{github.workspace}}/cmake-fetch/*-src/.git
- name: Install dependencies
run: |
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.4.2/KTX-Software-4.4.2-Linux-arm64.deb
sudo dpkg --install KTX-Software-4.4.2-Linux-arm64.deb
npm install --global @gltf-transform/cli@4.1.1
- name: Configure CMake - name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: > run: >
cmake -B ${{github.workspace}}/build cmake -B "$GITHUB_WORKSPACE/build"
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DFETCHCONTENT_BASE_DIR=${{github.workspace}}/cmake-fetch -DWIVRN_CSS=${{env.CSS}}
--preset dashboard -DFETCHCONTENT_BASE_DIR="$GITHUB_WORKSPACE/cmake-fetch"
-DWIVRN_USE_SYSTEM_OPENXR=OFF -DCMAKE_C_COMPILER_LAUNCHER=ccache
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_INSTALL_PREFIX=/usr
--preset frame
- name: Build - name: Build
# Build your program with the given configuration run: |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} git config --global --add safe.directory "$GITHUB_WORKSPACE"
cd "$GITHUB_WORKSPACE/build"
DESTDIR="$GITHUB_WORKSPACE/install" ninja install
- name: Archive
uses: actions/upload-artifact@v7
with:
name: wivrn-frame-client.zip
path: install/usr
if-no-files-found: error
retention-days: 30
build-server-flatpak: build-server-flatpak:
name: Linux server (flatpak) name: Linux server (flatpak)
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
if: ${{ vars.APK_ONLY == '' }} if: ${{ vars.APK_ONLY == '' }}
container: container:
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.9 # Tag matches runtime-version in the manifest.
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.10
options: --privileged options: --privileged
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -166,22 +206,18 @@ jobs:
tools/gen_flatpak_manifest.py --gitlocal --out flatpak tools/gen_flatpak_manifest.py --gitlocal --out flatpak
cat flatpak/io.github.wivrn.wivrn.yml 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: with:
manifest-path: flatpak/io.github.wivrn.wivrn.yml manifest-path: flatpak/io.github.wivrn.wivrn.yml
bundle: wivrn-server.flatpak bundle: wivrn-server.flatpak
upload-artifact: false # The manifest is regenerated on every commit with the git hash embedded,
# so its default (manifest-hash) cache key never hits. Key on the files
# Upload manually instead of using flatpak/flatpak-github-actions/flatpak-builder because # that actually define the dependency set instead, so the toolchain
# it uses upload-artifact@v3 # downloads and build cache persist across commits.
- name: Publish artifact cache-key: flatpak-builder-${{ hashFiles('flatpak/io.github.wivrn.wivrn.yml.in', 'flatpak/ct-ng-x86_64.config', 'flatpak/ct-ng-aarch64.config', 'monado-rev', 'CMakeLists.txt') }}
uses: actions/upload-artifact@v4
with:
name: wivrn-flatpak-x86_64
path: wivrn-server.flatpak
- name: Debug bundle - name: Debug bundle
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
if: failure() if: failure()
with: with:
name: flatpak-debug name: flatpak-debug
@@ -195,7 +231,7 @@ jobs:
if: ${{ vars.APK_ONLY == '' }} if: ${{ vars.APK_ONLY == '' }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -213,18 +249,11 @@ jobs:
buildtype: ['Release', 'Debug', 'DebugWithValidationLayer', 'Oculus'] buildtype: ['Release', 'Debug', 'DebugWithValidationLayer', 'Oculus']
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Prepare Vulkan SDK - uses: actions/cache@v5
uses: humbletim/setup-vulkan-sdk@v1.2.1
with:
vulkan-query-version: 1.3.296.0
vulkan-components: Glslang, SPIRV-Tools
vulkan-use-cache: true
- uses: actions/cache@v4
with: with:
key: cmake-android-${{matrix.buildtype}} key: cmake-android-${{matrix.buildtype}}
path: | path: |
@@ -235,9 +264,18 @@ jobs:
${{github.workspace}}/cmake-fetch/*.tgz ${{github.workspace}}/cmake-fetch/*.tgz
restore-keys: cmake-android- restore-keys: cmake-android-
# Gradle distribution and the Android plugin's dependencies.
- uses: actions/cache@v5
with:
key: gradle-android-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'build.gradle') }}
path: |
~/.gradle/caches
~/.gradle/wrapper
restore-keys: gradle-android-
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt-get update && sudo apt-get install glslang-tools librsvg2-bin gettext sudo apt-get update && sudo apt-get install glslang-tools spirv-tools librsvg2-bin gettext
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.3.2/KTX-Software-4.3.2-Linux-x86_64.deb wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.3.2/KTX-Software-4.3.2-Linux-x86_64.deb
sudo dpkg --install KTX-Software-4.3.2-Linux-x86_64.deb sudo dpkg --install KTX-Software-4.3.2-Linux-x86_64.deb
npm install --global @gltf-transform/cli npm install --global @gltf-transform/cli
@@ -292,29 +330,22 @@ jobs:
fi fi
fi fi
if [ ${{ github.ref_type }} = 'tag' ]
then
CSS=images/wivrn-release.css
else
CSS=images/wivrn-nightly.css
fi
echo Setting version $VERSION and version code $VERSION_CODE in manifest echo Setting version $VERSION and version code $VERSION_CODE in manifest
echo Using stylesheet $CSS and name $APPNAME echo Using stylesheet ${{env.CSS}} and name $APPNAME
chmod +x gradlew chmod +x gradlew
./gradlew \ ./gradlew \
-Pwivrn_version=$VERSION \ -Pwivrn_version=$VERSION \
-Pwivrn_versionCode=$VERSION_CODE \ -Pwivrn_versionCode=$VERSION_CODE \
-Psuffix=$SUFFIX \ -Psuffix=$SUFFIX \
-Pwivrn_css=$CSS \ -Pwivrn_css=${{env.CSS}} \
-Pwivrn_app_name="$APPNAME" \ -Pwivrn_app_name="$APPNAME" \
-Pwivrn_compress_glb=ON \ -Pwivrn_compress_glb=ON \
-Pfetchcontent_base_dir=${{github.workspace}}/cmake-fetch \ -Pfetchcontent_base_dir=${{github.workspace}}/cmake-fetch \
assemble${{ matrix.buildtype }} assemble${{ matrix.buildtype }}
- name: Upload build dir - name: Upload build dir
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
if: failure() if: failure()
with: with:
name: android-cxx-debug-${{ matrix.buildtype }} name: android-cxx-debug-${{ matrix.buildtype }}
@@ -331,7 +362,7 @@ jobs:
find debug -name libopenxr_loader.so -delete find debug -name libopenxr_loader.so -delete
- name: Archive APK - name: Archive APK
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
if: ${{ matrix.buildtype != 'Oculus' }} if: ${{ matrix.buildtype != 'Oculus' }}
with: with:
name: apk-${{ (steps.secret-check.outputs.available == 'false' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }} name: apk-${{ (steps.secret-check.outputs.available == 'false' && matrix.buildtype == 'Release') && 'Release-unsigned' || matrix.buildtype }}
@@ -339,7 +370,7 @@ jobs:
retention-days: 30 retention-days: 30
- name: Archive debug symbols - name: Archive debug symbols
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: symbols-${{ matrix.buildtype }} name: symbols-${{ matrix.buildtype }}
path: debug/**/*.so path: debug/**/*.so
@@ -377,13 +408,13 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
apt update apt update
apt install --yes libcjson-dev libx264-dev libavcodec-dev libavutil-dev libswscale-dev libavfilter-dev libbsd-dev libavahi-client-dev libavahi-glib-dev libeigen3-dev glslang-tools libudev-dev libwayland-dev libx11-xcb-dev libxrandr-dev libxcb-randr0-dev libgl-dev libglx-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libsystemd-dev libva-dev nlohmann-json3-dev libpulse-dev xz-utils libpipewire-0.3-dev libcli11-dev qt6-base-dev qt6-tools-dev pkexec libboost-all-dev librsvg2-bin dpkg-dev pkg-config debhelper-compat build-essential lintian cmake libnotify-dev qt6-declarative-dev extra-cmake-modules libkirigami-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev jq sudo cmake gcc g++ git wget libssl-dev qcoro-qt6-dev librsvg2-dev libarchive-dev npm apt install --yes libcjson-dev libx264-dev libavcodec-dev libavutil-dev libswscale-dev libavfilter-dev libbsd-dev libavahi-client-dev libavahi-glib-dev libeigen3-dev glslang-tools libudev-dev libwayland-dev libx11-xcb-dev libxrandr-dev libxcb-randr0-dev libgl-dev libglx-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libsystemd-dev libva-dev nlohmann-json3-dev xz-utils libpipewire-0.3-dev libcli11-dev qt6-base-dev qt6-tools-dev pkexec libboost-all-dev librsvg2-bin dpkg-dev pkg-config debhelper-compat build-essential lintian cmake libnotify-dev qt6-declarative-dev extra-cmake-modules libkirigami-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev jq sudo cmake gcc g++ git wget libssl-dev qcoro-qt6-dev librsvg2-dev libarchive-dev npm qml6-module-org-kde-kirigamiaddons-formcard
wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.3.2/KTX-Software-4.3.2-Linux-x86_64.deb wget https://github.com/KhronosGroup/KTX-Software/releases/download/v4.3.2/KTX-Software-4.3.2-Linux-x86_64.deb
sudo dpkg --install KTX-Software-4.3.2-Linux-x86_64.deb sudo dpkg --install KTX-Software-4.3.2-Linux-x86_64.deb
npm install --global @gltf-transform/cli npm install --global @gltf-transform/cli
- uses: actions/checkout@v4 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
path: wivrn path: wivrn
@@ -425,7 +456,7 @@ jobs:
run: dpkg-buildpackage --build=binary --no-sign run: dpkg-buildpackage --build=binary --no-sign
- name: Publish package - name: Publish package
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v7
with: with:
name: wivrn-${{ matrix.distro }} name: wivrn-${{ matrix.distro }}
path: | path: |
@@ -443,7 +474,7 @@ jobs:
if: success() && startsWith(github.ref, 'refs/tags/') if: success() && startsWith(github.ref, 'refs/tags/')
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
path: wivrn path: wivrn
@@ -458,7 +489,7 @@ jobs:
echo "available=false" >> $GITHUB_OUTPUT; echo "available=false" >> $GITHUB_OUTPUT;
fi fi
- uses: actions/checkout@v4 - uses: actions/checkout@v6
if: ${{ steps.flathub-token-check.outputs.available == 'true' }} if: ${{ steps.flathub-token-check.outputs.available == 'true' }}
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -467,19 +498,19 @@ jobs:
token: ${{ secrets.FLATHUB_TOKEN }} token: ${{ secrets.FLATHUB_TOKEN }}
- name: Download artifacts (APK) - name: Download artifacts (APK)
uses: actions/download-artifact@v4 uses: actions/download-artifact@v8
with: with:
name: apk-Release name: apk-Release
path: apk path: apk
- name: Download artifacts (flatpak) - name: Download artifacts (flatpak)
uses: actions/download-artifact@v4 uses: actions/download-artifact@v8
with: with:
name: wivrn-flatpak-x86_64 name: wivrn-server-x86_64.flatpak
path: flatpak path: flatpak
- name: Release - name: Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v3
with: with:
tag_name: ${{ inputs.ref }} tag_name: ${{ inputs.ref }}
generate_release_notes: true generate_release_notes: true
+51
View File
@@ -0,0 +1,51 @@
name: Sync Fork with Upstream
env:
UPSTREAM_URL: "https://github.com/wivrn/wivrn.git"
WORKFLOW_TOKEN: ${{ secrets.DOWNSTREAM_GITHUB_TOKEN }}
UPSTREAM_BRANCH: "master"
on:
workflow_dispatch:
schedule:
- cron: '18 2 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
upstream_repo: vindicus999/wivrn
fetch-depth: 0
token: ${{ env.WORKFLOW_TOKEN }}
- name: Add upstream
run: |
git remote add upstream ${{ env.UPSTREAM_URL }}
- name: Fetch all
run: |
git fetch origin
git fetch upstream
- name: Update sync branch
run: |
git config --global user.email "sneed@feedandse.edu"
git config --global user.name "Sneed Chuckinson"
git checkout -B sync upstream/master
git push origin sync --force
- name: Copy master -> apk-build
run: |
git checkout -B apk-build sync
git push origin apk-build --force
- name: Apply sneed changes
run: |
git merge origin/sneed --no-edit
- name: Push apk build
run: |
git push origin apk-build --force
+14 -4
View File
@@ -177,10 +177,6 @@ if (WIVRN_BUILD_DASHBOARD)
find_package(nlohmann_json REQUIRED) find_package(nlohmann_json REQUIRED)
find_package(QCoro6 REQUIRED COMPONENTS Core Network Qml) find_package(QCoro6 REQUIRED COMPONENTS Core Network Qml)
qcoro_enable_coroutines() qcoro_enable_coroutines()
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
endif() endif()
if (WIVRN_BUILD_CLIENT OR WIVRN_BUILD_DASHBOARD) if (WIVRN_BUILD_CLIENT OR WIVRN_BUILD_DASHBOARD)
@@ -282,6 +278,20 @@ FetchContent_Declare(monado
EXCLUDE_FROM_ALL EXCLUDE_FROM_ALL
) )
add_custom_target(wivrn-version ALL
COMMAND ${CMAKE_COMMAND}
-D GIT_EXECUTABLE=${GIT_EXECUTABLE}
-D INPUT_FILE=${CMAKE_CURRENT_SOURCE_DIR}/common/version.cpp.in
-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_DESC="${GIT_DESC}"
-D GIT_COMMIT="${GIT_COMMIT}"
-P ${CMAKE_SOURCE_DIR}/cmake/GitVersion.cmake
BYPRODUCTS ${CMAKE_BINARY_DIR}/version.cpp ${CMAKE_BINARY_DIR}/u_git_tag.cpp
SOURCES common/version.cpp.in server/u_git_tag.cpp.in
)
add_subdirectory(external) add_subdirectory(external)
if (NEED_COMMON) if (NEED_COMMON)
add_subdirectory(common) add_subdirectory(common)
+10 -1
View File
@@ -39,7 +39,7 @@ WiVRn support a wide range of VR devices:
## PC Server/Dashboard ## PC Server/Dashboard
We recommend using native packages if available for your distribution: We recommend using native packages if available for your distribution:
- [Arch User Repositoy](https://aur.archlinux.org/packages/wivrn-dashboard) - [Arch User Repository](https://aur.archlinux.org/packages/wivrn-dashboard)
- [Fedora](https://packages.fedoraproject.org/pkgs/wivrn/wivrn/) - [Fedora](https://packages.fedoraproject.org/pkgs/wivrn/wivrn/)
- [Gentoo Guru](https://gitweb.gentoo.org/repo/proj/guru.git/tree/media-libs/wivrn) - [Gentoo Guru](https://gitweb.gentoo.org/repo/proj/guru.git/tree/media-libs/wivrn)
- [NixOS](https://search.nixos.org/packages?channel=25.11&show=wivrn) - [NixOS](https://search.nixos.org/packages?channel=25.11&show=wivrn)
@@ -180,6 +180,15 @@ If the server list is empty in the headset app:
Note: WiVRn isn't properly optimized for NVIDIA GPUs due to the lack of developers with NVIDIA hardware. Motion latency may be significantly worse at rendering resolutions higher than default.</details> Note: WiVRn isn't properly optimized for NVIDIA GPUs due to the lack of developers with NVIDIA hardware. Motion latency may be significantly worse at rendering resolutions higher than default.</details>
# Community Support
We are available on either **Discord** or **Matrix space**:
[![LVRA Discord](https://img.shields.io/discord/1065291958328758352?style=for-the-badge&logo=discord)](https://discord.gg/EHAYe3tTYa) [![LVRA Matrix](https://img.shields.io/matrix/linux-vr-adventures:matrix.org?logo=matrix&style=for-the-badge)](https://matrix.to/#/#linux-vr-adventures:matrix.org)
Please use the `wivrn` chat room for questions or issues specific to WiVRn.
# Contributing # Contributing
## Translations ## Translations
+1 -5
View File
@@ -1243,10 +1243,6 @@ void application::initialize()
XR_FB_COMPOSITION_LAYER_SETTINGS_EXTENSION_NAME, XR_FB_COMPOSITION_LAYER_SETTINGS_EXTENSION_NAME,
XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME, XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME,
XR_FB_FACE_TRACKING2_EXTENSION_NAME, XR_FB_FACE_TRACKING2_EXTENSION_NAME,
// Disable foveation, doesn't seem useful
// XR_FB_FOVEATION_CONFIGURATION_EXTENSION_NAME,
// XR_FB_FOVEATION_EXTENSION_NAME,
// XR_FB_FOVEATION_VULKAN_EXTENSION_NAME,
XR_FB_PASSTHROUGH_EXTENSION_NAME, XR_FB_PASSTHROUGH_EXTENSION_NAME,
XR_FB_SWAPCHAIN_UPDATE_STATE_EXTENSION_NAME, XR_FB_SWAPCHAIN_UPDATE_STATE_EXTENSION_NAME,
@@ -1340,7 +1336,7 @@ void application::initialize()
spaces[size_t(xr::spaces::view)] = xr_session.create_reference_space(XR_REFERENCE_SPACE_TYPE_VIEW); spaces[size_t(xr::spaces::view)] = xr_session.create_reference_space(XR_REFERENCE_SPACE_TYPE_VIEW);
spaces[size_t(xr::spaces::world)] = xr_session.create_reference_space(XR_REFERENCE_SPACE_TYPE_STAGE); spaces[size_t(xr::spaces::world)] = xr_session.create_reference_space(XR_REFERENCE_SPACE_TYPE_STAGE);
config.emplace(xr_system_id); config.emplace(xr_system_id, xr_session);
// HTC face tracker fails if created later // HTC face tracker fails if created later
// we can destroy it right away, it actually stores static handles // we can destroy it right away, it actually stores static handles
+20 -4
View File
@@ -19,6 +19,7 @@
#include "configuration.h" #include "configuration.h"
#include "application.h" #include "application.h"
#include "utils/contains.h"
#include "utils/json_string.h" #include "utils/json_string.h"
#include "wivrn_packets.h" #include "wivrn_packets.h"
@@ -29,6 +30,9 @@
#include "android/permissions.h" #include "android/permissions.h"
#endif #endif
// If no refresh rate is configured, don't select a too high one
static const float max_default_rate = 100;
bool configuration::check_feature(feature f) const bool configuration::check_feature(feature f) const
{ {
{ {
@@ -95,7 +99,7 @@ void configuration::set_feature(feature f, bool state)
save(); save();
} }
configuration::configuration(xr::system & system) configuration::configuration(xr::system & system, xr::session & session)
{ {
passthrough_enabled = system.passthrough_supported() == xr::passthrough_type::color; passthrough_enabled = system.passthrough_supported() == xr::passthrough_type::color;
features[feature::hand_tracking] = system.hand_tracking_supported(); features[feature::hand_tracking] = system.hand_tracking_supported();
@@ -122,6 +126,15 @@ configuration::configuration(xr::system & system)
high_power_mode = true; high_power_mode = true;
break; break;
} }
const auto & rates = session.get_refresh_rates();
for (auto rate: rates)
{
if (rate >= max_default_rate)
break;
preferred_refresh_rate = rate;
}
try try
{ {
simdjson::dom::parser parser; simdjson::dom::parser parser;
@@ -145,7 +158,11 @@ configuration::configuration(xr::system & system)
} }
if (auto val = root["preferred_refresh_rate"]; val.is_double()) if (auto val = root["preferred_refresh_rate"]; val.is_double())
preferred_refresh_rate = val.get_double(); {
float f = val.get_double();
if (f == 0 or utils::contains(rates, f))
preferred_refresh_rate = f;
}
if (auto val = root["minimum_refresh_rate"]; val.is_double()) if (auto val = root["minimum_refresh_rate"]; val.is_double())
minimum_refresh_rate = val.get_double(); minimum_refresh_rate = val.get_double();
@@ -285,8 +302,7 @@ void configuration::save()
std::ofstream json(application::get_config_path() / "client.json"); std::ofstream json(application::get_config_path() / "client.json");
json << "{\"servers\":[" << servers_str << "]"; json << "{\"servers\":[" << servers_str << "]";
if (preferred_refresh_rate) json << ",\"preferred_refresh_rate\":" << preferred_refresh_rate;
json << ",\"preferred_refresh_rate\":" << *preferred_refresh_rate;
if (minimum_refresh_rate) if (minimum_refresh_rate)
json << ",\"minimum_refresh_rate\":" << *minimum_refresh_rate; json << ",\"minimum_refresh_rate\":" << *minimum_refresh_rate;
json << ",\"resolution_scale\":" << resolution_scale; json << ",\"resolution_scale\":" << resolution_scale;
+4 -3
View File
@@ -31,8 +31,9 @@
namespace xr namespace xr
{ {
class session;
class system; class system;
} } // namespace xr
class configuration class configuration
{ {
@@ -48,7 +49,7 @@ public:
}; };
std::map<std::string, server_data> servers; std::map<std::string, server_data> servers;
std::optional<float> preferred_refresh_rate; float preferred_refresh_rate = 0;
std::optional<float> minimum_refresh_rate; std::optional<float> minimum_refresh_rate;
float resolution_scale = 1.0; float resolution_scale = 1.0;
std::optional<wivrn::video_codec> codec; std::optional<wivrn::video_codec> codec;
@@ -99,7 +100,7 @@ private:
void parse_openxr_post_processing_options(simdjson::simdjson_result<simdjson::dom::object> root); void parse_openxr_post_processing_options(simdjson::simdjson_result<simdjson::dom::object> root);
public: public:
configuration(xr::system &); configuration(xr::system &, xr::session &);
configuration() = default; configuration() = default;
void save(); void save();
+4 -1
View File
@@ -40,7 +40,7 @@ constexpr int font_size_large = 75;
constexpr float scroll_ratio = 10; constexpr float scroll_ratio = 10;
// Threshold on the trigger value to register a click // Threshold on the trigger value to register a click
constexpr float trigger_click_thd = 0.8; constexpr float trigger_click_thd = 0.7;
// Thresholds on the distance between the fingertip and GUI layers (positive: in front of the GUI, negative: behind the GUI) // Thresholds on the distance between the fingertip and GUI layers (positive: in front of the GUI, negative: behind the GUI)
constexpr float palm_distance_close_thd_lo = 0.18; // Distance to switch between touch and aim interaction constexpr float palm_distance_close_thd_lo = 0.18; // Distance to switch between touch and aim interaction
@@ -117,6 +117,9 @@ namespace constants::stream
constexpr float fade_delay = 3; constexpr float fade_delay = 3;
constexpr float fade_duration = 0.25; constexpr float fade_duration = 0.25;
constexpr float urgent_fade_delay = 5;
constexpr ImVec4 urgent_border_color = {8.f, .6f, 0.f, .8f};
// Dimming for the streamed video when the GUI is interactable // Dimming for the streamed video when the GUI is interactable
constexpr float dimming_scale = 0.4; constexpr float dimming_scale = 0.4;
constexpr float dimming_bias = 0.01; constexpr float dimming_bias = 0.01;
+10 -4
View File
@@ -71,14 +71,20 @@ std::shared_ptr<wivrn::decoder> wivrn::decoder::make(
__builtin_unreachable(); __builtin_unreachable();
} }
std::vector<wivrn::video_codec> wivrn::decoder::supported_codecs() static std::vector<wivrn::video_codec> supported_codecs_()
{ {
std::vector<wivrn::video_codec> res; std::vector<wivrn::video_codec> res;
#ifdef __ANDROID__ #ifdef __ANDROID__
android::decoder::supported_codecs(res); wivrn::android::decoder::supported_codecs(res);
#else #else
ffmpeg::decoder::supported_codecs(res); wivrn::ffmpeg::decoder::supported_codecs(res);
#endif #endif
res.push_back(video_codec::raw); res.push_back(wivrn::video_codec::raw);
return res;
}
const std::vector<wivrn::video_codec> & wivrn::decoder::supported_codecs()
{
static std::vector<wivrn::video_codec> res = supported_codecs_();
return res; return res;
} }
+1 -1
View File
@@ -66,6 +66,6 @@ public:
virtual vk::Sampler sampler() = 0; virtual vk::Sampler sampler() = 0;
static std::vector<wivrn::video_codec> supported_codecs(); static const std::vector<wivrn::video_codec> & supported_codecs();
}; };
} // namespace wivrn } // namespace wivrn
+6 -1
View File
@@ -209,6 +209,11 @@ imgui_textures::imgui_textures(
this->image_cache = std::make_shared<image_cache_type>(device, physical_device, queue, queue_family_index); this->image_cache = std::make_shared<image_cache_type>(device, physical_device, queue, queue_family_index);
} }
imgui_textures::~imgui_textures()
{
device.waitIdle();
}
std::vector<std::pair<ImVec2, float>> imgui_context::ray_plane_intersection(const imgui_context::controller_state & in) const std::vector<std::pair<ImVec2, float>> imgui_context::ray_plane_intersection(const imgui_context::controller_state & in) const
{ {
std::vector<std::pair<ImVec2, float>> intersections; std::vector<std::pair<ImVec2, float>> intersections;
@@ -840,7 +845,7 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> imgui_context::end_frame()
application::haptic_start(haptic_output, XR_NULL_PATH, 10'000'000, 1000, 1); application::haptic_start(haptic_output, XR_NULL_PATH, 10'000'000, 1000, 1);
} }
vk::Image destination = swapchain.images()[image_index].image; vk::Image destination = swapchain.image(image_index);
ImGui::SetCurrentContext(context); ImGui::SetCurrentContext(context);
ImPlot::SetCurrentContext(plot_context); ImPlot::SetCurrentContext(plot_context);
+1
View File
@@ -68,6 +68,7 @@ public:
uint32_t queue_family_index, uint32_t queue_family_index,
thread_safe<vk::raii::Queue> & queue, thread_safe<vk::raii::Queue> & queue,
std::shared_ptr<image_cache_type> image_cache = {}); std::shared_ptr<image_cache_type> image_cache = {});
~imgui_textures();
ImTextureID load_texture(const std::string & filename, vk::raii::Sampler && sampler); ImTextureID load_texture(const std::string & filename, vk::raii::Sampler && sampler);
ImTextureID load_texture(const std::string & filename); ImTextureID load_texture(const std::string & filename);
ImTextureID load_texture(const std::span<const std::byte> & bytes, vk::raii::Sampler && sampler, const std::string & name = ""); ImTextureID load_texture(const std::span<const std::byte> & bytes, vk::raii::Sampler && sampler, const std::string & name = "");
+1 -51
View File
@@ -340,7 +340,7 @@ scene_renderer::renderpass & scene_renderer::get_renderpass(const renderpass_inf
scene_renderer::renderpass scene_renderer::create_renderpass(const renderpass_info & info_) scene_renderer::renderpass scene_renderer::create_renderpass(const renderpass_info & info_)
{ {
vk::StructureChain<vk::RenderPassCreateInfo, vk::RenderPassFragmentDensityMapCreateInfoEXT, vk::RenderPassMultiviewCreateInfo> info; vk::StructureChain<vk::RenderPassCreateInfo, vk::RenderPassMultiviewCreateInfo> info;
scene_renderer::renderpass rp; scene_renderer::renderpass rp;
std::vector<vk::AttachmentDescription> attachments; std::vector<vk::AttachmentDescription> attachments;
@@ -392,29 +392,6 @@ scene_renderer::renderpass scene_renderer::create_renderpass(const renderpass_in
}); });
} }
if (info_.fragment_density_map)
{
vk::RenderPassFragmentDensityMapCreateInfoEXT & fragment_density_info = info.get<vk::RenderPassFragmentDensityMapCreateInfoEXT>();
rp.fragment_density_attachment = {
.attachment = (uint32_t)attachments.size(),
.layout = vk::ImageLayout::eFragmentDensityMapOptimalEXT,
};
fragment_density_info.fragmentDensityMapAttachment = {
.attachment = (uint32_t)attachments.size(),
.layout = vk::ImageLayout::eFragmentDensityMapOptimalEXT,
};
attachments.push_back(vk::AttachmentDescription{
.format = vk::Format::eR8G8Unorm,
.samples = vk::SampleCountFlagBits::e1,
.loadOp = vk::AttachmentLoadOp::eLoad,
.storeOp = vk::AttachmentStoreOp::eDontCare,
.initialLayout = vk::ImageLayout::eFragmentDensityMapOptimalEXT,
.finalLayout = vk::ImageLayout::eFragmentDensityMapOptimalEXT,
});
}
else
info.unlink<vk::RenderPassFragmentDensityMapCreateInfoEXT>();
info.get().setAttachments(attachments); info.get().setAttachments(attachments);
vk::SubpassDescription subpasses{ vk::SubpassDescription subpasses{
@@ -573,27 +550,6 @@ scene_renderer::output_image scene_renderer::create_output_image_data(const outp
}); });
} }
if (info.renderpass.fragment_density_map)
{
assert(info.foveation != VK_NULL_HANDLE);
out.foveation_view = vk::raii::ImageView(
device,
vk::ImageViewCreateInfo{
.image = info.foveation,
.viewType = vk::ImageViewType::e2DArray,
.format = vk::Format::eR8G8Unorm,
.components{},
.subresourceRange = {
.aspectMask = vk::ImageAspectFlagBits::eColor,
.baseMipLevel = 0,
.levelCount = 1,
.baseArrayLayer = 0,
.layerCount = info.renderpass.multiview_count,
},
});
}
vk::FramebufferCreateInfo fb_info{ vk::FramebufferCreateInfo fb_info{
.renderPass = *get_renderpass(info.renderpass).renderpass, .renderPass = *get_renderpass(info.renderpass).renderpass,
.width = info.output_size.width, .width = info.output_size.width,
@@ -618,9 +574,6 @@ scene_renderer::output_image scene_renderer::create_output_image_data(const outp
attachments[rp.depth_attachment.attachment] = vk::ImageView{*out.depth_view}; attachments[rp.depth_attachment.attachment] = vk::ImageView{*out.depth_view};
if (rp.fragment_density_attachment)
attachments[rp.fragment_density_attachment->attachment] = vk::ImageView{*out.foveation_view};
fb_info.setAttachments(attachments); fb_info.setAttachments(attachments);
out.framebuffer = vk::raii::Framebuffer(device, fb_info); out.framebuffer = vk::raii::Framebuffer(device, fb_info);
return out; return out;
@@ -911,7 +864,6 @@ void scene_renderer::render(
vk::Format depth_format, vk::Format depth_format,
vk::Image color_buffer, vk::Image color_buffer,
vk::Image depth_buffer, vk::Image depth_buffer,
vk::Image foveation_image,
std::span<frame_info> frames, std::span<frame_info> frames,
bool render_debug_draws) bool render_debug_draws)
{ {
@@ -964,7 +916,6 @@ void scene_renderer::render(
.keep_depth_buffer = depth_buffer != vk::Image{}, .keep_depth_buffer = depth_buffer != vk::Image{},
.msaa_samples = vk::SampleCountFlagBits::e1, .msaa_samples = vk::SampleCountFlagBits::e1,
// .msaa_samples = vk::SampleCountFlagBits::e4, // FIXME: MSAA does not work // .msaa_samples = vk::SampleCountFlagBits::e4, // FIXME: MSAA does not work
.fragment_density_map = foveation_image != vk::Image{},
.multiview_count = (uint32_t)frames.size(), .multiview_count = (uint32_t)frames.size(),
}; };
vk::raii::RenderPass & renderpass = get_renderpass(rp_info).renderpass; vk::raii::RenderPass & renderpass = get_renderpass(rp_info).renderpass;
@@ -1060,7 +1011,6 @@ void scene_renderer::render(
.output_size = output_size, .output_size = output_size,
.color = color_buffer, .color = color_buffer,
.depth = depth_buffer, .depth = depth_buffer,
.foveation = foveation_image,
}); });
vk::DeviceSize frame_ubo_offset = resources.uniform_buffer_offset; vk::DeviceSize frame_ubo_offset = resources.uniform_buffer_offset;
-5
View File
@@ -44,7 +44,6 @@ struct renderpass_info
vk::Format depth_format; vk::Format depth_format;
bool keep_depth_buffer; bool keep_depth_buffer;
vk::SampleCountFlagBits msaa_samples = vk::SampleCountFlagBits::e1; vk::SampleCountFlagBits msaa_samples = vk::SampleCountFlagBits::e1;
bool fragment_density_map;
uint32_t multiview_count; uint32_t multiview_count;
bool operator==(const renderpass_info & other) const noexcept = default; bool operator==(const renderpass_info & other) const noexcept = default;
@@ -81,7 +80,6 @@ struct output_image_info
vk::Extent2D output_size; vk::Extent2D output_size;
VkImage color; VkImage color;
VkImage depth; VkImage depth;
VkImage foveation;
bool operator==(const output_image_info & other) const noexcept = default; bool operator==(const output_image_info & other) const noexcept = default;
}; };
@@ -127,8 +125,6 @@ class scene_renderer
image_allocation multisample_image; image_allocation multisample_image;
vk::raii::ImageView multisample_view = nullptr; vk::raii::ImageView multisample_view = nullptr;
vk::raii::ImageView foveation_view = nullptr;
}; };
struct renderpass struct renderpass
@@ -279,7 +275,6 @@ public:
vk::Format depth_format, vk::Format depth_format,
vk::Image color_buffer, vk::Image color_buffer,
vk::Image depth_buffer, vk::Image depth_buffer,
vk::Image foveation_image,
std::span<frame_info> info, std::span<frame_info> info,
bool render_debug_draws = false); bool render_debug_draws = false);
void end_frame(); void end_frame();
+7 -51
View File
@@ -155,7 +155,6 @@ void scene::render_world(
bool keep_depth_buffer, bool keep_depth_buffer,
uint32_t layer_mask, uint32_t layer_mask,
XrColor4f clear_color, XrColor4f clear_color,
const std::optional<xr::foveation_profile> & foveation,
bool render_debug_draws) bool render_debug_draws)
{ {
assert(views.size() <= layer::max_views); assert(views.size() <= layer::max_views);
@@ -163,14 +162,13 @@ void scene::render_world(
beman::inplace_vector::inplace_vector<XrCompositionLayerProjectionView, layer::max_views> composition_layer_color; beman::inplace_vector::inplace_vector<XrCompositionLayerProjectionView, layer::max_views> composition_layer_color;
beman::inplace_vector::inplace_vector<XrCompositionLayerDepthInfoKHR, layer::max_views> composition_layer_depth; beman::inplace_vector::inplace_vector<XrCompositionLayerDepthInfoKHR, layer::max_views> composition_layer_depth;
auto [color_swapchain, color_image, foveation_image] = [&]() -> std::tuple<XrSwapchain, vk::Image, vk::Image> { auto [color_swapchain, color_image] = [&]() -> std::tuple<XrSwapchain, vk::Image> {
xr::swapchain & color_swapchain = get_swapchain(swapchain_format, width, height, 1, views.size(), foveation); xr::swapchain & color_swapchain = get_swapchain(swapchain_format, width, height, 1, views.size());
int color_image_index = color_swapchain.acquire(); int color_image_index = color_swapchain.acquire();
vk::Image color_image = color_swapchain.images()[color_image_index].image; vk::Image color_image = color_swapchain.image(color_image_index);
vk::Image foveation_image = color_swapchain.images()[color_image_index].foveation;
color_swapchain.wait(); color_swapchain.wait();
return {color_swapchain, color_image, foveation_image}; return {color_swapchain, color_image};
}(); }();
auto [depth_swapchain, depth_image] = [&]() -> std::pair<XrSwapchain, vk::Image> { auto [depth_swapchain, depth_image] = [&]() -> std::pair<XrSwapchain, vk::Image> {
@@ -179,7 +177,7 @@ void scene::render_world(
xr::swapchain & depth_swapchain = get_swapchain(depth_format, width, height, 1, views.size()); xr::swapchain & depth_swapchain = get_swapchain(depth_format, width, height, 1, views.size());
int depth_image_index = depth_swapchain.acquire(); int depth_image_index = depth_swapchain.acquire();
vk::Image depth_image = depth_swapchain.images()[depth_image_index].image; vk::Image depth_image = depth_swapchain.image(depth_image_index);
depth_swapchain.wait(); depth_swapchain.wait();
return {depth_swapchain, depth_image}; return {depth_swapchain, depth_image};
} }
@@ -240,7 +238,6 @@ void scene::render_world(
depth_format, depth_format,
color_image, color_image,
depth_image, depth_image,
foveation_image,
frames, frames,
render_debug_draws); render_debug_draws);
@@ -251,41 +248,10 @@ void scene::render_world(
composition_layer_depth); composition_layer_depth);
} }
xr::swapchain & scene::get_swapchain(vk::Format format, int32_t width, int32_t height, int sample_count, uint32_t array_size, const std::optional<xr::foveation_profile> & foveation) xr::swapchain & scene::get_swapchain(vk::Format format, int32_t width, int32_t height, int sample_count, uint32_t array_size)
{ {
XrFoveationProfileFB foveation_profile = XR_NULL_HANDLE;
XrFoveationLevelFB foveation_level = XR_FOVEATION_LEVEL_NONE_FB;
float foveation_vertical_offset_degrees = 0;
bool foveation_dynamic = false;
if (foveation)
{
foveation_profile = *foveation;
foveation_level = foveation->level();
foveation_vertical_offset_degrees = foveation->vertical_offset_degrees();
foveation_dynamic = foveation->dynamic();
}
// Look for an exact match // Look for an exact match
for (swapchain_entry & entry: swapchains) for (swapchain_entry & entry: swapchains)
{
if (not entry.used and
entry.format == format and
entry.width == width and
entry.height == height and
entry.sample_count == sample_count and
entry.array_size == array_size and
entry.foveation_level == foveation_level and
entry.foveation_vertical_offset_degrees == foveation_vertical_offset_degrees and
entry.foveation_dynamic == foveation_dynamic)
{
entry.used = true;
return entry.swapchain;
}
}
// Look for a swapchain with a different foveation profile
for (swapchain_entry & entry: swapchains)
{ {
if (not entry.used and if (not entry.used and
entry.format == format and entry.format == format and
@@ -294,13 +260,7 @@ xr::swapchain & scene::get_swapchain(vk::Format format, int32_t width, int32_t h
entry.sample_count == sample_count and entry.sample_count == sample_count and
entry.array_size == array_size) entry.array_size == array_size)
{ {
spdlog::info("Updating swapchain foveation profile to {}, {:.1f} deg", magic_enum::enum_name(foveation_level), foveation_vertical_offset_degrees);
entry.foveation_level = foveation_level;
entry.foveation_vertical_offset_degrees = foveation_vertical_offset_degrees;
entry.foveation_dynamic = foveation_dynamic;
entry.used = true; entry.used = true;
entry.swapchain.update_foveation(*foveation);
return entry.swapchain; return entry.swapchain;
} }
} }
@@ -312,9 +272,6 @@ xr::swapchain & scene::get_swapchain(vk::Format format, int32_t width, int32_t h
.height = height, .height = height,
.sample_count = sample_count, .sample_count = sample_count,
.array_size = array_size, .array_size = array_size,
.foveation_level = foveation_level,
.foveation_vertical_offset_degrees = foveation_vertical_offset_degrees,
.foveation_dynamic = foveation_dynamic,
.used = true, .used = true,
.swapchain = xr::swapchain( .swapchain = xr::swapchain(
instance, instance,
@@ -324,8 +281,7 @@ xr::swapchain & scene::get_swapchain(vk::Format format, int32_t width, int32_t h
width, width,
height, height,
sample_count, sample_count,
array_size, array_size)};
foveation_profile)};
spdlog::info("Created swapchain"); spdlog::info("Created swapchain");
return swapchains.emplace_back(std::move(new_swapchain)).swapchain; return swapchains.emplace_back(std::move(new_swapchain)).swapchain;
+1 -7
View File
@@ -24,7 +24,6 @@
#include "render/scene_renderer.h" #include "render/scene_renderer.h"
#include "utils/cache.h" #include "utils/cache.h"
#include "xr/actionset.h" #include "xr/actionset.h"
#include "xr/foveation_profile.h"
#include "xr/instance.h" #include "xr/instance.h"
#include "xr/session.h" #include "xr/session.h"
#include "xr/swapchain.h" #include "xr/swapchain.h"
@@ -156,17 +155,13 @@ protected:
int sample_count; int sample_count;
uint32_t array_size; uint32_t array_size;
XrFoveationLevelFB foveation_level;
float foveation_vertical_offset_degrees;
bool foveation_dynamic;
bool used; bool used;
xr::swapchain swapchain; xr::swapchain swapchain;
}; };
std::vector<swapchain_entry> swapchains; std::vector<swapchain_entry> swapchains;
// The returned reference is valid until the next call to get_swapchain // The returned reference is valid until the next call to get_swapchain
xr::swapchain & get_swapchain(vk::Format format, int32_t width, int32_t height, int sample_count, uint32_t array_size, const std::optional<xr::foveation_profile> & foveation = std::nullopt); xr::swapchain & get_swapchain(vk::Format format, int32_t width, int32_t height, int sample_count, uint32_t array_size);
void clear_swapchains(); void clear_swapchains();
void render_start(bool passthrough, XrTime predicted_display_time); void render_start(bool passthrough, XrTime predicted_display_time);
@@ -194,7 +189,6 @@ protected:
bool keep_depth_buffer, bool keep_depth_buffer,
uint32_t layer_mask, uint32_t layer_mask,
XrColor4f clear_color, XrColor4f clear_color,
const std::optional<xr::foveation_profile> & foveation = std::nullopt,
bool render_debug_draws = false); bool render_debug_draws = false);
void set_color_scale_bias(XrColor4f scale, XrColor4f bias); void set_color_scale_bias(XrColor4f scale, XrColor4f bias);
-8
View File
@@ -103,14 +103,6 @@ app_launcher::app_launcher(
default_icon = textures.load_texture("assets://default_icon.ktx2"); default_icon = textures.load_texture("assets://default_icon.ktx2");
} }
app_launcher::~app_launcher()
{
stream.device.waitIdle();
for (const auto & [app_id, app_icon]: app_icons)
textures.free_texture(app_icon);
textures.free_texture(default_icon);
}
app_launcher::clicked app_launcher::draw_gui(imgui_context & imgui_ctx, const std::string & cancel) app_launcher::clicked app_launcher::draw_gui(imgui_context & imgui_ctx, const std::string & cancel)
{ {
auto res = clicked::None; auto res = clicked::None;
-1
View File
@@ -50,7 +50,6 @@ class app_launcher
public: public:
app_launcher(scenes::stream &, std::string server_name); app_launcher(scenes::stream &, std::string server_name);
~app_launcher();
enum clicked enum clicked
{ {
None, None,
+17 -29
View File
@@ -157,15 +157,6 @@ scenes::lobby::lobby() :
else else
spdlog::info("Composition layer color scale/bias NOT supported"); spdlog::info("Composition layer color scale/bias NOT supported");
if (instance.has_extension(XR_FB_FOVEATION_VULKAN_EXTENSION_NAME) and
instance.has_extension(XR_FB_FOVEATION_CONFIGURATION_EXTENSION_NAME))
{
spdlog::info("Foveation image supported");
foveation = xr::foveation_profile(instance, session, XR_FOVEATION_LEVEL_NONE_FB, -10, false);
}
else
spdlog::info("Foveation image NOT supported");
if (std::getenv("WIVRN_AUTOCONNECT")) if (std::getenv("WIVRN_AUTOCONNECT"))
force_autoconnect = true; force_autoconnect = true;
@@ -350,12 +341,7 @@ std::unique_ptr<wivrn_session> scenes::lobby::connect_to_session(wivrn_discover:
void scenes::lobby::update_server_list() void scenes::lobby::update_server_list()
{ {
if (application::is_focused() && !discover) if (not discover)
discover.emplace();
else if (!application::is_focused() && discover)
discover.reset();
if (!discover)
return; return;
std::vector<wivrn_discover::service> discovered_services = discover->get_services(); std::vector<wivrn_discover::service> discovered_services = discover->get_services();
@@ -882,10 +868,19 @@ void scenes::lobby::render(const XrFrameState & frame_state)
if (next_scene) if (next_scene)
{ {
if (!next_scene->alive()) switch (next_scene->current_state())
next_scene.reset(); {
else if (next_scene->current_state() == scenes::stream::state::streaming) case scenes::stream::state::streaming:
application::push_scene(next_scene); application::push_scene(next_scene);
break;
case scenes::stream::state::shutdown:
current_tab = tab::server_list;
break;
default:
break;
}
} }
update_server_list(); update_server_list();
@@ -1065,7 +1060,6 @@ void scenes::lobby::render(const XrFrameState & frame_state)
composition_layer_depth_test_supported, composition_layer_depth_test_supported,
composition_layer_depth_test_supported ? layer_lobby | layer_controllers : layer_lobby, composition_layer_depth_test_supported ? layer_lobby | layer_controllers : layer_lobby,
clear_color, clear_color,
foveation,
true); true);
if (composition_layer_depth_test_supported) if (composition_layer_depth_test_supported)
@@ -1096,8 +1090,7 @@ void scenes::lobby::render(const XrFrameState & frame_state)
height, height,
composition_layer_depth_test_supported, composition_layer_depth_test_supported,
composition_layer_depth_test_supported ? layer_rays : layer_rays | layer_controllers, composition_layer_depth_test_supported ? layer_rays : layer_rays | layer_controllers,
{0, 0, 0, 0}, {0, 0, 0, 0});
foveation);
if (composition_layer_depth_test_supported) if (composition_layer_depth_test_supported)
set_depth_test(true, XR_COMPARE_OP_LESS_OR_EQUAL_FB); set_depth_test(true, XR_COMPARE_OP_LESS_OR_EQUAL_FB);
@@ -1269,8 +1262,6 @@ void scenes::lobby::on_focused()
vps, vps,
image_cache); image_cache);
supported_codecs = wivrn::decoder::supported_codecs();
auto t = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()); auto t = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
auto tm = std::localtime(&t); auto tm = std::localtime(&t);
switch (tm->tm_mon) switch (tm->tm_mon)
@@ -1329,8 +1320,8 @@ void scenes::lobby::on_focused()
std::ranges::sort(local_environments, std::less{}); std::ranges::sort(local_environments, std::less{});
setup_passthrough(); setup_passthrough();
session.set_refresh_rate(application::get_config().preferred_refresh_rate.value_or(0));
multicast = application::get_wifi_lock().get_multicast_lock(); multicast = application::get_wifi_lock().get_multicast_lock();
discover.emplace();
session.set_performance_level(XR_PERF_SETTINGS_DOMAIN_CPU_EXT, XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT); session.set_performance_level(XR_PERF_SETTINGS_DOMAIN_CPU_EXT, XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT);
session.set_performance_level(XR_PERF_SETTINGS_DOMAIN_GPU_EXT, XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT); session.set_performance_level(XR_PERF_SETTINGS_DOMAIN_GPU_EXT, XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT);
@@ -1362,7 +1353,6 @@ void scenes::lobby::on_unfocused()
right_hand.reset(); right_hand.reset();
face_tracker.emplace<std::monostate>(); face_tracker.emplace<std::monostate>();
clear_swapchains();
multicast.reset(); multicast.reset();
} }
@@ -1371,9 +1361,7 @@ void scenes::lobby::on_xr_event(const xr::event & event)
switch (event.header.type) switch (event.header.type)
{ {
case XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED: case XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED:
if (event.state_changed.state == XR_SESSION_STATE_STOPPING) if (event.state_changed.state == XR_SESSION_STATE_FOCUSED)
discover.reset();
else if (event.state_changed.state == XR_SESSION_STATE_FOCUSED)
autoconnect_enabled = true; autoconnect_enabled = true;
recenter_gui = true; recenter_gui = true;
break; break;
+1 -5
View File
@@ -31,7 +31,6 @@
#include "wivrn_config.h" #include "wivrn_config.h"
#include "wivrn_discover.h" #include "wivrn_discover.h"
#include "xr/face_tracker.h" #include "xr/face_tracker.h"
#include "xr/foveation_profile.h"
#include <vulkan/vulkan_raii.hpp> #include <vulkan/vulkan_raii.hpp>
#include <openxr/openxr.h> #include <openxr/openxr.h>
@@ -79,8 +78,6 @@ class lobby : public scene_impl<lobby>
xr::face_tracker face_tracker; xr::face_tracker face_tracker;
std::optional<xr::foveation_profile> foveation;
std::string selected_item; std::string selected_item;
std::unique_ptr<utils::mapped_file> license; std::unique_ptr<utils::mapped_file> license;
@@ -135,8 +132,6 @@ class lobby : public scene_impl<lobby>
tab last_current_tab = tab::server_list; tab last_current_tab = tab::server_list;
int optional_feature_index = 0; // Which step of the first run screen are we in int optional_feature_index = 0; // Which step of the first run screen are we in
std::vector<wivrn::video_codec> supported_codecs;
ImTextureID about_picture; ImTextureID about_picture;
virtual_keyboard keyboard; virtual_keyboard keyboard;
@@ -224,6 +219,7 @@ class lobby : public scene_impl<lobby>
void gui_connecting(locked_notifiable<pin_request_data> & request); void gui_connecting(locked_notifiable<pin_request_data> & request);
void gui_enter_pin(locked_notifiable<pin_request_data> & request); void gui_enter_pin(locked_notifiable<pin_request_data> & request);
void gui_connected(XrTime predicted_display_time); void gui_connected(XrTime predicted_display_time);
void gui_disconnected();
void gui_server_list(); void gui_server_list();
void gui_new_server(); void gui_new_server();
void gui_settings(); void gui_settings();
+54 -36
View File
@@ -249,11 +249,7 @@ void scenes::lobby::gui_enter_pin(locked_notifiable<pin_request_data> & pin_requ
void scenes::lobby::gui_connected(XrTime predicted_display_time) void scenes::lobby::gui_connected(XrTime predicted_display_time)
{ {
if (not next_scene) assert(next_scene);
{
current_tab = tab::server_list;
return;
}
if (next_scene->apps.draw_gui(*imgui_ctx, _("Disconnect")) == app_launcher::Cancel) if (next_scene->apps.draw_gui(*imgui_ctx, _("Disconnect")) == app_launcher::Cancel)
{ {
@@ -262,6 +258,42 @@ void scenes::lobby::gui_connected(XrTime predicted_display_time)
} }
} }
void scenes::lobby::gui_disconnected()
{
using constants::style::button_size;
std::string close_button_label = _("Close");
if (!async_error)
{
async_error = next_scene->pop_stream_error();
if (!async_error)
{
next_scene.reset();
ImGui::CloseCurrentPopup();
return;
}
}
ImGui::Dummy({1000, 1});
ImGui::PushFont(nullptr, constants::gui::font_size_large);
if (server_name == "")
CenterTextH(fmt::format(_F("Disconnected")));
else
CenterTextH(fmt::format(_F("Disconnected from {}"), server_name));
ImGui::PopFont();
ImGui::Text("%s", async_error->c_str());
ImGui::SetCursorPosX(ImGui::GetWindowContentRegionMax().x - button_size.x - ImGui::GetStyle().WindowPadding.x);
if (ImGui::Button(close_button_label.c_str(), button_size))
{
async_error.reset();
}
imgui_ctx->vibrate_on_hover();
}
void scenes::lobby::gui_new_server() void scenes::lobby::gui_new_server()
{ {
using constants::style::button_size; using constants::style::button_size;
@@ -496,8 +528,12 @@ void scenes::lobby::gui_server_list()
config.save(); config.save();
} }
// Check if we need to report errors after a disconnect
if (next_scene and next_scene->current_state() == scenes::stream::state::shutdown and not ImGui::IsPopupOpen("", ImGuiPopupFlags_AnyPopup))
ImGui::OpenPopup("disconnected");
// Check if an automatic connection has started // Check if an automatic connection has started
if ((async_session.valid() || next_scene) and not ImGui::IsPopupOpen("connecting")) if ((async_session.valid() || next_scene) and not ImGui::IsPopupOpen("", ImGuiPopupFlags_AnyPopup))
ImGui::OpenPopup("connecting"); ImGui::OpenPopup("connecting");
const auto & popup_layer = imgui_ctx->layers()[1]; const auto & popup_layer = imgui_ctx->layers()[1];
@@ -516,6 +552,13 @@ void scenes::lobby::gui_server_list()
ImGui::EndPopup(); ImGui::EndPopup();
} }
ImGui::SetNextWindowPos({popup_layer_center.x, popup_layer_center.y}, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
if (ImGui::BeginPopupModal("disconnected", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize))
{
gui_disconnected();
ImGui::EndPopup();
}
ImGui::SetNextWindowSize({800, 0}); ImGui::SetNextWindowSize({800, 0});
ImGui::SetNextWindowPos({popup_layer_center.x, popup_layer_center.y}, ImGuiCond_FirstUseEver, ImVec2(0.5f, 0.5f)); ImGui::SetNextWindowPos({popup_layer_center.x, popup_layer_center.y}, ImGuiCond_FirstUseEver, ImVec2(0.5f, 0.5f));
if (ImGui::BeginPopupModal("add or edit server", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize)) if (ImGui::BeginPopupModal("add or edit server", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize))
@@ -576,10 +619,10 @@ void scenes::lobby::gui_settings()
const auto & refresh_rates = session.get_refresh_rates(); const auto & refresh_rates = session.get_refresh_rates();
if (not refresh_rates.empty()) if (not refresh_rates.empty())
{ {
float active_rate = config.preferred_refresh_rate.value_or(refresh_rates.back()); float active_rate = config.preferred_refresh_rate;
if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? fmt::format("{}", active_rate).c_str() : _cS("automatic refresh rate", "Automatic"))) if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? fmt::format("{}", active_rate).c_str() : _cS("automatic refresh rate", "Automatic")))
{ {
if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), config.preferred_refresh_rate == 0, ImGuiSelectableFlags_SelectOnRelease)) if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), active_rate == 0, ImGuiSelectableFlags_SelectOnRelease))
{ {
session.set_refresh_rate(0); session.set_refresh_rate(0);
config.preferred_refresh_rate = 0; config.preferred_refresh_rate = 0;
@@ -589,7 +632,7 @@ void scenes::lobby::gui_settings()
imgui_ctx->tooltip(_("Select refresh rate based on measured application performance.\nMay cause flicker when a change happens.")); imgui_ctx->tooltip(_("Select refresh rate based on measured application performance.\nMay cause flicker when a change happens."));
for (float rate: refresh_rates) for (float rate: refresh_rates)
{ {
if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == config.preferred_refresh_rate, ImGuiSelectableFlags_SelectOnRelease)) if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == active_rate, ImGuiSelectableFlags_SelectOnRelease))
{ {
session.set_refresh_rate(rate); session.set_refresh_rate(rate);
config.preferred_refresh_rate = rate; config.preferred_refresh_rate = rate;
@@ -600,7 +643,7 @@ void scenes::lobby::gui_settings()
} }
imgui_ctx->vibrate_on_hover(); imgui_ctx->vibrate_on_hover();
if (config.preferred_refresh_rate == 0 and refresh_rates.size() > 2) if (active_rate == 0 and refresh_rates.size() > 2)
{ {
float min_rate = config.minimum_refresh_rate.value_or(refresh_rates.front()); float min_rate = config.minimum_refresh_rate.value_or(refresh_rates.front());
if (ImGui::BeginCombo(_S("Minimum refresh rate"), fmt::format("{}", min_rate).c_str())) if (ImGui::BeginCombo(_S("Minimum refresh rate"), fmt::format("{}", min_rate).c_str()))
@@ -620,31 +663,6 @@ void scenes::lobby::gui_settings()
} }
} }
if (foveation)
{
std::array<const char *, 4> foveation_levels = {
gettext_noop_context("Foveation level", "None"),
gettext_noop_context("Foveation level", "Low"),
gettext_noop_context("Foveation level", "Medium"),
gettext_noop_context("Foveation level", "High"),
};
if (ImGui::BeginCombo(_S("Foveation level"), _cS("Foveation level", foveation_levels[(int)foveation->level()])))
{
for (int level = 0; level < foveation_levels.size(); level++)
{
if (ImGui::Selectable(_cS("Foveation level", foveation_levels[level]), (int)foveation->level() == level))
{
foveation = xr::foveation_profile{instance, session, (XrFoveationLevelFB)level, -10, false};
// TODO save in configuration
}
}
ImGui::EndCombo();
}
imgui_ctx->vibrate_on_hover();
}
// Render resolution // Render resolution
{ {
const auto current = config.resolution_scale; const auto current = config.resolution_scale;
@@ -729,7 +747,7 @@ void scenes::lobby::gui_settings()
config.codec = std::nullopt; config.codec = std::nullopt;
config.save(); config.save();
} }
for (auto codec: supported_codecs) for (auto codec: decoder::supported_codecs())
{ {
// don't show raw in GUI // don't show raw in GUI
if (codec == wivrn::raw) if (codec == wivrn::raw)
-1
View File
@@ -283,7 +283,6 @@ void scenes::lobby::update_file_picker()
vk::Format::eD32Sfloat, // Depth format vk::Format::eD32Sfloat, // Depth format
output, // Output image output, // Output image
vk::Image{}, // Depth image vk::Image{}, // Depth image
vk::Image{}, // Foveation image
{&frame, 1}, // View info {&frame, 1}, // View info
false); false);
local_renderer.end_frame(); local_renderer.end_frame();
+1 -1
View File
@@ -199,7 +199,7 @@ virtual_keyboard::layout symbols = {
}, // 12 }, // 12
{ {
{1.5}, {1.5},
{1}, // {1, "", ImGuiKey_None, "1/2", virtual_keyboard::key_flag_hidden}, {1, "."},
{1, "\""}, {1, "\""},
{1, "<"}, {1, "<"},
{1, ">"}, {1, ">"},
+110 -87
View File
@@ -36,7 +36,6 @@
#include "hardware.h" #include "hardware.h"
#include "inplace_vector.hpp" #include "inplace_vector.hpp"
#include "spdlog/spdlog.h" #include "spdlog/spdlog.h"
#include "utils/contains.h"
#include "utils/named_thread.h" #include "utils/named_thread.h"
#include "utils/ranges.h" #include "utils/ranges.h"
#include "wivrn_packets.h" #include "wivrn_packets.h"
@@ -233,20 +232,8 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
if (self->instance.has_extension(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME)) if (self->instance.has_extension(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME))
{ {
info.available_refresh_rates = self->session.get_refresh_rates(); info.available_refresh_rates = self->session.get_refresh_rates();
// I can't find anything in specification the ensures it won't be empty info.settings.preferred_refresh_rate = config.preferred_refresh_rate;
if (not info.available_refresh_rates.empty()) info.settings.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0);
{
if (config.preferred_refresh_rate and (config.preferred_refresh_rate == 0 or utils::contains(info.available_refresh_rates, *config.preferred_refresh_rate)))
{
info.settings.preferred_refresh_rate = *config.preferred_refresh_rate;
info.settings.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0);
}
else
{
// Default to highest refresh rate
info.settings.preferred_refresh_rate = info.available_refresh_rates.back();
}
}
} }
if (info.available_refresh_rates.empty()) if (info.available_refresh_rates.empty())
@@ -261,6 +248,11 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
info.hand_tracking = config.check_feature(feature::hand_tracking); info.hand_tracking = config.check_feature(feature::hand_tracking);
info.eye_gaze = config.check_feature(feature::eye_gaze); info.eye_gaze = config.check_feature(feature::eye_gaze);
if (self->instance.has_extension(XR_EXT_USER_PRESENCE_EXTENSION_NAME))
{
info.user_presence = self->system.user_presence_properties().supportsUserPresence;
}
if (config.check_feature(feature::face_tracking)) if (config.check_feature(feature::face_tracking))
{ {
switch (self->system.face_tracker_supported()) switch (self->system.face_tracker_supported())
@@ -330,6 +322,9 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
self->network_session->send_control(from_headset::session_state_changed{ self->network_session->send_control(from_headset::session_state_changed{
.state = application::get_session_state(), .state = application::get_session_state(),
}); });
self->network_session->send_control(from_headset::stream_tab_changed{
.tab = self->gui_status,
});
if (self->instance.has_extension(XR_KHR_VISIBILITY_MASK_EXTENSION_NAME)) if (self->instance.has_extension(XR_KHR_VISIBILITY_MASK_EXTENSION_NAME))
{ {
@@ -516,9 +511,6 @@ void scenes::stream::on_focused()
foveation_ok = get_action("foveation_ok").first; foveation_ok = get_action("foveation_ok").first;
foveation_cancel = get_action("foveation_cancel").first; foveation_cancel = get_action("foveation_cancel").first;
assert(video_stream_description);
std::unique_lock lock(decoder_mutex);
if (application::get_config().high_power_mode) if (application::get_config().high_power_mode)
{ {
session.set_performance_level(XR_PERF_SETTINGS_DOMAIN_CPU_EXT, XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT); session.set_performance_level(XR_PERF_SETTINGS_DOMAIN_CPU_EXT, XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT);
@@ -536,7 +528,6 @@ void scenes::stream::on_unfocused()
renderer->wait_idle(); // Must be before the scene data because the renderer uses its descriptor sets; renderer->wait_idle(); // Must be before the scene data because the renderer uses its descriptor sets;
world.clear(); world.clear();
input.reset(); input.reset();
clear_swapchains();
left_hand.reset(); left_hand.reset();
right_hand.reset(); right_hand.reset();
apps.reset(); apps.reset();
@@ -575,7 +566,7 @@ void scenes::stream::push_blit_handle(shard_accumulator * decoder, std::shared_p
if (state_ != state::streaming and not(decoders[0].empty() and decoders[1].empty())) if (state_ != state::streaming and not(decoders[0].empty() and decoders[1].empty()))
{ {
state_ = state::streaming; set_state(state::streaming);
spdlog::info("Stream scene ready at t={}", instance.now()); spdlog::info("Stream scene ready at t={}", instance.now());
} }
} }
@@ -682,28 +673,51 @@ std::array<std::shared_ptr<shard_accumulator::blit_handle>, 3> scenes::stream::c
std::shared_ptr<shard_accumulator::blit_handle> scenes::stream::accumulator_images::frame(uint64_t id) const std::shared_ptr<shard_accumulator::blit_handle> scenes::stream::accumulator_images::frame(uint64_t id) const
{ {
for (auto it = latest_frames.rbegin(); it != latest_frames.rend(); ++it) auto & frame = latest_frames[id % latest_frames.size()];
{ if (frame and frame->feedback.frame_index != id)
if (not *it) return nullptr;
continue; return frame;
if ((*it)->feedback.frame_index != id)
continue;
return *it;
}
return nullptr;
} }
void scenes::stream::update_gui_position(xr::spaces controller) void scenes::stream::update_gui_position(xr::spaces controller)
{ {
auto aim = application::locate_controller( std::optional<std::pair<glm::vec3, glm::quat>> aim;
application::space(controller),
application::space(xr::spaces::view),
predicted_display_time);
if (not aim) switch (guess_model())
return; {
case model::pico_4:
case model::pico_4s:
case model::pico_4_pro:
case model::pico_4_enterprise: {
// 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 || not head_position)
return;
aim->first = glm::conjugate(head_position->second) * (aim->first - head_position->first);
aim->second = glm::conjugate(head_position->second) * aim->second;
break;
}
default:
aim = application::locate_controller(
application::space(controller),
application::space(xr::spaces::view),
predicted_display_time);
if (not aim)
return;
break;
}
auto [offset_position, offset_orientation] = input->offset[controller]; auto [offset_position, offset_orientation] = input->offset[controller];
@@ -748,40 +762,44 @@ void scenes::stream::update_gui_position(xr::spaces controller)
} }
} }
bool scenes::stream::is_gui_interactable() const bool scenes::stream::is_interactable(stream_tab tab)
{ {
switch (gui_status) switch (tab)
{ {
case gui_status::stats: case stream_tab::stats:
case gui_status::settings: case stream_tab::settings:
case gui_status::bitrate_settings: case stream_tab::bitrate_settings:
case gui_status::foveation_settings: case stream_tab::foveation_settings:
case gui_status::applications: case stream_tab::applications:
case gui_status::application_launcher: case stream_tab::application_launcher:
return true; return true;
case gui_status::hidden: case stream_tab::hidden:
case gui_status::overlay_only: case stream_tab::overlay_only:
case gui_status::compact: case stream_tab::compact:
return false; return false;
} }
spdlog::warn("Invalid tab value {}", int(tab));
return false;
}
assert(false); bool scenes::stream::is_gui_interactable() const
__builtin_unreachable(); {
return is_interactable(gui_status);
} }
void scenes::stream::render(const XrFrameState & frame_state) void scenes::stream::render(const XrFrameState & frame_state)
{ {
if (exiting) if (state_ == state::shutdown)
application::pop_scene(); application::pop_scene();
display_time_phase = frame_state.predictedDisplayTime % frame_state.predictedDisplayPeriod; display_time_phase = frame_state.predictedDisplayPeriod ? frame_state.predictedDisplayTime % frame_state.predictedDisplayPeriod : 0;
display_time_period = frame_state.predictedDisplayPeriod; display_time_period = frame_state.predictedDisplayPeriod;
real_display_period = last_display_time ? frame_state.predictedDisplayTime - last_display_time : frame_state.predictedDisplayPeriod; real_display_period = last_display_time ? frame_state.predictedDisplayTime - last_display_time : frame_state.predictedDisplayPeriod;
last_display_time = frame_state.predictedDisplayTime; last_display_time = frame_state.predictedDisplayTime;
std::shared_lock lock(decoder_mutex); std::shared_lock lock(decoder_mutex);
if (not frame_state.shouldRender or (decoders[0].empty() and decoders[1].empty()) or exiting) if (not frame_state.shouldRender or (decoders[0].empty() and decoders[1].empty()) or state_ == state::shutdown)
{ {
// TODO: stop/restart video stream // TODO: stop/restart video stream
session.begin_frame(); session.begin_frame();
@@ -797,7 +815,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
.variant = application::get_messages_info().variant, .variant = application::get_messages_info().variant,
}); });
gui_status = stream::gui_status::hidden; next_gui_status = stream_tab::hidden;
application::pop_scene(); application::pop_scene();
} }
@@ -861,7 +879,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
blit_handle->feedback.blitted = instance.now(); blit_handle->feedback.blitted = instance.now();
if (blit_handle->feedback.blitted - blit_handle->feedback.received_from_decoder > 1'000'000'000) if (blit_handle->feedback.blitted - blit_handle->feedback.received_from_decoder > 1'000'000'000)
state_ = stream::state::stalled; set_state(state::stalled);
++blit_handle->feedback.times_displayed; ++blit_handle->feedback.times_displayed;
blit_handle->feedback.displayed = frame_state.predictedDisplayTime; blit_handle->feedback.displayed = frame_state.predictedDisplayTime;
@@ -1033,17 +1051,17 @@ void scenes::stream::render(const XrFrameState & frame_state)
{ {
switch (gui_status) switch (gui_status)
{ {
case gui_status::hidden: case stream_tab::hidden:
case gui_status::bitrate_settings: case stream_tab::bitrate_settings:
case gui_status::foveation_settings: case stream_tab::foveation_settings:
case gui_status::compact: case stream_tab::compact:
case gui_status::overlay_only: case stream_tab::overlay_only:
dimming = dimming - frame_state.predictedDisplayPeriod / (1e9 * constants::stream::fade_duration); dimming = dimming - frame_state.predictedDisplayPeriod / (1e9 * constants::stream::fade_duration);
break; break;
case gui_status::stats: case stream_tab::stats:
case gui_status::settings: case stream_tab::settings:
case gui_status::applications: case stream_tab::applications:
case gui_status::application_launcher: case stream_tab::application_launcher:
dimming = dimming + frame_state.predictedDisplayPeriod / (1e9 * constants::stream::fade_duration); dimming = dimming + frame_state.predictedDisplayPeriod / (1e9 * constants::stream::fade_duration);
break; break;
} }
@@ -1124,23 +1142,14 @@ void scenes::stream::render(const XrFrameState & frame_state)
if (state_1.currentState and state_2.currentState and (state_1.changedSinceLastSync or state_2.changedSinceLastSync)) if (state_1.currentState and state_2.currentState and (state_1.changedSinceLastSync or state_2.changedSinceLastSync))
{ {
switch (gui_status) // Arbitraty transitions can happen from network commands
{ // Ensure we can't have a set of 2 non interactable states
case gui_status::hidden: if (is_gui_interactable())
case gui_status::compact: next_gui_status = stream_tab::hidden;
case gui_status::overlay_only: else if (is_interactable(stored_gui_status))
gui_status = next_gui_status; next_gui_status = stored_gui_status;
break; else
next_gui_status = stream_tab::applications;
case gui_status::stats:
case gui_status::settings:
case gui_status::bitrate_settings:
case gui_status::foveation_settings:
case gui_status::applications:
case gui_status::application_launcher:
gui_status = gui_status::hidden;
break;
}
} }
} }
@@ -1149,15 +1158,17 @@ void scenes::stream::render(const XrFrameState & frame_state)
void scenes::stream::exit() void scenes::stream::exit()
{ {
exiting = true; state_ = state::shutdown;
} }
void scenes::stream::setup(const to_headset::video_stream_description & description) void scenes::stream::setup(const to_headset::video_stream_description & description)
{ {
session.set_refresh_rate(description.fps); session.set_refresh_rate(description.fps);
spdlog::info("Creating decoders, size {}x{}", description.width, description.height);
std::unique_lock lock(decoder_mutex); std::unique_lock lock(decoder_mutex);
if (video_stream_description == description)
return;
spdlog::info("Creating decoders, size {}x{}", description.width, description.height);
video_stream_description = description; video_stream_description = description;
for (const auto & [stream_index, item]: utils::enumerate(decoders)) for (const auto & [stream_index, item]: utils::enumerate(decoders))
@@ -1166,6 +1177,9 @@ void scenes::stream::setup(const to_headset::video_stream_description & descript
.decoder = std::make_unique<shard_accumulator>(device, physical_device, instance, queue_family_index, description, shared_from_this(), stream_index), .decoder = std::make_unique<shard_accumulator>(device, physical_device, instance, queue_family_index, description, shared_from_this(), stream_index),
}; };
} }
if (defoveator)
defoveator->reset_pipelines();
} }
void scenes::stream::setup_reprojection_swapchain(uint32_t swapchain_width, uint32_t swapchain_height) void scenes::stream::setup_reprojection_swapchain(uint32_t swapchain_width, uint32_t swapchain_height)
@@ -1187,14 +1201,11 @@ void scenes::stream::setup_reprojection_swapchain(uint32_t swapchain_width, uint
spdlog::info("Initializing reprojector"); spdlog::info("Initializing reprojector");
vk::Extent2D extent = {(uint32_t)swapchain.width(), (uint32_t)swapchain.height()}; vk::Extent2D extent = {(uint32_t)swapchain.width(), (uint32_t)swapchain.height()};
std::vector<vk::Image> swapchain_images;
for (auto & image: swapchain.images())
swapchain_images.push_back(image.image);
defoveator.emplace( defoveator.emplace(
device, device,
physical_device, physical_device,
swapchain_images, swapchain.images(),
extent, extent,
swapchain.format()); swapchain.format());
} }
@@ -1274,6 +1285,18 @@ scene::meta & scenes::stream::get_meta_scene()
return m; return m;
} }
std::optional<std::string> scenes::stream::pop_stream_error()
{
auto queue = stream_error_queue.lock();
if (queue->empty())
return std::nullopt;
auto err = std::make_optional(queue->front());
queue->pop();
return err;
}
void scenes::stream::on_xr_event(const xr::event & event) void scenes::stream::on_xr_event(const xr::event & event)
{ {
switch (event.header.type) switch (event.header.type)
+32 -22
View File
@@ -32,6 +32,7 @@
#include "wivrn_packets.h" #include "wivrn_packets.h"
#include "xr/space.h" #include "xr/space.h"
#include <mutex> #include <mutex>
#include <queue>
#include <shared_mutex> #include <shared_mutex>
#include <thread> #include <thread>
#include <vulkan/vulkan_core.h> #include <vulkan/vulkan_core.h>
@@ -45,7 +46,8 @@ public:
{ {
initializing, initializing,
streaming, streaming,
stalled stalled,
shutdown,
}; };
static const size_t image_buffer_size = 3; static const size_t image_buffer_size = 3;
@@ -72,7 +74,6 @@ private:
std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, decoder_count> common_frame(XrTime display_time); std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, decoder_count> common_frame(XrTime display_time);
std::unique_ptr<wivrn_session> network_session; std::unique_ptr<wivrn_session> network_session;
std::atomic<bool> exiting = false;
std::thread network_thread; std::thread network_thread;
thread_safe<to_headset::tracking_control> tracking_control{}; thread_safe<to_headset::tracking_control> tracking_control{};
std::array<std::atomic<interaction_profile>, 2> interaction_profiles; // left and right hand std::array<std::atomic<interaction_profile>, 2> interaction_profiles; // left and right hand
@@ -104,7 +105,16 @@ private:
std::unordered_multimap<device_id, haptics_action> haptics_actions; std::unordered_multimap<device_id, haptics_action> haptics_actions;
std::vector<std::tuple<device_id, XrAction, XrActionType>> input_actions; std::vector<std::tuple<device_id, XrAction, XrActionType>> input_actions;
state state_ = state::initializing; std::atomic<state> state_ = state::initializing;
void set_state(state new_state)
{
state prev = state_;
if (prev == state::shutdown)
return;
state_.compare_exchange_strong(prev, new_state);
}
xr::swapchain swapchain; xr::swapchain swapchain;
@@ -121,27 +131,28 @@ private:
uint32_t height; uint32_t height;
std::optional<imgui_context> imgui_ctx; std::optional<imgui_context> imgui_ctx;
enum class gui_status struct gui_toast
{ {
hidden, std::string content;
overlay_only, bool is_urgent = false;
compact,
stats,
settings,
bitrate_settings,
foveation_settings,
applications,
application_launcher,
}; };
static bool is_interactable(stream_tab);
bool is_gui_interactable() const; bool is_gui_interactable() const;
std::atomic<gui_status> gui_status = gui_status::hidden; // Tab currently being displayed
enum gui_status last_gui_status = gui_status::hidden; stream_tab gui_status = stream_tab::hidden;
enum gui_status next_gui_status = gui_status::applications; // Tab that we will switch to if button is pressed
XrTime gui_status_last_change; stream_tab stored_gui_status = stream_tab::applications;
// Tab that will be displayed on next render()
std::atomic<stream_tab> next_gui_status = stream_tab::hidden;
float dimming = 0; float dimming = 0;
thread_safe<std::optional<gui_toast>> gui_toast;
std::atomic<XrTime> gui_status_last_change;
thread_safe<std::queue<std::string>> stream_error_queue;
XrAction plots_toggle_1 = XR_NULL_HANDLE; XrAction plots_toggle_1 = XR_NULL_HANDLE;
XrAction plots_toggle_2 = XR_NULL_HANDLE; XrAction plots_toggle_2 = XR_NULL_HANDLE;
XrAction recenter_left = XR_NULL_HANDLE; XrAction recenter_left = XR_NULL_HANDLE;
@@ -198,6 +209,7 @@ public:
void operator()(to_headset::pin_check_2 &&) {}; void operator()(to_headset::pin_check_2 &&) {};
void operator()(to_headset::pin_check_4 &&) {}; void operator()(to_headset::pin_check_4 &&) {};
void operator()(to_headset::handshake &&) {}; void operator()(to_headset::handshake &&) {};
void operator()(to_headset::server_message &&);
void operator()(to_headset::video_stream_data_shard &&); void operator()(to_headset::video_stream_data_shard &&);
void operator()(to_headset::haptics &&); void operator()(to_headset::haptics &&);
void operator()(to_headset::timesync_query &&); void operator()(to_headset::timesync_query &&);
@@ -206,6 +218,7 @@ public:
void operator()(to_headset::audio_stream_description &&); void operator()(to_headset::audio_stream_description &&);
void operator()(to_headset::video_stream_description &&); void operator()(to_headset::video_stream_description &&);
void operator()(to_headset::refresh_rate_change &&); void operator()(to_headset::refresh_rate_change &&);
void operator()(to_headset::stream_tab_change &&);
void operator()(to_headset::application_list &&); void operator()(to_headset::application_list &&);
void operator()(to_headset::application_icon &&); void operator()(to_headset::application_icon &&);
void operator()(to_headset::running_applications &&); void operator()(to_headset::running_applications &&);
@@ -221,14 +234,10 @@ public:
} }
void exit(); void exit();
bool alive() const
{
return !exiting;
}
void start_application(std::string appid); void start_application(std::string appid);
static meta & get_meta_scene(); static meta & get_meta_scene();
std::optional<std::string> pop_stream_error();
private: private:
void process_packets(); void process_packets();
@@ -312,6 +321,7 @@ private:
void gui_bitrate_settings(float predicted_display_period); void gui_bitrate_settings(float predicted_display_period);
void gui_foveation_settings(float predicted_display_period); void gui_foveation_settings(float predicted_display_period);
void gui_applications(); void gui_applications();
void gui_toasts();
void draw_gui(XrTime predicted_display_time, XrDuration predicted_display_period); void draw_gui(XrTime predicted_display_time, XrDuration predicted_display_period);
}; };
} // namespace scenes } // namespace scenes
+8
View File
@@ -283,6 +283,14 @@ stream_defoveator::stream_defoveator(
} }
} }
void stream_defoveator::reset_pipelines()
{
for (auto & p: pipeline_rgb)
p = {};
for (auto & p: pipeline_a)
p = {};
}
static size_t required_vertices(const wivrn::to_headset::foveation_parameter & p) static size_t required_vertices(const wivrn::to_headset::foveation_parameter & p)
{ {
// strips are constructed like this: // strips are constructed like this:
+2
View File
@@ -81,6 +81,8 @@ public:
stream_defoveator(const stream_defoveator &) = delete; stream_defoveator(const stream_defoveator &) = delete;
void reset_pipelines();
void defoveate( void defoveate(
vk::raii::CommandBuffer & command_buffer, vk::raii::CommandBuffer & command_buffer,
const std::array<wivrn::to_headset::foveation_parameter, 2> & foveation, const std::array<wivrn::to_headset::foveation_parameter, 2> & foveation,
+115 -81
View File
@@ -26,7 +26,6 @@
#include "imgui.h" #include "imgui.h"
#include "imgui_internal.h" #include "imgui_internal.h"
#include "implot.h" #include "implot.h"
#include "utils/contains.h"
#include "utils/i18n.h" #include "utils/i18n.h"
#include "utils/ranges.h" #include "utils/ranges.h"
#include <IconsFontAwesome6.h> #include <IconsFontAwesome6.h>
@@ -384,9 +383,9 @@ static void send_settings_changed_packet(xr::session & session, wivrn_session *
from_headset::settings_changed packet{ from_headset::settings_changed packet{
.bitrate_bps = config.bitrate_bps, .bitrate_bps = config.bitrate_bps,
}; };
if (config.preferred_refresh_rate and (config.preferred_refresh_rate == 0 or utils::contains(refresh_rates, *config.preferred_refresh_rate))) if (not refresh_rates.empty())
{ {
packet.preferred_refresh_rate = *config.preferred_refresh_rate; packet.preferred_refresh_rate = config.preferred_refresh_rate;
packet.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0); packet.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0);
} }
else else
@@ -409,12 +408,11 @@ void scenes::stream::gui_settings(float predicted_display_period)
const auto & refresh_rates = session.get_refresh_rates(); const auto & refresh_rates = session.get_refresh_rates();
if (not refresh_rates.empty()) if (not refresh_rates.empty())
{ {
float active_rate = config.preferred_refresh_rate.value_or(refresh_rates.back()); float active_rate = config.preferred_refresh_rate;
if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? fmt::format("{}", active_rate).c_str() : _cS("automatic refresh rate", "Automatic"))) if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? fmt::format("{}", active_rate).c_str() : _cS("automatic refresh rate", "Automatic")))
{ {
if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), config.preferred_refresh_rate == 0, ImGuiSelectableFlags_SelectOnRelease)) if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), active_rate == 0, ImGuiSelectableFlags_SelectOnRelease))
{ {
session.set_refresh_rate(0);
config.preferred_refresh_rate = 0; config.preferred_refresh_rate = 0;
send_settings_changed_packet(session, network_session.get(), config, predicted_display_period); send_settings_changed_packet(session, network_session.get(), config, predicted_display_period);
config.save(); config.save();
@@ -423,7 +421,7 @@ void scenes::stream::gui_settings(float predicted_display_period)
imgui_ctx->tooltip(_("Select refresh rate based on measured application performance.\nMay cause flicker when a change happens.")); imgui_ctx->tooltip(_("Select refresh rate based on measured application performance.\nMay cause flicker when a change happens."));
for (float rate: refresh_rates) for (float rate: refresh_rates)
{ {
if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == config.preferred_refresh_rate, ImGuiSelectableFlags_SelectOnRelease)) if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == active_rate, ImGuiSelectableFlags_SelectOnRelease))
{ {
session.set_refresh_rate(rate); session.set_refresh_rate(rate);
config.preferred_refresh_rate = rate; config.preferred_refresh_rate = rate;
@@ -435,7 +433,7 @@ void scenes::stream::gui_settings(float predicted_display_period)
} }
imgui_ctx->vibrate_on_hover(); imgui_ctx->vibrate_on_hover();
if (config.preferred_refresh_rate == 0 and refresh_rates.size() > 2) if (active_rate == 0 and refresh_rates.size() > 2)
{ {
float min_rate = config.minimum_refresh_rate.value_or(refresh_rates.front()); float min_rate = config.minimum_refresh_rate.value_or(refresh_rates.front());
if (ImGui::BeginCombo(_S("Minimum refresh rate"), fmt::format("{}", min_rate).c_str())) if (ImGui::BeginCombo(_S("Minimum refresh rate"), fmt::format("{}", min_rate).c_str()))
@@ -464,7 +462,7 @@ void scenes::stream::gui_settings(float predicted_display_period)
ImGui::SameLine(0.f, 10.f); ImGui::SameLine(0.f, 10.f);
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + (size.y / 4.f) - style.FramePadding.y * 3.f); ImGui::SetCursorPosY(ImGui::GetCursorPosY() + (size.y / 4.f) - style.FramePadding.y * 3.f);
if (ImGui::Button(fmt::format("{}Mbit/s", config.bitrate_bps / 1'000'000).c_str())) if (ImGui::Button(fmt::format("{}Mbit/s", config.bitrate_bps / 1'000'000).c_str()))
gui_status = gui_status::bitrate_settings; next_gui_status = stream_tab::bitrate_settings;
imgui_ctx->vibrate_on_hover(); imgui_ctx->vibrate_on_hover();
if (ImGui::IsItemHovered()) if (ImGui::IsItemHovered())
imgui_ctx->tooltip(_("Click to adjust bitrate")); imgui_ctx->tooltip(_("Click to adjust bitrate"));
@@ -556,7 +554,7 @@ void scenes::stream::gui_settings(float predicted_display_period)
ImGui::SameLine(); ImGui::SameLine();
if (ImGui::Button(_S("Change"))) if (ImGui::Button(_S("Change")))
gui_status = gui_status::foveation_settings; next_gui_status = stream_tab::foveation_settings;
imgui_ctx->vibrate_on_hover(); imgui_ctx->vibrate_on_hover();
ImGui::EndDisabled(); ImGui::EndDisabled();
@@ -602,7 +600,7 @@ void scenes::stream::gui_bitrate_settings(float predicted_display_period)
if (ok) if (ok)
{ {
config.save(); config.save();
gui_status = gui_status::settings; next_gui_status = stream_tab::settings;
} }
send_settings_changed_packet(session, network_session.get(), application::get_config(), predicted_display_period); send_settings_changed_packet(session, network_session.get(), application::get_config(), predicted_display_period);
@@ -631,7 +629,7 @@ void scenes::stream::gui_foveation_settings(float predicted_display_period)
if (ok) if (ok)
{ {
gui_status = gui_status::settings; next_gui_status = stream_tab::settings;
// Save settings // Save settings
auto & config = application::get_config(); auto & config = application::get_config();
@@ -642,7 +640,7 @@ void scenes::stream::gui_foveation_settings(float predicted_display_period)
} }
else if (cancel) else if (cancel)
{ {
gui_status = gui_status::settings; next_gui_status = stream_tab::settings;
// Restore settings // Restore settings
const auto & config = application::get_config(); const auto & config = application::get_config();
@@ -731,27 +729,58 @@ void scenes::stream::gui_applications()
ImGui::PopStyleVar(3); ImGui::PopStyleVar(3);
} }
void scenes::stream::gui_toasts()
{
auto toast = gui_toast.lock();
if (!toast->has_value())
{
ImGui::Text("%s", _S("Press both thumbsticks to display the WiVRn window"));
return;
}
ImGui::Text("%s", (*toast)->content.c_str());
}
void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicted_display_period) void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicted_display_period)
{ {
if (not(plots_toggle_1 and plots_toggle_2)) if (auto new_status = next_gui_status.load(); new_status != gui_status)
return; {
spdlog::info("Switch tab from {} to {}", magic_enum::enum_name(gui_status), magic_enum::enum_name(new_status));
stored_gui_status = gui_status;
gui_status = new_status;
gui_status_last_change = predicted_display_time;
// Override session state if the GUI is interactable
if (not is_gui_interactable())
network_session->send_control(from_headset::session_state_changed{
.state = application::get_session_state(),
});
else if (application::get_session_state() == XR_SESSION_STATE_FOCUSED)
network_session->send_control(from_headset::session_state_changed{
.state = XR_SESSION_STATE_VISIBLE,
});
network_session->send_control(from_headset::stream_tab_changed{.tab = new_status});
}
bool interactable = true; bool interactable = true;
XrSpace world_space = application::space(xr::spaces::world); XrSpace world_space = application::space(xr::spaces::world);
auto views = session.locate_views(viewconfig, predicted_display_time, world_space).second; auto views = session.locate_views(viewconfig, predicted_display_time, world_space).second;
switch (gui_status) switch (gui_status)
{ {
case gui_status::hidden: case stream_tab::hidden:
case gui_status::bitrate_settings: case stream_tab::bitrate_settings:
case gui_status::foveation_settings: case stream_tab::foveation_settings:
case gui_status::overlay_only: case stream_tab::overlay_only:
case gui_status::compact: case stream_tab::compact:
interactable = false; interactable = false;
break; break;
case gui_status::stats: case stream_tab::stats:
case gui_status::settings: case stream_tab::settings:
case gui_status::applications: case stream_tab::applications:
case gui_status::application_launcher: case stream_tab::application_launcher:
break; break;
} }
imgui_ctx->set_controllers_enabled(interactable); imgui_ctx->set_controllers_enabled(interactable);
@@ -771,33 +800,24 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
right_hand.reset(); right_hand.reset();
} }
if (gui_status != last_gui_status)
{
last_gui_status = gui_status;
if (is_gui_interactable())
next_gui_status = gui_status;
gui_status_last_change = predicted_display_time;
// Override session state if the GUI is interactable
if (not is_gui_interactable())
network_session->send_control(from_headset::session_state_changed{
.state = application::get_session_state(),
});
else if (application::get_session_state() == XR_SESSION_STATE_FOCUSED)
network_session->send_control(from_headset::session_state_changed{
.state = XR_SESSION_STATE_VISIBLE,
});
}
float alpha = 1; float alpha = 1;
if (gui_status == gui_status::hidden) bool is_urgent = false;
if (gui_status == stream_tab::hidden)
{ {
float t = (predicted_display_time - gui_status_last_change) * 1.e-9f; auto toast = gui_toast.lock();
if (toast->has_value())
is_urgent = (*toast)->is_urgent;
alpha = std::clamp<float>(1 - (t - constants::stream::fade_delay) / constants::stream::fade_duration, 0, 1); float t = (predicted_display_time - gui_status_last_change) * 1.e-9f;
float delay = is_urgent ? constants::stream::urgent_fade_delay : constants::stream::fade_delay;
alpha = std::clamp<float>(1 - (t - delay) / constants::stream::fade_duration, 0, 1);
if (alpha == 0) if (alpha == 0)
{
toast->reset();
return; return;
}
} }
// Lock the GUI position to the head, do it before displaying the GUI to avoid being off by one frame when gui_status changes // Lock the GUI position to the head, do it before displaying the GUI to avoid being off by one frame when gui_status changes
@@ -807,24 +827,24 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
glm::mat3 M = glm::mat3_cast(head_position->second); glm::mat3 M = glm::mat3_cast(head_position->second);
switch (gui_status) switch (gui_status)
{ {
case gui_status::bitrate_settings: case stream_tab::bitrate_settings:
case gui_status::foveation_settings: case stream_tab::foveation_settings:
imgui_ctx->layers()[0].orientation = head_position->second; imgui_ctx->layers()[0].orientation = head_position->second;
imgui_ctx->layers()[0].position = head_position->first + M * glm::vec3{0, override_foveation_distance * sin(override_foveation_pitch), -override_foveation_distance}; imgui_ctx->layers()[0].position = head_position->first + M * glm::vec3{0, override_foveation_distance * sin(override_foveation_pitch), -override_foveation_distance};
break; break;
case gui_status::hidden: case stream_tab::hidden:
// Always use the same position for the GUI shortcut tip // Always use the same position for the GUI shortcut tip
imgui_ctx->layers()[0].orientation = head_position->second; imgui_ctx->layers()[0].orientation = head_position->second;
imgui_ctx->layers()[0].position = head_position->first + M * glm::vec3{0.0, -0.4, -1.0}; imgui_ctx->layers()[0].position = head_position->first + M * glm::vec3{0.0, -0.4, -1.0};
break; break;
case gui_status::overlay_only: case stream_tab::overlay_only:
case gui_status::compact: case stream_tab::compact:
case gui_status::stats: case stream_tab::stats:
case gui_status::settings: case stream_tab::settings:
case gui_status::applications: case stream_tab::applications:
case gui_status::application_launcher: case stream_tab::application_launcher:
imgui_ctx->layers()[0].orientation = head_position->second * head_gui_orientation; 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].position = head_position->first + M * head_gui_position;
break; break;
@@ -844,36 +864,36 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
bool display_tabs, always_auto_resize; bool display_tabs, always_auto_resize;
switch (gui_status) switch (gui_status)
{ {
case gui_status::overlay_only: case stream_tab::overlay_only:
ImGui::SetNextWindowPos(content_center, ImGuiCond_Always, ImVec2(0.5f, 0.5f)); ImGui::SetNextWindowPos(content_center, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
ImGui::SetNextWindowSize(content_size); ImGui::SetNextWindowSize(content_size);
always_auto_resize = false; always_auto_resize = false;
display_tabs = false; display_tabs = false;
break; break;
case gui_status::hidden: case stream_tab::hidden:
case gui_status::bitrate_settings: case stream_tab::bitrate_settings:
case gui_status::foveation_settings: case stream_tab::foveation_settings:
ImGui::SetNextWindowPos(viewport_size / 2, ImGuiCond_Always, ImVec2(0.5f, 0.5f)); ImGui::SetNextWindowPos(viewport_size / 2, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
always_auto_resize = true; always_auto_resize = true;
display_tabs = false; display_tabs = false;
break; break;
case gui_status::compact: case stream_tab::compact:
ImGui::SetNextWindowPos(content_center, ImGuiCond_Always, ImVec2(0.5f, 0.5f)); ImGui::SetNextWindowPos(content_center, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
always_auto_resize = true; always_auto_resize = true;
display_tabs = false; display_tabs = false;
break; break;
case gui_status::stats: case stream_tab::stats:
case gui_status::settings: case stream_tab::settings:
case gui_status::applications: case stream_tab::applications:
ImGui::SetNextWindowPos(margin_around_window); ImGui::SetNextWindowPos(margin_around_window);
ImGui::SetNextWindowSize(viewport_size - margin_around_window * 2); ImGui::SetNextWindowSize(viewport_size - margin_around_window * 2);
always_auto_resize = false; always_auto_resize = false;
display_tabs = true; display_tabs = true;
break; break;
case gui_status::application_launcher: case stream_tab::application_launcher:
ImGui::SetNextWindowPos(margin_around_window); ImGui::SetNextWindowPos(margin_around_window);
ImGui::SetNextWindowSize(viewport_size - margin_around_window * 2); ImGui::SetNextWindowSize(viewport_size - margin_around_window * 2);
always_auto_resize = false; always_auto_resize = false;
@@ -881,6 +901,12 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
break; break;
} }
if (is_urgent)
{
ImGui::PushStyleColor(ImGuiCol_Border, constants::stream::urgent_border_color);
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 4);
}
ImGui::PushStyleVar(ImGuiStyleVar_ChildBorderSize, 0); ImGui::PushStyleVar(ImGuiStyleVar_ChildBorderSize, 0);
if (always_auto_resize) if (always_auto_resize)
{ {
@@ -893,58 +919,64 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
ImGui::Begin("Stream settings", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove); ImGui::Begin("Stream settings", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove);
} }
if (is_urgent)
{
ImGui::PopStyleColor(1);
ImGui::PopStyleVar(1);
}
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {8, 8}); ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {8, 8});
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 10); ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 10);
switch (gui_status) switch (gui_status)
{ {
case gui_status::hidden: case stream_tab::hidden:
ImGui::Text("%s", _S("Press both thumbsticks to display the WiVRn window")); gui_toasts();
break; break;
case gui_status::overlay_only: case stream_tab::overlay_only:
ImGui::SetCursorPos({20, 20}); ImGui::SetCursorPos({20, 20});
ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX(), 0)); ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX(), 0));
gui_performance_metrics(); gui_performance_metrics();
ImGui::EndChild(); ImGui::EndChild();
break; break;
case gui_status::compact: case stream_tab::compact:
gui_compact_view(); gui_compact_view();
break; break;
case gui_status::stats: case stream_tab::stats:
ImGui::SetCursorPos({tab_width + 20, 20}); ImGui::SetCursorPos({tab_width + 20, 20});
ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX(), 0)); ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX(), 0));
gui_performance_metrics(); gui_performance_metrics();
ImGui::EndChild(); ImGui::EndChild();
break; break;
case gui_status::settings: case stream_tab::settings:
ImGui::SetCursorPos({tab_width + 20, 20}); ImGui::SetCursorPos({tab_width + 20, 20});
ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX(), 0)); ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX(), 0));
gui_settings(predicted_display_period * 1.e-9f); gui_settings(predicted_display_period * 1.e-9f);
ImGui::EndChild(); ImGui::EndChild();
break; break;
case gui_status::bitrate_settings: case stream_tab::bitrate_settings:
gui_bitrate_settings(predicted_display_period * 1.e-9f); gui_bitrate_settings(predicted_display_period * 1.e-9f);
break; break;
case gui_status::foveation_settings: case stream_tab::foveation_settings:
gui_foveation_settings(predicted_display_period * 1.e-9f); gui_foveation_settings(predicted_display_period * 1.e-9f);
break; break;
case gui_status::applications: case stream_tab::applications:
ImGui::SetCursorPos({tab_width + 20, 20}); ImGui::SetCursorPos({tab_width + 20, 20});
ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX(), 0)); ImGui::BeginChild("Main", ImVec2(ImGui::GetWindowSize().x - ImGui::GetCursorPosX(), 0));
gui_applications(); gui_applications();
ImGui::EndChild(); ImGui::EndChild();
break; break;
case gui_status::application_launcher: case stream_tab::application_launcher:
if (apps.draw_gui(*imgui_ctx, _("Cancel")) != app_launcher::None) if (apps.draw_gui(*imgui_ctx, _("Cancel")) != app_launcher::None)
gui_status = gui_status::applications; next_gui_status = stream_tab::applications;
} }
ImGui::PopStyleVar(2); // ImGuiStyleVar_WindowPadding, ImGuiStyleVar_FrameRounding ImGui::PopStyleVar(2); // ImGuiStyleVar_WindowPadding, ImGuiStyleVar_FrameRounding
@@ -958,10 +990,11 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(10, 10)); ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(10, 10));
RadioButtonWithoutCheckBox(ICON_FA_LIST " " + _("Applications"), gui_status, gui_status::applications, {tab_width, 0}); auto target = next_gui_status.load();
RadioButtonWithoutCheckBox(ICON_FA_LIST " " + _("Applications"), target, stream_tab::applications, {tab_width, 0});
imgui_ctx->vibrate_on_hover(); imgui_ctx->vibrate_on_hover();
if (RadioButtonWithoutCheckBox(ICON_FA_ROCKET " " + _("Start"), gui_status, gui_status::application_launcher, {tab_width, 0})) if (RadioButtonWithoutCheckBox(ICON_FA_ROCKET " " + _("Start"), target, stream_tab::application_launcher, {tab_width, 0}))
{ {
apps.reset(); apps.reset();
network_session->send_control(from_headset::get_application_list{ network_session->send_control(from_headset::get_application_list{
@@ -972,22 +1005,22 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
} }
imgui_ctx->vibrate_on_hover(); imgui_ctx->vibrate_on_hover();
RadioButtonWithoutCheckBox(ICON_FA_GEARS " " + _("Settings"), gui_status, gui_status::settings, {tab_width, 0}); RadioButtonWithoutCheckBox(ICON_FA_GEARS " " + _("Settings"), target, stream_tab::settings, {tab_width, 0});
imgui_ctx->vibrate_on_hover(); imgui_ctx->vibrate_on_hover();
RadioButtonWithoutCheckBox(ICON_FA_COMPUTER " " + _("Stats"), gui_status, gui_status::stats, {tab_width, 0}); RadioButtonWithoutCheckBox(ICON_FA_COMPUTER " " + _("Stats"), target, stream_tab::stats, {tab_width, 0});
imgui_ctx->vibrate_on_hover(); imgui_ctx->vibrate_on_hover();
int n_items_at_end = 4; int n_items_at_end = 4;
ImGui::SetCursorPosY(ImGui::GetContentRegionMax().y - n_items_at_end * ImGui::GetCurrentContext()->FontSize - (n_items_at_end * 2) * style.FramePadding.y - (n_items_at_end - 1) * style.ItemSpacing.y - style.WindowPadding.y); ImGui::SetCursorPosY(ImGui::GetContentRegionMax().y - n_items_at_end * ImGui::GetCurrentContext()->FontSize - (n_items_at_end * 2) * style.FramePadding.y - (n_items_at_end - 1) * style.ItemSpacing.y - style.WindowPadding.y);
RadioButtonWithoutCheckBox(ICON_FA_CHART_LINE " " + _("Statistics overlay"), gui_status, gui_status::overlay_only, {tab_width, 0}); RadioButtonWithoutCheckBox(ICON_FA_CHART_LINE " " + _("Statistics overlay"), target, stream_tab::overlay_only, {tab_width, 0});
imgui_ctx->vibrate_on_hover(); imgui_ctx->vibrate_on_hover();
RadioButtonWithoutCheckBox(ICON_FA_MINIMIZE " " + _("Compact view"), gui_status, gui_status::compact, {tab_width, 0}); RadioButtonWithoutCheckBox(ICON_FA_MINIMIZE " " + _("Compact view"), target, stream_tab::compact, {tab_width, 0});
imgui_ctx->vibrate_on_hover(); imgui_ctx->vibrate_on_hover();
RadioButtonWithoutCheckBox(ICON_FA_XMARK " " + _("Close"), gui_status, gui_status::hidden, {tab_width, 0}); RadioButtonWithoutCheckBox(ICON_FA_XMARK " " + _("Close"), target, stream_tab::hidden, {tab_width, 0});
imgui_ctx->vibrate_on_hover(); imgui_ctx->vibrate_on_hover();
bool dummy = false; bool dummy = false;
@@ -997,6 +1030,7 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
ImGui::PopStyleVar(); // ImGuiStyleVar_FramePadding ImGui::PopStyleVar(); // ImGuiStyleVar_FramePadding
ImGui::EndChild(); ImGui::EndChild();
next_gui_status = target;
} }
ImGui::PopStyleColor(); // ImGuiCol_ChildBg ImGui::PopStyleColor(); // ImGuiCol_ChildBg
} }
+28 -1
View File
@@ -33,7 +33,7 @@ void scenes::stream::process_packets()
#ifdef __ANDROID__ #ifdef __ANDROID__
application::instance().setup_jni(); application::instance().setup_jni();
#endif #endif
while (not exiting) while (state_ != state::shutdown)
{ {
try try
{ {
@@ -47,6 +47,28 @@ void scenes::stream::process_packets()
} }
} }
void scenes::stream::operator()(to_headset::server_message && message)
{
switch (message.kind)
{
case to_headset::server_message::kind::toast:
case to_headset::server_message::kind::toast_urgent: {
auto toast = gui_toast.lock();
toast->emplace(message.msg, message.kind == to_headset::server_message::kind::toast_urgent);
gui_status_last_change = instance.now();
break;
}
case to_headset::server_message::kind::error: {
auto queue = stream_error_queue.lock();
queue->emplace(std::move(message.msg));
break;
}
}
}
void scenes::stream::operator()(to_headset::video_stream_data_shard && shard) void scenes::stream::operator()(to_headset::video_stream_data_shard && shard)
{ {
std::shared_lock lock(decoder_mutex); std::shared_lock lock(decoder_mutex);
@@ -95,6 +117,11 @@ void scenes::stream::operator()(to_headset::refresh_rate_change && rate)
video_stream_description->fps = rate.fps; video_stream_description->fps = rate.fps;
} }
void scenes::stream::operator()(to_headset::stream_tab_change && tab)
{
next_gui_status = tab.tab;
}
void scenes::stream::operator()(to_headset::timesync_query && query) void scenes::stream::operator()(to_headset::timesync_query && query)
{ {
network_session->send_stream(from_headset::timesync_response{ network_session->send_stream(from_headset::timesync_response{
+1 -1
View File
@@ -341,7 +341,7 @@ void scenes::stream::tracking()
XrDuration frame_duration; XrDuration frame_duration;
XrTime pattern_begin = instance.now(); XrTime pattern_begin = instance.now();
while (not exiting) while (state_ != state::shutdown)
{ {
try try
{ {
-41
View File
@@ -1,41 +0,0 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "foveation_profile.h"
#include "xr/instance.h"
#include "xr/session.h"
xr::foveation_profile::foveation_profile(instance & inst, session & s, XrFoveationLevelFB level, float vertical_offset_degrees, bool dynamic) :
handle(inst.get_proc<PFN_xrDestroyFoveationProfileFB>("xrDestroyFoveationProfileFB")),
level_(level),
vertical_offset_degrees_(vertical_offset_degrees),
dynamic_(dynamic)
{
auto create = inst.get_proc<PFN_xrCreateFoveationProfileFB>("xrCreateFoveationProfileFB");
XrFoveationLevelProfileCreateInfoFB level_info{
.type = XR_TYPE_FOVEATION_LEVEL_PROFILE_CREATE_INFO_FB,
.level = level,
.verticalOffset = vertical_offset_degrees,
.dynamic = dynamic ? XR_FOVEATION_DYNAMIC_LEVEL_ENABLED_FB : XR_FOVEATION_DYNAMIC_DISABLED_FB,
};
XrFoveationProfileCreateInfoFB info{
.type = XR_TYPE_FOVEATION_PROFILE_CREATE_INFO_FB,
.next = &level_info,
};
create(s, &info, &id);
}
-57
View File
@@ -1,57 +0,0 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include "utils/handle.h"
#include <openxr/openxr.h>
namespace xr
{
class instance;
class session;
class foveation_profile : public utils::handle<XrFoveationProfileFB>
{
XrFoveationLevelFB level_;
float vertical_offset_degrees_;
bool dynamic_;
public:
foveation_profile(instance & inst, session & s, XrFoveationLevelFB level, float vertical_offset_degrees, bool dynamic);
bool operator==(const foveation_profile & other) const
{
return level_ == other.level_ and vertical_offset_degrees_ == other.vertical_offset_degrees_ and dynamic_ == other.dynamic_;
}
XrFoveationLevelFB level() const
{
return level_;
}
float vertical_offset_degrees() const
{
return vertical_offset_degrees_;
}
bool dynamic() const
{
return dynamic_;
}
};
} // namespace xr
+5 -41
View File
@@ -30,16 +30,13 @@ xr::swapchain::swapchain(
int32_t width, int32_t width,
int32_t height, int32_t height,
int sample_count, int sample_count,
uint32_t array_size, uint32_t array_size) :
XrFoveationProfileFB foveated) :
width_(width), width_(width),
height_(height), height_(height),
sample_count_(sample_count), sample_count_(sample_count),
format_(format) format_(format)
{ {
assert(sample_count == 1); assert(sample_count == 1);
if (foveated)
update = inst.get_proc<PFN_xrUpdateSwapchainFB>("xrUpdateSwapchainFB");
XrSwapchainUsageFlags usage_flags; XrSwapchainUsageFlags usage_flags;
@@ -58,14 +55,8 @@ xr::swapchain::swapchain(
break; break;
} }
XrSwapchainCreateInfoFoveationFB foveation_info{
.type = XR_TYPE_SWAPCHAIN_CREATE_INFO_FOVEATION_FB,
.flags = XR_SWAPCHAIN_CREATE_FOVEATION_FRAGMENT_DENSITY_MAP_BIT_FB,
};
XrSwapchainCreateInfo create_info{ XrSwapchainCreateInfo create_info{
.type = XR_TYPE_SWAPCHAIN_CREATE_INFO, .type = XR_TYPE_SWAPCHAIN_CREATE_INFO,
.next = foveated ? &foveation_info : nullptr,
.createFlags = 0, .createFlags = 0,
.usageFlags = usage_flags, .usageFlags = usage_flags,
.format = static_cast<VkFormat>(format), .format = static_cast<VkFormat>(format),
@@ -79,29 +70,11 @@ xr::swapchain::swapchain(
CHECK_XR(xrCreateSwapchain(s, &create_info, &id)); CHECK_XR(xrCreateSwapchain(s, &create_info, &id));
std::tuple<std::vector<XrSwapchainImageVulkanKHR>, std::vector<XrSwapchainImageFoveationVulkanFB>> array; auto images = details::enumerate<XrSwapchainImageVulkanKHR>(xrEnumerateSwapchainImages, id);
auto & images = std::get<0>(array);
auto & foveation = std::get<1>(array);
if (foveated)
{
update_foveation(foveated);
details::enumerate2(xrEnumerateSwapchainImages, array, id);
assert(images.size() == foveation.size());
}
else
{
details::enumerate(xrEnumerateSwapchainImages, images, id);
}
images_.resize(images.size()); images_.reserve(images.size());
for (uint32_t i = 0; i < images.size(); i++) for (auto & image: images)
{ images_.push_back(image.image);
images_[i].image = images[i].image;
if (foveated)
{
images_[i].foveation = foveation[i].image;
}
}
} }
int xr::swapchain::acquire() int xr::swapchain::acquire()
@@ -139,12 +112,3 @@ void xr::swapchain::release()
auto lock = application::get_queue().lock(); auto lock = application::get_queue().lock();
CHECK_XR(xrReleaseSwapchainImage(id, &release_info)); CHECK_XR(xrReleaseSwapchainImage(id, &release_info));
} }
void xr::swapchain::update_foveation(XrFoveationProfileFB foveation)
{
XrSwapchainStateFoveationFB update_info{
.type = XR_TYPE_SWAPCHAIN_STATE_FOVEATION_FB,
.profile = foveation,
};
CHECK_XR(update(id, (XrSwapchainStateBaseHeaderFB *)&update_info));
}
+5 -16
View File
@@ -35,21 +35,13 @@ class session;
class swapchain : public utils::handle<XrSwapchain, xrDestroySwapchain> class swapchain : public utils::handle<XrSwapchain, xrDestroySwapchain>
{ {
public:
struct image
{
vk::Image image{};
vk::Image foveation{};
};
private: private:
PFN_xrUpdateSwapchainFB update;
int32_t width_; int32_t width_;
int32_t height_; int32_t height_;
int sample_count_; int sample_count_;
vk::Format format_; vk::Format format_;
std::vector<image> images_; std::vector<vk::Image> images_;
public: public:
swapchain() = default; swapchain() = default;
@@ -61,8 +53,7 @@ public:
int32_t width, int32_t width,
int32_t height, int32_t height,
int sample_count = 1, int sample_count = 1,
uint32_t array_size = 1, uint32_t array_size = 1);
XrFoveationProfileFB foveation = XR_NULL_HANDLE);
int32_t width() const int32_t width() const
{ {
@@ -80,13 +71,13 @@ public:
{ {
return sample_count_; return sample_count_;
} }
const std::vector<image> & images() const const std::vector<vk::Image> & images() const
{ {
return images_; return images_;
} }
std::vector<image> & images() vk::Image image(size_t i) const
{ {
return images_; return images_[i];
} }
vk::Format format() const vk::Format format() const
{ {
@@ -96,7 +87,5 @@ public:
int acquire(); int acquire();
bool wait(XrDuration timeout = XR_INFINITE_DURATION); bool wait(XrDuration timeout = XR_INFINITE_DURATION);
void release(); void release();
void update_foveation(XrFoveationProfileFB foveation);
}; };
} // namespace xr } // namespace xr
+1 -1
View File
@@ -21,7 +21,7 @@ function(compile_glsl_aux shader_stage shader_name glsl_filename output target_e
add_custom_command( add_custom_command(
OUTPUT "${SPV_FILE}-nopt" OUTPUT "${SPV_FILE}-nopt"
COMMAND Vulkan::glslangValidator -V --target-env ${target_env} -S ${shader_stage} -D${shader_stage_upper}_SHADER ${in_file} ${SHADER_FLAGS} -o "${SPV_FILE}-nopt" --depfile "${SPV_FILE}.d" COMMAND Vulkan::glslangValidator -V --target-env ${target_env} -S ${shader_stage} -D${shader_stage_upper}_SHADER ${glsl_filename} ${SHADER_FLAGS} -o "${SPV_FILE}-nopt" --depfile "${SPV_FILE}.d"
DEPENDS "${glsl_filename}" DEPENDS "${glsl_filename}"
DEPFILE "${SPV_FILE}.d" DEPFILE "${SPV_FILE}.d"
VERBATIM VERBATIM
+2 -1
View File
@@ -1,5 +1,6 @@
function(add_file_to_target TARGET OUTPUT_FILE) function(add_file_to_target TARGET OUTPUT_FILE)
string(REPLACE "/" "_" TARGET_SUFFIX ${OUTPUT_FILE}) file(RELATIVE_PATH TARGET_SUFFIX "${CMAKE_SOURCE_DIR}" "${OUTPUT_FILE}")
string(REPLACE "/" "_" TARGET_SUFFIX "${TARGET_SUFFIX}")
add_custom_target(${TARGET}-${TARGET_SUFFIX} ALL DEPENDS ${OUTPUT_FILE}) add_custom_target(${TARGET}-${TARGET_SUFFIX} ALL DEPENDS ${OUTPUT_FILE})
add_dependencies(${TARGET} ${TARGET}-${TARGET_SUFFIX}) add_dependencies(${TARGET} ${TARGET}-${TARGET_SUFFIX})
+3 -4
View File
@@ -20,15 +20,14 @@ if (NOT GIT_COMMIT)
endif() endif()
if (NOT GIT_DESC) if (NOT GIT_DESC)
set(GIT_DESC v${CMAKE_PROJECT_VERSION}) message(FATAL_ERROR "GIT_DESC cannot be inferred from .git and was not provided at build time")
message(STATUS "Setting version to ${GIT_DESC} from CMakeLists")
endif() endif()
if (GIT_COMMIT) if (GIT_COMMIT)
message(STATUS "Setting commit to ${GIT_COMMIT}") message(STATUS "Setting commit to ${GIT_COMMIT}")
else() else()
set(GIT_COMMIT "") message(FATAL_ERROR "GIT_COMMIT cannot be inferred from .git and was not provided at build time")
message(STATUS "Not setting commit")
endif() endif()
configure_file(${INPUT_FILE} ${OUTPUT_FILE}) configure_file(${INPUT_FILE} ${OUTPUT_FILE})
configure_file(${INPUT_FILE_1} ${OUTPUT_FILE_1})
+2 -14
View File
@@ -5,26 +5,14 @@ else()
FetchContent_MakeAvailable(boost) FetchContent_MakeAvailable(boost)
endif() endif()
add_custom_target(wivrn-version ALL
COMMAND ${CMAKE_COMMAND}
-D GIT_EXECUTABLE=${GIT_EXECUTABLE}
-D INPUT_FILE=${CMAKE_CURRENT_SOURCE_DIR}/version.cpp.in
-D OUTPUT_FILE=${CMAKE_CURRENT_BINARY_DIR}/version.cpp
-D CMAKE_PROJECT_VERSION=${CMAKE_PROJECT_VERSION}
-D GIT_DESC="${GIT_DESC}"
-D GIT_COMMIT="${GIT_COMMIT}"
-P ${CMAKE_SOURCE_DIR}/cmake/GitVersion.cmake
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/version.cpp
SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/version.cpp.in
)
configure_file(wivrn_config.h.in wivrn_config.h) configure_file(wivrn_config.h.in wivrn_config.h)
add_library(wivrn-common-base STATIC EXCLUDE_FROM_ALL add_library(wivrn-common-base STATIC EXCLUDE_FROM_ALL
utils/strings.cpp utils/strings.cpp
utils/xdg_base_directory.cpp utils/xdg_base_directory.cpp
${CMAKE_CURRENT_BINARY_DIR}/version.cpp ${CMAKE_BINARY_DIR}/version.cpp
) )
add_dependencies(wivrn-common-base wivrn-version)
add_library(wivrn-common STATIC EXCLUDE_FROM_ALL add_library(wivrn-common STATIC EXCLUDE_FROM_ALL
crypto.cpp crypto.cpp
+44
View File
@@ -173,6 +173,19 @@ enum video_codec
raw, raw,
}; };
enum class stream_tab : uint8_t
{
hidden,
overlay_only,
compact,
stats,
settings,
bitrate_settings,
foveation_settings,
applications,
application_launcher,
};
struct audio_data struct audio_data
{ {
XrTime timestamp; XrTime timestamp;
@@ -512,6 +525,11 @@ struct user_presence_changed
bool present; bool present;
}; };
struct stream_tab_changed
{
stream_tab tab;
};
struct override_foveation_center struct override_foveation_center
{ {
bool enabled; bool enabled;
@@ -565,6 +583,7 @@ using packets = std::variant<
refresh_rate_changed, refresh_rate_changed,
session_state_changed, session_state_changed,
user_presence_changed, user_presence_changed,
stream_tab_changed,
override_foveation_center, override_foveation_center,
get_application_list, get_application_list,
start_app, start_app,
@@ -608,6 +627,22 @@ struct handshake
int stream_port; int stream_port;
}; };
struct server_message
{
enum class kind : uint8_t
{
// in-stream toasts (not buffered)
toast,
toast_urgent,
// displayed in lobby after disconnect (buffered)
error,
};
kind kind;
std::string msg;
};
struct foveation_parameter struct foveation_parameter
{ {
// The number of source pixels for each ratio, // The number of source pixels for each ratio,
@@ -643,6 +678,8 @@ struct video_stream_description
uint16_t height; uint16_t height;
std::array<video_codec, 3> codec; // left, right, alpha std::array<video_codec, 3> codec; // left, right, alpha
float fps; float fps;
bool operator==(const video_stream_description &) const = default;
}; };
class video_stream_data_shard class video_stream_data_shard
@@ -730,6 +767,11 @@ struct refresh_rate_change
float fps; float fps;
}; };
struct stream_tab_change
{
stream_tab tab;
};
struct application_list struct application_list
{ {
std::string language; std::string language;
@@ -766,6 +808,7 @@ using packets = std::variant<
pin_check_2, pin_check_2,
pin_check_4, pin_check_4,
handshake, handshake,
server_message,
audio_stream_description, audio_stream_description,
video_stream_description, video_stream_description,
audio_data, audio_data,
@@ -775,6 +818,7 @@ using packets = std::variant<
tracking_control, tracking_control,
feature_control, feature_control,
refresh_rate_change, refresh_rate_change,
stream_tab_change,
application_list, application_list,
application_icon, application_icon,
running_applications>; running_applications>;
+4
View File
@@ -7,6 +7,10 @@ include(I18n)
ecm_find_qmlmodule(org.kde.kirigami REQUIRED) ecm_find_qmlmodule(org.kde.kirigami REQUIRED)
ecm_find_qmlmodule(org.kde.kirigamiaddons.formcard REQUIRED) ecm_find_qmlmodule(org.kde.kirigamiaddons.formcard REQUIRED)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
add_executable(wivrn-dashboard add_executable(wivrn-dashboard
avahi.cpp avahi.cpp
main.cpp main.cpp
+1 -1
View File
@@ -165,7 +165,7 @@ Kirigami.ApplicationWindow {
text: i18n("Firewall may not allow port 9757") text: i18n("Firewall may not allow port 9757")
type: Kirigami.MessageType.Warning type: Kirigami.MessageType.Warning
showCloseButton: true showCloseButton: true
visible: DashboardSettings.show_system_checks && Firewall.needSetup visible: DashboardSettings.show_system_checks && Firewall.needSetup && Settings.port == Settings.default_port
actions: [ actions: [
Kirigami.Action { Kirigami.Action {
text: i18n("Fix it") text: i18n("Fix it")
+45 -1
View File
@@ -21,6 +21,7 @@
#include "escape_string.h" #include "escape_string.h"
#include "gui_config.h" #include "gui_config.h"
#include "utils/flatpak.h" #include "utils/flatpak.h"
#include "wivrn_config.h"
#include "wivrn_server.h" #include "wivrn_server.h"
#include <QList> #include <QList>
#include <QObject> #include <QObject>
@@ -121,6 +122,8 @@ void Settings::emitAllChanged()
debugGuiChanged(); debugGuiChanged();
steamVrLhChanged(); steamVrLhChanged();
hidForwardingChanged(); hidForwardingChanged();
portChanged();
hostnameChanged();
} }
void Settings::load(const wivrn_server * server) void Settings::load(const wivrn_server * server)
@@ -429,6 +432,40 @@ void Settings::set_tcpOnly(const bool & value)
tcpOnlyChanged(); tcpOnlyChanged();
} }
int Settings::port() const
{
auto it = m_jsonSettings.find("port");
if (it != m_jsonSettings.end() and it->is_number_integer())
return *it;
return wivrn::default_port;
}
void Settings::set_port(const int & value)
{
auto old = port();
m_jsonSettings["port"] = value;
if (old != value)
portChanged();
}
QString Settings::hostname() const
{
if (auto it = m_jsonSettings.find("hostname"); it != m_jsonSettings.end() and it->is_string())
return QString::fromStdString(*it);
return "";
}
void Settings::set_hostname(const QString & value)
{
auto old = hostname();
if (value == "")
m_jsonSettings.erase("hostname");
else
m_jsonSettings["hostname"] = value.toStdString();
if (old != value)
hostnameChanged();
}
QString Settings::openvr() const QString Settings::openvr() const
{ {
// OpenVR compat library // OpenVR compat library
@@ -452,7 +489,7 @@ void Settings::set_openvr(const QString & value)
else else
m_jsonSettings["openvr-compat-path"] = value.toStdString(); m_jsonSettings["openvr-compat-path"] = value.toStdString();
if (old != value) if (old != value)
tcpOnlyChanged(); openvrChanged();
} }
QList<Settings::video_codec> Settings::allowedCodecs() const QList<Settings::video_codec> Settings::allowedCodecs() const
@@ -504,6 +541,8 @@ void Settings::restore_defaults()
m_jsonSettings.erase("use-steamvr-lh"); m_jsonSettings.erase("use-steamvr-lh");
m_jsonSettings.erase("tcp-only"); m_jsonSettings.erase("tcp-only");
m_jsonSettings.erase("application"); m_jsonSettings.erase("application");
m_jsonSettings.erase("port");
m_jsonSettings.erase("hostname");
emitAllChanged(); emitAllChanged();
} }
@@ -512,6 +551,11 @@ bool Settings::flatpak() const
return wivrn::is_flatpak(); return wivrn::is_flatpak();
} }
int Settings::default_port() const
{
return wivrn::default_port;
}
bool Settings::debug_gui() const bool Settings::debug_gui() const
{ {
#if WIVRN_FEATURE_DEBUG_GUI #if WIVRN_FEATURE_DEBUG_GUI
+6
View File
@@ -68,6 +68,8 @@ public:
Q_PROPERTY(bool tenbit READ tenbit WRITE set_tenbit NOTIFY tenbitChanged) Q_PROPERTY(bool tenbit READ tenbit WRITE set_tenbit NOTIFY tenbitChanged)
Q_PROPERTY(bool tcpOnly READ tcpOnly WRITE set_tcpOnly NOTIFY tcpOnlyChanged) Q_PROPERTY(bool tcpOnly READ tcpOnly WRITE set_tcpOnly NOTIFY tcpOnlyChanged)
Q_PROPERTY(int port READ port WRITE set_port NOTIFY portChanged)
Q_PROPERTY(QString hostname READ hostname WRITE set_hostname NOTIFY hostnameChanged)
Q_PROPERTY(QString application READ application WRITE set_application NOTIFY applicationChanged) Q_PROPERTY(QString application READ application WRITE set_application NOTIFY applicationChanged)
Q_PROPERTY(QString openvr READ openvr WRITE set_openvr NOTIFY openvrChanged) Q_PROPERTY(QString openvr READ openvr WRITE set_openvr NOTIFY openvrChanged)
@@ -76,6 +78,7 @@ public:
Q_PROPERTY(bool steamVrLh READ steamVrLh WRITE set_steamVrLh NOTIFY steamVrLhChanged) Q_PROPERTY(bool steamVrLh READ steamVrLh WRITE set_steamVrLh NOTIFY steamVrLhChanged)
Q_PROPERTY(bool flatpak READ flatpak CONSTANT) Q_PROPERTY(bool flatpak READ flatpak CONSTANT)
Q_PROPERTY(int default_port READ default_port CONSTANT)
Q_PROPERTY(bool hid_forwarding_supported READ hid_forwarding CONSTANT) Q_PROPERTY(bool hid_forwarding_supported READ hid_forwarding CONSTANT)
Q_PROPERTY(bool debug_gui_supported READ debug_gui CONSTANT) Q_PROPERTY(bool debug_gui_supported READ debug_gui CONSTANT)
Q_PROPERTY(bool steamvr_lh_supported READ steamvr_lh CONSTANT) Q_PROPERTY(bool steamvr_lh_supported READ steamvr_lh CONSTANT)
@@ -89,6 +92,8 @@ public:
SETTER_GETTER_NOTIFY(bool, debugGui) SETTER_GETTER_NOTIFY(bool, debugGui)
SETTER_GETTER_NOTIFY(bool, steamVrLh) SETTER_GETTER_NOTIFY(bool, steamVrLh)
SETTER_GETTER_NOTIFY(bool, tcpOnly) SETTER_GETTER_NOTIFY(bool, tcpOnly)
SETTER_GETTER_NOTIFY(int, port)
SETTER_GETTER_NOTIFY(QString, hostname)
SETTER_GETTER_NOTIFY(QString, openvr) SETTER_GETTER_NOTIFY(QString, openvr)
private: private:
nlohmann::json m_jsonSettings = nlohmann::json::object(); nlohmann::json m_jsonSettings = nlohmann::json::object();
@@ -107,6 +112,7 @@ public:
bool can10bit() const; bool can10bit() const;
bool flatpak() const; bool flatpak() const;
int default_port() const;
bool debug_gui() const; bool debug_gui() const;
bool steamvr_lh() const; bool steamvr_lh() const;
bool hid_forwarding() const; bool hid_forwarding() const;
+5
View File
@@ -73,6 +73,11 @@
<property name="PairingEnabled" type="b" access="read"/> <property name="PairingEnabled" type="b" access="read"/>
<property name="EncryptionEnabled" type="b" access="read"/> <property name="EncryptionEnabled" type="b" access="read"/>
<property name="ClientTab" type="s" access="read"/>
<method name="SetClientTab">
<arg type="s" name="Tab"/>
</method>
<signal name="ServerError"> <signal name="ServerError">
<arg type="s" name="where"/> <arg type="s" name="where"/>
<arg type="s" name="message"/> <arg type="s" name="message"/>
+10 -7
View File
@@ -22,7 +22,6 @@ The encoder to use, either a single string or object applied to all streams, or
When a string it is used, it is equivalent to the `encoder` item of the object. When a string it is used, it is equivalent to the `encoder` item of the object.
WiVRn encodes each eye separately, and the alpha channel as one for both eyes. Each stream is processed independently, this may use resources more effectively and reduce latency. WiVRn encodes each eye separately, and the alpha channel as one for both eyes. Each stream is processed independently, this may use resources more effectively and reduce latency.
All the provided encoders are put into groups, groups are executed concurrently and items within a group are processed sequentially.
### `encoder` ### `encoder`
Default value: `nvenc` if Nvidia GPU and compiled with nvenc, `vaapi` for all other GPU when compiled with ffmpeg, else `x264`. Default value: `nvenc` if Nvidia GPU and compiled with nvenc, `vaapi` for all other GPU when compiled with ffmpeg, else `x264`.
@@ -46,12 +45,6 @@ Not all encoders support every codec:
If `nvenc` encoder is in use, you can refer to [nvidia website](https://developer.nvidia.com/video-encode-decode-support-matrix) to make sure that your GPU supports encoding with the desired codec. If `nvenc` encoder is in use, you can refer to [nvidia website](https://developer.nvidia.com/video-encode-decode-support-matrix) to make sure that your GPU supports encoding with the desired codec.
### `group` (advanced)
Default value: One value for each encoder type (nvenc, vaapi, vulkan, x264).
Identifier (number) of the encoder group. Encoders with the same identifier are executed sequentially, in the order they are defined in the configuration. Encoders with different identifiers are executed concurrently.
Default setting will have all encoders of a given type execute sequentially, and different types in parallel.
### Examples ### Examples
1. Simple configuration 1. Simple configuration
```json ```json
@@ -158,3 +151,13 @@ Default value: `false`
Only available when built with `WIVRN_FEATURE_STEAMVR_LIGHTHOUSE` Only available when built with `WIVRN_FEATURE_STEAMVR_LIGHTHOUSE`
Enables the driver to load SteamVR Lighthouse devices. Enables the driver to load SteamVR Lighthouse devices.
## `port`
Default value: `9757`
Change the TCP/UDP port used for the connection.
## `hostname`
Default value: unset
If set, overrides the name displayed in the server list.
+5 -1
View File
@@ -58,12 +58,16 @@
# Keep in sync with CMakeLists.txt monado rev # Keep in sync with CMakeLists.txt monado rev
rev = lib.strings.trim (builtins.readFile ./monado-rev); rev = lib.strings.trim (builtins.readFile ./monado-rev);
# Nix will output the correct hash when it doesn't match # Nix will output the correct hash when it doesn't match
hash = "sha256-wGqvTI/X22apc8XCN3GCGQClHfBW5xk73mZnwWvHtyI="; hash = "sha256-M0SQMu1rgY++a+4r0DK//ralFEO5w7I3UrgLecoLO+A=";
}; };
}; };
buildInputs = oldAttrs.buildInputs ++ extraBuildInputs; buildInputs = oldAttrs.buildInputs ++ extraBuildInputs;
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ extraNativeBuildInputs; nativeBuildInputs = oldAttrs.nativeBuildInputs ++ extraNativeBuildInputs;
cmakeFlags = (oldAttrs.cmakeFlags or []) ++ [
(lib.cmakeFeature "GIT_DESC" "nightly")
(lib.cmakeFeature "GIT_COMMIT" "nightly")
];
})); }));
in { in {
packages = { packages = {
+1
View File
@@ -376,6 +376,7 @@ modules:
- -DWIVRN_BUILD_SERVER=ON - -DWIVRN_BUILD_SERVER=ON
- -DWIVRN_BUILD_SERVER_LIBRARY=OFF - -DWIVRN_BUILD_SERVER_LIBRARY=OFF
- -DWIVRN_BUILD_DASHBOARD=ON - -DWIVRN_BUILD_DASHBOARD=ON
- -DWIVRN_OPTIMIZE_SHADERS=OFF
- -DWIVRN_USE_VAAPI=ON - -DWIVRN_USE_VAAPI=ON
- -DWIVRN_USE_X264=ON - -DWIVRN_USE_X264=ON
- -DWIVRN_USE_NVENC=ON - -DWIVRN_USE_NVENC=ON
+19 -20
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: WiVRn-dashboard\n" "Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-02-16 21:54+0100\n" "POT-Creation-Date: 2026-02-26 15:00+0100\n"
"PO-Revision-Date: 2025-11-19 20:20+0100\n" "PO-Revision-Date: 2025-11-19 20:20+0100\n"
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n" "Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
"Language-Team: Spanish <>\n" "Language-Team: Spanish <>\n"
@@ -15,7 +15,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Lokalize 25.08.3\n" "X-Generator: Qt Linguist 6.10.2\n"
"X-Language: es_ES\n" "X-Language: es_ES\n"
"X-Source-Language: en_US\n" "X-Source-Language: en_US\n"
@@ -135,13 +135,13 @@ msgstr ""
#: dashboard/qml/ApkInstallPage.qml:51 dashboard/qml/WizardPage.qml:204 #: dashboard/qml/ApkInstallPage.qml:51 dashboard/qml/WizardPage.qml:204
#, kde-format #, kde-format
msgid "" msgid ""
"Follow the instructions in the <a " "Follow the instructions in the <a href=\"https://github.com/WiVRn/WiVRn/blob/"
"href=\"https://github.com/WiVRn/WiVRn/blob/master/docs/building.md#client-headset\">documentation</a> " "master/docs/building.md#client-headset\">documentation</a> to build your own "
"to build your own client." "client."
msgstr "" msgstr ""
"Sigue las instrucciones en la <a " "Sigue las instrucciones en la <a href=\"https://github.com/WiVRn/WiVRn/blob/"
"href=\"https://github.com/WiVRn/WiVRn/blob/master/docs/building.md#client-headset\">documentación</a> " "master/docs/building.md#client-headset\">documentación</a> para compilar tu "
"para compilar tu propio cliente." "propio cliente."
#: dashboard/qml/ConnectUsbDialog.qml:11 #: dashboard/qml/ConnectUsbDialog.qml:11
#, kde-format #, kde-format
@@ -469,19 +469,19 @@ msgstr "Solucionar problemas"
msgid "Version %1" msgid "Version %1"
msgstr "Versión %1" msgstr "Versión %1"
#: dashboard/qml/SelectGame.qml:14 #: dashboard/qml/SelectGame.qml:12
#, kde-format #, kde-format
msgctxt "don't start an application automatically" msgctxt "don't start an application automatically"
msgid "None" msgid "None"
msgstr "Ninguno" msgstr "Ninguno"
#: dashboard/qml/SelectGame.qml:20 #: dashboard/qml/SelectGame.qml:18
#, kde-format #, kde-format
msgctxt "choose a custom application to start" msgctxt "choose a custom application to start"
msgid "Custom" msgid "Custom"
msgstr "Personalizado" msgstr "Personalizado"
#: dashboard/qml/SelectGame.qml:72 #: dashboard/qml/SelectGame.qml:70
#, kde-format #, kde-format
msgctxt "browse a file to choose the application to start" msgctxt "browse a file to choose the application to start"
msgid "Browse" msgid "Browse"
@@ -708,9 +708,9 @@ msgstr "Tengo un error de \"Servidor WiVRn incompatible\" en mi visor"
#: dashboard/qml/TroubleshootPage.qml:37 #: dashboard/qml/TroubleshootPage.qml:37
#, kde-format #, kde-format
msgid "" msgid ""
"<p>The version of the headset app and the server on your computer must " "<p>The version of the headset app and the server on your computer must match."
"match.</p><ul><li>The headset app version is in the \"About\" " "</p><ul><li>The headset app version is in the \"About\" page</li><li>The "
"page</li><li>The server version is <b>%1</b></li></ul>" "server version is <b>%1</b></li></ul>"
msgstr "" msgstr ""
"<p>La versión de la aplicación del visor y la del servidor en tu computadora " "<p>La versión de la aplicación del visor y la del servidor en tu computadora "
"deben coincidir.</p><ul><li>La versión de la aplicación del visor está en la " "deben coincidir.</p><ul><li>La versión de la aplicación del visor está en la "
@@ -762,13 +762,12 @@ msgstr "Algunos juegos fallan al abrirse o tienen problemas de input"
#: dashboard/qml/TroubleshootPage.qml:62 #: dashboard/qml/TroubleshootPage.qml:62
#, kde-format #, kde-format
msgid "" msgid ""
"For game specific issues, check on <a " "For game specific issues, check on <a href=\"https://db.vronlinux.org/"
"href=\"https://db.vronlinux.org/\">vronlinux DB</a> if there are known bugs " "\">vronlinux DB</a> if there are known bugs or workarounds."
"or workarounds."
msgstr "" msgstr ""
"Para problemas específicos de un juego, mirar en <a " "Para problemas específicos de un juego, mirar en <a href=\"https://"
"href=\"https://db.vronlinux.org/\">vronlinux DB</a> por si hubiese algún " "db.vronlinux.org/\">vronlinux DB</a> por si hubiese algún problema conocido "
"problema conocido o por soluciones." "o por soluciones."
#: dashboard/qml/TroubleshootPage.qml:79 #: dashboard/qml/TroubleshootPage.qml:79
#, kde-format #, kde-format
+150 -140
View File
@@ -5,7 +5,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: WiVRn 0.15\n" "Project-Id-Version: WiVRn 0.15\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-02-15 00:02+0100\n" "POT-Creation-Date: 2026-02-27 16:03+0100\n"
"PO-Revision-Date: 2025-11-19 20:23+0100\n" "PO-Revision-Date: 2025-11-19 20:23+0100\n"
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n" "Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
"Language-Team: Spanish <>\n" "Language-Team: Spanish <>\n"
@@ -14,7 +14,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Lokalize 25.08.3\n" "X-Generator: Qt Linguist 6.10.2\n"
"X-Language: es_ES\n" "X-Language: es_ES\n"
"X-Source-Language: en_US\n" "X-Source-Language: en_US\n"
@@ -70,11 +70,11 @@ msgstr "No se puede conectar a {} ({}): {}"
msgid "Waiting for connection" msgid "Waiting for connection"
msgstr "Esperando conexión" msgstr "Esperando conexión"
#: client/scenes/lobby.cpp:1307 #: client/scenes/lobby.cpp:1316
msgid "Passthrough" msgid "Passthrough"
msgstr "Exterior" msgstr "Exterior"
#: client/scenes/lobby.cpp:1319 #: client/scenes/lobby.cpp:1328
msgid "Default environment" msgid "Default environment"
msgstr "Entorno por defecto" msgstr "Entorno por defecto"
@@ -93,14 +93,15 @@ msgctxt "openxr_post_processing"
msgid "Disabled" msgid "Disabled"
msgstr "Deshabilitado" msgstr "Deshabilitado"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258 #: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254
#: client/scenes/stream_gui.cpp:992 #: client/scenes/stream_gui.cpp:1026
msgid "Disconnect" msgid "Disconnect"
msgstr "Desconectar" msgstr "Desconectar"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753 #: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264
#: client/scenes/lobby_gui_customize.cpp:753
#: client/scenes/lobby_gui_customize.cpp:844 #: client/scenes/lobby_gui_customize.cpp:844
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:988 #: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022
msgid "Close" msgid "Close"
msgstr "Cerrar" msgstr "Cerrar"
@@ -121,32 +122,41 @@ msgstr "PIN"
msgid "Input the PIN displayed on the dashboard" msgid "Input the PIN displayed on the dashboard"
msgstr "Ingresa el PIN que se muestra en el panel de control" msgstr "Ingresa el PIN que se muestra en el panel de control"
#: client/scenes/lobby_gui.cpp:282
msgid "Disconnected"
msgstr "Desconectado"
#: client/scenes/lobby_gui.cpp:284 #: client/scenes/lobby_gui.cpp:284
#, c++-format
msgid "Disconnected from {}"
msgstr "Desconectado de {}"
#: client/scenes/lobby_gui.cpp:316
msgid "Name" msgid "Name"
msgstr "Nombre" msgstr "Nombre"
#: client/scenes/lobby_gui.cpp:295 #: client/scenes/lobby_gui.cpp:327
msgid "Address" msgid "Address"
msgstr "Dirección" msgstr "Dirección"
#: client/scenes/lobby_gui.cpp:304 #: client/scenes/lobby_gui.cpp:336
msgid "Port" msgid "Port"
msgstr "Puerto" msgstr "Puerto"
#: client/scenes/lobby_gui.cpp:312 #: client/scenes/lobby_gui.cpp:344
msgid "TCP only" msgid "TCP only"
msgstr "Solo TCP" msgstr "Solo TCP"
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655 #: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:944 #: client/scenes/stream_gui.cpp:978
msgid "Cancel" msgid "Cancel"
msgstr "Cancelar" msgstr "Cancelar"
#: client/scenes/lobby_gui.cpp:333 #: client/scenes/lobby_gui.cpp:365
msgid "Save" msgid "Save"
msgstr "Guardar" msgstr "Guardar"
#: client/scenes/lobby_gui.cpp:386 #: client/scenes/lobby_gui.cpp:418
msgid "" msgid ""
"Start a WiVRn server on your\n" "Start a WiVRn server on your\n"
"local network" "local network"
@@ -154,46 +164,46 @@ msgstr ""
"Inicia un servidor WiVRn en tu\n" "Inicia un servidor WiVRn en tu\n"
"red local" "red local"
#: client/scenes/lobby_gui.cpp:418 #: client/scenes/lobby_gui.cpp:450
msgid "Autoconnect" msgid "Autoconnect"
msgstr "Conexión automática" msgstr "Conexión automática"
#: client/scenes/lobby_gui.cpp:444 #: client/scenes/lobby_gui.cpp:476
msgid "Connect" msgid "Connect"
msgstr "Conectar" msgstr "Conectar"
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186 #: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186
msgid "Incompatible server version" msgid "Incompatible server version"
msgstr "Versión del servidor incompatible" msgstr "Versión del servidor incompatible"
#: client/scenes/lobby_gui.cpp:456 #: client/scenes/lobby_gui.cpp:488
msgid "Server not available" msgid "Server not available"
msgstr "Servidor no disponible" msgstr "Servidor no disponible"
#: client/scenes/lobby_gui.cpp:538 #: client/scenes/lobby_gui.cpp:581
msgctxt "language selection, replace with the name of the language" msgctxt "language selection, replace with the name of the language"
msgid "English" msgid "English"
msgstr "Español" msgstr "Español"
#: client/scenes/lobby_gui.cpp:552 #: client/scenes/lobby_gui.cpp:595
msgid "Language" msgid "Language"
msgstr "Idioma" msgstr "Idioma"
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554 #: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597
msgid "System language" msgid "System language"
msgstr "Idioma del sistema" msgstr "Idioma del sistema"
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:413 #: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412
msgid "Refresh rate" msgid "Refresh rate"
msgstr "Frecuencia de actualización" msgstr "Frecuencia de actualización"
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582 #: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625
#: client/scenes/stream_gui.cpp:413 client/scenes/stream_gui.cpp:415 #: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414
msgctxt "automatic refresh rate" msgctxt "automatic refresh rate"
msgid "Automatic" msgid "Automatic"
msgstr "Automática" msgstr "Automática"
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:423 #: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421
msgid "" msgid ""
"Select refresh rate based on measured application performance.\n" "Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens." "May cause flicker when a change happens."
@@ -202,38 +212,38 @@ msgstr ""
"aplicación.\n" "aplicación.\n"
"Puede causar parpadeos cuando ocurre un cambio." "Puede causar parpadeos cuando ocurre un cambio."
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:441 #: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439
msgid "Minimum refresh rate" msgid "Minimum refresh rate"
msgstr "Tasa mínima de refresco" msgstr "Tasa mínima de refresco"
#: client/scenes/lobby_gui.cpp:632 #: client/scenes/lobby_gui.cpp:675
msgid "Foveation level" msgid "Foveation level"
msgstr "Nivel de fóvea" msgstr "Nivel de fóvea"
#: client/scenes/lobby_gui.cpp:655 #: client/scenes/lobby_gui.cpp:698
msgid "Render resolution" msgid "Render resolution"
msgstr "Resolución de renderizado" msgstr "Resolución de renderizado"
#: client/scenes/lobby_gui.cpp:659 #: client/scenes/lobby_gui.cpp:702
#, c-format, c++-format #, c-format, c++-format
msgid "{}%% - {}x{} per eye" msgid "{}%% - {}x{} per eye"
msgstr "{}%% - {}x{} por ojo" msgstr "{}%% - {}x{} por ojo"
#: client/scenes/lobby_gui.cpp:670 #: client/scenes/lobby_gui.cpp:713
#, c++-format #, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset" msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "La resolución mayor que {}x{} podría no ser compatible con el visor" msgstr "La resolución mayor que {}x{} podría no ser compatible con el visor"
#: client/scenes/lobby_gui.cpp:680 #: client/scenes/lobby_gui.cpp:723
msgid "Foveated encoding" msgid "Foveated encoding"
msgstr "Codificación foveada" msgstr "Codificación foveada"
#: client/scenes/lobby_gui.cpp:684 #: client/scenes/lobby_gui.cpp:727
#, c-format, c++-format #, c-format, c++-format
msgid "{}%%" msgid "{}%%"
msgstr "{}%%" msgstr "{}%%"
#: client/scenes/lobby_gui.cpp:697 #: client/scenes/lobby_gui.cpp:740
msgid "" msgid ""
"Higher values focus image quality where you look at,\n" "Higher values focus image quality where you look at,\n"
"improving latency, power efficiency and quality." "improving latency, power efficiency and quality."
@@ -241,7 +251,7 @@ msgstr ""
"Un mayor valor hará que la calidad de la imagen se centre a donde tú mires\n" "Un mayor valor hará que la calidad de la imagen se centre a donde tú mires\n"
"mejorando la latencia, eficiencia energética y calidad." "mejorando la latencia, eficiencia energética y calidad."
#: client/scenes/lobby_gui.cpp:700 #: client/scenes/lobby_gui.cpp:743
msgid "" msgid ""
"Higher values focus image quality at the center,\n" "Higher values focus image quality at the center,\n"
"improving latency, power efficiency and quality." "improving latency, power efficiency and quality."
@@ -249,90 +259,90 @@ msgstr ""
"Un mayor valor hará que la calidad de la imagen se centre en el centro\n" "Un mayor valor hará que la calidad de la imagen se centre en el centro\n"
"mejorando la latencia, eficiencia energética y calidad." "mejorando la latencia, eficiencia energética y calidad."
#: client/scenes/lobby_gui.cpp:709 #: client/scenes/lobby_gui.cpp:752
msgctxt "Codec" msgctxt "Codec"
msgid "Automatic" msgid "Automatic"
msgstr "Automático" msgstr "Automático"
#: client/scenes/lobby_gui.cpp:713 #: client/scenes/lobby_gui.cpp:756
msgctxt "Codec" msgctxt "Codec"
msgid "H.264" msgid "H.264"
msgstr "H.264" msgstr "H.264"
#: client/scenes/lobby_gui.cpp:715 #: client/scenes/lobby_gui.cpp:758
msgctxt "Codec" msgctxt "Codec"
msgid "H.265" msgid "H.265"
msgstr "H.265" msgstr "H.265"
#: client/scenes/lobby_gui.cpp:717 #: client/scenes/lobby_gui.cpp:760
msgctxt "Codec" msgctxt "Codec"
msgid "AV1" msgid "AV1"
msgstr "AV1" msgstr "AV1"
#: client/scenes/lobby_gui.cpp:725 #: client/scenes/lobby_gui.cpp:768
msgid "Codec" msgid "Codec"
msgstr "Codec" msgstr "Codec"
#: client/scenes/lobby_gui.cpp:753 #: client/scenes/lobby_gui.cpp:796
msgid "10-bit" msgid "10-bit"
msgstr "10-bit" msgstr "10-bit"
#: client/scenes/lobby_gui.cpp:769 #: client/scenes/lobby_gui.cpp:812
msgid "Bitrate" msgid "Bitrate"
msgstr "Bitrate" msgstr "Bitrate"
#: client/scenes/lobby_gui.cpp:773 #: client/scenes/lobby_gui.cpp:816
#, c++-format #, c++-format
msgid "{}Mbit/s" msgid "{}Mbit/s"
msgstr "{}Mbit/s" msgstr "{}Mbit/s"
#: client/scenes/lobby_gui.cpp:784 #: client/scenes/lobby_gui.cpp:827
msgid "High power mode" msgid "High power mode"
msgstr "Modo de alto rendimiento" msgstr "Modo de alto rendimiento"
#: client/scenes/lobby_gui.cpp:787 #: client/scenes/lobby_gui.cpp:830
msgid "Increase power usage to allow higher resolution and refresh rate" msgid "Increase power usage to allow higher resolution and refresh rate"
msgstr "" msgstr ""
"Incrementa el uso de energía para permitir una mayor resolución y frecuencia " "Incrementa el uso de energía para permitir una mayor resolución y frecuencia "
"de refresco" "de refresco"
#: client/scenes/lobby_gui.cpp:793 #: client/scenes/lobby_gui.cpp:836
msgid "Enable microphone" msgid "Enable microphone"
msgstr "Activar micrófono" msgstr "Activar micrófono"
#: client/scenes/lobby_gui.cpp:802 #: client/scenes/lobby_gui.cpp:845
msgid "Unprocessed Microphone Audio" msgid "Unprocessed Microphone Audio"
msgstr "Entrada de audio sin procesar" msgstr "Entrada de audio sin procesar"
#: client/scenes/lobby_gui.cpp:808 #: client/scenes/lobby_gui.cpp:851
msgid "Force disable audio filters, such as noise cancellation" msgid "Force disable audio filters, such as noise cancellation"
msgstr "" msgstr ""
"Forzar la deshabilitación de filtros de audio, asi como la cancelación de " "Forzar la deshabilitación de filtros de audio, asi como la cancelación de "
"ruido" "ruido"
#: client/scenes/lobby_gui.cpp:815 #: client/scenes/lobby_gui.cpp:858
msgid "Enable hand tracking" msgid "Enable hand tracking"
msgstr "Activar seguimiento de manos" msgstr "Activar seguimiento de manos"
#: client/scenes/lobby_gui.cpp:821 client/scenes/lobby_gui.cpp:832 #: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875
#: client/scenes/lobby_gui.cpp:842 client/scenes/lobby_gui.cpp:857 #: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900
#: client/scenes/lobby_gui_customize.cpp:640 #: client/scenes/lobby_gui_customize.cpp:640
msgid "This feature is not supported by your headset" msgid "This feature is not supported by your headset"
msgstr "Esta función no es compatible con tu visor" msgstr "Esta función no es compatible con tu visor"
#: client/scenes/lobby_gui.cpp:826 #: client/scenes/lobby_gui.cpp:869
msgid "Enable eye tracking" msgid "Enable eye tracking"
msgstr "Activar seguimiento ocular" msgstr "Activar seguimiento ocular"
#: client/scenes/lobby_gui.cpp:837 #: client/scenes/lobby_gui.cpp:880
msgid "Enable face tracking" msgid "Enable face tracking"
msgstr "Activar seguimiento facial" msgstr "Activar seguimiento facial"
#: client/scenes/lobby_gui.cpp:849 #: client/scenes/lobby_gui.cpp:892
msgid "Enable body tracking" msgid "Enable body tracking"
msgstr "Habilitar seguimiento corporal" msgstr "Habilitar seguimiento corporal"
#: client/scenes/lobby_gui.cpp:862 #: client/scenes/lobby_gui.cpp:905
msgid "" msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement " "Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n" "tracking settings,\n"
@@ -343,11 +353,11 @@ msgstr ""
"si no el seguimiento corporal será medido por la posición de los controles y " "si no el seguimiento corporal será medido por la posición de los controles y "
"el visor" "el visor"
#: client/scenes/lobby_gui.cpp:872 #: client/scenes/lobby_gui.cpp:915
msgid "Enable lower body tracking" msgid "Enable lower body tracking"
msgstr "Habilitar seguimiento de cintura para abajo" msgstr "Habilitar seguimiento de cintura para abajo"
#: client/scenes/lobby_gui.cpp:878 #: client/scenes/lobby_gui.cpp:921
msgid "" msgid ""
"Estimate lower body joint positions using Generative Legs\n" "Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement " "Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -358,11 +368,11 @@ msgstr ""
"Requiere habilitar 'Seguimiento de manos y del cuerpo' en los ajustes de " "Requiere habilitar 'Seguimiento de manos y del cuerpo' en los ajustes de "
"movimiento de Quest" "movimiento de Quest"
#: client/scenes/lobby_gui.cpp:881 #: client/scenes/lobby_gui.cpp:924
msgid "Enable hip tracking" msgid "Enable hip tracking"
msgstr "Habilitar seguimiento de cintura" msgstr "Habilitar seguimiento de cintura"
#: client/scenes/lobby_gui.cpp:887 #: client/scenes/lobby_gui.cpp:930
msgid "" msgid ""
"Only takes affect with lower body tracking enabled\n" "Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking" "May be desired when using another source of hip tracking"
@@ -370,11 +380,11 @@ msgstr ""
"Solo es funcional si tiene habilitado el seguimiento de cintura para abajo.\n" "Solo es funcional si tiene habilitado el seguimiento de cintura para abajo.\n"
"Puede ser necesario si está usando otro metodo para seguir la cintura" "Puede ser necesario si está usando otro metodo para seguir la cintura"
#: client/scenes/lobby_gui.cpp:896 #: client/scenes/lobby_gui.cpp:939
msgid "Enable in-stream window" msgid "Enable in-stream window"
msgstr "Habilitar ventana mientras se juega" msgstr "Habilitar ventana mientras se juega"
#: client/scenes/lobby_gui.cpp:899 #: client/scenes/lobby_gui.cpp:942
msgid "" msgid ""
"Enables the configuration window to be shown while the game is streaming.\n" "Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks." "If enabled, the window is activated by pressing both thumbsticks."
@@ -382,25 +392,25 @@ msgstr ""
"Permite que la ventana de configuración se muestre mientras se juega.\n" "Permite que la ventana de configuración se muestre mientras se juega.\n"
"Si se habilita, la ventana se activará al presionar ambos joysticks." "Si se habilita, la ventana se activará al presionar ambos joysticks."
#: client/scenes/lobby_gui.cpp:903 #: client/scenes/lobby_gui.cpp:946
msgid "Extended configuration values" msgid "Extended configuration values"
msgstr "Extender valores de configuración" msgstr "Extender valores de configuración"
#: client/scenes/lobby_gui.cpp:906 #: client/scenes/lobby_gui.cpp:949
msgid "Allows unsafe configuration values, use at your own risk." msgid "Allows unsafe configuration values, use at your own risk."
msgstr "" msgstr ""
"Permitir valores de configuración inseguros, usar bajo propia " "Permitir valores de configuración inseguros, usar bajo propia "
"responsabilidad." "responsabilidad."
#: client/scenes/lobby_gui.cpp:920 client/scenes/stream_gui.cpp:475 #: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473
msgid "OpenXR post-processing" msgid "OpenXR post-processing"
msgstr "Post-procesamiento de OpenXR" msgstr "Post-procesamiento de OpenXR"
#: client/scenes/lobby_gui.cpp:924 client/scenes/stream_gui.cpp:479 #: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477
msgid "Supersampling" msgid "Supersampling"
msgstr "Sobremuestreo" msgstr "Sobremuestreo"
#: client/scenes/lobby_gui.cpp:944 client/scenes/stream_gui.cpp:500 #: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498
msgid "" msgid ""
"Reduce flicker for high contrast edges.\n" "Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display" "Useful when the input resolution is high compared to the headset display"
@@ -409,11 +419,11 @@ msgstr ""
"Útil cuando la resolución de entrada es alta comparada con la pantalla del " "Útil cuando la resolución de entrada es alta comparada con la pantalla del "
"visor" "visor"
#: client/scenes/lobby_gui.cpp:949 client/scenes/stream_gui.cpp:505 #: client/scenes/lobby_gui.cpp:992 client/scenes/stream_gui.cpp:503
msgid "Sharpening" msgid "Sharpening"
msgstr "Nitidez" msgstr "Nitidez"
#: client/scenes/lobby_gui.cpp:969 client/scenes/stream_gui.cpp:526 #: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524
msgid "" msgid ""
"Improve clarity of high contrast edges and counteract blur.\n" "Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display" "Useful when the input resolution is low compared to the headset display"
@@ -422,129 +432,129 @@ msgstr ""
"Útil cuando la resolución de entrada es baja comparada con la pantalla del " "Útil cuando la resolución de entrada es baja comparada con la pantalla del "
"visor" "visor"
#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161 #: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:372 #: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371
msgid "CPU time" msgid "CPU time"
msgstr "Tiempo de CPU" msgstr "Tiempo de CPU"
#: client/scenes/lobby_gui.cpp:1157 #: client/scenes/lobby_gui.cpp:1200
msgid "CPU time [ms]" msgid "CPU time [ms]"
msgstr "Tiempo de CPU [ms]" msgstr "Tiempo de CPU [ms]"
#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175 #: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:373 #: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372
msgid "GPU time" msgid "GPU time"
msgstr "Tiempo de GPU" msgstr "Tiempo de GPU"
#: client/scenes/lobby_gui.cpp:1171 #: client/scenes/lobby_gui.cpp:1214
msgid "GPU time [ms]" msgid "GPU time [ms]"
msgstr "Tiempo de GPU [ms]" msgstr "Tiempo de GPU [ms]"
#: client/scenes/lobby_gui.cpp:1235 #: client/scenes/lobby_gui.cpp:1278
msgid "Enable the microphone?" msgid "Enable the microphone?"
msgstr "¿Habilitar micrófono?" msgstr "¿Habilitar micrófono?"
#: client/scenes/lobby_gui.cpp:1240 #: client/scenes/lobby_gui.cpp:1283
msgid "Enable eye tracking?" msgid "Enable eye tracking?"
msgstr "¿Habilitar seguimiento ocular?" msgstr "¿Habilitar seguimiento ocular?"
#: client/scenes/lobby_gui.cpp:1245 #: client/scenes/lobby_gui.cpp:1288
msgid "Enable face tracking?" msgid "Enable face tracking?"
msgstr "¿Habilitar seguimiento facial?" msgstr "¿Habilitar seguimiento facial?"
#: client/scenes/lobby_gui.cpp:1250 #: client/scenes/lobby_gui.cpp:1293
msgid "Enable body tracking?" msgid "Enable body tracking?"
msgstr "¿Habilitar seguimiento corporal?" msgstr "¿Habilitar seguimiento corporal?"
#: client/scenes/lobby_gui.cpp:1258 #: client/scenes/lobby_gui.cpp:1301
msgid "Welcome to WiVRn" msgid "Welcome to WiVRn"
msgstr "Bienvenido a WiVRn" msgstr "Bienvenido a WiVRn"
#: client/scenes/lobby_gui.cpp:1286 #: client/scenes/lobby_gui.cpp:1329
msgid "Yes" msgid "Yes"
msgstr "Sí" msgstr "Sí"
#: client/scenes/lobby_gui.cpp:1293 #: client/scenes/lobby_gui.cpp:1336
msgid "No" msgid "No"
msgstr "No" msgstr "No"
#: client/scenes/lobby_gui.cpp:1312 client/scenes/lobby_gui.cpp:1958 #: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001
msgid "Licenses" msgid "Licenses"
msgstr "Licencias" msgstr "Licencias"
#: client/scenes/lobby_gui.cpp:1588 #: client/scenes/lobby_gui.cpp:1631
msgid "Microphone is enabled" msgid "Microphone is enabled"
msgstr "Micrófono activado" msgstr "Micrófono activado"
#: client/scenes/lobby_gui.cpp:1589 #: client/scenes/lobby_gui.cpp:1632
msgid "Microphone is disabled" msgid "Microphone is disabled"
msgstr "Micrófono desactivado" msgstr "Micrófono desactivado"
#: client/scenes/lobby_gui.cpp:1598 #: client/scenes/lobby_gui.cpp:1641
msgid "Hand tracking is enabled" msgid "Hand tracking is enabled"
msgstr "Seguimiento de manos activado" msgstr "Seguimiento de manos activado"
#: client/scenes/lobby_gui.cpp:1599 #: client/scenes/lobby_gui.cpp:1642
msgid "Hand tracking is disabled" msgid "Hand tracking is disabled"
msgstr "Seguimiento de manos desactivado" msgstr "Seguimiento de manos desactivado"
#: client/scenes/lobby_gui.cpp:1608 #: client/scenes/lobby_gui.cpp:1651
msgid "Eye tracking is enabled" msgid "Eye tracking is enabled"
msgstr "Seguimiento ocular activado" msgstr "Seguimiento ocular activado"
#: client/scenes/lobby_gui.cpp:1609 #: client/scenes/lobby_gui.cpp:1652
msgid "Eye tracking is disabled" msgid "Eye tracking is disabled"
msgstr "Seguimiento ocular desactivado" msgstr "Seguimiento ocular desactivado"
#: client/scenes/lobby_gui.cpp:1619 #: client/scenes/lobby_gui.cpp:1662
msgid "Face tracking is enabled" msgid "Face tracking is enabled"
msgstr "Seguimiento facial activado" msgstr "Seguimiento facial activado"
#: client/scenes/lobby_gui.cpp:1620 #: client/scenes/lobby_gui.cpp:1663
msgid "Face tracking is disabled" msgid "Face tracking is disabled"
msgstr "Seguimiento facial desactivado" msgstr "Seguimiento facial desactivado"
#: client/scenes/lobby_gui.cpp:1634 #: client/scenes/lobby_gui.cpp:1677
msgid "Body tracking is enabled" msgid "Body tracking is enabled"
msgstr "Seguimiento corporal está habilitado" msgstr "Seguimiento corporal está habilitado"
#: client/scenes/lobby_gui.cpp:1635 #: client/scenes/lobby_gui.cpp:1678
msgid "Body tracking is disabled" msgid "Body tracking is disabled"
msgstr "Seguimiento corporal está deshabilitado" msgstr "Seguimiento corporal está deshabilitado"
#: client/scenes/lobby_gui.cpp:1651 #: client/scenes/lobby_gui.cpp:1694
msgid "Add server" msgid "Add server"
msgstr "Agregar servidor" msgstr "Agregar servidor"
#: client/scenes/lobby_gui.cpp:1937 #: client/scenes/lobby_gui.cpp:1980
msgid "Server list" msgid "Server list"
msgstr "Lista de servidores" msgstr "Lista de servidores"
#: client/scenes/lobby_gui.cpp:1940 client/scenes/stream_gui.cpp:973 #: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007
msgid "Settings" msgid "Settings"
msgstr "Configuración" msgstr "Configuración"
#: client/scenes/lobby_gui.cpp:1943 #: client/scenes/lobby_gui.cpp:1986
msgid "Post-processing" msgid "Post-processing"
msgstr "Post-procesamiento" msgstr "Post-procesamiento"
#: client/scenes/lobby_gui.cpp:1946 #: client/scenes/lobby_gui.cpp:1989
msgid "Customize" msgid "Customize"
msgstr "Personalización" msgstr "Personalización"
#: client/scenes/lobby_gui.cpp:1950 #: client/scenes/lobby_gui.cpp:1993
msgid "Debug" msgid "Debug"
msgstr "Depuración" msgstr "Depuración"
#: client/scenes/lobby_gui.cpp:1955 #: client/scenes/lobby_gui.cpp:1998
msgid "About" msgid "About"
msgstr "Acerca de" msgstr "Acerca de"
#: client/scenes/lobby_gui.cpp:1961 #: client/scenes/lobby_gui.cpp:2004
msgid "Exit" msgid "Exit"
msgstr "Salir" msgstr "Salir"
#: client/scenes/lobby_gui.cpp:1978 #: client/scenes/lobby_gui.cpp:2021
msgid "" msgid ""
"Press the grip button or put your palm up\n" "Press the grip button or put your palm up\n"
"to move the main window" "to move the main window"
@@ -552,7 +562,7 @@ msgstr ""
"Pulsa el botón de agarre o pon tu palma hacia arriba\n" "Pulsa el botón de agarre o pon tu palma hacia arriba\n"
"para mover la ventana principal" "para mover la ventana principal"
#: client/scenes/lobby_gui.cpp:1980 #: client/scenes/lobby_gui.cpp:2023
msgid "Press the grip button to move the main window" msgid "Press the grip button to move the main window"
msgstr "Pulsa el botón de agarre para mover la ventana principal" msgstr "Pulsa el botón de agarre para mover la ventana principal"
@@ -631,160 +641,160 @@ msgstr "Descargar más entornos"
msgid "Open local glTF model" msgid "Open local glTF model"
msgstr "Abrir modelo glTF local" msgstr "Abrir modelo glTF local"
#: client/scenes/stream_gui.cpp:176 #: client/scenes/stream_gui.cpp:175
msgid "Defoveate" msgid "Defoveate"
msgstr "Desfovear" msgstr "Desfovear"
#: client/scenes/stream_gui.cpp:178 #: client/scenes/stream_gui.cpp:177
msgid "Network" msgid "Network"
msgstr "Red" msgstr "Red"
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370 #: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
msgid "Download" msgid "Download"
msgstr "Descargar" msgstr "Descargar"
#: client/scenes/stream_gui.cpp:179 client/scenes/stream_gui.cpp:371 #: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
msgid "Upload" msgid "Upload"
msgstr "Subir" msgstr "Subir"
#: client/scenes/stream_gui.cpp:248 #: client/scenes/stream_gui.cpp:247
#, c++-format #, c++-format
msgid "Decoder {}" msgid "Decoder {}"
msgstr "Decodificador {}" msgstr "Decodificador {}"
#: client/scenes/stream_gui.cpp:260 #: client/scenes/stream_gui.cpp:259
msgid "Timings [ms]" msgid "Timings [ms]"
msgstr "Tiempos [ms]" msgstr "Tiempos [ms]"
#: client/scenes/stream_gui.cpp:320 #: client/scenes/stream_gui.cpp:319
msgid "Encode" msgid "Encode"
msgstr "Codificar" msgstr "Codificar"
#: client/scenes/stream_gui.cpp:321 #: client/scenes/stream_gui.cpp:320
msgid "Send" msgid "Send"
msgstr "Enviar" msgstr "Enviar"
#: client/scenes/stream_gui.cpp:322 #: client/scenes/stream_gui.cpp:321
msgid "Receive" msgid "Receive"
msgstr "Recibir" msgstr "Recibir"
#: client/scenes/stream_gui.cpp:323 #: client/scenes/stream_gui.cpp:322
msgid "Decode" msgid "Decode"
msgstr "Decodificar" msgstr "Decodificar"
#: client/scenes/stream_gui.cpp:324 #: client/scenes/stream_gui.cpp:323
msgid "Blitted" msgid "Blitted"
msgstr "Copiado" msgstr "Copiado"
#: client/scenes/stream_gui.cpp:325 #: client/scenes/stream_gui.cpp:324
msgid "Displayed" msgid "Displayed"
msgstr "Mostrado" msgstr "Mostrado"
#: client/scenes/stream_gui.cpp:326 #: client/scenes/stream_gui.cpp:325
msgid "Predicted" msgid "Predicted"
msgstr "Previsto" msgstr "Previsto"
#: client/scenes/stream_gui.cpp:345 #: client/scenes/stream_gui.cpp:344
#, c++-format #, c++-format
msgid "Estimated motion to photons latency: {}ms" msgid "Estimated motion to photons latency: {}ms"
msgstr "Latencia estimada de movimiento a fotones: {}ms" msgstr "Latencia estimada de movimiento a fotones: {}ms"
#: client/scenes/stream_gui.cpp:350 #: client/scenes/stream_gui.cpp:349
msgid "Press the grip button to move the window" msgid "Press the grip button to move the window"
msgstr "Pulsa el botón de agarre para mover la ventana" msgstr "Pulsa el botón de agarre para mover la ventana"
#: client/scenes/stream_gui.cpp:352 client/scenes/stream_gui.cpp:900 #: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738
msgid "Press both thumbsticks to display the WiVRn window" msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Pulsa ambos joysticks para mostrar la ventana de WiVRn" msgstr "Pulsa ambos joysticks para mostrar la ventana de WiVRn"
#: client/scenes/stream_gui.cpp:374 #: client/scenes/stream_gui.cpp:373
msgid "Motion to photon latency" msgid "Motion to photon latency"
msgstr "Latencia entre el movimiento y la imagen mostrada" msgstr "Latencia entre el movimiento y la imagen mostrada"
#: client/scenes/stream_gui.cpp:460 #: client/scenes/stream_gui.cpp:458
msgid "Bitrate:" msgid "Bitrate:"
msgstr "Bitrate:" msgstr "Bitrate:"
#: client/scenes/stream_gui.cpp:470 #: client/scenes/stream_gui.cpp:468
msgid "Click to adjust bitrate" msgid "Click to adjust bitrate"
msgstr "Haga click para ajustar el bitrate" msgstr "Haga click para ajustar el bitrate"
#: client/scenes/stream_gui.cpp:534 #: client/scenes/stream_gui.cpp:532
msgid "Foveation center override" msgid "Foveation center override"
msgstr "Reajustar el centro de la fóvea" msgstr "Reajustar el centro de la fóvea"
#: client/scenes/stream_gui.cpp:537 #: client/scenes/stream_gui.cpp:535
msgid "Enable" msgid "Enable"
msgstr "Habilitar" msgstr "Habilitar"
#: client/scenes/stream_gui.cpp:545 client/scenes/stream_gui.cpp:616 #: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614
#, c++-format #, c++-format
msgid "Height {:.1f} deg" msgid "Height {:.1f} deg"
msgstr "Altura {:.1f} °" msgstr "Altura {:.1f} °"
#: client/scenes/stream_gui.cpp:546 client/scenes/stream_gui.cpp:617 #: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615
#, c++-format #, c++-format
msgid "Distance {:.2f} m" msgid "Distance {:.2f} m"
msgstr "Distancia {:.2f} m" msgstr "Distancia {:.2f} m"
#: client/scenes/stream_gui.cpp:547 #: client/scenes/stream_gui.cpp:545
msgid "Default" msgid "Default"
msgstr "Por defecto" msgstr "Por defecto"
#: client/scenes/stream_gui.cpp:558 #: client/scenes/stream_gui.cpp:556
msgid "Change" msgid "Change"
msgstr "Cambiar" msgstr "Cambiar"
#: client/scenes/stream_gui.cpp:590 #: client/scenes/stream_gui.cpp:588
msgid "Use the right thumbstick to adjust the bitrate" msgid "Use the right thumbstick to adjust the bitrate"
msgstr "Use el stick derecho para ajustar el bitrate" msgstr "Use el stick derecho para ajustar el bitrate"
#: client/scenes/stream_gui.cpp:591 #: client/scenes/stream_gui.cpp:589
msgid "Press A to go back" msgid "Press A to go back"
msgstr "Pulse A para volver" msgstr "Pulse A para volver"
#: client/scenes/stream_gui.cpp:592 #: client/scenes/stream_gui.cpp:590
#, c++-format #, c++-format
msgid "Bitrate: {}Mbit/s" msgid "Bitrate: {}Mbit/s"
msgstr "Bitrate: {}Mbit/s" msgstr "Bitrate: {}Mbit/s"
#: client/scenes/stream_gui.cpp:614 #: client/scenes/stream_gui.cpp:612
msgid "Use the thumbsticks to move the foveation center" msgid "Use the thumbsticks to move the foveation center"
msgstr "Usa los joysticks para mover el centro de la fóvea" msgstr "Usa los joysticks para mover el centro de la fóvea"
#: client/scenes/stream_gui.cpp:615 #: client/scenes/stream_gui.cpp:613
msgid "Press A to save or B to cancel" msgid "Press A to save or B to cancel"
msgstr "Pulsa A para guardar o B para cancelar" msgstr "Pulsa A para guardar o B para cancelar"
#: client/scenes/stream_gui.cpp:673 #: client/scenes/stream_gui.cpp:671
msgid "Running XR applications:" msgid "Running XR applications:"
msgstr "Aplicaciones XR ejecutandose:" msgstr "Aplicaciones XR ejecutandose:"
#: client/scenes/stream_gui.cpp:690 #: client/scenes/stream_gui.cpp:688
msgid "Overlays" msgid "Overlays"
msgstr "Superposiciones" msgstr "Superposiciones"
#: client/scenes/stream_gui.cpp:729 #: client/scenes/stream_gui.cpp:727
msgid "Request to quit, may be ignored by the application" msgid "Request to quit, may be ignored by the application"
msgstr "Pedir salir, puede ser ignorado por la aplicación" msgstr "Pedir salir, puede ser ignorado por la aplicación"
#: client/scenes/stream_gui.cpp:959 #: client/scenes/stream_gui.cpp:993
msgid "Applications" msgid "Applications"
msgstr "Aplicaciones" msgstr "Aplicaciones"
#: client/scenes/stream_gui.cpp:962 #: client/scenes/stream_gui.cpp:996
msgid "Start" msgid "Start"
msgstr "Iniciar" msgstr "Iniciar"
#: client/scenes/stream_gui.cpp:976 #: client/scenes/stream_gui.cpp:1010
msgid "Stats" msgid "Stats"
msgstr "Estadísticas" msgstr "Estadísticas"
#: client/scenes/stream_gui.cpp:982 #: client/scenes/stream_gui.cpp:1016
msgid "Statistics overlay" msgid "Statistics overlay"
msgstr "Superponer stats" msgstr "Superponer stats"
#: client/scenes/stream_gui.cpp:985 #: client/scenes/stream_gui.cpp:1019
msgid "Compact view" msgid "Compact view"
msgstr "Vista compacta" msgstr "Vista compacta"
+155 -145
View File
@@ -1,13 +1,13 @@
# #
# SPDX-FileCopyrightText: 2025 Guillaume Meunier <guillaume.meunier@centraliens.net> # SPDX-FileCopyrightText: 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
# Guillaume Meunier <guillaume.meunier@centraliens.net>, 2025. # Guillaume Meunier <guillaume.meunier@centraliens.net>, 2025-2026.
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: WiVRn 0.15\n" "Project-Id-Version: WiVRn 0.15\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-12-29 15:36+0100\n" "POT-Creation-Date: 2026-02-27 16:09+0100\n"
"PO-Revision-Date: 2025-12-29 15:40+0100\n" "PO-Revision-Date: 2026-02-27 16:12+0100\n"
"Last-Translator: Guillaume Meunier <guillaume.meunier@centraliens.net>\n" "Last-Translator: Guillaume Meunier <guillaume.meunier@centraliens.net>\n"
"Language-Team: French <>\n" "Language-Team: French <>\n"
"Language: French\n" "Language: French\n"
@@ -21,27 +21,27 @@ msgstr ""
msgid "No supported swapchain format" msgid "No supported swapchain format"
msgstr "Aucun format de swapchain supporté" msgstr "Aucun format de swapchain supporté"
#: client/scenes/app_launcher.cpp:128 #: client/scenes/app_launcher.cpp:127
msgid "Connected to WiVRn server" msgid "Connected to WiVRn server"
msgstr "Connecté au serveur WiVRn" msgstr "Connecté au serveur WiVRn"
#: client/scenes/app_launcher.cpp:130 #: client/scenes/app_launcher.cpp:129
#, c++-format #, c++-format
msgid "Connected to {}" msgid "Connected to {}"
msgstr "Connecté à {}" msgstr "Connecté à {}"
#: client/scenes/app_launcher.cpp:136 #: client/scenes/app_launcher.cpp:135
msgid "Start an application on the server to start streaming." msgid "Start an application on the server to start streaming."
msgstr "" msgstr ""
"Démarrez une application sur le serveur pour commencer la transmission." "Démarrez une application sur le serveur pour commencer la transmission."
#: client/scenes/app_launcher.cpp:146 #: client/scenes/app_launcher.cpp:145
msgid "Start an application on your computer or select one to start streaming." msgid "Start an application on your computer or select one to start streaming."
msgstr "" msgstr ""
"Démarrez une application sur le serveur ou depuis la liste pour commencer la " "Démarrez une application sur le serveur ou depuis la liste pour commencer la "
"transmission." "transmission."
#: client/scenes/app_launcher.cpp:148 #: client/scenes/app_launcher.cpp:147
#, c++-format #, c++-format
msgid "Start an application on {} or select one to start streaming." msgid "Start an application on {} or select one to start streaming."
msgstr "" msgstr ""
@@ -73,11 +73,11 @@ msgstr "Impossible de se connecter à {} ({}) : {}"
msgid "Waiting for connection" msgid "Waiting for connection"
msgstr "Attente de connexion" msgstr "Attente de connexion"
#: client/scenes/lobby.cpp:1319 #: client/scenes/lobby.cpp:1316
msgid "Passthrough" msgid "Passthrough"
msgstr "Vue réelle" msgstr "Vue réelle"
#: client/scenes/lobby.cpp:1331 #: client/scenes/lobby.cpp:1328
msgid "Default environment" msgid "Default environment"
msgstr "Environnement par défaut" msgstr "Environnement par défaut"
@@ -96,14 +96,15 @@ msgctxt "openxr_post_processing"
msgid "Disabled" msgid "Disabled"
msgstr "Désactivé" msgstr "Désactivé"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258 #: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254
#: client/scenes/stream_gui.cpp:1015 #: client/scenes/stream_gui.cpp:1026
msgid "Disconnect" msgid "Disconnect"
msgstr "Déconnecter" msgstr "Déconnecter"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753 #: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264
#: client/scenes/lobby_gui_customize.cpp:753
#: client/scenes/lobby_gui_customize.cpp:844 #: client/scenes/lobby_gui_customize.cpp:844
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011 #: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022
msgid "Close" msgid "Close"
msgstr "Fermer" msgstr "Fermer"
@@ -124,32 +125,41 @@ msgstr "Code PIN"
msgid "Input the PIN displayed on the dashboard" msgid "Input the PIN displayed on the dashboard"
msgstr "Entrez le code PIN affiché sur le tableau de bord" msgstr "Entrez le code PIN affiché sur le tableau de bord"
#: client/scenes/lobby_gui.cpp:282
msgid "Disconnected"
msgstr "Connexion terminée"
#: client/scenes/lobby_gui.cpp:284 #: client/scenes/lobby_gui.cpp:284
#, c++-format
msgid "Disconnected from {}"
msgstr "Connexion à {} terminée"
#: client/scenes/lobby_gui.cpp:316
msgid "Name" msgid "Name"
msgstr "Nom" msgstr "Nom"
#: client/scenes/lobby_gui.cpp:295 #: client/scenes/lobby_gui.cpp:327
msgid "Address" msgid "Address"
msgstr "Adresse" msgstr "Adresse"
#: client/scenes/lobby_gui.cpp:304 #: client/scenes/lobby_gui.cpp:336
msgid "Port" msgid "Port"
msgstr "Port" msgstr "Port"
#: client/scenes/lobby_gui.cpp:312 #: client/scenes/lobby_gui.cpp:344
msgid "TCP only" msgid "TCP only"
msgstr "TCP seulement" msgstr "TCP seulement"
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655 #: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:968 #: client/scenes/stream_gui.cpp:978
msgid "Cancel" msgid "Cancel"
msgstr "Annuler" msgstr "Annuler"
#: client/scenes/lobby_gui.cpp:333 #: client/scenes/lobby_gui.cpp:365
msgid "Save" msgid "Save"
msgstr "Enregistrer" msgstr "Enregistrer"
#: client/scenes/lobby_gui.cpp:386 #: client/scenes/lobby_gui.cpp:418
msgid "" msgid ""
"Start a WiVRn server on your\n" "Start a WiVRn server on your\n"
"local network" "local network"
@@ -157,46 +167,46 @@ msgstr ""
"Démarrez un serveur WiVRn sur\n" "Démarrez un serveur WiVRn sur\n"
"le réseau local" "le réseau local"
#: client/scenes/lobby_gui.cpp:418 #: client/scenes/lobby_gui.cpp:450
msgid "Autoconnect" msgid "Autoconnect"
msgstr "Autoconnexion" msgstr "Autoconnexion"
#: client/scenes/lobby_gui.cpp:444 #: client/scenes/lobby_gui.cpp:476
msgid "Connect" msgid "Connect"
msgstr "Connexion" msgstr "Connexion"
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186 #: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186
msgid "Incompatible server version" msgid "Incompatible server version"
msgstr "Version du serveur incompatible" msgstr "Version du serveur incompatible"
#: client/scenes/lobby_gui.cpp:456 #: client/scenes/lobby_gui.cpp:488
msgid "Server not available" msgid "Server not available"
msgstr "Serveur non disponible" msgstr "Serveur non disponible"
#: client/scenes/lobby_gui.cpp:538 #: client/scenes/lobby_gui.cpp:581
msgctxt "language selection, replace with the name of the language" msgctxt "language selection, replace with the name of the language"
msgid "English" msgid "English"
msgstr "Français" msgstr "Français"
#: client/scenes/lobby_gui.cpp:552 #: client/scenes/lobby_gui.cpp:595
msgid "Language" msgid "Language"
msgstr "Langue" msgstr "Langue"
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554 #: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597
msgid "System language" msgid "System language"
msgstr "Langue système" msgstr "Langue système"
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417 #: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412
msgid "Refresh rate" msgid "Refresh rate"
msgstr "Taux de rafraichissement" msgstr "Taux de rafraichissement"
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582 #: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419 #: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414
msgctxt "automatic refresh rate" msgctxt "automatic refresh rate"
msgid "Automatic" msgid "Automatic"
msgstr "Automatique" msgstr "Automatique"
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427 #: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421
msgid "" msgid ""
"Select refresh rate based on measured application performance.\n" "Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens." "May cause flicker when a change happens."
@@ -205,38 +215,38 @@ msgstr ""
"des performances mesurées.\n" "des performances mesurées.\n"
"Peut causer des clignotements lors du changement de fréquence." "Peut causer des clignotements lors du changement de fréquence."
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445 #: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439
msgid "Minimum refresh rate" msgid "Minimum refresh rate"
msgstr "Taux minimal" msgstr "Taux minimal"
#: client/scenes/lobby_gui.cpp:632 #: client/scenes/lobby_gui.cpp:675
msgid "Foveation level" msgid "Foveation level"
msgstr "Niveau de fovéation" msgstr "Niveau de fovéation"
#: client/scenes/lobby_gui.cpp:655 #: client/scenes/lobby_gui.cpp:698
msgid "Render resolution" msgid "Render resolution"
msgstr "Résolution de rendu" msgstr "Résolution de rendu"
#: client/scenes/lobby_gui.cpp:659 #: client/scenes/lobby_gui.cpp:702
#, c-format, c++-format #, c-format, c++-format
msgid "{}%% - {}x{} per eye" msgid "{}%% - {}x{} per eye"
msgstr "{} %% - {}x{} par œil" msgstr "{} %% - {}x{} par œil"
#: client/scenes/lobby_gui.cpp:670 #: client/scenes/lobby_gui.cpp:713
#, c++-format #, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset" msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "Les résolutions plus grandes que {}x{} pourraient ne pas fonctionner" msgstr "Les résolutions plus grandes que {}x{} pourraient ne pas fonctionner"
#: client/scenes/lobby_gui.cpp:680 #: client/scenes/lobby_gui.cpp:723
msgid "Foveated encoding" msgid "Foveated encoding"
msgstr "Fovéation d'encodage" msgstr "Fovéation d'encodage"
#: client/scenes/lobby_gui.cpp:684 #: client/scenes/lobby_gui.cpp:727
#, c-format, c++-format #, c-format, c++-format
msgid "{}%%" msgid "{}%%"
msgstr "{} %%" msgstr "{} %%"
#: client/scenes/lobby_gui.cpp:697 #: client/scenes/lobby_gui.cpp:740
msgid "" msgid ""
"Higher values focus image quality where you look at,\n" "Higher values focus image quality where you look at,\n"
"improving latency, power efficiency and quality." "improving latency, power efficiency and quality."
@@ -245,7 +255,7 @@ msgstr ""
"porte le regard, ce qui diminue la latence, réduit la\n" "porte le regard, ce qui diminue la latence, réduit la\n"
"consommation d'énergie et améliore la qualité." "consommation d'énergie et améliore la qualité."
#: client/scenes/lobby_gui.cpp:700 #: client/scenes/lobby_gui.cpp:743
msgid "" msgid ""
"Higher values focus image quality at the center,\n" "Higher values focus image quality at the center,\n"
"improving latency, power efficiency and quality." "improving latency, power efficiency and quality."
@@ -254,88 +264,88 @@ msgstr ""
"de l'image, ce qui diminue la latence, réduit la\n" "de l'image, ce qui diminue la latence, réduit la\n"
"consommation d'énergie et améliore la qualité." "consommation d'énergie et améliore la qualité."
#: client/scenes/lobby_gui.cpp:709 #: client/scenes/lobby_gui.cpp:752
msgctxt "Codec" msgctxt "Codec"
msgid "Automatic" msgid "Automatic"
msgstr "Automatique" msgstr "Automatique"
#: client/scenes/lobby_gui.cpp:713 #: client/scenes/lobby_gui.cpp:756
msgctxt "Codec" msgctxt "Codec"
msgid "H.264" msgid "H.264"
msgstr "H.264" msgstr "H.264"
#: client/scenes/lobby_gui.cpp:715 #: client/scenes/lobby_gui.cpp:758
msgctxt "Codec" msgctxt "Codec"
msgid "H.265" msgid "H.265"
msgstr "H.265" msgstr "H.265"
#: client/scenes/lobby_gui.cpp:717 #: client/scenes/lobby_gui.cpp:760
msgctxt "Codec" msgctxt "Codec"
msgid "AV1" msgid "AV1"
msgstr "AV1" msgstr "AV1"
#: client/scenes/lobby_gui.cpp:725 #: client/scenes/lobby_gui.cpp:768
msgid "Codec" msgid "Codec"
msgstr "Codec" msgstr "Codec"
#: client/scenes/lobby_gui.cpp:753 #: client/scenes/lobby_gui.cpp:796
msgid "10-bit" msgid "10-bit"
msgstr "10 bits" msgstr "10 bits"
#: client/scenes/lobby_gui.cpp:768 #: client/scenes/lobby_gui.cpp:812
msgid "Bitrate" msgid "Bitrate"
msgstr "Débit" msgstr "Débit"
#: client/scenes/lobby_gui.cpp:772 #: client/scenes/lobby_gui.cpp:816
#, c++-format #, c++-format
msgid "{}Mbit/s" msgid "{}Mbit/s"
msgstr "{} Mbit/s" msgstr "{} Mbit/s"
#: client/scenes/lobby_gui.cpp:783 #: client/scenes/lobby_gui.cpp:827
msgid "High power mode" msgid "High power mode"
msgstr "Mode haute consommation" msgstr "Mode haute consommation"
#: client/scenes/lobby_gui.cpp:786 #: client/scenes/lobby_gui.cpp:830
msgid "Increase power usage to allow higher resolution and refresh rate" msgid "Increase power usage to allow higher resolution and refresh rate"
msgstr "" msgstr ""
"Augmente la consommation d'énergie pour permettre une résolution\n" "Augmente la consommation d'énergie pour permettre une résolution\n"
"et une fréquence de rafraîchissement plus élevées" "et une fréquence de rafraîchissement plus élevées"
#: client/scenes/lobby_gui.cpp:792 #: client/scenes/lobby_gui.cpp:836
msgid "Enable microphone" msgid "Enable microphone"
msgstr "Activer le micro" msgstr "Activer le micro"
#: client/scenes/lobby_gui.cpp:801 #: client/scenes/lobby_gui.cpp:845
msgid "Unprocessed Microphone Audio" msgid "Unprocessed Microphone Audio"
msgstr "Utiliser les données brutes du micro" msgstr "Utiliser les données brutes du micro"
#: client/scenes/lobby_gui.cpp:807 #: client/scenes/lobby_gui.cpp:851
msgid "Force disable audio filters, such as noise cancellation" msgid "Force disable audio filters, such as noise cancellation"
msgstr "Désactive les traitements tels que la suppression du bruit" msgstr "Désactive les traitements tels que la suppression du bruit"
#: client/scenes/lobby_gui.cpp:814 #: client/scenes/lobby_gui.cpp:858
msgid "Enable hand tracking" msgid "Enable hand tracking"
msgstr "Activer le suivi des mains" msgstr "Activer le suivi des mains"
#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831 #: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856 #: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900
#: client/scenes/lobby_gui_customize.cpp:640 #: client/scenes/lobby_gui_customize.cpp:640
msgid "This feature is not supported by your headset" msgid "This feature is not supported by your headset"
msgstr "Cette fonctionnalité n'est pas supportée par le casque" msgstr "Cette fonctionnalité n'est pas supportée par le casque"
#: client/scenes/lobby_gui.cpp:825 #: client/scenes/lobby_gui.cpp:869
msgid "Enable eye tracking" msgid "Enable eye tracking"
msgstr "Activer le suivi des yeux" msgstr "Activer le suivi des yeux"
#: client/scenes/lobby_gui.cpp:836 #: client/scenes/lobby_gui.cpp:880
msgid "Enable face tracking" msgid "Enable face tracking"
msgstr "Activer le suivi du visage" msgstr "Activer le suivi du visage"
#: client/scenes/lobby_gui.cpp:848 #: client/scenes/lobby_gui.cpp:892
msgid "Enable body tracking" msgid "Enable body tracking"
msgstr "Activer le suivi du corps" msgstr "Activer le suivi du corps"
#: client/scenes/lobby_gui.cpp:861 #: client/scenes/lobby_gui.cpp:905
msgid "" msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement " "Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n" "tracking settings,\n"
@@ -346,11 +356,11 @@ msgstr ""
"suivi des mouvements du casque.\n" "suivi des mouvements du casque.\n"
"Sinon les positions seront déduites de celles des manettes et casque." "Sinon les positions seront déduites de celles des manettes et casque."
#: client/scenes/lobby_gui.cpp:871 #: client/scenes/lobby_gui.cpp:915
msgid "Enable lower body tracking" msgid "Enable lower body tracking"
msgstr "Activer le suivi du bas du corps" msgstr "Activer le suivi du bas du corps"
#: client/scenes/lobby_gui.cpp:877 #: client/scenes/lobby_gui.cpp:921
msgid "" msgid ""
"Estimate lower body joint positions using Generative Legs\n" "Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement " "Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -361,11 +371,11 @@ msgstr ""
"paramètres\n" "paramètres\n"
"de suivi de mouvements du casque." "de suivi de mouvements du casque."
#: client/scenes/lobby_gui.cpp:880 #: client/scenes/lobby_gui.cpp:924
msgid "Enable hip tracking" msgid "Enable hip tracking"
msgstr "Activer le suivi des hanches" msgstr "Activer le suivi des hanches"
#: client/scenes/lobby_gui.cpp:886 #: client/scenes/lobby_gui.cpp:930
msgid "" msgid ""
"Only takes affect with lower body tracking enabled\n" "Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking" "May be desired when using another source of hip tracking"
@@ -373,11 +383,11 @@ msgstr ""
"N'a d'effet que si le suivi du bas du corps est activé.\n" "N'a d'effet que si le suivi du bas du corps est activé.\n"
"Peut être utile si les hanches sont suivies via un autre moyen." "Peut être utile si les hanches sont suivies via un autre moyen."
#: client/scenes/lobby_gui.cpp:895 #: client/scenes/lobby_gui.cpp:939
msgid "Enable in-stream window" msgid "Enable in-stream window"
msgstr "Activer la fenêtre WiVRn lors de la transmission" msgstr "Activer la fenêtre WiVRn lors de la transmission"
#: client/scenes/lobby_gui.cpp:898 #: client/scenes/lobby_gui.cpp:942
msgid "" msgid ""
"Enables the configuration window to be shown while the game is streaming.\n" "Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks." "If enabled, the window is activated by pressing both thumbsticks."
@@ -387,25 +397,25 @@ msgstr ""
"Lorsque activé, la fenêtre peut être affichée en appuyant sur les deux " "Lorsque activé, la fenêtre peut être affichée en appuyant sur les deux "
"sticks." "sticks."
#: client/scenes/lobby_gui.cpp:902 #: client/scenes/lobby_gui.cpp:946
msgid "Extended configuration values" msgid "Extended configuration values"
msgstr "Valeurs de configuration étendues" msgstr "Valeurs de configuration étendues"
#: client/scenes/lobby_gui.cpp:905 #: client/scenes/lobby_gui.cpp:949
msgid "Allows unsafe configuration values, use at your own risk." msgid "Allows unsafe configuration values, use at your own risk."
msgstr "" msgstr ""
"Permet d'utiliser des limites plus hautes,\n" "Permet d'utiliser des limites plus hautes,\n"
"peut ne pas fonctionner correctement." "peut ne pas fonctionner correctement."
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479 #: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473
msgid "OpenXR post-processing" msgid "OpenXR post-processing"
msgstr "Post-traitement OpenXR" msgstr "Post-traitement OpenXR"
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483 #: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477
msgid "Supersampling" msgid "Supersampling"
msgstr "Suréchantillonnage" msgstr "Suréchantillonnage"
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504 #: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498
msgid "" msgid ""
"Reduce flicker for high contrast edges.\n" "Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display" "Useful when the input resolution is high compared to the headset display"
@@ -413,11 +423,11 @@ msgstr ""
"Réduit le scintillement des contours à haut contraste.\n" "Réduit le scintillement des contours à haut contraste.\n"
"Utile quand la résolution d’entrée est haute comparée à l’écran du casque" "Utile quand la résolution d’entrée est haute comparée à l’écran du casque"
#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:509 #: client/scenes/lobby_gui.cpp:992 client/scenes/stream_gui.cpp:503
msgid "Sharpening" msgid "Sharpening"
msgstr "Affinage de netteté" msgstr "Affinage de netteté"
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530 #: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524
msgid "" msgid ""
"Improve clarity of high contrast edges and counteract blur.\n" "Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display" "Useful when the input resolution is low compared to the headset display"
@@ -425,129 +435,129 @@ msgstr ""
"Améliore la clarté des contours à haut contraste et réduit le flou.\n" "Améliore la clarté des contours à haut contraste et réduit le flou.\n"
"Utile quand la résolution d’entrée est basse comparée à l’écran du casque" "Utile quand la résolution d’entrée est basse comparée à l’écran du casque"
#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160 #: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373 #: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371
msgid "CPU time" msgid "CPU time"
msgstr "Temps CPU" msgstr "Temps CPU"
#: client/scenes/lobby_gui.cpp:1156 #: client/scenes/lobby_gui.cpp:1200
msgid "CPU time [ms]" msgid "CPU time [ms]"
msgstr "Temps CPU [ms]" msgstr "Temps CPU [ms]"
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174 #: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374 #: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372
msgid "GPU time" msgid "GPU time"
msgstr "Temps GPU" msgstr "Temps GPU"
#: client/scenes/lobby_gui.cpp:1170 #: client/scenes/lobby_gui.cpp:1214
msgid "GPU time [ms]" msgid "GPU time [ms]"
msgstr "Temps GPU [ms]" msgstr "Temps GPU [ms]"
#: client/scenes/lobby_gui.cpp:1234 #: client/scenes/lobby_gui.cpp:1278
msgid "Enable the microphone?" msgid "Enable the microphone?"
msgstr "Activer le micro ?" msgstr "Activer le micro ?"
#: client/scenes/lobby_gui.cpp:1239 #: client/scenes/lobby_gui.cpp:1283
msgid "Enable eye tracking?" msgid "Enable eye tracking?"
msgstr "Activer le suivi des yeux ?" msgstr "Activer le suivi des yeux ?"
#: client/scenes/lobby_gui.cpp:1244 #: client/scenes/lobby_gui.cpp:1288
msgid "Enable face tracking?" msgid "Enable face tracking?"
msgstr "Activer le suivi du visage ?" msgstr "Activer le suivi du visage ?"
#: client/scenes/lobby_gui.cpp:1249 #: client/scenes/lobby_gui.cpp:1293
msgid "Enable body tracking?" msgid "Enable body tracking?"
msgstr "Activer le suivi du corps ?" msgstr "Activer le suivi du corps ?"
#: client/scenes/lobby_gui.cpp:1257 #: client/scenes/lobby_gui.cpp:1301
msgid "Welcome to WiVRn" msgid "Welcome to WiVRn"
msgstr "Bienvenue sur WiVRn" msgstr "Bienvenue sur WiVRn"
#: client/scenes/lobby_gui.cpp:1285 #: client/scenes/lobby_gui.cpp:1329
msgid "Yes" msgid "Yes"
msgstr "Oui" msgstr "Oui"
#: client/scenes/lobby_gui.cpp:1292 #: client/scenes/lobby_gui.cpp:1336
msgid "No" msgid "No"
msgstr "Non" msgstr "Non"
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957 #: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001
msgid "Licenses" msgid "Licenses"
msgstr "Licences" msgstr "Licences"
#: client/scenes/lobby_gui.cpp:1587 #: client/scenes/lobby_gui.cpp:1631
msgid "Microphone is enabled" msgid "Microphone is enabled"
msgstr "Le micro est activé" msgstr "Le micro est activé"
#: client/scenes/lobby_gui.cpp:1588 #: client/scenes/lobby_gui.cpp:1632
msgid "Microphone is disabled" msgid "Microphone is disabled"
msgstr "Le micro est désactivé" msgstr "Le micro est désactivé"
#: client/scenes/lobby_gui.cpp:1597 #: client/scenes/lobby_gui.cpp:1641
msgid "Hand tracking is enabled" msgid "Hand tracking is enabled"
msgstr "Le suivi des mains est activé" msgstr "Le suivi des mains est activé"
#: client/scenes/lobby_gui.cpp:1598 #: client/scenes/lobby_gui.cpp:1642
msgid "Hand tracking is disabled" msgid "Hand tracking is disabled"
msgstr "Le suivi des mains est désactivé" msgstr "Le suivi des mains est désactivé"
#: client/scenes/lobby_gui.cpp:1607 #: client/scenes/lobby_gui.cpp:1651
msgid "Eye tracking is enabled" msgid "Eye tracking is enabled"
msgstr "Le suivi des yeux est activé" msgstr "Le suivi des yeux est activé"
#: client/scenes/lobby_gui.cpp:1608 #: client/scenes/lobby_gui.cpp:1652
msgid "Eye tracking is disabled" msgid "Eye tracking is disabled"
msgstr "Le suivi des yeux est désactivé" msgstr "Le suivi des yeux est désactivé"
#: client/scenes/lobby_gui.cpp:1618 #: client/scenes/lobby_gui.cpp:1662
msgid "Face tracking is enabled" msgid "Face tracking is enabled"
msgstr "Le suivi du visage est activé" msgstr "Le suivi du visage est activé"
#: client/scenes/lobby_gui.cpp:1619 #: client/scenes/lobby_gui.cpp:1663
msgid "Face tracking is disabled" msgid "Face tracking is disabled"
msgstr "Le suivi du visage est désactivé" msgstr "Le suivi du visage est désactivé"
#: client/scenes/lobby_gui.cpp:1633 #: client/scenes/lobby_gui.cpp:1677
msgid "Body tracking is enabled" msgid "Body tracking is enabled"
msgstr "Le suivi du corps est activé" msgstr "Le suivi du corps est activé"
#: client/scenes/lobby_gui.cpp:1634 #: client/scenes/lobby_gui.cpp:1678
msgid "Body tracking is disabled" msgid "Body tracking is disabled"
msgstr "Le suivi du corps est désactivé" msgstr "Le suivi du corps est désactivé"
#: client/scenes/lobby_gui.cpp:1650 #: client/scenes/lobby_gui.cpp:1694
msgid "Add server" msgid "Add server"
msgstr "Ajouter un serveur" msgstr "Ajouter un serveur"
#: client/scenes/lobby_gui.cpp:1936 #: client/scenes/lobby_gui.cpp:1980
msgid "Server list" msgid "Server list"
msgstr "Serveurs" msgstr "Serveurs"
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996 #: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007
msgid "Settings" msgid "Settings"
msgstr "Paramètres" msgstr "Paramètres"
#: client/scenes/lobby_gui.cpp:1942 #: client/scenes/lobby_gui.cpp:1986
msgid "Post-processing" msgid "Post-processing"
msgstr "Post-traitement" msgstr "Post-traitement"
#: client/scenes/lobby_gui.cpp:1945 #: client/scenes/lobby_gui.cpp:1989
msgid "Customize" msgid "Customize"
msgstr "Personnaliser" msgstr "Personnaliser"
#: client/scenes/lobby_gui.cpp:1949 #: client/scenes/lobby_gui.cpp:1993
msgid "Debug" msgid "Debug"
msgstr "Debug" msgstr "Debug"
#: client/scenes/lobby_gui.cpp:1954 #: client/scenes/lobby_gui.cpp:1998
msgid "About" msgid "About"
msgstr "À propos" msgstr "À propos"
#: client/scenes/lobby_gui.cpp:1960 #: client/scenes/lobby_gui.cpp:2004
msgid "Exit" msgid "Exit"
msgstr "Quitter" msgstr "Quitter"
#: client/scenes/lobby_gui.cpp:1977 #: client/scenes/lobby_gui.cpp:2021
msgid "" msgid ""
"Press the grip button or put your palm up\n" "Press the grip button or put your palm up\n"
"to move the main window" "to move the main window"
@@ -555,7 +565,7 @@ msgstr ""
"Serrez la gâchette latérale ou pointez la paume\n" "Serrez la gâchette latérale ou pointez la paume\n"
"vers le haut pour bouger la fenêtre principale" "vers le haut pour bouger la fenêtre principale"
#: client/scenes/lobby_gui.cpp:1979 #: client/scenes/lobby_gui.cpp:2023
msgid "Press the grip button to move the main window" msgid "Press the grip button to move the main window"
msgstr "Serrez la gâchette latérale pour bouger la fenêtre principale" msgstr "Serrez la gâchette latérale pour bouger la fenêtre principale"
@@ -634,56 +644,56 @@ msgstr "Télécharger plus d'environnements"
msgid "Open local glTF model" msgid "Open local glTF model"
msgstr "Ouvrir un modèle glTF local" msgstr "Ouvrir un modèle glTF local"
#: client/scenes/stream_gui.cpp:174 #: client/scenes/stream_gui.cpp:175
msgid "Defoveate" msgid "Defoveate"
msgstr "Défovéation" msgstr "Défovéation"
#: client/scenes/stream_gui.cpp:176 #: client/scenes/stream_gui.cpp:177
msgid "Network" msgid "Network"
msgstr "Réseau" msgstr "Réseau"
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371 #: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
msgid "Download" msgid "Download"
msgstr "Téléchargement" msgstr "Téléchargement"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372 #: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
msgid "Upload" msgid "Upload"
msgstr "Téléversement" msgstr "Téléversement"
#: client/scenes/stream_gui.cpp:246 #: client/scenes/stream_gui.cpp:247
#, c++-format #, c++-format
msgid "Decoder {}" msgid "Decoder {}"
msgstr "Décodeur {}" msgstr "Décodeur {}"
#: client/scenes/stream_gui.cpp:258 #: client/scenes/stream_gui.cpp:259
msgid "Timings [ms]" msgid "Timings [ms]"
msgstr "Durées [ms]" msgstr "Durées [ms]"
#: client/scenes/stream_gui.cpp:318 #: client/scenes/stream_gui.cpp:319
msgid "Encode" msgid "Encode"
msgstr "Encodage" msgstr "Encodage"
#: client/scenes/stream_gui.cpp:319 #: client/scenes/stream_gui.cpp:320
msgid "Send" msgid "Send"
msgstr "Envoi" msgstr "Envoi"
#: client/scenes/stream_gui.cpp:320 #: client/scenes/stream_gui.cpp:321
msgid "Receive" msgid "Receive"
msgstr "Réception" msgstr "Réception"
#: client/scenes/stream_gui.cpp:321 #: client/scenes/stream_gui.cpp:322
msgid "Decode" msgid "Decode"
msgstr "Décodage" msgstr "Décodage"
#: client/scenes/stream_gui.cpp:322 #: client/scenes/stream_gui.cpp:323
msgid "Blitted" msgid "Blitted"
msgstr "Copie" msgstr "Copie"
#: client/scenes/stream_gui.cpp:323 #: client/scenes/stream_gui.cpp:324
msgid "Displayed" msgid "Displayed"
msgstr "Affichage" msgstr "Affichage"
#: client/scenes/stream_gui.cpp:324 #: client/scenes/stream_gui.cpp:325
msgid "Predicted" msgid "Predicted"
msgstr "Prédiction" msgstr "Prédiction"
@@ -692,102 +702,102 @@ msgstr "Prédiction"
msgid "Estimated motion to photons latency: {}ms" msgid "Estimated motion to photons latency: {}ms"
msgstr "Latence mouvement à photons estimée : {} ms" msgstr "Latence mouvement à photons estimée : {} ms"
#: client/scenes/stream_gui.cpp:351 #: client/scenes/stream_gui.cpp:349
msgid "Press the grip button to move the window" msgid "Press the grip button to move the window"
msgstr "Serrez la gâchette latérale pour bouger la fenêtre" msgstr "Serrez la gâchette latérale pour bouger la fenêtre"
#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:924 #: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738
msgid "Press both thumbsticks to display the WiVRn window" msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Appuyez sur les deux sticks pour afficher la fenêtre de WiVRn" msgstr "Appuyez sur les deux sticks pour afficher la fenêtre de WiVRn"
#: client/scenes/stream_gui.cpp:375 #: client/scenes/stream_gui.cpp:373
msgid "Motion to photon latency" msgid "Motion to photon latency"
msgstr "Latence mouvements à photons" msgstr "Latence mouvements à photons"
#: client/scenes/stream_gui.cpp:464 #: client/scenes/stream_gui.cpp:458
msgid "Bitrate:" msgid "Bitrate:"
msgstr "Débit :" msgstr "Débit :"
#: client/scenes/stream_gui.cpp:474 #: client/scenes/stream_gui.cpp:468
msgid "Click to adjust bitrate" msgid "Click to adjust bitrate"
msgstr "Cliquez pour modifier le débit" msgstr "Cliquez pour modifier le débit"
#: client/scenes/stream_gui.cpp:537 #: client/scenes/stream_gui.cpp:532
msgid "Foveation center override" msgid "Foveation center override"
msgstr "Zone de fovéation manuelle" msgstr "Zone de fovéation manuelle"
#: client/scenes/stream_gui.cpp:540 #: client/scenes/stream_gui.cpp:535
msgid "Enable" msgid "Enable"
msgstr "Activer" msgstr "Activer"
#: client/scenes/stream_gui.cpp:548 client/scenes/stream_gui.cpp:620 #: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614
#, c++-format #, c++-format
msgid "Height {:.1f} deg" msgid "Height {:.1f} deg"
msgstr "Hauteur : {:.1f} deg" msgstr "Hauteur : {:.1f} deg"
#: client/scenes/stream_gui.cpp:549 client/scenes/stream_gui.cpp:621 #: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615
#, c++-format #, c++-format
msgid "Distance {:.2f} m" msgid "Distance {:.2f} m"
msgstr "Distance {:.2f} m" msgstr "Distance {:.2f} m"
#: client/scenes/stream_gui.cpp:550 #: client/scenes/stream_gui.cpp:545
msgid "Default" msgid "Default"
msgstr "Réinitialiser" msgstr "Réinitialiser"
#: client/scenes/stream_gui.cpp:561 #: client/scenes/stream_gui.cpp:556
msgid "Change" msgid "Change"
msgstr "Ajuster" msgstr "Ajuster"
#: client/scenes/stream_gui.cpp:594 #: client/scenes/stream_gui.cpp:588
msgid "Use the right thumbstick to adjust the bitrate" msgid "Use the right thumbstick to adjust the bitrate"
msgstr "Utilisez le stick droit pour modifier le débit" msgstr "Utilisez le stick droit pour modifier le débit"
#: client/scenes/stream_gui.cpp:595 #: client/scenes/stream_gui.cpp:589
msgid "Press A to go back" msgid "Press A to go back"
msgstr "Appuyez sur A pour revenir" msgstr "Appuyez sur A pour revenir"
#: client/scenes/stream_gui.cpp:596 #: client/scenes/stream_gui.cpp:590
#, c++-format #, c++-format
msgid "Bitrate: {}Mbit/s" msgid "Bitrate: {}Mbit/s"
msgstr "Débit : {} MBit/s" msgstr "Débit : {} MBit/s"
#: client/scenes/stream_gui.cpp:618 #: client/scenes/stream_gui.cpp:612
msgid "Use the thumbsticks to move the foveation center" msgid "Use the thumbsticks to move the foveation center"
msgstr "Utiliser le stick pour bouger le centre de fovéation" msgstr "Utiliser le stick pour bouger le centre de fovéation"
#: client/scenes/stream_gui.cpp:619 #: client/scenes/stream_gui.cpp:613
msgid "Press A to save or B to cancel" msgid "Press A to save or B to cancel"
msgstr "A pour sauvegarder, B pour annuler" msgstr "A pour sauvegarder, B pour annuler"
#: client/scenes/stream_gui.cpp:677 #: client/scenes/stream_gui.cpp:671
msgid "Running XR applications:" msgid "Running XR applications:"
msgstr "Applications XR lancées :" msgstr "Applications XR lancées :"
#: client/scenes/stream_gui.cpp:694 #: client/scenes/stream_gui.cpp:688
msgid "Overlays" msgid "Overlays"
msgstr "Surcouches" msgstr "Surcouches"
#: client/scenes/stream_gui.cpp:733 #: client/scenes/stream_gui.cpp:727
msgid "Request to quit, may be ignored by the application" msgid "Request to quit, may be ignored by the application"
msgstr "Demande de quitter, peut être ignoré par l'application" msgstr "Demande de quitter, peut être ignoré par l'application"
#: client/scenes/stream_gui.cpp:983 #: client/scenes/stream_gui.cpp:993
msgid "Applications" msgid "Applications"
msgstr "Applications" msgstr "Applications"
#: client/scenes/stream_gui.cpp:986 #: client/scenes/stream_gui.cpp:996
msgid "Start" msgid "Start"
msgstr "Démarrer" msgstr "Démarrer"
#: client/scenes/stream_gui.cpp:999 #: client/scenes/stream_gui.cpp:1010
msgid "Stats" msgid "Stats"
msgstr "Statistiques" msgstr "Statistiques"
#: client/scenes/stream_gui.cpp:1005 #: client/scenes/stream_gui.cpp:1016
msgid "Statistics overlay" msgid "Statistics overlay"
msgstr "Statistiques seules" msgstr "Statistiques seules"
#: client/scenes/stream_gui.cpp:1008 #: client/scenes/stream_gui.cpp:1019
msgid "Compact view" msgid "Compact view"
msgstr "Vue compacte" msgstr "Vue compacte"
+155 -145
View File
@@ -1,12 +1,12 @@
# #
# Albano Battistella <albanobattistella@gmail.com>, 2025. # Albano Battistella <albanobattistella@gmail.com>, 2025-2026.
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: WiVRn 0.15\n" "Project-Id-Version: WiVRn 0.15\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-12-29 15:36+0100\n" "POT-Creation-Date: 2026-02-27 16:09+0100\n"
"PO-Revision-Date: 2025-12-29 15:38+0100\n" "PO-Revision-Date: 2026-02-27 16:11+0100\n"
"Last-Translator: Albano Battistella <albanobattistella@gmail.com>\n" "Last-Translator: Albano Battistella <albanobattistella@gmail.com>\n"
"Language-Team: Italian <>\n" "Language-Team: Italian <>\n"
"Language: Italian\n" "Language: Italian\n"
@@ -19,26 +19,26 @@ msgstr ""
msgid "No supported swapchain format" msgid "No supported swapchain format"
msgstr "Nessun formato swapchain supportato" msgstr "Nessun formato swapchain supportato"
#: client/scenes/app_launcher.cpp:128 #: client/scenes/app_launcher.cpp:127
msgid "Connected to WiVRn server" msgid "Connected to WiVRn server"
msgstr "Connesso al server WiVRn" msgstr "Connesso al server WiVRn"
#: client/scenes/app_launcher.cpp:130 #: client/scenes/app_launcher.cpp:129
#, c++-format #, c++-format
msgid "Connected to {}" msgid "Connected to {}"
msgstr "Connesso a {}" msgstr "Connesso a {}"
#: client/scenes/app_launcher.cpp:136 #: client/scenes/app_launcher.cpp:135
msgid "Start an application on the server to start streaming." msgid "Start an application on the server to start streaming."
msgstr "Avvia un applicazione sul server per incominciare a trasmettere." msgstr "Avvia un applicazione sul server per incominciare a trasmettere."
#: client/scenes/app_launcher.cpp:146 #: client/scenes/app_launcher.cpp:145
msgid "Start an application on your computer or select one to start streaming." msgid "Start an application on your computer or select one to start streaming."
msgstr "" msgstr ""
"Avvia un applicazione sul computer o scegli dalla lista per incominciare a " "Avvia un applicazione sul computer o scegli dalla lista per incominciare a "
"trasmettere." "trasmettere."
#: client/scenes/app_launcher.cpp:148 #: client/scenes/app_launcher.cpp:147
#, c++-format #, c++-format
msgid "Start an application on {} or select one to start streaming." msgid "Start an application on {} or select one to start streaming."
msgstr "" msgstr ""
@@ -68,11 +68,11 @@ msgstr "Impossibile connettersi a {} ({}): {}"
msgid "Waiting for connection" msgid "Waiting for connection"
msgstr "In attesa di connessione" msgstr "In attesa di connessione"
#: client/scenes/lobby.cpp:1319 #: client/scenes/lobby.cpp:1316
msgid "Passthrough" msgid "Passthrough"
msgstr "Vista reale" msgstr "Vista reale"
#: client/scenes/lobby.cpp:1331 #: client/scenes/lobby.cpp:1328
msgid "Default environment" msgid "Default environment"
msgstr "Ambiente di default" msgstr "Ambiente di default"
@@ -91,14 +91,15 @@ msgctxt "openxr_post_processing"
msgid "Disabled" msgid "Disabled"
msgstr "Disattivato" msgstr "Disattivato"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258 #: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254
#: client/scenes/stream_gui.cpp:1015 #: client/scenes/stream_gui.cpp:1026
msgid "Disconnect" msgid "Disconnect"
msgstr "Sconnetti" msgstr "Sconnetti"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753 #: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264
#: client/scenes/lobby_gui_customize.cpp:753
#: client/scenes/lobby_gui_customize.cpp:844 #: client/scenes/lobby_gui_customize.cpp:844
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011 #: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022
msgid "Close" msgid "Close"
msgstr "Chiudi" msgstr "Chiudi"
@@ -119,32 +120,41 @@ msgstr "PIN"
msgid "Input the PIN displayed on the dashboard" msgid "Input the PIN displayed on the dashboard"
msgstr "Digitare il PIN visibile sul server" msgstr "Digitare il PIN visibile sul server"
#: client/scenes/lobby_gui.cpp:282
msgid "Disconnected"
msgstr "Connessione chiusa"
#: client/scenes/lobby_gui.cpp:284 #: client/scenes/lobby_gui.cpp:284
#, c++-format
msgid "Disconnected from {}"
msgstr "Connessione con {} chiusa"
#: client/scenes/lobby_gui.cpp:316
msgid "Name" msgid "Name"
msgstr "Nome" msgstr "Nome"
#: client/scenes/lobby_gui.cpp:295 #: client/scenes/lobby_gui.cpp:327
msgid "Address" msgid "Address"
msgstr "Indirizzo" msgstr "Indirizzo"
#: client/scenes/lobby_gui.cpp:304 #: client/scenes/lobby_gui.cpp:336
msgid "Port" msgid "Port"
msgstr "Porta" msgstr "Porta"
#: client/scenes/lobby_gui.cpp:312 #: client/scenes/lobby_gui.cpp:344
msgid "TCP only" msgid "TCP only"
msgstr "Solo TCP" msgstr "Solo TCP"
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655 #: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:968 #: client/scenes/stream_gui.cpp:978
msgid "Cancel" msgid "Cancel"
msgstr "Annulla" msgstr "Annulla"
#: client/scenes/lobby_gui.cpp:333 #: client/scenes/lobby_gui.cpp:365
msgid "Save" msgid "Save"
msgstr "Salva" msgstr "Salva"
#: client/scenes/lobby_gui.cpp:386 #: client/scenes/lobby_gui.cpp:418
msgid "" msgid ""
"Start a WiVRn server on your\n" "Start a WiVRn server on your\n"
"local network" "local network"
@@ -152,46 +162,46 @@ msgstr ""
"Avvia un server WiVRn sulla\n" "Avvia un server WiVRn sulla\n"
"rete locale" "rete locale"
#: client/scenes/lobby_gui.cpp:418 #: client/scenes/lobby_gui.cpp:450
msgid "Autoconnect" msgid "Autoconnect"
msgstr "Connessione automatica" msgstr "Connessione automatica"
#: client/scenes/lobby_gui.cpp:444 #: client/scenes/lobby_gui.cpp:476
msgid "Connect" msgid "Connect"
msgstr "Connetti" msgstr "Connetti"
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186 #: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186
msgid "Incompatible server version" msgid "Incompatible server version"
msgstr "Versione del server incompatibile" msgstr "Versione del server incompatibile"
#: client/scenes/lobby_gui.cpp:456 #: client/scenes/lobby_gui.cpp:488
msgid "Server not available" msgid "Server not available"
msgstr "Server non disponibile" msgstr "Server non disponibile"
#: client/scenes/lobby_gui.cpp:538 #: client/scenes/lobby_gui.cpp:581
msgctxt "language selection, replace with the name of the language" msgctxt "language selection, replace with the name of the language"
msgid "English" msgid "English"
msgstr "Italiano" msgstr "Italiano"
#: client/scenes/lobby_gui.cpp:552 #: client/scenes/lobby_gui.cpp:595
msgid "Language" msgid "Language"
msgstr "Lingua" msgstr "Lingua"
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554 #: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597
msgid "System language" msgid "System language"
msgstr "Lingua del sistema" msgstr "Lingua del sistema"
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417 #: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412
msgid "Refresh rate" msgid "Refresh rate"
msgstr "Frequenza di aggiornamento" msgstr "Frequenza di aggiornamento"
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582 #: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419 #: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414
msgctxt "automatic refresh rate" msgctxt "automatic refresh rate"
msgid "Automatic" msgid "Automatic"
msgstr "Automatica" msgstr "Automatica"
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427 #: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421
msgid "" msgid ""
"Select refresh rate based on measured application performance.\n" "Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens." "May cause flicker when a change happens."
@@ -200,39 +210,39 @@ msgstr ""
"misurate dell'applicazione.\n" "misurate dell'applicazione.\n"
"Può causare un flash quando avviene il cambiamento." "Può causare un flash quando avviene il cambiamento."
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445 #: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439
msgid "Minimum refresh rate" msgid "Minimum refresh rate"
msgstr "Frequenza minima" msgstr "Frequenza minima"
#: client/scenes/lobby_gui.cpp:632 #: client/scenes/lobby_gui.cpp:675
msgid "Foveation level" msgid "Foveation level"
msgstr "Intensità di foveazione" msgstr "Intensità di foveazione"
#: client/scenes/lobby_gui.cpp:655 #: client/scenes/lobby_gui.cpp:698
msgid "Render resolution" msgid "Render resolution"
msgstr "Risoluzione del gioco" msgstr "Risoluzione del gioco"
#: client/scenes/lobby_gui.cpp:659 #: client/scenes/lobby_gui.cpp:702
#, c-format, c++-format #, c-format, c++-format
msgid "{}%% - {}x{} per eye" msgid "{}%% - {}x{} per eye"
msgstr "{}%% - {}x{} per occhio" msgstr "{}%% - {}x{} per occhio"
#: client/scenes/lobby_gui.cpp:670 #: client/scenes/lobby_gui.cpp:713
#, c++-format #, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset" msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "" msgstr ""
"Le risoluzioni superiori a {}x{} potrebbero non essere supportate dal visore" "Le risoluzioni superiori a {}x{} potrebbero non essere supportate dal visore"
#: client/scenes/lobby_gui.cpp:680 #: client/scenes/lobby_gui.cpp:723
msgid "Foveated encoding" msgid "Foveated encoding"
msgstr "Foveazione della codifica" msgstr "Foveazione della codifica"
#: client/scenes/lobby_gui.cpp:684 #: client/scenes/lobby_gui.cpp:727
#, c-format, c++-format #, c-format, c++-format
msgid "{}%%" msgid "{}%%"
msgstr "{}%%" msgstr "{}%%"
#: client/scenes/lobby_gui.cpp:697 #: client/scenes/lobby_gui.cpp:740
msgid "" msgid ""
"Higher values focus image quality where you look at,\n" "Higher values focus image quality where you look at,\n"
"improving latency, power efficiency and quality." "improving latency, power efficiency and quality."
@@ -240,7 +250,7 @@ msgstr ""
"Valori alti concentrano la qualità dove si guarda,\n" "Valori alti concentrano la qualità dove si guarda,\n"
"migliorando la latenza, efficienza energetica e qualità" "migliorando la latenza, efficienza energetica e qualità"
#: client/scenes/lobby_gui.cpp:700 #: client/scenes/lobby_gui.cpp:743
msgid "" msgid ""
"Higher values focus image quality at the center,\n" "Higher values focus image quality at the center,\n"
"improving latency, power efficiency and quality." "improving latency, power efficiency and quality."
@@ -248,88 +258,88 @@ msgstr ""
"Valori alti concentrano la qualità al centro dell'immagine,\n" "Valori alti concentrano la qualità al centro dell'immagine,\n"
"migliorando la latenza, efficienza energetica e qualità" "migliorando la latenza, efficienza energetica e qualità"
#: client/scenes/lobby_gui.cpp:709 #: client/scenes/lobby_gui.cpp:752
msgctxt "Codec" msgctxt "Codec"
msgid "Automatic" msgid "Automatic"
msgstr "Automatico" msgstr "Automatico"
#: client/scenes/lobby_gui.cpp:713 #: client/scenes/lobby_gui.cpp:756
msgctxt "Codec" msgctxt "Codec"
msgid "H.264" msgid "H.264"
msgstr "H.264" msgstr "H.264"
#: client/scenes/lobby_gui.cpp:715 #: client/scenes/lobby_gui.cpp:758
msgctxt "Codec" msgctxt "Codec"
msgid "H.265" msgid "H.265"
msgstr "H.265" msgstr "H.265"
#: client/scenes/lobby_gui.cpp:717 #: client/scenes/lobby_gui.cpp:760
msgctxt "Codec" msgctxt "Codec"
msgid "AV1" msgid "AV1"
msgstr "AV1" msgstr "AV1"
#: client/scenes/lobby_gui.cpp:725 #: client/scenes/lobby_gui.cpp:768
msgid "Codec" msgid "Codec"
msgstr "Codec" msgstr "Codec"
#: client/scenes/lobby_gui.cpp:753 #: client/scenes/lobby_gui.cpp:796
msgid "10-bit" msgid "10-bit"
msgstr "10 bit" msgstr "10 bit"
#: client/scenes/lobby_gui.cpp:768 #: client/scenes/lobby_gui.cpp:812
msgid "Bitrate" msgid "Bitrate"
msgstr "Velocità di trasmissione" msgstr "Velocità di trasmissione"
#: client/scenes/lobby_gui.cpp:772 #: client/scenes/lobby_gui.cpp:816
#, c++-format #, c++-format
msgid "{}Mbit/s" msgid "{}Mbit/s"
msgstr "{}Mbit/s" msgstr "{}Mbit/s"
#: client/scenes/lobby_gui.cpp:783 #: client/scenes/lobby_gui.cpp:827
msgid "High power mode" msgid "High power mode"
msgstr "Modalità alto consumo" msgstr "Modalità alto consumo"
#: client/scenes/lobby_gui.cpp:786 #: client/scenes/lobby_gui.cpp:830
msgid "Increase power usage to allow higher resolution and refresh rate" msgid "Increase power usage to allow higher resolution and refresh rate"
msgstr "" msgstr ""
"Aumenta il consumo di energie per permettere una risoluzione e\n" "Aumenta il consumo di energie per permettere una risoluzione e\n"
"frequenza d'immagine più alta" "frequenza d'immagine più alta"
#: client/scenes/lobby_gui.cpp:792 #: client/scenes/lobby_gui.cpp:836
msgid "Enable microphone" msgid "Enable microphone"
msgstr "Attiva il microfono" msgstr "Attiva il microfono"
#: client/scenes/lobby_gui.cpp:801 #: client/scenes/lobby_gui.cpp:845
msgid "Unprocessed Microphone Audio" msgid "Unprocessed Microphone Audio"
msgstr "Usare dati grezzi del microfono" msgstr "Usare dati grezzi del microfono"
#: client/scenes/lobby_gui.cpp:807 #: client/scenes/lobby_gui.cpp:851
msgid "Force disable audio filters, such as noise cancellation" msgid "Force disable audio filters, such as noise cancellation"
msgstr "Disattiva gli effetti come la cancellazione del rumore" msgstr "Disattiva gli effetti come la cancellazione del rumore"
#: client/scenes/lobby_gui.cpp:814 #: client/scenes/lobby_gui.cpp:858
msgid "Enable hand tracking" msgid "Enable hand tracking"
msgstr "Abilita il tracciamento delle mani" msgstr "Abilita il tracciamento delle mani"
#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831 #: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856 #: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900
#: client/scenes/lobby_gui_customize.cpp:640 #: client/scenes/lobby_gui_customize.cpp:640
msgid "This feature is not supported by your headset" msgid "This feature is not supported by your headset"
msgstr "Questa funzionalità non è supportata dal visore" msgstr "Questa funzionalità non è supportata dal visore"
#: client/scenes/lobby_gui.cpp:825 #: client/scenes/lobby_gui.cpp:869
msgid "Enable eye tracking" msgid "Enable eye tracking"
msgstr "Abilita il tracciamento oculare" msgstr "Abilita il tracciamento oculare"
#: client/scenes/lobby_gui.cpp:836 #: client/scenes/lobby_gui.cpp:880
msgid "Enable face tracking" msgid "Enable face tracking"
msgstr "Abilita il tracciamento facciale" msgstr "Abilita il tracciamento facciale"
#: client/scenes/lobby_gui.cpp:848 #: client/scenes/lobby_gui.cpp:892
msgid "Enable body tracking" msgid "Enable body tracking"
msgstr "Abilita il tracciamento del corpo" msgstr "Abilita il tracciamento del corpo"
#: client/scenes/lobby_gui.cpp:861 #: client/scenes/lobby_gui.cpp:905
msgid "" msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement " "Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n" "tracking settings,\n"
@@ -342,11 +352,11 @@ msgstr ""
"controller e\n" "controller e\n"
"del visore." "del visore."
#: client/scenes/lobby_gui.cpp:871 #: client/scenes/lobby_gui.cpp:915
msgid "Enable lower body tracking" msgid "Enable lower body tracking"
msgstr "Abilita il tracciamento del basso del corpo" msgstr "Abilita il tracciamento del basso del corpo"
#: client/scenes/lobby_gui.cpp:877 #: client/scenes/lobby_gui.cpp:921
msgid "" msgid ""
"Estimate lower body joint positions using Generative Legs\n" "Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement " "Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -357,11 +367,11 @@ msgstr ""
"impostazioni,\n" "impostazioni,\n"
"sezione \"Tracking dei movimenti\"." "sezione \"Tracking dei movimenti\"."
#: client/scenes/lobby_gui.cpp:880 #: client/scenes/lobby_gui.cpp:924
msgid "Enable hip tracking" msgid "Enable hip tracking"
msgstr "Abilitia il tracciamento delle anche" msgstr "Abilitia il tracciamento delle anche"
#: client/scenes/lobby_gui.cpp:886 #: client/scenes/lobby_gui.cpp:930
msgid "" msgid ""
"Only takes affect with lower body tracking enabled\n" "Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking" "May be desired when using another source of hip tracking"
@@ -370,11 +380,11 @@ msgstr ""
"Può essere utile se un altro metodo viene usato per il tracciamento\n" "Può essere utile se un altro metodo viene usato per il tracciamento\n"
"delle anche." "delle anche."
#: client/scenes/lobby_gui.cpp:895 #: client/scenes/lobby_gui.cpp:939
msgid "Enable in-stream window" msgid "Enable in-stream window"
msgstr "Attiva la finestra di WiVRn durante la trasmissione" msgstr "Attiva la finestra di WiVRn durante la trasmissione"
#: client/scenes/lobby_gui.cpp:898 #: client/scenes/lobby_gui.cpp:942
msgid "" msgid ""
"Enables the configuration window to be shown while the game is streaming.\n" "Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks." "If enabled, the window is activated by pressing both thumbsticks."
@@ -382,23 +392,23 @@ msgstr ""
"Abilita la finestra di configurazione quando il gioco viene trasmesso.\n" "Abilita la finestra di configurazione quando il gioco viene trasmesso.\n"
"Se selezionato, la finestra può essere attivata premendo entrambi gli stick." "Se selezionato, la finestra può essere attivata premendo entrambi gli stick."
#: client/scenes/lobby_gui.cpp:902 #: client/scenes/lobby_gui.cpp:946
msgid "Extended configuration values" msgid "Extended configuration values"
msgstr "Valori di configurazione estesi" msgstr "Valori di configurazione estesi"
#: client/scenes/lobby_gui.cpp:905 #: client/scenes/lobby_gui.cpp:949
msgid "Allows unsafe configuration values, use at your own risk." msgid "Allows unsafe configuration values, use at your own risk."
msgstr "Permette di usare limiti più alti, può non funzionare correttamente." msgstr "Permette di usare limiti più alti, può non funzionare correttamente."
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479 #: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473
msgid "OpenXR post-processing" msgid "OpenXR post-processing"
msgstr "Post-trattamento OpenXR" msgstr "Post-trattamento OpenXR"
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483 #: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477
msgid "Supersampling" msgid "Supersampling"
msgstr "Supersamping" msgstr "Supersamping"
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504 #: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498
msgid "" msgid ""
"Reduce flicker for high contrast edges.\n" "Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display" "Useful when the input resolution is high compared to the headset display"
@@ -406,11 +416,11 @@ msgstr ""
"Riduce i lampeggiamenti sui bordi ad alto contrasto.\n" "Riduce i lampeggiamenti sui bordi ad alto contrasto.\n"
"Utile quando la risoluzine d'entrata è alta in confronto a quella del visore" "Utile quando la risoluzine d'entrata è alta in confronto a quella del visore"
#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:509 #: client/scenes/lobby_gui.cpp:992 client/scenes/stream_gui.cpp:503
msgid "Sharpening" msgid "Sharpening"
msgstr "Miglioramento della nitidezza" msgstr "Miglioramento della nitidezza"
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530 #: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524
msgid "" msgid ""
"Improve clarity of high contrast edges and counteract blur.\n" "Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display" "Useful when the input resolution is low compared to the headset display"
@@ -419,129 +429,129 @@ msgstr ""
"Utile quando la risoluzione d'entrate è bassa in contronto a quella del " "Utile quando la risoluzione d'entrate è bassa in contronto a quella del "
"visore" "visore"
#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160 #: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373 #: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371
msgid "CPU time" msgid "CPU time"
msgstr "Tempo CPU" msgstr "Tempo CPU"
#: client/scenes/lobby_gui.cpp:1156 #: client/scenes/lobby_gui.cpp:1200
msgid "CPU time [ms]" msgid "CPU time [ms]"
msgstr "Tempo CPU [ms]" msgstr "Tempo CPU [ms]"
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174 #: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374 #: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372
msgid "GPU time" msgid "GPU time"
msgstr "Tempo GPU" msgstr "Tempo GPU"
#: client/scenes/lobby_gui.cpp:1170 #: client/scenes/lobby_gui.cpp:1214
msgid "GPU time [ms]" msgid "GPU time [ms]"
msgstr "Tempo GPU [ms]" msgstr "Tempo GPU [ms]"
#: client/scenes/lobby_gui.cpp:1234 #: client/scenes/lobby_gui.cpp:1278
msgid "Enable the microphone?" msgid "Enable the microphone?"
msgstr "Attivare il microfono?" msgstr "Attivare il microfono?"
#: client/scenes/lobby_gui.cpp:1239 #: client/scenes/lobby_gui.cpp:1283
msgid "Enable eye tracking?" msgid "Enable eye tracking?"
msgstr "Attivare il tracciamento oculare?" msgstr "Attivare il tracciamento oculare?"
#: client/scenes/lobby_gui.cpp:1244 #: client/scenes/lobby_gui.cpp:1288
msgid "Enable face tracking?" msgid "Enable face tracking?"
msgstr "Attivare il tracciamento facciale?" msgstr "Attivare il tracciamento facciale?"
#: client/scenes/lobby_gui.cpp:1249 #: client/scenes/lobby_gui.cpp:1293
msgid "Enable body tracking?" msgid "Enable body tracking?"
msgstr "Attivare il tracciamento del corpo?" msgstr "Attivare il tracciamento del corpo?"
#: client/scenes/lobby_gui.cpp:1257 #: client/scenes/lobby_gui.cpp:1301
msgid "Welcome to WiVRn" msgid "Welcome to WiVRn"
msgstr "Benvenuto su WiVRn" msgstr "Benvenuto su WiVRn"
#: client/scenes/lobby_gui.cpp:1285 #: client/scenes/lobby_gui.cpp:1329
msgid "Yes" msgid "Yes"
msgstr "Sì" msgstr "Sì"
#: client/scenes/lobby_gui.cpp:1292 #: client/scenes/lobby_gui.cpp:1336
msgid "No" msgid "No"
msgstr "No" msgstr "No"
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957 #: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001
msgid "Licenses" msgid "Licenses"
msgstr "Licenze" msgstr "Licenze"
#: client/scenes/lobby_gui.cpp:1587 #: client/scenes/lobby_gui.cpp:1631
msgid "Microphone is enabled" msgid "Microphone is enabled"
msgstr "Microfono attivo" msgstr "Microfono attivo"
#: client/scenes/lobby_gui.cpp:1588 #: client/scenes/lobby_gui.cpp:1632
msgid "Microphone is disabled" msgid "Microphone is disabled"
msgstr "Microfono disattivato" msgstr "Microfono disattivato"
#: client/scenes/lobby_gui.cpp:1597 #: client/scenes/lobby_gui.cpp:1641
msgid "Hand tracking is enabled" msgid "Hand tracking is enabled"
msgstr "Tracciamento delle mani attivo" msgstr "Tracciamento delle mani attivo"
#: client/scenes/lobby_gui.cpp:1598 #: client/scenes/lobby_gui.cpp:1642
msgid "Hand tracking is disabled" msgid "Hand tracking is disabled"
msgstr "Tracciamento delle mani disattivato" msgstr "Tracciamento delle mani disattivato"
#: client/scenes/lobby_gui.cpp:1607 #: client/scenes/lobby_gui.cpp:1651
msgid "Eye tracking is enabled" msgid "Eye tracking is enabled"
msgstr "Tracciamento oculare attivo" msgstr "Tracciamento oculare attivo"
#: client/scenes/lobby_gui.cpp:1608 #: client/scenes/lobby_gui.cpp:1652
msgid "Eye tracking is disabled" msgid "Eye tracking is disabled"
msgstr "Tracciamento oculare disattivato" msgstr "Tracciamento oculare disattivato"
#: client/scenes/lobby_gui.cpp:1618 #: client/scenes/lobby_gui.cpp:1662
msgid "Face tracking is enabled" msgid "Face tracking is enabled"
msgstr "Tracciamento facciale attivato" msgstr "Tracciamento facciale attivato"
#: client/scenes/lobby_gui.cpp:1619 #: client/scenes/lobby_gui.cpp:1663
msgid "Face tracking is disabled" msgid "Face tracking is disabled"
msgstr "Tracciamento facciale disattivato" msgstr "Tracciamento facciale disattivato"
#: client/scenes/lobby_gui.cpp:1633 #: client/scenes/lobby_gui.cpp:1677
msgid "Body tracking is enabled" msgid "Body tracking is enabled"
msgstr "Tracciamento del corpo attivato" msgstr "Tracciamento del corpo attivato"
#: client/scenes/lobby_gui.cpp:1634 #: client/scenes/lobby_gui.cpp:1678
msgid "Body tracking is disabled" msgid "Body tracking is disabled"
msgstr "Tracciamento del corpo disattivato" msgstr "Tracciamento del corpo disattivato"
#: client/scenes/lobby_gui.cpp:1650 #: client/scenes/lobby_gui.cpp:1694
msgid "Add server" msgid "Add server"
msgstr "Aggiungi server" msgstr "Aggiungi server"
#: client/scenes/lobby_gui.cpp:1936 #: client/scenes/lobby_gui.cpp:1980
msgid "Server list" msgid "Server list"
msgstr "Elenco dei server" msgstr "Elenco dei server"
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996 #: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007
msgid "Settings" msgid "Settings"
msgstr "Impostazioni" msgstr "Impostazioni"
#: client/scenes/lobby_gui.cpp:1942 #: client/scenes/lobby_gui.cpp:1986
msgid "Post-processing" msgid "Post-processing"
msgstr "Post-trattamento" msgstr "Post-trattamento"
#: client/scenes/lobby_gui.cpp:1945 #: client/scenes/lobby_gui.cpp:1989
msgid "Customize" msgid "Customize"
msgstr "Personalizzazione" msgstr "Personalizzazione"
#: client/scenes/lobby_gui.cpp:1949 #: client/scenes/lobby_gui.cpp:1993
msgid "Debug" msgid "Debug"
msgstr "Debug" msgstr "Debug"
#: client/scenes/lobby_gui.cpp:1954 #: client/scenes/lobby_gui.cpp:1998
msgid "About" msgid "About"
msgstr "Informazioni" msgstr "Informazioni"
#: client/scenes/lobby_gui.cpp:1960 #: client/scenes/lobby_gui.cpp:2004
msgid "Exit" msgid "Exit"
msgstr "Esci" msgstr "Esci"
#: client/scenes/lobby_gui.cpp:1977 #: client/scenes/lobby_gui.cpp:2021
msgid "" msgid ""
"Press the grip button or put your palm up\n" "Press the grip button or put your palm up\n"
"to move the main window" "to move the main window"
@@ -549,7 +559,7 @@ msgstr ""
"Premi il pulsante laterale o punta il palmo della\n" "Premi il pulsante laterale o punta il palmo della\n"
"mano verso l'alto per spostare la finestra principale" "mano verso l'alto per spostare la finestra principale"
#: client/scenes/lobby_gui.cpp:1979 #: client/scenes/lobby_gui.cpp:2023
msgid "Press the grip button to move the main window" msgid "Press the grip button to move the main window"
msgstr "Premi il pulsante laterale per spostare la finestra principale" msgstr "Premi il pulsante laterale per spostare la finestra principale"
@@ -628,56 +638,56 @@ msgstr "Scaricare più ambienti"
msgid "Open local glTF model" msgid "Open local glTF model"
msgstr "Aprire un modello glTF" msgstr "Aprire un modello glTF"
#: client/scenes/stream_gui.cpp:174 #: client/scenes/stream_gui.cpp:175
msgid "Defoveate" msgid "Defoveate"
msgstr "Defoveazione" msgstr "Defoveazione"
#: client/scenes/stream_gui.cpp:176 #: client/scenes/stream_gui.cpp:177
msgid "Network" msgid "Network"
msgstr "Rete" msgstr "Rete"
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371 #: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
msgid "Download" msgid "Download"
msgstr "Download" msgstr "Download"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372 #: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
msgid "Upload" msgid "Upload"
msgstr "Upload" msgstr "Upload"
#: client/scenes/stream_gui.cpp:246 #: client/scenes/stream_gui.cpp:247
#, c++-format #, c++-format
msgid "Decoder {}" msgid "Decoder {}"
msgstr "Decoder {}" msgstr "Decoder {}"
#: client/scenes/stream_gui.cpp:258 #: client/scenes/stream_gui.cpp:259
msgid "Timings [ms]" msgid "Timings [ms]"
msgstr "Durata [ms]" msgstr "Durata [ms]"
#: client/scenes/stream_gui.cpp:318 #: client/scenes/stream_gui.cpp:319
msgid "Encode" msgid "Encode"
msgstr "Compressione" msgstr "Compressione"
#: client/scenes/stream_gui.cpp:319 #: client/scenes/stream_gui.cpp:320
msgid "Send" msgid "Send"
msgstr "Invio" msgstr "Invio"
#: client/scenes/stream_gui.cpp:320 #: client/scenes/stream_gui.cpp:321
msgid "Receive" msgid "Receive"
msgstr "Ricezione" msgstr "Ricezione"
#: client/scenes/stream_gui.cpp:321 #: client/scenes/stream_gui.cpp:322
msgid "Decode" msgid "Decode"
msgstr "Decodifica" msgstr "Decodifica"
#: client/scenes/stream_gui.cpp:322 #: client/scenes/stream_gui.cpp:323
msgid "Blitted" msgid "Blitted"
msgstr "Copiato" msgstr "Copiato"
#: client/scenes/stream_gui.cpp:323 #: client/scenes/stream_gui.cpp:324
msgid "Displayed" msgid "Displayed"
msgstr "Visualizzato" msgstr "Visualizzato"
#: client/scenes/stream_gui.cpp:324 #: client/scenes/stream_gui.cpp:325
msgid "Predicted" msgid "Predicted"
msgstr "Previsto" msgstr "Previsto"
@@ -686,102 +696,102 @@ msgstr "Previsto"
msgid "Estimated motion to photons latency: {}ms" msgid "Estimated motion to photons latency: {}ms"
msgstr "Latenza stimata da movimento a fotoni: {}ms" msgstr "Latenza stimata da movimento a fotoni: {}ms"
#: client/scenes/stream_gui.cpp:351 #: client/scenes/stream_gui.cpp:349
msgid "Press the grip button to move the window" msgid "Press the grip button to move the window"
msgstr "Premi il pulsante laterale per spostare la finestra" msgstr "Premi il pulsante laterale per spostare la finestra"
#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:924 #: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738
msgid "Press both thumbsticks to display the WiVRn window" msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Premi entrabli gli stick per mostrare la finestra di WiVRn" msgstr "Premi entrabli gli stick per mostrare la finestra di WiVRn"
#: client/scenes/stream_gui.cpp:375 #: client/scenes/stream_gui.cpp:373
msgid "Motion to photon latency" msgid "Motion to photon latency"
msgstr "Latenza da movimento a fotoni" msgstr "Latenza da movimento a fotoni"
#: client/scenes/stream_gui.cpp:464 #: client/scenes/stream_gui.cpp:458
msgid "Bitrate:" msgid "Bitrate:"
msgstr "Velocità di trasmissione" msgstr "Velocità di trasmissione"
#: client/scenes/stream_gui.cpp:474 #: client/scenes/stream_gui.cpp:468
msgid "Click to adjust bitrate" msgid "Click to adjust bitrate"
msgstr "Clicca per cambiare la velocità di trasmissione" msgstr "Clicca per cambiare la velocità di trasmissione"
#: client/scenes/stream_gui.cpp:537 #: client/scenes/stream_gui.cpp:532
msgid "Foveation center override" msgid "Foveation center override"
msgstr "Centro di foveazione manuale" msgstr "Centro di foveazione manuale"
#: client/scenes/stream_gui.cpp:540 #: client/scenes/stream_gui.cpp:535
msgid "Enable" msgid "Enable"
msgstr "Attiva" msgstr "Attiva"
#: client/scenes/stream_gui.cpp:548 client/scenes/stream_gui.cpp:620 #: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614
#, c++-format #, c++-format
msgid "Height {:.1f} deg" msgid "Height {:.1f} deg"
msgstr "Altezza {:.1f} deg" msgstr "Altezza {:.1f} deg"
#: client/scenes/stream_gui.cpp:549 client/scenes/stream_gui.cpp:621 #: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615
#, c++-format #, c++-format
msgid "Distance {:.2f} m" msgid "Distance {:.2f} m"
msgstr "Distanza {:.2f} m" msgstr "Distanza {:.2f} m"
#: client/scenes/stream_gui.cpp:550 #: client/scenes/stream_gui.cpp:545
msgid "Default" msgid "Default"
msgstr "Reimposta" msgstr "Reimposta"
#: client/scenes/stream_gui.cpp:561 #: client/scenes/stream_gui.cpp:556
msgid "Change" msgid "Change"
msgstr "Cambia" msgstr "Cambia"
#: client/scenes/stream_gui.cpp:594 #: client/scenes/stream_gui.cpp:588
msgid "Use the right thumbstick to adjust the bitrate" msgid "Use the right thumbstick to adjust the bitrate"
msgstr "Usa lo stick destro per cambiare la velocità di trasmissione" msgstr "Usa lo stick destro per cambiare la velocità di trasmissione"
#: client/scenes/stream_gui.cpp:595 #: client/scenes/stream_gui.cpp:589
msgid "Press A to go back" msgid "Press A to go back"
msgstr "Premi A per tornare indietro" msgstr "Premi A per tornare indietro"
#: client/scenes/stream_gui.cpp:596 #: client/scenes/stream_gui.cpp:590
#, c++-format #, c++-format
msgid "Bitrate: {}Mbit/s" msgid "Bitrate: {}Mbit/s"
msgstr "Velocità di trasmissione: {}Mbit/s" msgstr "Velocità di trasmissione: {}Mbit/s"
#: client/scenes/stream_gui.cpp:618 #: client/scenes/stream_gui.cpp:612
msgid "Use the thumbsticks to move the foveation center" msgid "Use the thumbsticks to move the foveation center"
msgstr "Usa gli stick per spostare il centro di foveazione" msgstr "Usa gli stick per spostare il centro di foveazione"
#: client/scenes/stream_gui.cpp:619 #: client/scenes/stream_gui.cpp:613
msgid "Press A to save or B to cancel" msgid "Press A to save or B to cancel"
msgstr "A per salvare, B per annullare" msgstr "A per salvare, B per annullare"
#: client/scenes/stream_gui.cpp:677 #: client/scenes/stream_gui.cpp:671
msgid "Running XR applications:" msgid "Running XR applications:"
msgstr "Applicazioni XR avviate:" msgstr "Applicazioni XR avviate:"
#: client/scenes/stream_gui.cpp:694 #: client/scenes/stream_gui.cpp:688
msgid "Overlays" msgid "Overlays"
msgstr "Overlays" msgstr "Overlays"
#: client/scenes/stream_gui.cpp:733 #: client/scenes/stream_gui.cpp:727
msgid "Request to quit, may be ignored by the application" msgid "Request to quit, may be ignored by the application"
msgstr "Chiede di chiudere, può essere ignorato dall'applicazione" msgstr "Chiede di chiudere, può essere ignorato dall'applicazione"
#: client/scenes/stream_gui.cpp:983 #: client/scenes/stream_gui.cpp:993
msgid "Applications" msgid "Applications"
msgstr "Applicazioni" msgstr "Applicazioni"
#: client/scenes/stream_gui.cpp:986 #: client/scenes/stream_gui.cpp:996
msgid "Start" msgid "Start"
msgstr "Avvio" msgstr "Avvio"
#: client/scenes/stream_gui.cpp:999 #: client/scenes/stream_gui.cpp:1010
msgid "Stats" msgid "Stats"
msgstr "Statistiche" msgstr "Statistiche"
#: client/scenes/stream_gui.cpp:1005 #: client/scenes/stream_gui.cpp:1016
msgid "Statistics overlay" msgid "Statistics overlay"
msgstr "Solo statistiche" msgstr "Solo statistiche"
#: client/scenes/stream_gui.cpp:1008 #: client/scenes/stream_gui.cpp:1019
msgid "Compact view" msgid "Compact view"
msgstr "Modalità compatta" msgstr "Modalità compatta"
+6 -5
View File
@@ -2,7 +2,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: WiVRn-dashboard\n" "Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-02-17 12:42+0900\n" "POT-Creation-Date: 2026-03-03 13:37+0900\n"
"PO-Revision-Date: 2025-04-10 07:14+0900\n" "PO-Revision-Date: 2025-04-10 07:14+0900\n"
"Last-Translator: Mitsuami Megane <hello@mitsua.me>\n" "Last-Translator: Mitsuami Megane <hello@mitsua.me>\n"
"Language-Team: Japanese <>\n" "Language-Team: Japanese <>\n"
@@ -301,7 +301,8 @@ msgstr "詳細情報"
#: dashboard/qml/Main.qml:193 #: dashboard/qml/Main.qml:193
#, kde-format #, kde-format
msgid "Vulkan drivers cannot be found, you may need to run \"flatpak update\"" msgid "Vulkan drivers cannot be found, you may need to run \"flatpak update\""
msgstr "Vulkanドライバーが見つかりません。「flatpak update」を実行してみて下さい。" msgstr ""
"Vulkanドライバーが見つかりません。「flatpak update」を実行してみて下さい。"
#: dashboard/qml/Main.qml:193 #: dashboard/qml/Main.qml:193
#, kde-format #, kde-format
@@ -452,19 +453,19 @@ msgstr "問題解決"
msgid "Version %1" msgid "Version %1"
msgstr "バージョン%1" msgstr "バージョン%1"
#: dashboard/qml/SelectGame.qml:14 #: dashboard/qml/SelectGame.qml:12
#, kde-format #, kde-format
msgctxt "don't start an application automatically" msgctxt "don't start an application automatically"
msgid "None" msgid "None"
msgstr "なし" msgstr "なし"
#: dashboard/qml/SelectGame.qml:20 #: dashboard/qml/SelectGame.qml:18
#, kde-format #, kde-format
msgctxt "choose a custom application to start" msgctxt "choose a custom application to start"
msgid "Custom" msgid "Custom"
msgstr "カスタム" msgstr "カスタム"
#: dashboard/qml/SelectGame.qml:72 #: dashboard/qml/SelectGame.qml:70
#, kde-format #, kde-format
msgctxt "browse a file to choose the application to start" msgctxt "browse a file to choose the application to start"
msgid "Browse" msgid "Browse"
+175 -169
View File
@@ -2,7 +2,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: WiVRn 0.16\n" "Project-Id-Version: WiVRn 0.16\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-02-17 12:42+0900\n" "POT-Creation-Date: 2026-03-03 13:37+0900\n"
"PO-Revision-Date: 2024-06-20 10:33+0900\n" "PO-Revision-Date: 2024-06-20 10:33+0900\n"
"Last-Translator: Mitsuami Megane <hello@mitsua.me>\n" "Last-Translator: Mitsuami Megane <hello@mitsua.me>\n"
"Language: Japanese\n" "Language: Japanese\n"
@@ -14,56 +14,56 @@ msgstr ""
msgid "No supported swapchain format" msgid "No supported swapchain format"
msgstr "互換性のあるスワップチェーンは見つからなかった" msgstr "互換性のあるスワップチェーンは見つからなかった"
#: client/scenes/app_launcher.cpp:127 #: client/scenes/app_launcher.cpp:119
msgid "Connected to WiVRn server" msgid "Connected to WiVRn server"
msgstr "WiVRnサーバーに接続しました。" msgstr "WiVRnサーバーに接続しました。"
#: client/scenes/app_launcher.cpp:129 #: client/scenes/app_launcher.cpp:121
#, c++-format #, c++-format
msgid "Connected to {}" msgid "Connected to {}"
msgstr "{}に接続しました。" msgstr "{}に接続しました。"
#: client/scenes/app_launcher.cpp:135 #: client/scenes/app_launcher.cpp:127
msgid "Start an application on the server to start streaming." msgid "Start an application on the server to start streaming."
msgstr "VRアプリを起動してVRに入りましょう!" msgstr "VRアプリを起動してVRに入りましょう!"
#: client/scenes/app_launcher.cpp:145 #: client/scenes/app_launcher.cpp:137
msgid "Start an application on your computer or select one to start streaming." msgid "Start an application on your computer or select one to start streaming."
msgstr "パソコンでVRアプリを起動するか、ここからアプリを選択しましょう。" msgstr "パソコンでVRアプリを起動するか、ここからアプリを選択しましょう。"
#: client/scenes/app_launcher.cpp:147 #: client/scenes/app_launcher.cpp:139
#, c++-format #, c++-format
msgid "Start an application on {} or select one to start streaming." msgid "Start an application on {} or select one to start streaming."
msgstr "{}でVRアプリを起動するか、ここからアプリを選択しましょう。" msgstr "{}でVRアプリを起動するか、ここからアプリを選択しましょう。"
#: client/scenes/lobby.cpp:230 #: client/scenes/lobby.cpp:221
msgid "Incompatible WiVRn server: no protocol field in TXT" msgid "Incompatible WiVRn server: no protocol field in TXT"
msgstr "互換性のないサーバー(プロトコルのフィールドは欠落)" msgstr "互換性のないサーバー(プロトコルのフィールドは欠落)"
#: client/scenes/lobby.cpp:233 #: client/scenes/lobby.cpp:224
#, c++-format #, c++-format
msgid "Incompatible WiVRn server protocol (client: {}, server: {})" msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
msgstr "互換性のないサーバー(クライエント{}、サーバー{})" msgstr "互換性のないサーバー(クライエント{}、サーバー{})"
#: client/scenes/lobby.cpp:248 #: client/scenes/lobby.cpp:239
#, c++-format #, c++-format
msgid "Cannot resolve hostname: {}" msgid "Cannot resolve hostname: {}"
msgstr "ホスト名解決に失敗:{}" msgstr "ホスト名解決に失敗:{}"
#: client/scenes/lobby.cpp:335 client/scenes/lobby.cpp:341 #: client/scenes/lobby.cpp:326 client/scenes/lobby.cpp:332
#, c++-format #, c++-format
msgid "Cannot connect to {} ({}): {}" msgid "Cannot connect to {} ({}): {}"
msgstr "{}に接続できませんでした:({}) {}" msgstr "{}に接続できませんでした:({}) {}"
#: client/scenes/lobby.cpp:424 #: client/scenes/lobby.cpp:410
msgid "Waiting for connection" msgid "Waiting for connection"
msgstr "接続を待っています" msgstr "接続を待っています"
#: client/scenes/lobby.cpp:1307 #: client/scenes/lobby.cpp:1298
msgid "Passthrough" msgid "Passthrough"
msgstr "パススルー" msgstr "パススルー"
#: client/scenes/lobby.cpp:1319 #: client/scenes/lobby.cpp:1310
msgid "Default environment" msgid "Default environment"
msgstr "デフォルトのホーム環境" msgstr "デフォルトのホーム環境"
@@ -82,14 +82,15 @@ msgctxt "openxr_post_processing"
msgid "Disabled" msgid "Disabled"
msgstr "無効" msgstr "無効"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258 #: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254
#: client/scenes/stream_gui.cpp:992 #: client/scenes/stream_gui.cpp:1026
msgid "Disconnect" msgid "Disconnect"
msgstr "切断する" msgstr "切断する"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753 #: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264
#: client/scenes/lobby_gui_customize.cpp:844 #: client/scenes/lobby_gui_customize.cpp:752
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:988 #: client/scenes/lobby_gui_customize.cpp:843
#: client/scenes/lobby_gui_customize.cpp:899 client/scenes/stream_gui.cpp:1022
msgid "Close" msgid "Close"
msgstr "閉じる" msgstr "閉じる"
@@ -110,32 +111,41 @@ msgstr "暗証番号"
msgid "Input the PIN displayed on the dashboard" msgid "Input the PIN displayed on the dashboard"
msgstr "パソコンで表示された暗証番号を入力してください" msgstr "パソコンで表示された暗証番号を入力してください"
#: client/scenes/lobby_gui.cpp:282
msgid "Disconnected"
msgstr "切断されました"
#: client/scenes/lobby_gui.cpp:284 #: client/scenes/lobby_gui.cpp:284
#, c++-format
msgid "Disconnected from {}"
msgstr "{}から切断されました"
#: client/scenes/lobby_gui.cpp:316
msgid "Name" msgid "Name"
msgstr "表示名" msgstr "表示名"
#: client/scenes/lobby_gui.cpp:295 #: client/scenes/lobby_gui.cpp:327
msgid "Address" msgid "Address"
msgstr "アドレス" msgstr "アドレス"
#: client/scenes/lobby_gui.cpp:304 #: client/scenes/lobby_gui.cpp:336
msgid "Port" msgid "Port"
msgstr "ポート番号" msgstr "ポート番号"
#: client/scenes/lobby_gui.cpp:312 #: client/scenes/lobby_gui.cpp:344
msgid "TCP only" msgid "TCP only"
msgstr "TCPのみを使用" msgstr "TCPのみを使用"
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655 #: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:654
#: client/scenes/stream_gui.cpp:944 #: client/scenes/stream_gui.cpp:978
msgid "Cancel" msgid "Cancel"
msgstr "キャンセル" msgstr "キャンセル"
#: client/scenes/lobby_gui.cpp:333 #: client/scenes/lobby_gui.cpp:365
msgid "Save" msgid "Save"
msgstr "保存する" msgstr "保存する"
#: client/scenes/lobby_gui.cpp:386 #: client/scenes/lobby_gui.cpp:418
msgid "" msgid ""
"Start a WiVRn server on your\n" "Start a WiVRn server on your\n"
"local network" "local network"
@@ -143,46 +153,46 @@ msgstr ""
"ローカルネットワークでWiVRnサーバーを\n" "ローカルネットワークでWiVRnサーバーを\n"
"起動してみて下さい" "起動してみて下さい"
#: client/scenes/lobby_gui.cpp:418 #: client/scenes/lobby_gui.cpp:450
msgid "Autoconnect" msgid "Autoconnect"
msgstr "自動接続" msgstr "自動接続"
#: client/scenes/lobby_gui.cpp:444 #: client/scenes/lobby_gui.cpp:476
msgid "Connect" msgid "Connect"
msgstr "接続する" msgstr "接続する"
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186 #: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186
msgid "Incompatible server version" msgid "Incompatible server version"
msgstr "互換性のないサーバーです" msgstr "互換性のないサーバーです"
#: client/scenes/lobby_gui.cpp:456 #: client/scenes/lobby_gui.cpp:488
msgid "Server not available" msgid "Server not available"
msgstr "サーバーは利用不可です" msgstr "サーバーは利用不可です"
#: client/scenes/lobby_gui.cpp:538 #: client/scenes/lobby_gui.cpp:581
msgctxt "language selection, replace with the name of the language" msgctxt "language selection, replace with the name of the language"
msgid "English" msgid "English"
msgstr "日本語" msgstr "日本語"
#: client/scenes/lobby_gui.cpp:552 #: client/scenes/lobby_gui.cpp:595
msgid "Language" msgid "Language"
msgstr "言語" msgstr "言語"
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554 #: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597
msgid "System language" msgid "System language"
msgstr "デバイス言語" msgstr "デバイス言語"
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:413 #: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412
msgid "Refresh rate" msgid "Refresh rate"
msgstr "リフレッシュレート" msgstr "リフレッシュレート"
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582 #: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625
#: client/scenes/stream_gui.cpp:413 client/scenes/stream_gui.cpp:415 #: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414
msgctxt "automatic refresh rate" msgctxt "automatic refresh rate"
msgid "Automatic" msgid "Automatic"
msgstr "自動" msgstr "自動"
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:423 #: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421
msgid "" msgid ""
"Select refresh rate based on measured application performance.\n" "Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens." "May cause flicker when a change happens."
@@ -190,39 +200,35 @@ msgstr ""
"アプリケーションのパフォーマンスを基づいて自動的に設定します。\n" "アプリケーションのパフォーマンスを基づいて自動的に設定します。\n"
"変更時にチラツキが発生する可能性があります。" "変更時にチラツキが発生する可能性があります。"
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:441 #: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439
msgid "Minimum refresh rate" msgid "Minimum refresh rate"
msgstr "最低リフレッシュレート" msgstr "最低リフレッシュレート"
#: client/scenes/lobby_gui.cpp:632 #: client/scenes/lobby_gui.cpp:673
msgid "Foveation level"
msgstr "フォビエーション・レベル"
#: client/scenes/lobby_gui.cpp:655
msgid "Render resolution" msgid "Render resolution"
msgstr "レンダー解像度" msgstr "レンダー解像度"
#: client/scenes/lobby_gui.cpp:659 #: client/scenes/lobby_gui.cpp:677
#, c-format, c++-format #, c-format, c++-format
msgid "{}%% - {}x{} per eye" msgid "{}%% - {}x{} per eye"
msgstr "{}%% - 目あたり{}x{}" msgstr "{}%% - 目あたり{}x{}"
#: client/scenes/lobby_gui.cpp:670 #: client/scenes/lobby_gui.cpp:688
#, c++-format #, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset" msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "" msgstr ""
"{}x{}以上の解像度は、お使いのヘッドセットではサポートされない場合があります。" "{}x{}以上の解像度は、お使いのヘッドセットではサポートされない場合があります。"
#: client/scenes/lobby_gui.cpp:680 #: client/scenes/lobby_gui.cpp:698
msgid "Foveated encoding" msgid "Foveated encoding"
msgstr "エンコード・フォビエーション" msgstr "エンコード・フォビエーション"
#: client/scenes/lobby_gui.cpp:684 #: client/scenes/lobby_gui.cpp:702
#, c-format, c++-format #, c-format, c++-format
msgid "{}%%" msgid "{}%%"
msgstr "{}%%" msgstr "{}%%"
#: client/scenes/lobby_gui.cpp:697 #: client/scenes/lobby_gui.cpp:715
msgid "" msgid ""
"Higher values focus image quality where you look at,\n" "Higher values focus image quality where you look at,\n"
"improving latency, power efficiency and quality." "improving latency, power efficiency and quality."
@@ -230,7 +236,7 @@ msgstr ""
"高い方は、視線方向の画質を最適化し、\n" "高い方は、視線方向の画質を最適化し、\n"
"応答速度、電力効率、画質を向上させます。" "応答速度、電力効率、画質を向上させます。"
#: client/scenes/lobby_gui.cpp:700 #: client/scenes/lobby_gui.cpp:718
msgid "" msgid ""
"Higher values focus image quality at the center,\n" "Higher values focus image quality at the center,\n"
"improving latency, power efficiency and quality." "improving latency, power efficiency and quality."
@@ -238,86 +244,86 @@ msgstr ""
"高い方は、画面の中央の画質を最適化し、\n" "高い方は、画面の中央の画質を最適化し、\n"
"応答速度、電力効率、画質を向上させます。" "応答速度、電力効率、画質を向上させます。"
#: client/scenes/lobby_gui.cpp:709 #: client/scenes/lobby_gui.cpp:727
msgctxt "Codec" msgctxt "Codec"
msgid "Automatic" msgid "Automatic"
msgstr "自動" msgstr "自動"
#: client/scenes/lobby_gui.cpp:713 #: client/scenes/lobby_gui.cpp:731
msgctxt "Codec" msgctxt "Codec"
msgid "H.264" msgid "H.264"
msgstr "H.264" msgstr "H.264"
#: client/scenes/lobby_gui.cpp:715 #: client/scenes/lobby_gui.cpp:733
msgctxt "Codec" msgctxt "Codec"
msgid "H.265" msgid "H.265"
msgstr "H.265" msgstr "H.265"
#: client/scenes/lobby_gui.cpp:717 #: client/scenes/lobby_gui.cpp:735
msgctxt "Codec" msgctxt "Codec"
msgid "AV1" msgid "AV1"
msgstr "AV1" msgstr "AV1"
#: client/scenes/lobby_gui.cpp:725 #: client/scenes/lobby_gui.cpp:743
msgid "Codec" msgid "Codec"
msgstr "コーデック" msgstr "コーデック"
#: client/scenes/lobby_gui.cpp:753 #: client/scenes/lobby_gui.cpp:771
msgid "10-bit" msgid "10-bit"
msgstr "10ビット" msgstr "10ビット"
#: client/scenes/lobby_gui.cpp:769 #: client/scenes/lobby_gui.cpp:787
msgid "Bitrate" msgid "Bitrate"
msgstr "ビットレート" msgstr "ビットレート"
#: client/scenes/lobby_gui.cpp:773 #: client/scenes/lobby_gui.cpp:791
#, c++-format #, c++-format
msgid "{}Mbit/s" msgid "{}Mbit/s"
msgstr "{}Mbps" msgstr "{}Mbps"
#: client/scenes/lobby_gui.cpp:784 #: client/scenes/lobby_gui.cpp:802
msgid "High power mode" msgid "High power mode"
msgstr "高電力モード" msgstr "高電力モード"
#: client/scenes/lobby_gui.cpp:787 #: client/scenes/lobby_gui.cpp:805
msgid "Increase power usage to allow higher resolution and refresh rate" msgid "Increase power usage to allow higher resolution and refresh rate"
msgstr "HMDの性能問題を緩和するため、電力を増加させます。" msgstr "HMDの性能問題を緩和するため、電力を増加させます。"
#: client/scenes/lobby_gui.cpp:793 #: client/scenes/lobby_gui.cpp:811
msgid "Enable microphone" msgid "Enable microphone"
msgstr "マイクを有効する" msgstr "マイクを有効する"
#: client/scenes/lobby_gui.cpp:802 #: client/scenes/lobby_gui.cpp:820
msgid "Unprocessed Microphone Audio" msgid "Unprocessed Microphone Audio"
msgstr "未処理のマイク音声" msgstr "未処理のマイク音声"
#: client/scenes/lobby_gui.cpp:808 #: client/scenes/lobby_gui.cpp:826
msgid "Force disable audio filters, such as noise cancellation" msgid "Force disable audio filters, such as noise cancellation"
msgstr "ノイズ除去などのフィルターを無効化する" msgstr "ノイズ除去などのフィルターを無効化する"
#: client/scenes/lobby_gui.cpp:815 #: client/scenes/lobby_gui.cpp:833
msgid "Enable hand tracking" msgid "Enable hand tracking"
msgstr "ハンドトラッキングを有効する" msgstr "ハンドトラッキングを有効する"
#: client/scenes/lobby_gui.cpp:821 client/scenes/lobby_gui.cpp:832 #: client/scenes/lobby_gui.cpp:839 client/scenes/lobby_gui.cpp:850
#: client/scenes/lobby_gui.cpp:842 client/scenes/lobby_gui.cpp:857 #: client/scenes/lobby_gui.cpp:860 client/scenes/lobby_gui.cpp:875
#: client/scenes/lobby_gui_customize.cpp:640 #: client/scenes/lobby_gui_customize.cpp:639
msgid "This feature is not supported by your headset" msgid "This feature is not supported by your headset"
msgstr "デバイスはこの機能をサポートしていません" msgstr "デバイスはこの機能をサポートしていません"
#: client/scenes/lobby_gui.cpp:826 #: client/scenes/lobby_gui.cpp:844
msgid "Enable eye tracking" msgid "Enable eye tracking"
msgstr "アイトラッキングを有効する" msgstr "アイトラッキングを有効する"
#: client/scenes/lobby_gui.cpp:837 #: client/scenes/lobby_gui.cpp:855
msgid "Enable face tracking" msgid "Enable face tracking"
msgstr "顔トラッキングを有効する" msgstr "顔トラッキングを有効する"
#: client/scenes/lobby_gui.cpp:849 #: client/scenes/lobby_gui.cpp:867
msgid "Enable body tracking" msgid "Enable body tracking"
msgstr "ボディラッキングを有効する" msgstr "ボディラッキングを有効する"
#: client/scenes/lobby_gui.cpp:862 #: client/scenes/lobby_gui.cpp:880
msgid "" msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement " "Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n" "tracking settings,\n"
@@ -328,11 +334,11 @@ msgstr ""
"そうでなければ、トラッキングデータはHMDとコントローラーの情報から推測されるこ" "そうでなければ、トラッキングデータはHMDとコントローラーの情報から推測されるこ"
"とになる。" "とになる。"
#: client/scenes/lobby_gui.cpp:872 #: client/scenes/lobby_gui.cpp:890
msgid "Enable lower body tracking" msgid "Enable lower body tracking"
msgstr "下半身トラッキングを有効する" msgstr "下半身トラッキングを有効する"
#: client/scenes/lobby_gui.cpp:878 #: client/scenes/lobby_gui.cpp:896
msgid "" msgid ""
"Estimate lower body joint positions using Generative Legs\n" "Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement " "Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -342,11 +348,11 @@ msgstr ""
"Quest設定・動きのトラッキング・ジェスチャーコントロールとボディトラッキングを" "Quest設定・動きのトラッキング・ジェスチャーコントロールとボディトラッキングを"
"有効する必要がある。" "有効する必要がある。"
#: client/scenes/lobby_gui.cpp:881 #: client/scenes/lobby_gui.cpp:899
msgid "Enable hip tracking" msgid "Enable hip tracking"
msgstr "腰のトラッキングを有効する" msgstr "腰のトラッキングを有効する"
#: client/scenes/lobby_gui.cpp:887 #: client/scenes/lobby_gui.cpp:905
msgid "" msgid ""
"Only takes affect with lower body tracking enabled\n" "Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking" "May be desired when using another source of hip tracking"
@@ -354,11 +360,11 @@ msgstr ""
"下半身トラッキングが有効な場合に使用可能。\n" "下半身トラッキングが有効な場合に使用可能。\n"
"腰トラッカーを持ってる方は無効にしましょう。" "腰トラッカーを持ってる方は無効にしましょう。"
#: client/scenes/lobby_gui.cpp:896 #: client/scenes/lobby_gui.cpp:914
msgid "Enable in-stream window" msgid "Enable in-stream window"
msgstr "ストリーミング中の設定パネル" msgstr "ストリーミング中の設定パネル"
#: client/scenes/lobby_gui.cpp:899 #: client/scenes/lobby_gui.cpp:917
msgid "" msgid ""
"Enables the configuration window to be shown while the game is streaming.\n" "Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks." "If enabled, the window is activated by pressing both thumbsticks."
@@ -366,23 +372,23 @@ msgstr ""
"ストリーミング中にも設定パネルを表示できるようにします。\n" "ストリーミング中にも設定パネルを表示できるようにします。\n"
"両方のサムスティックを同時に押して切り替えることができます。" "両方のサムスティックを同時に押して切り替えることができます。"
#: client/scenes/lobby_gui.cpp:903 #: client/scenes/lobby_gui.cpp:921
msgid "Extended configuration values" msgid "Extended configuration values"
msgstr "設定に対する制限の緩和" msgstr "設定に対する制限の緩和"
#: client/scenes/lobby_gui.cpp:906 #: client/scenes/lobby_gui.cpp:924
msgid "Allows unsafe configuration values, use at your own risk." msgid "Allows unsafe configuration values, use at your own risk."
msgstr "不安定な状態が発生しないよう、十分にご注意ください。" msgstr "不安定な状態が発生しないよう、十分にご注意ください。"
#: client/scenes/lobby_gui.cpp:920 client/scenes/stream_gui.cpp:475 #: client/scenes/lobby_gui.cpp:938 client/scenes/stream_gui.cpp:473
msgid "OpenXR post-processing" msgid "OpenXR post-processing"
msgstr "OpenXRポストエフェクト" msgstr "OpenXRポストエフェクト"
#: client/scenes/lobby_gui.cpp:924 client/scenes/stream_gui.cpp:479 #: client/scenes/lobby_gui.cpp:942 client/scenes/stream_gui.cpp:477
msgid "Supersampling" msgid "Supersampling"
msgstr "スーパーサンプリング" msgstr "スーパーサンプリング"
#: client/scenes/lobby_gui.cpp:944 client/scenes/stream_gui.cpp:500 #: client/scenes/lobby_gui.cpp:962 client/scenes/stream_gui.cpp:498
msgid "" msgid ""
"Reduce flicker for high contrast edges.\n" "Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display" "Useful when the input resolution is high compared to the headset display"
@@ -390,11 +396,11 @@ msgstr ""
"コントラストが高い部分のギザギザを低減する。\n" "コントラストが高い部分のギザギザを低減する。\n"
"ストリームの解像度は、HMDの解像度より高い場合は有用です。" "ストリームの解像度は、HMDの解像度より高い場合は有用です。"
#: client/scenes/lobby_gui.cpp:949 client/scenes/stream_gui.cpp:505 #: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:503
msgid "Sharpening" msgid "Sharpening"
msgstr "シャープ" msgstr "シャープ"
#: client/scenes/lobby_gui.cpp:969 client/scenes/stream_gui.cpp:526 #: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:524
msgid "" msgid ""
"Improve clarity of high contrast edges and counteract blur.\n" "Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display" "Useful when the input resolution is low compared to the headset display"
@@ -402,129 +408,129 @@ msgstr ""
"ぼかしを低減し、コントラストが高い部分の鮮明度を向上する。\n" "ぼかしを低減し、コントラストが高い部分の鮮明度を向上する。\n"
"ストリームの解像度は、HMDの解像度より低い場合に有用です。" "ストリームの解像度は、HMDの解像度より低い場合に有用です。"
#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161 #: client/scenes/lobby_gui.cpp:1171 client/scenes/lobby_gui.cpp:1179
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:372 #: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371
msgid "CPU time" msgid "CPU time"
msgstr "CPU使用時間" msgstr "CPU使用時間"
#: client/scenes/lobby_gui.cpp:1157 #: client/scenes/lobby_gui.cpp:1175
msgid "CPU time [ms]" msgid "CPU time [ms]"
msgstr "CPU使用時間、ミリ秒" msgstr "CPU使用時間、ミリ秒"
#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175 #: client/scenes/lobby_gui.cpp:1185 client/scenes/lobby_gui.cpp:1193
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:373 #: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372
msgid "GPU time" msgid "GPU time"
msgstr "GPU使用時間" msgstr "GPU使用時間"
#: client/scenes/lobby_gui.cpp:1171 #: client/scenes/lobby_gui.cpp:1189
msgid "GPU time [ms]" msgid "GPU time [ms]"
msgstr "GPU使用時間、ミリ秒" msgstr "GPU使用時間、ミリ秒"
#: client/scenes/lobby_gui.cpp:1235 #: client/scenes/lobby_gui.cpp:1253
msgid "Enable the microphone?" msgid "Enable the microphone?"
msgstr "マイクを有効にしますか?" msgstr "マイクを有効にしますか?"
#: client/scenes/lobby_gui.cpp:1240 #: client/scenes/lobby_gui.cpp:1258
msgid "Enable eye tracking?" msgid "Enable eye tracking?"
msgstr "アイトラッキングを有効にしますか?" msgstr "アイトラッキングを有効にしますか?"
#: client/scenes/lobby_gui.cpp:1245 #: client/scenes/lobby_gui.cpp:1263
msgid "Enable face tracking?" msgid "Enable face tracking?"
msgstr "フェースラッキングを有効にしますか?" msgstr "フェースラッキングを有効にしますか?"
#: client/scenes/lobby_gui.cpp:1250 #: client/scenes/lobby_gui.cpp:1268
msgid "Enable body tracking?" msgid "Enable body tracking?"
msgstr "ボディトラッキングを有効にしますか?" msgstr "ボディトラッキングを有効にしますか?"
#: client/scenes/lobby_gui.cpp:1258 #: client/scenes/lobby_gui.cpp:1276
msgid "Welcome to WiVRn" msgid "Welcome to WiVRn"
msgstr "WiVRnへようこそ!" msgstr "WiVRnへようこそ!"
#: client/scenes/lobby_gui.cpp:1286 #: client/scenes/lobby_gui.cpp:1304
msgid "Yes" msgid "Yes"
msgstr "はい" msgstr "はい"
#: client/scenes/lobby_gui.cpp:1293 #: client/scenes/lobby_gui.cpp:1311
msgid "No" msgid "No"
msgstr "いいえ" msgstr "いいえ"
#: client/scenes/lobby_gui.cpp:1312 client/scenes/lobby_gui.cpp:1958 #: client/scenes/lobby_gui.cpp:1330 client/scenes/lobby_gui.cpp:1976
msgid "Licenses" msgid "Licenses"
msgstr "ライセンス" msgstr "ライセンス"
#: client/scenes/lobby_gui.cpp:1588 #: client/scenes/lobby_gui.cpp:1606
msgid "Microphone is enabled" msgid "Microphone is enabled"
msgstr "マイクは有効です" msgstr "マイクは有効です"
#: client/scenes/lobby_gui.cpp:1589 #: client/scenes/lobby_gui.cpp:1607
msgid "Microphone is disabled" msgid "Microphone is disabled"
msgstr "マイクは無効です" msgstr "マイクは無効です"
#: client/scenes/lobby_gui.cpp:1598 #: client/scenes/lobby_gui.cpp:1616
msgid "Hand tracking is enabled" msgid "Hand tracking is enabled"
msgstr "ハンドトラッキングは有効です" msgstr "ハンドトラッキングは有効です"
#: client/scenes/lobby_gui.cpp:1599 #: client/scenes/lobby_gui.cpp:1617
msgid "Hand tracking is disabled" msgid "Hand tracking is disabled"
msgstr "ハンドラッキングは無効です" msgstr "ハンドラッキングは無効です"
#: client/scenes/lobby_gui.cpp:1608 #: client/scenes/lobby_gui.cpp:1626
msgid "Eye tracking is enabled" msgid "Eye tracking is enabled"
msgstr "アイトラッキングは有効です" msgstr "アイトラッキングは有効です"
#: client/scenes/lobby_gui.cpp:1609 #: client/scenes/lobby_gui.cpp:1627
msgid "Eye tracking is disabled" msgid "Eye tracking is disabled"
msgstr "アイトラッキングは無効です" msgstr "アイトラッキングは無効です"
#: client/scenes/lobby_gui.cpp:1619 #: client/scenes/lobby_gui.cpp:1637
msgid "Face tracking is enabled" msgid "Face tracking is enabled"
msgstr "フェーストラッキングは有効です" msgstr "フェーストラッキングは有効です"
#: client/scenes/lobby_gui.cpp:1620 #: client/scenes/lobby_gui.cpp:1638
msgid "Face tracking is disabled" msgid "Face tracking is disabled"
msgstr "フェーストラッキングは無効です" msgstr "フェーストラッキングは無効です"
#: client/scenes/lobby_gui.cpp:1634 #: client/scenes/lobby_gui.cpp:1652
msgid "Body tracking is enabled" msgid "Body tracking is enabled"
msgstr "ボディトラッキングは有効です" msgstr "ボディトラッキングは有効です"
#: client/scenes/lobby_gui.cpp:1635 #: client/scenes/lobby_gui.cpp:1653
msgid "Body tracking is disabled" msgid "Body tracking is disabled"
msgstr "ボディトラッキングは無効です" msgstr "ボディトラッキングは無効です"
#: client/scenes/lobby_gui.cpp:1651 #: client/scenes/lobby_gui.cpp:1669
msgid "Add server" msgid "Add server"
msgstr "サーバーを追加する" msgstr "サーバーを追加する"
#: client/scenes/lobby_gui.cpp:1937 #: client/scenes/lobby_gui.cpp:1955
msgid "Server list" msgid "Server list"
msgstr "サーバー" msgstr "サーバー"
#: client/scenes/lobby_gui.cpp:1940 client/scenes/stream_gui.cpp:973 #: client/scenes/lobby_gui.cpp:1958 client/scenes/stream_gui.cpp:1007
msgid "Settings" msgid "Settings"
msgstr "設定" msgstr "設定"
#: client/scenes/lobby_gui.cpp:1943 #: client/scenes/lobby_gui.cpp:1961
msgid "Post-processing" msgid "Post-processing"
msgstr "ポストエフェクト" msgstr "ポストエフェクト"
#: client/scenes/lobby_gui.cpp:1946 #: client/scenes/lobby_gui.cpp:1964
msgid "Customize" msgid "Customize"
msgstr "カスタマイズ" msgstr "カスタマイズ"
#: client/scenes/lobby_gui.cpp:1950 #: client/scenes/lobby_gui.cpp:1968
msgid "Debug" msgid "Debug"
msgstr "デバッグ" msgstr "デバッグ"
#: client/scenes/lobby_gui.cpp:1955 #: client/scenes/lobby_gui.cpp:1973
msgid "About" msgid "About"
msgstr "WiVRnについて" msgstr "WiVRnについて"
#: client/scenes/lobby_gui.cpp:1961 #: client/scenes/lobby_gui.cpp:1979
msgid "Exit" msgid "Exit"
msgstr "完了" msgstr "完了"
#: client/scenes/lobby_gui.cpp:1978 #: client/scenes/lobby_gui.cpp:1996
msgid "" msgid ""
"Press the grip button or put your palm up\n" "Press the grip button or put your palm up\n"
"to move the main window" "to move the main window"
@@ -532,7 +538,7 @@ msgstr ""
"メイン・パネルを動かすには、グリップを握るか、\n" "メイン・パネルを動かすには、グリップを握るか、\n"
"手のひらを上向きにしましょう。" "手のひらを上向きにしましょう。"
#: client/scenes/lobby_gui.cpp:1980 #: client/scenes/lobby_gui.cpp:1998
msgid "Press the grip button to move the main window" msgid "Press the grip button to move the main window"
msgstr "グリップを握ってパネルを動かしましょう。" msgstr "グリップを握ってパネルを動かしましょう。"
@@ -545,38 +551,38 @@ msgstr "ローカル環境"
msgid "Locally loaded environment ({})" msgid "Locally loaded environment ({})"
msgstr "ローカル環境({})" msgstr "ローカル環境({})"
#: client/scenes/lobby_gui_customize.cpp:300 #: client/scenes/lobby_gui_customize.cpp:299
#, c++-format #, c++-format
msgid "Cannot load local environment: {}" msgid "Cannot load local environment: {}"
msgstr "ローカル環境ロードできません:{}" msgstr "ローカル環境ロードできません:{}"
#: client/scenes/lobby_gui_customize.cpp:333 #: client/scenes/lobby_gui_customize.cpp:332
#, c++-format #, c++-format
msgid "Cannot load environment list: {}" msgid "Cannot load environment list: {}"
msgstr "環境リストをロードできませんでした:{}" msgstr "環境リストをロードできませんでした:{}"
#: client/scenes/lobby_gui_customize.cpp:463 #: client/scenes/lobby_gui_customize.cpp:462
#, c++-format #, c++-format
msgid "Author: {}" msgid "Author: {}"
msgstr "作者:{}" msgstr "作者:{}"
#: client/scenes/lobby_gui_customize.cpp:467 #: client/scenes/lobby_gui_customize.cpp:466
#, c++-format #, c++-format
msgid "Size: {:.1f} MB" msgid "Size: {:.1f} MB"
msgstr "サイズ:{:.1f} MB" msgstr "サイズ:{:.1f} MB"
#: client/scenes/lobby_gui_customize.cpp:547 #: client/scenes/lobby_gui_customize.cpp:546
msgid "Delete this model" msgid "Delete this model"
msgstr "モデルを削除しますか?" msgstr "モデルを削除しますか?"
#: client/scenes/lobby_gui_customize.cpp:583 #: client/scenes/lobby_gui_customize.cpp:582
#: client/scenes/lobby_gui_customize.cpp:789 #: client/scenes/lobby_gui_customize.cpp:788
#, c++-format #, c++-format
msgid "HTTP error {} when downloading {}" msgid "HTTP error {} when downloading {}"
msgstr "{}をダウンロード中にHTTP {}が発生しました。" msgstr "{}をダウンロード中にHTTP {}が発生しました。"
#: client/scenes/lobby_gui_customize.cpp:591 #: client/scenes/lobby_gui_customize.cpp:590
#: client/scenes/lobby_gui_customize.cpp:797 #: client/scenes/lobby_gui_customize.cpp:796
#, c++-format #, c++-format
msgid "" msgid ""
"Curl error when downloading {}\n" "Curl error when downloading {}\n"
@@ -585,186 +591,186 @@ msgstr ""
"{}をダウンロード中にCurlエラーが発生しました。\n" "{}をダウンロード中にCurlエラーが発生しました。\n"
"{}: {}" "{}: {}"
#: client/scenes/lobby_gui_customize.cpp:652 #: client/scenes/lobby_gui_customize.cpp:651
#, c++-format #, c++-format
msgid "Really delete {}?" msgid "Really delete {}?"
msgstr "{}を削除しますか?" msgstr "{}を削除しますか?"
#: client/scenes/lobby_gui_customize.cpp:656 #: client/scenes/lobby_gui_customize.cpp:655
msgid "Delete" msgid "Delete"
msgstr "削除" msgstr "削除"
#: client/scenes/lobby_gui_customize.cpp:737 #: client/scenes/lobby_gui_customize.cpp:736
#, c++-format #, c++-format
msgid "Cannot load environment: {}" msgid "Cannot load environment: {}"
msgstr "環境をロードできませんでした:{}" msgstr "環境をロードできませんでした:{}"
#: client/scenes/lobby_gui_customize.cpp:745 #: client/scenes/lobby_gui_customize.cpp:744
msgid "Loading environment" msgid "Loading environment"
msgstr "ホーム環境をロード中" msgstr "ホーム環境をロード中"
#: client/scenes/lobby_gui_customize.cpp:824 #: client/scenes/lobby_gui_customize.cpp:823
msgid "Download more environments" msgid "Download more environments"
msgstr "ホーム環境をダウンロード" msgstr "ホーム環境をダウンロード"
#: client/scenes/lobby_gui_customize.cpp:832 #: client/scenes/lobby_gui_customize.cpp:831
msgid "Open local glTF model" msgid "Open local glTF model"
msgstr "glTFファイルを開く" msgstr "glTFファイルを開く"
#: client/scenes/stream_gui.cpp:176 #: client/scenes/stream_gui.cpp:175
msgid "Defoveate" msgid "Defoveate"
msgstr "フォビエーション解除" msgstr "フォビエーション解除"
#: client/scenes/stream_gui.cpp:178 #: client/scenes/stream_gui.cpp:177
msgid "Network" msgid "Network"
msgstr "ネットワーク" msgstr "ネットワーク"
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370 #: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
msgid "Download" msgid "Download"
msgstr "ダウンロード" msgstr "ダウンロード"
#: client/scenes/stream_gui.cpp:179 client/scenes/stream_gui.cpp:371 #: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
msgid "Upload" msgid "Upload"
msgstr "アップロード" msgstr "アップロード"
#: client/scenes/stream_gui.cpp:248 #: client/scenes/stream_gui.cpp:247
#, c++-format #, c++-format
msgid "Decoder {}" msgid "Decoder {}"
msgstr "デコーダー {}" msgstr "デコーダー {}"
#: client/scenes/stream_gui.cpp:260 #: client/scenes/stream_gui.cpp:259
msgid "Timings [ms]" msgid "Timings [ms]"
msgstr "タイミング、ミリ秒" msgstr "タイミング、ミリ秒"
#: client/scenes/stream_gui.cpp:320 #: client/scenes/stream_gui.cpp:319
msgid "Encode" msgid "Encode"
msgstr "動画エンコード" msgstr "動画エンコード"
#: client/scenes/stream_gui.cpp:321 #: client/scenes/stream_gui.cpp:320
msgid "Send" msgid "Send"
msgstr "送信" msgstr "送信"
#: client/scenes/stream_gui.cpp:322 #: client/scenes/stream_gui.cpp:321
msgid "Receive" msgid "Receive"
msgstr "受信" msgstr "受信"
#: client/scenes/stream_gui.cpp:323 #: client/scenes/stream_gui.cpp:322
msgid "Decode" msgid "Decode"
msgstr "デコード" msgstr "デコード"
#: client/scenes/stream_gui.cpp:324 #: client/scenes/stream_gui.cpp:323
msgid "Blitted" msgid "Blitted"
msgstr "描画" msgstr "描画"
#: client/scenes/stream_gui.cpp:325 #: client/scenes/stream_gui.cpp:324
msgid "Displayed" msgid "Displayed"
msgstr "表示" msgstr "表示"
#: client/scenes/stream_gui.cpp:326 #: client/scenes/stream_gui.cpp:325
msgid "Predicted" msgid "Predicted"
msgstr "予測時間" msgstr "予測時間"
#: client/scenes/stream_gui.cpp:345 #: client/scenes/stream_gui.cpp:344
#, c++-format #, c++-format
msgid "Estimated motion to photons latency: {}ms" msgid "Estimated motion to photons latency: {}ms"
msgstr "「Motion-to-photon」推定遅延 {}ミリ秒" msgstr "「Motion-to-photon」推定遅延 {}ミリ秒"
#: client/scenes/stream_gui.cpp:350 #: client/scenes/stream_gui.cpp:349
msgid "Press the grip button to move the window" msgid "Press the grip button to move the window"
msgstr "グリップを握ってパネルを動かしましょう。" msgstr "グリップを握ってパネルを動かしましょう。"
#: client/scenes/stream_gui.cpp:352 client/scenes/stream_gui.cpp:900 #: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738
msgid "Press both thumbsticks to display the WiVRn window" msgid "Press both thumbsticks to display the WiVRn window"
msgstr "両方のサムスティックを同時に押すことで設定表示" msgstr "両方のサムスティックを同時に押すことで設定表示"
#: client/scenes/stream_gui.cpp:374 #: client/scenes/stream_gui.cpp:373
msgid "Motion to photon latency" msgid "Motion to photon latency"
msgstr "「Motion-to-photon」遅延" msgstr "「Motion-to-photon」遅延"
#: client/scenes/stream_gui.cpp:460 #: client/scenes/stream_gui.cpp:458
msgid "Bitrate:" msgid "Bitrate:"
msgstr "ビットレート:" msgstr "ビットレート:"
#: client/scenes/stream_gui.cpp:470 #: client/scenes/stream_gui.cpp:468
msgid "Click to adjust bitrate" msgid "Click to adjust bitrate"
msgstr "クリックしてビットレートを調整" msgstr "クリックしてビットレートを調整"
#: client/scenes/stream_gui.cpp:534 #: client/scenes/stream_gui.cpp:532
msgid "Foveation center override" msgid "Foveation center override"
msgstr "光学中心の調整" msgstr "光学中心の調整"
#: client/scenes/stream_gui.cpp:537 #: client/scenes/stream_gui.cpp:535
msgid "Enable" msgid "Enable"
msgstr "有効" msgstr "有効"
#: client/scenes/stream_gui.cpp:545 client/scenes/stream_gui.cpp:616 #: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614
#, c++-format #, c++-format
msgid "Height {:.1f} deg" msgid "Height {:.1f} deg"
msgstr "仰角 {:.1f}°" msgstr "仰角 {:.1f}°"
#: client/scenes/stream_gui.cpp:546 client/scenes/stream_gui.cpp:617 #: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615
#, c++-format #, c++-format
msgid "Distance {:.2f} m" msgid "Distance {:.2f} m"
msgstr "距離 {:.2f}m" msgstr "距離 {:.2f}m"
#: client/scenes/stream_gui.cpp:547 #: client/scenes/stream_gui.cpp:545
msgid "Default" msgid "Default"
msgstr "デフォルト" msgstr "デフォルト"
#: client/scenes/stream_gui.cpp:558 #: client/scenes/stream_gui.cpp:556
msgid "Change" msgid "Change"
msgstr "編集" msgstr "編集"
#: client/scenes/stream_gui.cpp:590 #: client/scenes/stream_gui.cpp:588
msgid "Use the right thumbstick to adjust the bitrate" msgid "Use the right thumbstick to adjust the bitrate"
msgstr "右スティックでビットレートを調整しましょう" msgstr "右スティックでビットレートを調整しましょう"
#: client/scenes/stream_gui.cpp:591 #: client/scenes/stream_gui.cpp:589
msgid "Press A to go back" msgid "Press A to go back"
msgstr "「A」を押して戻る" msgstr "「A」を押して戻る"
#: client/scenes/stream_gui.cpp:592 #: client/scenes/stream_gui.cpp:590
#, c++-format #, c++-format
msgid "Bitrate: {}Mbit/s" msgid "Bitrate: {}Mbit/s"
msgstr "ビットレート:{}Mbps" msgstr "ビットレート:{}Mbps"
#: client/scenes/stream_gui.cpp:614 #: client/scenes/stream_gui.cpp:612
msgid "Use the thumbsticks to move the foveation center" msgid "Use the thumbsticks to move the foveation center"
msgstr "ジョイスティックを使って中心点を調整しましょう。" msgstr "ジョイスティックを使って中心点を調整しましょう。"
#: client/scenes/stream_gui.cpp:615 #: client/scenes/stream_gui.cpp:613
msgid "Press A to save or B to cancel" msgid "Press A to save or B to cancel"
msgstr "AかBを押してキャンセル。" msgstr "AかBを押してキャンセル。"
#: client/scenes/stream_gui.cpp:673 #: client/scenes/stream_gui.cpp:671
msgid "Running XR applications:" msgid "Running XR applications:"
msgstr "XRアプリの実行" msgstr "XRアプリの実行"
#: client/scenes/stream_gui.cpp:690 #: client/scenes/stream_gui.cpp:688
msgid "Overlays" msgid "Overlays"
msgstr "オーバーレイ" msgstr "オーバーレイ"
#: client/scenes/stream_gui.cpp:729 #: client/scenes/stream_gui.cpp:727
msgid "Request to quit, may be ignored by the application" msgid "Request to quit, may be ignored by the application"
msgstr "終了シグナルを送信する" msgstr "終了シグナルを送信する"
#: client/scenes/stream_gui.cpp:959 #: client/scenes/stream_gui.cpp:993
msgid "Applications" msgid "Applications"
msgstr "アプリ" msgstr "アプリ"
#: client/scenes/stream_gui.cpp:962 #: client/scenes/stream_gui.cpp:996
msgid "Start" msgid "Start"
msgstr "実行する" msgstr "実行する"
#: client/scenes/stream_gui.cpp:976 #: client/scenes/stream_gui.cpp:1010
msgid "Stats" msgid "Stats"
msgstr "統計情報" msgstr "統計情報"
#: client/scenes/stream_gui.cpp:982 #: client/scenes/stream_gui.cpp:1016
msgid "Statistics overlay" msgid "Statistics overlay"
msgstr "統計オーバーレイ" msgstr "統計オーバーレイ"
#: client/scenes/stream_gui.cpp:985 #: client/scenes/stream_gui.cpp:1019
msgid "Compact view" msgid "Compact view"
msgstr "コンパクト・モード" msgstr "コンパクト・モード"
+146 -136
View File
@@ -11,41 +11,41 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: WiVRn\n" "Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-01-31 21:11+0100\n" "POT-Creation-Date: 2026-02-27 16:03+0100\n"
"PO-Revision-Date: 2026-02-02 15:55+0100\n" "PO-Revision-Date: 2026-02-28 16:29+0100\n"
"Last-Translator: Claudio Sampaio (Patola) <patola@gmail.com>\n" "Last-Translator: Claudio Sampaio (Patola) <patola@gmail.com>\n"
"Language-Team: Portuguese <>\n" "Language-Team: Portuguese <>\n"
"Language: pt_BR\n" "Language: pt_BR\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Generator: Lokalize 25.12.1\n" "X-Generator: Lokalize 25.12.2\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: client/scene.cpp:73 #: client/scene.cpp:73
msgid "No supported swapchain format" msgid "No supported swapchain format"
msgstr "Sem formato de cadeia de troca suportado" msgstr "Sem formato de cadeia de troca suportado"
#: client/scenes/app_launcher.cpp:128 #: client/scenes/app_launcher.cpp:127
msgid "Connected to WiVRn server" msgid "Connected to WiVRn server"
msgstr "Conectado ao servidor WiVRn" msgstr "Conectado ao servidor WiVRn"
#: client/scenes/app_launcher.cpp:130 #: client/scenes/app_launcher.cpp:129
#, c++-format #, c++-format
msgid "Connected to {}" msgid "Connected to {}"
msgstr "Conectado a {}" msgstr "Conectado a {}"
#: client/scenes/app_launcher.cpp:136 #: client/scenes/app_launcher.cpp:135
msgid "Start an application on the server to start streaming." msgid "Start an application on the server to start streaming."
msgstr "Abra um aplicativo no servidor para iniciar o streaming." msgstr "Abra um aplicativo no servidor para iniciar o streaming."
#: client/scenes/app_launcher.cpp:146 #: client/scenes/app_launcher.cpp:145
msgid "Start an application on your computer or select one to start streaming." msgid "Start an application on your computer or select one to start streaming."
msgstr "" msgstr ""
"Abra um aplicativo no seu computador ou selecione um para iniciar o " "Abra um aplicativo no seu computador ou selecione um para iniciar o "
"streaming." "streaming."
#: client/scenes/app_launcher.cpp:148 #: client/scenes/app_launcher.cpp:147
#, c++-format #, c++-format
msgid "Start an application on {} or select one to start streaming." msgid "Start an application on {} or select one to start streaming."
msgstr "Abra um aplicativo em {} ou selecione um para iniciar o streaming." msgstr "Abra um aplicativo em {} ou selecione um para iniciar o streaming."
@@ -73,11 +73,11 @@ msgstr "Incapaz de conectar a {} ({}): {}"
msgid "Waiting for connection" msgid "Waiting for connection"
msgstr "Aguardando conexão" msgstr "Aguardando conexão"
#: client/scenes/lobby.cpp:1319 #: client/scenes/lobby.cpp:1316
msgid "Passthrough" msgid "Passthrough"
msgstr "Passthrough" msgstr "Passthrough"
#: client/scenes/lobby.cpp:1331 #: client/scenes/lobby.cpp:1328
msgid "Default environment" msgid "Default environment"
msgstr "Ambiente default" msgstr "Ambiente default"
@@ -96,14 +96,15 @@ msgctxt "openxr_post_processing"
msgid "Disabled" msgid "Disabled"
msgstr "Desabilitado" msgstr "Desabilitado"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258 #: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254
#: client/scenes/stream_gui.cpp:1009 #: client/scenes/stream_gui.cpp:1026
msgid "Disconnect" msgid "Disconnect"
msgstr "Desconectar" msgstr "Desconectar"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753 #: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264
#: client/scenes/lobby_gui_customize.cpp:753
#: client/scenes/lobby_gui_customize.cpp:844 #: client/scenes/lobby_gui_customize.cpp:844
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1005 #: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022
msgid "Close" msgid "Close"
msgstr "Fechar" msgstr "Fechar"
@@ -124,32 +125,41 @@ msgstr "PIN"
msgid "Input the PIN displayed on the dashboard" msgid "Input the PIN displayed on the dashboard"
msgstr "Entre o PIN mostrado no painel" msgstr "Entre o PIN mostrado no painel"
#: client/scenes/lobby_gui.cpp:282
msgid "Disconnected"
msgstr "Desconectado"
#: client/scenes/lobby_gui.cpp:284 #: client/scenes/lobby_gui.cpp:284
#, c++-format
msgid "Disconnected from {}"
msgstr "Desconectado de {}"
#: client/scenes/lobby_gui.cpp:316
msgid "Name" msgid "Name"
msgstr "Nome" msgstr "Nome"
#: client/scenes/lobby_gui.cpp:295 #: client/scenes/lobby_gui.cpp:327
msgid "Address" msgid "Address"
msgstr "Endereço" msgstr "Endereço"
#: client/scenes/lobby_gui.cpp:304 #: client/scenes/lobby_gui.cpp:336
msgid "Port" msgid "Port"
msgstr "Porta" msgstr "Porta"
#: client/scenes/lobby_gui.cpp:312 #: client/scenes/lobby_gui.cpp:344
msgid "TCP only" msgid "TCP only"
msgstr "TCP somente" msgstr "TCP somente"
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655 #: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:962 #: client/scenes/stream_gui.cpp:978
msgid "Cancel" msgid "Cancel"
msgstr "Cancelar" msgstr "Cancelar"
#: client/scenes/lobby_gui.cpp:333 #: client/scenes/lobby_gui.cpp:365
msgid "Save" msgid "Save"
msgstr "Salvar" msgstr "Salvar"
#: client/scenes/lobby_gui.cpp:386 #: client/scenes/lobby_gui.cpp:418
msgid "" msgid ""
"Start a WiVRn server on your\n" "Start a WiVRn server on your\n"
"local network" "local network"
@@ -157,46 +167,46 @@ msgstr ""
"Inicie um servidor WiVRn em sua\n" "Inicie um servidor WiVRn em sua\n"
"rede local" "rede local"
#: client/scenes/lobby_gui.cpp:418 #: client/scenes/lobby_gui.cpp:450
msgid "Autoconnect" msgid "Autoconnect"
msgstr "Autoconectar" msgstr "Autoconectar"
#: client/scenes/lobby_gui.cpp:444 #: client/scenes/lobby_gui.cpp:476
msgid "Connect" msgid "Connect"
msgstr "Conectar" msgstr "Conectar"
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186 #: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186
msgid "Incompatible server version" msgid "Incompatible server version"
msgstr "Versão de servidor incompatível" msgstr "Versão de servidor incompatível"
#: client/scenes/lobby_gui.cpp:456 #: client/scenes/lobby_gui.cpp:488
msgid "Server not available" msgid "Server not available"
msgstr "Servidor não disponível" msgstr "Servidor não disponível"
#: client/scenes/lobby_gui.cpp:538 #: client/scenes/lobby_gui.cpp:581
msgctxt "language selection, replace with the name of the language" msgctxt "language selection, replace with the name of the language"
msgid "English" msgid "English"
msgstr "Português (Brasil)" msgstr "Português (Brasil)"
#: client/scenes/lobby_gui.cpp:552 #: client/scenes/lobby_gui.cpp:595
msgid "Language" msgid "Language"
msgstr "Linguagem" msgstr "Linguagem"
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554 #: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597
msgid "System language" msgid "System language"
msgstr "Linguagem do Sistema" msgstr "Linguagem do Sistema"
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:411 #: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412
msgid "Refresh rate" msgid "Refresh rate"
msgstr "Taxa de atualização" msgstr "Taxa de atualização"
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582 #: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625
#: client/scenes/stream_gui.cpp:411 client/scenes/stream_gui.cpp:413 #: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414
msgctxt "automatic refresh rate" msgctxt "automatic refresh rate"
msgid "Automatic" msgid "Automatic"
msgstr "Automático" msgstr "Automático"
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:421 #: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421
msgid "" msgid ""
"Select refresh rate based on measured application performance.\n" "Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens." "May cause flicker when a change happens."
@@ -204,38 +214,38 @@ msgstr ""
"Seleciona a taxa de atualização baseada no desempenho medido do aplicativo.\n" "Seleciona a taxa de atualização baseada no desempenho medido do aplicativo.\n"
"Pode causar oscilações quando uma alteração ocorrer." "Pode causar oscilações quando uma alteração ocorrer."
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:439 #: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439
msgid "Minimum refresh rate" msgid "Minimum refresh rate"
msgstr "Taxa de atualização mínima" msgstr "Taxa de atualização mínima"
#: client/scenes/lobby_gui.cpp:632 #: client/scenes/lobby_gui.cpp:675
msgid "Foveation level" msgid "Foveation level"
msgstr "Nível de foveação" msgstr "Nível de foveação"
#: client/scenes/lobby_gui.cpp:655 #: client/scenes/lobby_gui.cpp:698
msgid "Render resolution" msgid "Render resolution"
msgstr "Resolução de renderização" msgstr "Resolução de renderização"
#: client/scenes/lobby_gui.cpp:659 #: client/scenes/lobby_gui.cpp:702
#, c-format, c++-format #, c-format, c++-format
msgid "{}%% - {}x{} per eye" msgid "{}%% - {}x{} per eye"
msgstr "{}%% - {}x{} por olho" msgstr "{}%% - {}x{} por olho"
#: client/scenes/lobby_gui.cpp:670 #: client/scenes/lobby_gui.cpp:713
#, c++-format #, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset" msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "Resolução maior que {}x{} pode não ser suportada pelo headset" msgstr "Resolução maior que {}x{} pode não ser suportada pelo headset"
#: client/scenes/lobby_gui.cpp:680 #: client/scenes/lobby_gui.cpp:723
msgid "Foveated encoding" msgid "Foveated encoding"
msgstr "Codificação foveada" msgstr "Codificação foveada"
#: client/scenes/lobby_gui.cpp:684 #: client/scenes/lobby_gui.cpp:727
#, c-format, c++-format #, c-format, c++-format
msgid "{}%%" msgid "{}%%"
msgstr "{}%%" msgstr "{}%%"
#: client/scenes/lobby_gui.cpp:697 #: client/scenes/lobby_gui.cpp:740
msgid "" msgid ""
"Higher values focus image quality where you look at,\n" "Higher values focus image quality where you look at,\n"
"improving latency, power efficiency and quality." "improving latency, power efficiency and quality."
@@ -243,7 +253,7 @@ msgstr ""
"Valores mais altos focalizam a qualidade de imagem a onde você olha,\n" "Valores mais altos focalizam a qualidade de imagem a onde você olha,\n"
"melhorando latência, eficiência energética e qualidade." "melhorando latência, eficiência energética e qualidade."
#: client/scenes/lobby_gui.cpp:700 #: client/scenes/lobby_gui.cpp:743
msgid "" msgid ""
"Higher values focus image quality at the center,\n" "Higher values focus image quality at the center,\n"
"improving latency, power efficiency and quality." "improving latency, power efficiency and quality."
@@ -251,88 +261,88 @@ msgstr ""
"Valores mais altos focalizam qualidade de image, no centro,\n" "Valores mais altos focalizam qualidade de image, no centro,\n"
"melhorando latência, eficiência energética e qualidade." "melhorando latência, eficiência energética e qualidade."
#: client/scenes/lobby_gui.cpp:709 #: client/scenes/lobby_gui.cpp:752
msgctxt "Codec" msgctxt "Codec"
msgid "Automatic" msgid "Automatic"
msgstr "Automático" msgstr "Automático"
#: client/scenes/lobby_gui.cpp:713 #: client/scenes/lobby_gui.cpp:756
msgctxt "Codec" msgctxt "Codec"
msgid "H.264" msgid "H.264"
msgstr "H.264" msgstr "H.264"
#: client/scenes/lobby_gui.cpp:715 #: client/scenes/lobby_gui.cpp:758
msgctxt "Codec" msgctxt "Codec"
msgid "H.265" msgid "H.265"
msgstr "H.265" msgstr "H.265"
#: client/scenes/lobby_gui.cpp:717 #: client/scenes/lobby_gui.cpp:760
msgctxt "Codec" msgctxt "Codec"
msgid "AV1" msgid "AV1"
msgstr "AV1" msgstr "AV1"
#: client/scenes/lobby_gui.cpp:725 #: client/scenes/lobby_gui.cpp:768
msgid "Codec" msgid "Codec"
msgstr "Codec" msgstr "Codec"
#: client/scenes/lobby_gui.cpp:753 #: client/scenes/lobby_gui.cpp:796
msgid "10-bit" msgid "10-bit"
msgstr "10-bit" msgstr "10-bit"
#: client/scenes/lobby_gui.cpp:768 #: client/scenes/lobby_gui.cpp:812
msgid "Bitrate" msgid "Bitrate"
msgstr "Bitrate" msgstr "Bitrate"
#: client/scenes/lobby_gui.cpp:772 #: client/scenes/lobby_gui.cpp:816
#, c++-format #, c++-format
msgid "{}Mbit/s" msgid "{}Mbit/s"
msgstr "{}Mbit/s" msgstr "{}Mbit/s"
#: client/scenes/lobby_gui.cpp:783 #: client/scenes/lobby_gui.cpp:827
msgid "High power mode" msgid "High power mode"
msgstr "Modo de alta potência" msgstr "Modo de alta potência"
#: client/scenes/lobby_gui.cpp:786 #: client/scenes/lobby_gui.cpp:830
msgid "Increase power usage to allow higher resolution and refresh rate" msgid "Increase power usage to allow higher resolution and refresh rate"
msgstr "" msgstr ""
"Aumenta a potência para permitir resolução e taxa de atualização mais altas" "Aumenta a potência para permitir resolução e taxa de atualização mais altas"
#: client/scenes/lobby_gui.cpp:792 #: client/scenes/lobby_gui.cpp:836
msgid "Enable microphone" msgid "Enable microphone"
msgstr "Ativar microfone" msgstr "Ativar microfone"
#: client/scenes/lobby_gui.cpp:801 #: client/scenes/lobby_gui.cpp:845
msgid "Unprocessed Microphone Audio" msgid "Unprocessed Microphone Audio"
msgstr "Áudio Não-processado de Microfone" msgstr "Áudio Não-processado de Microfone"
#: client/scenes/lobby_gui.cpp:807 #: client/scenes/lobby_gui.cpp:851
msgid "Force disable audio filters, such as noise cancellation" msgid "Force disable audio filters, such as noise cancellation"
msgstr "" msgstr ""
"Força a desativação de filtros de áudio tais como cancelamento de ruído" "Força a desativação de filtros de áudio tais como cancelamento de ruído"
#: client/scenes/lobby_gui.cpp:814 #: client/scenes/lobby_gui.cpp:858
msgid "Enable hand tracking" msgid "Enable hand tracking"
msgstr "Ativar rastreamento de mãos" msgstr "Ativar rastreamento de mãos"
#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831 #: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856 #: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900
#: client/scenes/lobby_gui_customize.cpp:640 #: client/scenes/lobby_gui_customize.cpp:640
msgid "This feature is not supported by your headset" msgid "This feature is not supported by your headset"
msgstr "Este recurso não é suportado pelo seu headset" msgstr "Este recurso não é suportado pelo seu headset"
#: client/scenes/lobby_gui.cpp:825 #: client/scenes/lobby_gui.cpp:869
msgid "Enable eye tracking" msgid "Enable eye tracking"
msgstr "Ativar rastreamento ocular" msgstr "Ativar rastreamento ocular"
#: client/scenes/lobby_gui.cpp:836 #: client/scenes/lobby_gui.cpp:880
msgid "Enable face tracking" msgid "Enable face tracking"
msgstr "Ativar rastreamento facial" msgstr "Ativar rastreamento facial"
#: client/scenes/lobby_gui.cpp:848 #: client/scenes/lobby_gui.cpp:892
msgid "Enable body tracking" msgid "Enable body tracking"
msgstr "Ativar rastreamento corporal" msgstr "Ativar rastreamento corporal"
#: client/scenes/lobby_gui.cpp:861 #: client/scenes/lobby_gui.cpp:905
msgid "" msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement " "Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n" "tracking settings,\n"
@@ -344,11 +354,11 @@ msgstr ""
"estimados\n" "estimados\n"
"com base nas posições do controle e do headset." "com base nas posições do controle e do headset."
#: client/scenes/lobby_gui.cpp:871 #: client/scenes/lobby_gui.cpp:915
msgid "Enable lower body tracking" msgid "Enable lower body tracking"
msgstr "Ativar rastreamento corporal inferior" msgstr "Ativar rastreamento corporal inferior"
#: client/scenes/lobby_gui.cpp:877 #: client/scenes/lobby_gui.cpp:921
msgid "" msgid ""
"Estimate lower body joint positions using Generative Legs\n" "Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement " "Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -359,11 +369,11 @@ msgstr ""
"Requer que 'Rastreamento corporal e das mãos' esteja ativado nas\n" "Requer que 'Rastreamento corporal e das mãos' esteja ativado nas\n"
"configurações de Rastreamento de Movimento do Quest" "configurações de Rastreamento de Movimento do Quest"
#: client/scenes/lobby_gui.cpp:880 #: client/scenes/lobby_gui.cpp:924
msgid "Enable hip tracking" msgid "Enable hip tracking"
msgstr "Ativar rastreamento de quadril" msgstr "Ativar rastreamento de quadril"
#: client/scenes/lobby_gui.cpp:886 #: client/scenes/lobby_gui.cpp:930
msgid "" msgid ""
"Only takes affect with lower body tracking enabled\n" "Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking" "May be desired when using another source of hip tracking"
@@ -371,11 +381,11 @@ msgstr ""
"Só tem efeito com o rastreamento corporal inferior ativado\n" "Só tem efeito com o rastreamento corporal inferior ativado\n"
"Pode ser desejado ao usar outra fonte de rastreamento de quadril" "Pode ser desejado ao usar outra fonte de rastreamento de quadril"
#: client/scenes/lobby_gui.cpp:895 #: client/scenes/lobby_gui.cpp:939
msgid "Enable in-stream window" msgid "Enable in-stream window"
msgstr "Habilitar janela na stream" msgstr "Habilitar janela na stream"
#: client/scenes/lobby_gui.cpp:898 #: client/scenes/lobby_gui.cpp:942
msgid "" msgid ""
"Enables the configuration window to be shown while the game is streaming.\n" "Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks." "If enabled, the window is activated by pressing both thumbsticks."
@@ -384,23 +394,23 @@ msgstr ""
"streamado.\n" "streamado.\n"
"Se habilitado, a janela é ativada clicando os dois joysticks simultaneamente." "Se habilitado, a janela é ativada clicando os dois joysticks simultaneamente."
#: client/scenes/lobby_gui.cpp:902 #: client/scenes/lobby_gui.cpp:946
msgid "Extended configuration values" msgid "Extended configuration values"
msgstr "Valores de configuração estendidos" msgstr "Valores de configuração estendidos"
#: client/scenes/lobby_gui.cpp:905 #: client/scenes/lobby_gui.cpp:949
msgid "Allows unsafe configuration values, use at your own risk." msgid "Allows unsafe configuration values, use at your own risk."
msgstr "Permite valores de configuração inseguros, use por sua conta e risco." msgstr "Permite valores de configuração inseguros, use por sua conta e risco."
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:473 #: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473
msgid "OpenXR post-processing" msgid "OpenXR post-processing"
msgstr "Pós-processamento OpenXR" msgstr "Pós-processamento OpenXR"
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:477 #: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477
msgid "Supersampling" msgid "Supersampling"
msgstr "Supersampling" msgstr "Supersampling"
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:498 #: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498
msgid "" msgid ""
"Reduce flicker for high contrast edges.\n" "Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display" "Useful when the input resolution is high compared to the headset display"
@@ -408,11 +418,11 @@ msgstr ""
"Reduz flicker para arestas de alto contraste.\n" "Reduz flicker para arestas de alto contraste.\n"
"Útil quando a resolução de entrada é alta comparada ao display do headset" "Útil quando a resolução de entrada é alta comparada ao display do headset"
#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:503 #: client/scenes/lobby_gui.cpp:992 client/scenes/stream_gui.cpp:503
msgid "Sharpening" msgid "Sharpening"
msgstr "Aumento de nitidez" msgstr "Aumento de nitidez"
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:524 #: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524
msgid "" msgid ""
"Improve clarity of high contrast edges and counteract blur.\n" "Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display" "Useful when the input resolution is low compared to the headset display"
@@ -420,129 +430,129 @@ msgstr ""
"Melhora a clareza de arestas de alto contraste e minimiza o desfoque.\n" "Melhora a clareza de arestas de alto contraste e minimiza o desfoque.\n"
"Útil quando a resolução de entrada é baixa comparada ao display do headset" "Útil quando a resolução de entrada é baixa comparada ao display do headset"
#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160 #: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:370 #: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371
msgid "CPU time" msgid "CPU time"
msgstr "Tempo de CPU" msgstr "Tempo de CPU"
#: client/scenes/lobby_gui.cpp:1156 #: client/scenes/lobby_gui.cpp:1200
msgid "CPU time [ms]" msgid "CPU time [ms]"
msgstr "Tempo de CPU [ms]" msgstr "Tempo de CPU [ms]"
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174 #: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:371 #: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372
msgid "GPU time" msgid "GPU time"
msgstr "Tempo de GPU" msgstr "Tempo de GPU"
#: client/scenes/lobby_gui.cpp:1170 #: client/scenes/lobby_gui.cpp:1214
msgid "GPU time [ms]" msgid "GPU time [ms]"
msgstr "Tempo de GPU [ms]" msgstr "Tempo de GPU [ms]"
#: client/scenes/lobby_gui.cpp:1234 #: client/scenes/lobby_gui.cpp:1278
msgid "Enable the microphone?" msgid "Enable the microphone?"
msgstr "Habilitar o microfone?" msgstr "Habilitar o microfone?"
#: client/scenes/lobby_gui.cpp:1239 #: client/scenes/lobby_gui.cpp:1283
msgid "Enable eye tracking?" msgid "Enable eye tracking?"
msgstr "Habilitar o rastreamento ocular?" msgstr "Habilitar o rastreamento ocular?"
#: client/scenes/lobby_gui.cpp:1244 #: client/scenes/lobby_gui.cpp:1288
msgid "Enable face tracking?" msgid "Enable face tracking?"
msgstr "Habilitar o rastreamento facial?" msgstr "Habilitar o rastreamento facial?"
#: client/scenes/lobby_gui.cpp:1249 #: client/scenes/lobby_gui.cpp:1293
msgid "Enable body tracking?" msgid "Enable body tracking?"
msgstr "Habilitar o rastreamento corporal?" msgstr "Habilitar o rastreamento corporal?"
#: client/scenes/lobby_gui.cpp:1257 #: client/scenes/lobby_gui.cpp:1301
msgid "Welcome to WiVRn" msgid "Welcome to WiVRn"
msgstr "Bem vindo(a) ao WiVRn" msgstr "Bem vindo(a) ao WiVRn"
#: client/scenes/lobby_gui.cpp:1285 #: client/scenes/lobby_gui.cpp:1329
msgid "Yes" msgid "Yes"
msgstr "Sim" msgstr "Sim"
#: client/scenes/lobby_gui.cpp:1292 #: client/scenes/lobby_gui.cpp:1336
msgid "No" msgid "No"
msgstr "Não" msgstr "Não"
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957 #: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001
msgid "Licenses" msgid "Licenses"
msgstr "Licenças" msgstr "Licenças"
#: client/scenes/lobby_gui.cpp:1587 #: client/scenes/lobby_gui.cpp:1631
msgid "Microphone is enabled" msgid "Microphone is enabled"
msgstr "O microfone está ativado" msgstr "O microfone está ativado"
#: client/scenes/lobby_gui.cpp:1588 #: client/scenes/lobby_gui.cpp:1632
msgid "Microphone is disabled" msgid "Microphone is disabled"
msgstr "O microfone está desativado" msgstr "O microfone está desativado"
#: client/scenes/lobby_gui.cpp:1597 #: client/scenes/lobby_gui.cpp:1641
msgid "Hand tracking is enabled" msgid "Hand tracking is enabled"
msgstr "O rastreamento de mãos está ativado" msgstr "O rastreamento de mãos está ativado"
#: client/scenes/lobby_gui.cpp:1598 #: client/scenes/lobby_gui.cpp:1642
msgid "Hand tracking is disabled" msgid "Hand tracking is disabled"
msgstr "O rastreamento de mãos está desativado" msgstr "O rastreamento de mãos está desativado"
#: client/scenes/lobby_gui.cpp:1607 #: client/scenes/lobby_gui.cpp:1651
msgid "Eye tracking is enabled" msgid "Eye tracking is enabled"
msgstr "O rastreamento ocular está ativado" msgstr "O rastreamento ocular está ativado"
#: client/scenes/lobby_gui.cpp:1608 #: client/scenes/lobby_gui.cpp:1652
msgid "Eye tracking is disabled" msgid "Eye tracking is disabled"
msgstr "O rastreamento ocular está desativado" msgstr "O rastreamento ocular está desativado"
#: client/scenes/lobby_gui.cpp:1618 #: client/scenes/lobby_gui.cpp:1662
msgid "Face tracking is enabled" msgid "Face tracking is enabled"
msgstr "O rastreamento facial está ativado" msgstr "O rastreamento facial está ativado"
#: client/scenes/lobby_gui.cpp:1619 #: client/scenes/lobby_gui.cpp:1663
msgid "Face tracking is disabled" msgid "Face tracking is disabled"
msgstr "O rastreamento facial está desativado" msgstr "O rastreamento facial está desativado"
#: client/scenes/lobby_gui.cpp:1633 #: client/scenes/lobby_gui.cpp:1677
msgid "Body tracking is enabled" msgid "Body tracking is enabled"
msgstr "O rastreamento corporal está ativado" msgstr "O rastreamento corporal está ativado"
#: client/scenes/lobby_gui.cpp:1634 #: client/scenes/lobby_gui.cpp:1678
msgid "Body tracking is disabled" msgid "Body tracking is disabled"
msgstr "O rastreamento corporal está desativado" msgstr "O rastreamento corporal está desativado"
#: client/scenes/lobby_gui.cpp:1650 #: client/scenes/lobby_gui.cpp:1694
msgid "Add server" msgid "Add server"
msgstr "Adicionar servidor" msgstr "Adicionar servidor"
#: client/scenes/lobby_gui.cpp:1936 #: client/scenes/lobby_gui.cpp:1980
msgid "Server list" msgid "Server list"
msgstr "Lista de servidores" msgstr "Lista de servidores"
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:990 #: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007
msgid "Settings" msgid "Settings"
msgstr "Ajustes" msgstr "Ajustes"
#: client/scenes/lobby_gui.cpp:1942 #: client/scenes/lobby_gui.cpp:1986
msgid "Post-processing" msgid "Post-processing"
msgstr "Pós-processamento" msgstr "Pós-processamento"
#: client/scenes/lobby_gui.cpp:1945 #: client/scenes/lobby_gui.cpp:1989
msgid "Customize" msgid "Customize"
msgstr "Personalizar" msgstr "Personalizar"
#: client/scenes/lobby_gui.cpp:1949 #: client/scenes/lobby_gui.cpp:1993
msgid "Debug" msgid "Debug"
msgstr "Depurar" msgstr "Depurar"
#: client/scenes/lobby_gui.cpp:1954 #: client/scenes/lobby_gui.cpp:1998
msgid "About" msgid "About"
msgstr "Sobre" msgstr "Sobre"
#: client/scenes/lobby_gui.cpp:1960 #: client/scenes/lobby_gui.cpp:2004
msgid "Exit" msgid "Exit"
msgstr "Sair" msgstr "Sair"
#: client/scenes/lobby_gui.cpp:1977 #: client/scenes/lobby_gui.cpp:2021
msgid "" msgid ""
"Press the grip button or put your palm up\n" "Press the grip button or put your palm up\n"
"to move the main window" "to move the main window"
@@ -550,7 +560,7 @@ msgstr ""
"Pressione o botão de aderência ou coloque a palma\n" "Pressione o botão de aderência ou coloque a palma\n"
"da mão para cima para mover a janela principal" "da mão para cima para mover a janela principal"
#: client/scenes/lobby_gui.cpp:1979 #: client/scenes/lobby_gui.cpp:2023
msgid "Press the grip button to move the main window" msgid "Press the grip button to move the main window"
msgstr "Pressione o botão de aderência para mover a janela principal" msgstr "Pressione o botão de aderência para mover a janela principal"
@@ -629,73 +639,73 @@ msgstr "Baixar mais ambientes"
msgid "Open local glTF model" msgid "Open local glTF model"
msgstr "Abrir modelo local glTF" msgstr "Abrir modelo local glTF"
#: client/scenes/stream_gui.cpp:174 #: client/scenes/stream_gui.cpp:175
msgid "Defoveate" msgid "Defoveate"
msgstr "Defoveação" msgstr "Defoveação"
#: client/scenes/stream_gui.cpp:176 #: client/scenes/stream_gui.cpp:177
msgid "Network" msgid "Network"
msgstr "Rede" msgstr "Rede"
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:368 #: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
msgid "Download" msgid "Download"
msgstr "Download" msgstr "Download"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369 #: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
msgid "Upload" msgid "Upload"
msgstr "Upload" msgstr "Upload"
#: client/scenes/stream_gui.cpp:246 #: client/scenes/stream_gui.cpp:247
#, c++-format #, c++-format
msgid "Decoder {}" msgid "Decoder {}"
msgstr "Decodificador {}" msgstr "Decodificador {}"
#: client/scenes/stream_gui.cpp:258 #: client/scenes/stream_gui.cpp:259
msgid "Timings [ms]" msgid "Timings [ms]"
msgstr "Tempos [ms]" msgstr "Tempos [ms]"
#: client/scenes/stream_gui.cpp:318 #: client/scenes/stream_gui.cpp:319
msgid "Encode" msgid "Encode"
msgstr "Codificação" msgstr "Codificação"
#: client/scenes/stream_gui.cpp:319 #: client/scenes/stream_gui.cpp:320
msgid "Send" msgid "Send"
msgstr "Envio" msgstr "Envio"
#: client/scenes/stream_gui.cpp:320 #: client/scenes/stream_gui.cpp:321
msgid "Receive" msgid "Receive"
msgstr "Recepção" msgstr "Recepção"
#: client/scenes/stream_gui.cpp:321 #: client/scenes/stream_gui.cpp:322
msgid "Decode" msgid "Decode"
msgstr "Decodificação" msgstr "Decodificação"
#: client/scenes/stream_gui.cpp:322 #: client/scenes/stream_gui.cpp:323
msgid "Blitted" msgid "Blitted"
msgstr "Blitagem" msgstr "Blitagem"
#: client/scenes/stream_gui.cpp:323 #: client/scenes/stream_gui.cpp:324
msgid "Displayed" msgid "Displayed"
msgstr "Exibição" msgstr "Exibição"
#: client/scenes/stream_gui.cpp:324 #: client/scenes/stream_gui.cpp:325
msgid "Predicted" msgid "Predicted"
msgstr "Previsão" msgstr "Previsão"
#: client/scenes/stream_gui.cpp:343 #: client/scenes/stream_gui.cpp:344
#, c++-format #, c++-format
msgid "Estimated motion to photons latency: {}ms" msgid "Estimated motion to photons latency: {}ms"
msgstr "Movimento estimado para a latência de fótons: {}ms" msgstr "Movimento estimado para a latência de fótons: {}ms"
#: client/scenes/stream_gui.cpp:348 #: client/scenes/stream_gui.cpp:349
msgid "Press the grip button to move the window" msgid "Press the grip button to move the window"
msgstr "Pressione o botão de aderência para mover a janela" msgstr "Pressione o botão de aderência para mover a janela"
#: client/scenes/stream_gui.cpp:350 client/scenes/stream_gui.cpp:918 #: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738
msgid "Press both thumbsticks to display the WiVRn window" msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Pressione ambos os thumbsticks para mostrar a janela do WiVRn" msgstr "Pressione ambos os thumbsticks para mostrar a janela do WiVRn"
#: client/scenes/stream_gui.cpp:372 #: client/scenes/stream_gui.cpp:373
msgid "Motion to photon latency" msgid "Motion to photon latency"
msgstr "Latência (de movimento para fótons)" msgstr "Latência (de movimento para fótons)"
@@ -707,29 +717,29 @@ msgstr "Bitrate:"
msgid "Click to adjust bitrate" msgid "Click to adjust bitrate"
msgstr "Clique para ajustar a bitrate" msgstr "Clique para ajustar a bitrate"
#: client/scenes/stream_gui.cpp:531 #: client/scenes/stream_gui.cpp:532
msgid "Foveation center override" msgid "Foveation center override"
msgstr "Ajuste do centro de foveação" msgstr "Ajuste do centro de foveação"
#: client/scenes/stream_gui.cpp:534 #: client/scenes/stream_gui.cpp:535
msgid "Enable" msgid "Enable"
msgstr "Habilitar" msgstr "Habilitar"
#: client/scenes/stream_gui.cpp:542 client/scenes/stream_gui.cpp:614 #: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614
#, c++-format #, c++-format
msgid "Height {:.1f} deg" msgid "Height {:.1f} deg"
msgstr "Altura {:.1f} graus" msgstr "Altura {:.1f} graus"
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:615 #: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615
#, c++-format #, c++-format
msgid "Distance {:.2f} m" msgid "Distance {:.2f} m"
msgstr "Distância {:.2f} m" msgstr "Distância {:.2f} m"
#: client/scenes/stream_gui.cpp:544 #: client/scenes/stream_gui.cpp:545
msgid "Default" msgid "Default"
msgstr "Padrão" msgstr "Padrão"
#: client/scenes/stream_gui.cpp:555 #: client/scenes/stream_gui.cpp:556
msgid "Change" msgid "Change"
msgstr "Modificar" msgstr "Modificar"
@@ -766,23 +776,23 @@ msgstr "Overlays"
msgid "Request to quit, may be ignored by the application" msgid "Request to quit, may be ignored by the application"
msgstr "Requisição para sair, pode ser ignorada pelo aplicativo" msgstr "Requisição para sair, pode ser ignorada pelo aplicativo"
#: client/scenes/stream_gui.cpp:977 #: client/scenes/stream_gui.cpp:993
msgid "Applications" msgid "Applications"
msgstr "Aplicativos" msgstr "Aplicativos"
#: client/scenes/stream_gui.cpp:980 #: client/scenes/stream_gui.cpp:996
msgid "Start" msgid "Start"
msgstr "Iniciar" msgstr "Iniciar"
#: client/scenes/stream_gui.cpp:993 #: client/scenes/stream_gui.cpp:1010
msgid "Stats" msgid "Stats"
msgstr "Estatísticas" msgstr "Estatísticas"
#: client/scenes/stream_gui.cpp:999 #: client/scenes/stream_gui.cpp:1016
msgid "Statistics overlay" msgid "Statistics overlay"
msgstr "Overlay de estatísticas" msgstr "Overlay de estatísticas"
#: client/scenes/stream_gui.cpp:1002 #: client/scenes/stream_gui.cpp:1019
msgid "Compact view" msgid "Compact view"
msgstr "Visualização compacta" msgstr "Visualização compacta"
+44 -34
View File
@@ -8,8 +8,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: WiVRn-dashboard\n" "Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-02-02 21:05+0800\n" "POT-Creation-Date: 2026-02-18 16:24+0800\n"
"PO-Revision-Date: 2026-02-08 12:43+0800\n" "PO-Revision-Date: 2026-02-25 21:21+0800\n"
"Last-Translator: BERADQ <adqber123@outlook.com>\n" "Last-Translator: BERADQ <adqber123@outlook.com>\n"
"Language-Team: Chinese (China)\n" "Language-Team: Chinese (China)\n"
"Language: zh_CN\n" "Language: zh_CN\n"
@@ -119,8 +119,8 @@ msgstr "正在检查最新版本..."
msgid "No APK is available for this version" msgid "No APK is available for this version"
msgstr "此版本无预编译 APK" msgstr "此版本无预编译 APK"
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:368 #: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:376
#: dashboard/qml/Main.qml:426 dashboard/qml/WizardPage.qml:211 #: dashboard/qml/Main.qml:434 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/WizardPage.qml:337 #: dashboard/qml/WizardPage.qml:337
#, kde-format #, kde-format
msgid "ADB is not installed" msgid "ADB is not installed"
@@ -161,7 +161,7 @@ msgstr "重新安装 WiVRn"
msgid "Install WiVRn" msgid "Install WiVRn"
msgstr "安装 WiVRn" msgstr "安装 WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:431 #: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:439
#, kde-format #, kde-format
msgid "Headsets" msgid "Headsets"
msgstr "头显" msgstr "头显"
@@ -282,7 +282,7 @@ msgid "Avahi daemon is not started"
msgstr "Avahi 守护进程未启用" msgstr "Avahi 守护进程未启用"
#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171 #: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171
#: dashboard/qml/Main.qml:223 #: dashboard/qml/Main.qml:231
#, kde-format #, kde-format
msgid "Fix it" msgid "Fix it"
msgstr "修复" msgstr "修复"
@@ -305,6 +305,16 @@ msgstr "更多信息"
#: dashboard/qml/Main.qml:193 #: dashboard/qml/Main.qml:193
#, kde-format #, kde-format
msgid "Vulkan drivers cannot be found, you may need to run \"flatpak update\""
msgstr "找不到 Vulkan 设备,您或许需要执行 \"flatpak update\""
#: dashboard/qml/Main.qml:193
#, kde-format
msgid "Vulkan drivers cannot be found"
msgstr "无法找到 Vulkan 设备"
#: dashboard/qml/Main.qml:201
#, kde-format
msgid "" msgid ""
"Use the Mesa (radv) driver for AMD GPUs\n" "Use the Mesa (radv) driver for AMD GPUs\n"
"Hardware encoding with vaapi does not work with AMDVLK and AMDGPU-PRO" "Hardware encoding with vaapi does not work with AMDVLK and AMDGPU-PRO"
@@ -312,7 +322,7 @@ msgstr ""
"AMD 显卡请使用 Mesa (radv) 驱动程序\n" "AMD 显卡请使用 Mesa (radv) 驱动程序\n"
"使用 vaapi 的硬件编码不适用于 AMDVLK 和 AMDGPU-PRO" "使用 vaapi 的硬件编码不适用于 AMDVLK 和 AMDGPU-PRO"
#: dashboard/qml/Main.qml:201 #: dashboard/qml/Main.qml:209
#, kde-format #, kde-format
msgid "" msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n" "No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
@@ -321,142 +331,142 @@ msgstr ""
"系统未检测到 OpenVR 兼容层,Steam 平台上的 VR 游戏无法正常加载。\n" "系统未检测到 OpenVR 兼容层,Steam 平台上的 VR 游戏无法正常加载。\n"
"请安装 xrizer 或 OpenComposite" "请安装 xrizer 或 OpenComposite"
#: dashboard/qml/Main.qml:209 #: dashboard/qml/Main.qml:217
#, kde-format #, kde-format
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn." msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
msgstr "Steam 是以 snap 方式安装的。Snap 与 WiVRn 不兼容。" msgstr "Steam 是以 snap 方式安装的。Snap 与 WiVRn 不兼容。"
#: dashboard/qml/Main.qml:217 #: dashboard/qml/Main.qml:225
#, kde-format #, kde-format
msgid "" msgid ""
"Steam is installed as a flatpak but does not have sufficient permissions." "Steam is installed as a flatpak but does not have sufficient permissions."
msgstr "Steam 是以 flatpak 方式安装的,但权限不足。" msgstr "Steam 是以 flatpak 方式安装的,但权限不足。"
#: dashboard/qml/Main.qml:232 #: dashboard/qml/Main.qml:240
#, kde-format #, kde-format
msgid "Restart the server for configuration changes to take effect" msgid "Restart the server for configuration changes to take effect"
msgstr "重新启动服务器以使配置更改生效。" msgstr "重新启动服务器以使配置更改生效。"
#: dashboard/qml/Main.qml:238 #: dashboard/qml/Main.qml:246
#, kde-format #, kde-format
msgctxt "restart the server" msgctxt "restart the server"
msgid "Restart now" msgid "Restart now"
msgstr "立即重新启动" msgstr "立即重新启动"
#: dashboard/qml/Main.qml:263 #: dashboard/qml/Main.qml:271
#, kde-format #, kde-format
msgid "Server failed to start" msgid "Server failed to start"
msgstr "服务器启动失败" msgstr "服务器启动失败"
#: dashboard/qml/Main.qml:269 dashboard/qml/TroubleshootPage.qml:89 #: dashboard/qml/Main.qml:277 dashboard/qml/TroubleshootPage.qml:89
#, kde-format #, kde-format
msgid "Open server logs" msgid "Open server logs"
msgstr "开启服务器日志" msgstr "开启服务器日志"
#: dashboard/qml/Main.qml:295 #: dashboard/qml/Main.qml:303
#, kde-format #, kde-format
msgid "Server status" msgid "Server status"
msgstr "服务器状态" msgstr "服务器状态"
#: dashboard/qml/Main.qml:301 #: dashboard/qml/Main.qml:309
#, kde-format #, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox" msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running" msgid "Running"
msgstr "运行" msgstr "运行"
#: dashboard/qml/Main.qml:314 #: dashboard/qml/Main.qml:322
#, kde-format #, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox" msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing" msgid "Pairing"
msgstr "配对" msgstr "配对"
#: dashboard/qml/Main.qml:334 #: dashboard/qml/Main.qml:342
#, kde-format #, kde-format
msgid "Headset status" msgid "Headset status"
msgstr "头显状态" msgstr "头显状态"
#: dashboard/qml/Main.qml:341 #: dashboard/qml/Main.qml:349
#, kde-format #, kde-format
msgctxt "label for headset name/status under server running switch" msgctxt "label for headset name/status under server running switch"
msgid "Headset" msgid "Headset"
msgstr "头显" msgstr "头显"
#: dashboard/qml/Main.qml:344 #: dashboard/qml/Main.qml:352
#, kde-format #, kde-format
msgid "Not connected" msgid "Not connected"
msgstr "未连接" msgstr "未连接"
#: dashboard/qml/Main.qml:348 #: dashboard/qml/Main.qml:356
#, kde-format #, kde-format
msgid "Disconnect" msgid "Disconnect"
msgstr "断开连接" msgstr "断开连接"
#: dashboard/qml/Main.qml:357 dashboard/qml/Main.qml:365 #: dashboard/qml/Main.qml:365 dashboard/qml/Main.qml:373
#: dashboard/qml/Main.qml:372 #: dashboard/qml/Main.qml:380
#, kde-format #, kde-format
msgctxt "label for USB status or connect button" msgctxt "label for USB status or connect button"
msgid "USB" msgid "USB"
msgstr "USB" msgstr "USB"
#: dashboard/qml/Main.qml:358 #: dashboard/qml/Main.qml:366
#, kde-format #, kde-format
msgctxt "usb connect button" msgctxt "usb connect button"
msgid "Connect (wired)" msgid "Connect (wired)"
msgstr "链接 (有线)" msgstr "链接 (有线)"
#: dashboard/qml/Main.qml:375 dashboard/qml/WizardPage.qml:339 #: dashboard/qml/Main.qml:383 dashboard/qml/WizardPage.qml:339
#, kde-format #, kde-format
msgid "No headset is connected or your headset is not in developer mode" msgid "No headset is connected or your headset is not in developer mode"
msgstr "没有检测到头显,或您的头显未启用开发者模式" msgstr "没有检测到头显,或您的头显未启用开发者模式"
#: dashboard/qml/Main.qml:396 #: dashboard/qml/Main.qml:404
#, kde-format #, kde-format
msgid "Steam information" msgid "Steam information"
msgstr "Steam 信息" msgstr "Steam 信息"
#: dashboard/qml/Main.qml:412 #: dashboard/qml/Main.qml:420
#, kde-format #, kde-format
msgid "Wizard" msgid "Wizard"
msgstr "向导" msgstr "向导"
#: dashboard/qml/Main.qml:418 #: dashboard/qml/Main.qml:426
#, kde-format #, kde-format
msgid "Install the app" msgid "Install the app"
msgstr "安装应用程序" msgstr "安装应用程序"
#: dashboard/qml/Main.qml:437 dashboard/qml/SettingsPage.qml:14 #: dashboard/qml/Main.qml:445 dashboard/qml/SettingsPage.qml:14
#, kde-format #, kde-format
msgid "Settings" msgid "Settings"
msgstr "设置" msgstr "设置"
#: dashboard/qml/Main.qml:443 #: dashboard/qml/Main.qml:451
#, kde-format #, kde-format
msgid "About" msgid "About"
msgstr "关于" msgstr "关于"
#: dashboard/qml/Main.qml:448 dashboard/qml/TroubleshootPage.qml:10 #: dashboard/qml/Main.qml:456 dashboard/qml/TroubleshootPage.qml:10
#, kde-format #, kde-format
msgid "Troubleshoot" msgid "Troubleshoot"
msgstr "疑难解答" msgstr "疑难解答"
#: dashboard/qml/Main.qml:455 #: dashboard/qml/Main.qml:463
#, kde-format #, kde-format
msgid "Version %1" msgid "Version %1"
msgstr "版本 %1" msgstr "版本 %1"
#: dashboard/qml/SelectGame.qml:14 #: dashboard/qml/SelectGame.qml:12
#, kde-format #, kde-format
msgctxt "don't start an application automatically" msgctxt "don't start an application automatically"
msgid "None" msgid "None"
msgstr "无" msgstr "无"
#: dashboard/qml/SelectGame.qml:20 #: dashboard/qml/SelectGame.qml:18
#, kde-format #, kde-format
msgctxt "choose a custom application to start" msgctxt "choose a custom application to start"
msgid "Custom" msgid "Custom"
msgstr "自定义" msgstr "自定义"
#: dashboard/qml/SelectGame.qml:72 #: dashboard/qml/SelectGame.qml:70
#, kde-format #, kde-format
msgctxt "browse a file to choose the application to start" msgctxt "browse a file to choose the application to start"
msgid "Browse" msgid "Browse"
+139 -129
View File
@@ -2,14 +2,14 @@
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the WiVRn package. # This file is distributed under the same license as the WiVRn package.
# Jayden Ha <jayden@jaydenha.uk>, 2025. # Jayden Ha <jayden@jaydenha.uk>, 2025.
# BERADQ <adqber123@outlook.com>, 2025. # BERADQ <adqber123@outlook.com>, 2025-2026.
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: WiVRn\n" "Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-02-07 17:21+0800\n" "POT-Creation-Date: 2026-02-27 23:03+0800\n"
"PO-Revision-Date: 2025-12-31 18:23+0800\n" "PO-Revision-Date: 2026-02-28 21:35+0800\n"
"Last-Translator: BERADQ <adqber123@outlook.com>\n" "Last-Translator: BERADQ <adqber123@outlook.com>\n"
"Language-Team: Chinese (China)\n" "Language-Team: Chinese (China)\n"
"Language: zh_CN\n" "Language: zh_CN\n"
@@ -91,14 +91,15 @@ msgctxt "openxr_post_processing"
msgid "Disabled" msgid "Disabled"
msgstr "停用" msgstr "停用"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258 #: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254
#: client/scenes/stream_gui.cpp:1010 #: client/scenes/stream_gui.cpp:1026
msgid "Disconnect" msgid "Disconnect"
msgstr "终止连接" msgstr "终止连接"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753 #: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264
#: client/scenes/lobby_gui_customize.cpp:753
#: client/scenes/lobby_gui_customize.cpp:844 #: client/scenes/lobby_gui_customize.cpp:844
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1006 #: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022
msgid "Close" msgid "Close"
msgstr "关闭" msgstr "关闭"
@@ -119,32 +120,41 @@ msgstr "身份识别码"
msgid "Input the PIN displayed on the dashboard" msgid "Input the PIN displayed on the dashboard"
msgstr "请输入显示在控制面板上的身份识别码" msgstr "请输入显示在控制面板上的身份识别码"
#: client/scenes/lobby_gui.cpp:282
msgid "Disconnected"
msgstr "连接已断开"
#: client/scenes/lobby_gui.cpp:284 #: client/scenes/lobby_gui.cpp:284
#, c++-format
msgid "Disconnected from {}"
msgstr "{} 连接已断开"
#: client/scenes/lobby_gui.cpp:316
msgid "Name" msgid "Name"
msgstr "名" msgstr "名"
#: client/scenes/lobby_gui.cpp:295 #: client/scenes/lobby_gui.cpp:327
msgid "Address" msgid "Address"
msgstr "服务器地址" msgstr "服务器地址"
#: client/scenes/lobby_gui.cpp:304 #: client/scenes/lobby_gui.cpp:336
msgid "Port" msgid "Port"
msgstr "端口" msgstr "端口"
#: client/scenes/lobby_gui.cpp:312 #: client/scenes/lobby_gui.cpp:344
msgid "TCP only" msgid "TCP only"
msgstr "仅限 TCP" msgstr "仅限 TCP"
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655 #: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:962 #: client/scenes/stream_gui.cpp:978
msgid "Cancel" msgid "Cancel"
msgstr "取消" msgstr "取消"
#: client/scenes/lobby_gui.cpp:333 #: client/scenes/lobby_gui.cpp:365
msgid "Save" msgid "Save"
msgstr "保存" msgstr "保存"
#: client/scenes/lobby_gui.cpp:386 #: client/scenes/lobby_gui.cpp:418
msgid "" msgid ""
"Start a WiVRn server on your\n" "Start a WiVRn server on your\n"
"local network" "local network"
@@ -152,46 +162,46 @@ msgstr ""
"在您的局域网中启动\n" "在您的局域网中启动\n"
"WiVRn 服务器" "WiVRn 服务器"
#: client/scenes/lobby_gui.cpp:418 #: client/scenes/lobby_gui.cpp:450
msgid "Autoconnect" msgid "Autoconnect"
msgstr "自动连接" msgstr "自动连接"
#: client/scenes/lobby_gui.cpp:444 #: client/scenes/lobby_gui.cpp:476
msgid "Connect" msgid "Connect"
msgstr "连接" msgstr "连接"
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186 #: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186
msgid "Incompatible server version" msgid "Incompatible server version"
msgstr "服务器版本不兼容" msgstr "服务器版本不兼容"
#: client/scenes/lobby_gui.cpp:456 #: client/scenes/lobby_gui.cpp:488
msgid "Server not available" msgid "Server not available"
msgstr "服务器不可用" msgstr "服务器不可用"
#: client/scenes/lobby_gui.cpp:538 #: client/scenes/lobby_gui.cpp:581
msgctxt "language selection, replace with the name of the language" msgctxt "language selection, replace with the name of the language"
msgid "English" msgid "English"
msgstr "中文" msgstr "中文"
#: client/scenes/lobby_gui.cpp:552 #: client/scenes/lobby_gui.cpp:595
msgid "Language" msgid "Language"
msgstr "语言" msgstr "语言"
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554 #: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597
msgid "System language" msgid "System language"
msgstr "系统语言" msgstr "系统语言"
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:411 #: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412
msgid "Refresh rate" msgid "Refresh rate"
msgstr "刷新率" msgstr "刷新率"
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582 #: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625
#: client/scenes/stream_gui.cpp:411 client/scenes/stream_gui.cpp:413 #: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414
msgctxt "automatic refresh rate" msgctxt "automatic refresh rate"
msgid "Automatic" msgid "Automatic"
msgstr "自动" msgstr "自动"
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:421 #: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421
msgid "" msgid ""
"Select refresh rate based on measured application performance.\n" "Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens." "May cause flicker when a change happens."
@@ -199,38 +209,38 @@ msgstr ""
"根据测量的应用程序性能选择刷新率。\n" "根据测量的应用程序性能选择刷新率。\n"
"更改时可能会造成闪烁。" "更改时可能会造成闪烁。"
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:439 #: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439
msgid "Minimum refresh rate" msgid "Minimum refresh rate"
msgstr "最低刷新率" msgstr "最低刷新率"
#: client/scenes/lobby_gui.cpp:632 #: client/scenes/lobby_gui.cpp:675
msgid "Foveation level" msgid "Foveation level"
msgstr "注视点渲染等级" msgstr "注视点渲染等级"
#: client/scenes/lobby_gui.cpp:655 #: client/scenes/lobby_gui.cpp:698
msgid "Render resolution" msgid "Render resolution"
msgstr "渲染分辨率" msgstr "渲染分辨率"
#: client/scenes/lobby_gui.cpp:659 #: client/scenes/lobby_gui.cpp:702
#, c-format, c++-format #, c-format, c++-format
msgid "{}%% - {}x{} per eye" msgid "{}%% - {}x{} per eye"
msgstr "{}%% - 单眼 {}x{}" msgstr "{}%% - 单眼 {}x{}"
#: client/scenes/lobby_gui.cpp:670 #: client/scenes/lobby_gui.cpp:713
#, c++-format #, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset" msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "分辨率高于 {}x{} 可能不被头显支持" msgstr "分辨率高于 {}x{} 可能不被头显支持"
#: client/scenes/lobby_gui.cpp:680 #: client/scenes/lobby_gui.cpp:723
msgid "Foveated encoding" msgid "Foveated encoding"
msgstr "注视点编码" msgstr "注视点编码"
#: client/scenes/lobby_gui.cpp:684 #: client/scenes/lobby_gui.cpp:727
#, c-format, c++-format #, c-format, c++-format
msgid "{}%%" msgid "{}%%"
msgstr "{}%%" msgstr "{}%%"
#: client/scenes/lobby_gui.cpp:697 #: client/scenes/lobby_gui.cpp:740
msgid "" msgid ""
"Higher values focus image quality where you look at,\n" "Higher values focus image quality where you look at,\n"
"improving latency, power efficiency and quality." "improving latency, power efficiency and quality."
@@ -238,7 +248,7 @@ msgstr ""
"更高的数值会降低注视点之外的画面质量,\n" "更高的数值会降低注视点之外的画面质量,\n"
"从而改善延迟、提升能效并优化整体画质。" "从而改善延迟、提升能效并优化整体画质。"
#: client/scenes/lobby_gui.cpp:700 #: client/scenes/lobby_gui.cpp:743
msgid "" msgid ""
"Higher values focus image quality at the center,\n" "Higher values focus image quality at the center,\n"
"improving latency, power efficiency and quality." "improving latency, power efficiency and quality."
@@ -246,86 +256,86 @@ msgstr ""
"更高的数值会降低画面中心点之外的画面质量,\n" "更高的数值会降低画面中心点之外的画面质量,\n"
"从而改善延迟、提高能效并优化整体画质。" "从而改善延迟、提高能效并优化整体画质。"
#: client/scenes/lobby_gui.cpp:709 #: client/scenes/lobby_gui.cpp:752
msgctxt "Codec" msgctxt "Codec"
msgid "Automatic" msgid "Automatic"
msgstr "自动" msgstr "自动"
#: client/scenes/lobby_gui.cpp:713 #: client/scenes/lobby_gui.cpp:756
msgctxt "Codec" msgctxt "Codec"
msgid "H.264" msgid "H.264"
msgstr "H.264" msgstr "H.264"
#: client/scenes/lobby_gui.cpp:715 #: client/scenes/lobby_gui.cpp:758
msgctxt "Codec" msgctxt "Codec"
msgid "H.265" msgid "H.265"
msgstr "H.265" msgstr "H.265"
#: client/scenes/lobby_gui.cpp:717 #: client/scenes/lobby_gui.cpp:760
msgctxt "Codec" msgctxt "Codec"
msgid "AV1" msgid "AV1"
msgstr "AV1" msgstr "AV1"
#: client/scenes/lobby_gui.cpp:725 #: client/scenes/lobby_gui.cpp:768
msgid "Codec" msgid "Codec"
msgstr "编解码器" msgstr "编解码器"
#: client/scenes/lobby_gui.cpp:753 #: client/scenes/lobby_gui.cpp:796
msgid "10-bit" msgid "10-bit"
msgstr "10-bit" msgstr "10-bit"
#: client/scenes/lobby_gui.cpp:769 #: client/scenes/lobby_gui.cpp:812
msgid "Bitrate" msgid "Bitrate"
msgstr "码率" msgstr "码率"
#: client/scenes/lobby_gui.cpp:773 #: client/scenes/lobby_gui.cpp:816
#, c++-format #, c++-format
msgid "{}Mbit/s" msgid "{}Mbit/s"
msgstr "{}Mbit/s" msgstr "{}Mbit/s"
#: client/scenes/lobby_gui.cpp:784 #: client/scenes/lobby_gui.cpp:827
msgid "High power mode" msgid "High power mode"
msgstr "高耗电模式" msgstr "高耗电模式"
#: client/scenes/lobby_gui.cpp:787 #: client/scenes/lobby_gui.cpp:830
msgid "Increase power usage to allow higher resolution and refresh rate" msgid "Increase power usage to allow higher resolution and refresh rate"
msgstr "增加功耗以支持更高的分辨率和刷新率" msgstr "增加功耗以支持更高的分辨率和刷新率"
#: client/scenes/lobby_gui.cpp:793 #: client/scenes/lobby_gui.cpp:836
msgid "Enable microphone" msgid "Enable microphone"
msgstr "启用麦克风" msgstr "启用麦克风"
#: client/scenes/lobby_gui.cpp:802 #: client/scenes/lobby_gui.cpp:845
msgid "Unprocessed Microphone Audio" msgid "Unprocessed Microphone Audio"
msgstr "未处理的麦克风音频" msgstr "未处理的麦克风音频"
#: client/scenes/lobby_gui.cpp:808 #: client/scenes/lobby_gui.cpp:851
msgid "Force disable audio filters, such as noise cancellation" msgid "Force disable audio filters, such as noise cancellation"
msgstr "强制停用音频滤波器,如降噪" msgstr "强制停用音频滤波器,如降噪"
#: client/scenes/lobby_gui.cpp:815 #: client/scenes/lobby_gui.cpp:858
msgid "Enable hand tracking" msgid "Enable hand tracking"
msgstr "启用手部追踪" msgstr "启用手部追踪"
#: client/scenes/lobby_gui.cpp:821 client/scenes/lobby_gui.cpp:832 #: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875
#: client/scenes/lobby_gui.cpp:842 client/scenes/lobby_gui.cpp:857 #: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900
#: client/scenes/lobby_gui_customize.cpp:640 #: client/scenes/lobby_gui_customize.cpp:640
msgid "This feature is not supported by your headset" msgid "This feature is not supported by your headset"
msgstr "您的头显不支持此功能" msgstr "您的头显不支持此功能"
#: client/scenes/lobby_gui.cpp:826 #: client/scenes/lobby_gui.cpp:869
msgid "Enable eye tracking" msgid "Enable eye tracking"
msgstr "启用眼动追踪" msgstr "启用眼动追踪"
#: client/scenes/lobby_gui.cpp:837 #: client/scenes/lobby_gui.cpp:880
msgid "Enable face tracking" msgid "Enable face tracking"
msgstr "启用面部追踪" msgstr "启用面部追踪"
#: client/scenes/lobby_gui.cpp:849 #: client/scenes/lobby_gui.cpp:892
msgid "Enable body tracking" msgid "Enable body tracking"
msgstr "启用身体追踪" msgstr "启用身体追踪"
#: client/scenes/lobby_gui.cpp:862 #: client/scenes/lobby_gui.cpp:905
msgid "" msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement " "Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n" "tracking settings,\n"
@@ -334,11 +344,11 @@ msgstr ""
"需要在 Quest 运动追踪设置中启用「手部和身体追踪」,\n" "需要在 Quest 运动追踪设置中启用「手部和身体追踪」,\n"
"否则身体数据将根据手柄和头显的位置进行猜测" "否则身体数据将根据手柄和头显的位置进行猜测"
#: client/scenes/lobby_gui.cpp:872 #: client/scenes/lobby_gui.cpp:915
msgid "Enable lower body tracking" msgid "Enable lower body tracking"
msgstr "启用下半身追踪" msgstr "启用下半身追踪"
#: client/scenes/lobby_gui.cpp:878 #: client/scenes/lobby_gui.cpp:921
msgid "" msgid ""
"Estimate lower body joint positions using Generative Legs\n" "Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement " "Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -347,11 +357,11 @@ msgstr ""
"使用 Generative Legs 猜测下半身关节位置\n" "使用 Generative Legs 猜测下半身关节位置\n"
"需要在 Quest 运动追踪设置中启用「手部和身体追踪」" "需要在 Quest 运动追踪设置中启用「手部和身体追踪」"
#: client/scenes/lobby_gui.cpp:881 #: client/scenes/lobby_gui.cpp:924
msgid "Enable hip tracking" msgid "Enable hip tracking"
msgstr "启用臀部(腰部)追踪" msgstr "启用臀部(腰部)追踪"
#: client/scenes/lobby_gui.cpp:887 #: client/scenes/lobby_gui.cpp:930
msgid "" msgid ""
"Only takes affect with lower body tracking enabled\n" "Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking" "May be desired when using another source of hip tracking"
@@ -359,11 +369,11 @@ msgstr ""
"仅在启用下半身追踪时生效\n" "仅在启用下半身追踪时生效\n"
"在使用其他臀部追踪时可能需要此功能" "在使用其他臀部追踪时可能需要此功能"
#: client/scenes/lobby_gui.cpp:896 #: client/scenes/lobby_gui.cpp:939
msgid "Enable in-stream window" msgid "Enable in-stream window"
msgstr "启用串流中窗口" msgstr "启用串流中窗口"
#: client/scenes/lobby_gui.cpp:899 #: client/scenes/lobby_gui.cpp:942
msgid "" msgid ""
"Enables the configuration window to be shown while the game is streaming.\n" "Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks." "If enabled, the window is activated by pressing both thumbsticks."
@@ -371,23 +381,23 @@ msgstr ""
"在游戏串流期间启用配置窗口显示\n" "在游戏串流期间启用配置窗口显示\n"
"若启用此功能,同时按下两只摇杆,将会显示该窗口。" "若启用此功能,同时按下两只摇杆,将会显示该窗口。"
#: client/scenes/lobby_gui.cpp:903 #: client/scenes/lobby_gui.cpp:946
msgid "Extended configuration values" msgid "Extended configuration values"
msgstr "扩大配置值范围" msgstr "扩大配置值范围"
#: client/scenes/lobby_gui.cpp:906 #: client/scenes/lobby_gui.cpp:949
msgid "Allows unsafe configuration values, use at your own risk." msgid "Allows unsafe configuration values, use at your own risk."
msgstr "允许使用不安全的配置值,风险自负。" msgstr "允许使用不安全的配置值,风险自负。"
#: client/scenes/lobby_gui.cpp:920 client/scenes/stream_gui.cpp:473 #: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473
msgid "OpenXR post-processing" msgid "OpenXR post-processing"
msgstr "OpenXR 后处理" msgstr "OpenXR 后处理"
#: client/scenes/lobby_gui.cpp:924 client/scenes/stream_gui.cpp:477 #: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477
msgid "Supersampling" msgid "Supersampling"
msgstr "超采样" msgstr "超采样"
#: client/scenes/lobby_gui.cpp:944 client/scenes/stream_gui.cpp:498 #: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498
msgid "" msgid ""
"Reduce flicker for high contrast edges.\n" "Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display" "Useful when the input resolution is high compared to the headset display"
@@ -395,11 +405,11 @@ msgstr ""
"减少高对比度边缘的闪烁。\n" "减少高对比度边缘的闪烁。\n"
"当串流分辨率高于头显原生分辨率时很有用" "当串流分辨率高于头显原生分辨率时很有用"
#: client/scenes/lobby_gui.cpp:949 client/scenes/stream_gui.cpp:503 #: client/scenes/lobby_gui.cpp:992 client/scenes/stream_gui.cpp:503
msgid "Sharpening" msgid "Sharpening"
msgstr "锐化" msgstr "锐化"
#: client/scenes/lobby_gui.cpp:969 client/scenes/stream_gui.cpp:524 #: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524
msgid "" msgid ""
"Improve clarity of high contrast edges and counteract blur.\n" "Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display" "Useful when the input resolution is low compared to the headset display"
@@ -407,129 +417,129 @@ msgstr ""
"改善高对比边缘的清晰度并抵消模糊。\n" "改善高对比边缘的清晰度并抵消模糊。\n"
"当串流分辨率低于头显原生分辨率时很有用" "当串流分辨率低于头显原生分辨率时很有用"
#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161 #: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:370 #: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371
msgid "CPU time" msgid "CPU time"
msgstr "CPU 时间" msgstr "CPU 时间"
#: client/scenes/lobby_gui.cpp:1157 #: client/scenes/lobby_gui.cpp:1200
msgid "CPU time [ms]" msgid "CPU time [ms]"
msgstr "CPU 时间 [ms]" msgstr "CPU 时间 [ms]"
#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175 #: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:371 #: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372
msgid "GPU time" msgid "GPU time"
msgstr "GPU 时间" msgstr "GPU 时间"
#: client/scenes/lobby_gui.cpp:1171 #: client/scenes/lobby_gui.cpp:1214
msgid "GPU time [ms]" msgid "GPU time [ms]"
msgstr "GPU 时间 [ms]" msgstr "GPU 时间 [ms]"
#: client/scenes/lobby_gui.cpp:1235 #: client/scenes/lobby_gui.cpp:1278
msgid "Enable the microphone?" msgid "Enable the microphone?"
msgstr "是否启用麦克风?" msgstr "是否启用麦克风?"
#: client/scenes/lobby_gui.cpp:1240 #: client/scenes/lobby_gui.cpp:1283
msgid "Enable eye tracking?" msgid "Enable eye tracking?"
msgstr "是否启用眼动追踪?" msgstr "是否启用眼动追踪?"
#: client/scenes/lobby_gui.cpp:1245 #: client/scenes/lobby_gui.cpp:1288
msgid "Enable face tracking?" msgid "Enable face tracking?"
msgstr "是否启用面部追踪?" msgstr "是否启用面部追踪?"
#: client/scenes/lobby_gui.cpp:1250 #: client/scenes/lobby_gui.cpp:1293
msgid "Enable body tracking?" msgid "Enable body tracking?"
msgstr "是否启用身体追踪?" msgstr "是否启用身体追踪?"
#: client/scenes/lobby_gui.cpp:1258 #: client/scenes/lobby_gui.cpp:1301
msgid "Welcome to WiVRn" msgid "Welcome to WiVRn"
msgstr "欢迎使用 WiVRn" msgstr "欢迎使用 WiVRn"
#: client/scenes/lobby_gui.cpp:1286 #: client/scenes/lobby_gui.cpp:1329
msgid "Yes" msgid "Yes"
msgstr "是" msgstr "是"
#: client/scenes/lobby_gui.cpp:1293 #: client/scenes/lobby_gui.cpp:1336
msgid "No" msgid "No"
msgstr "否" msgstr "否"
#: client/scenes/lobby_gui.cpp:1312 client/scenes/lobby_gui.cpp:1958 #: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001
msgid "Licenses" msgid "Licenses"
msgstr "许可证" msgstr "许可证"
#: client/scenes/lobby_gui.cpp:1588 #: client/scenes/lobby_gui.cpp:1631
msgid "Microphone is enabled" msgid "Microphone is enabled"
msgstr "麦克风已启用" msgstr "麦克风已启用"
#: client/scenes/lobby_gui.cpp:1589 #: client/scenes/lobby_gui.cpp:1632
msgid "Microphone is disabled" msgid "Microphone is disabled"
msgstr "麦克风已停用" msgstr "麦克风已停用"
#: client/scenes/lobby_gui.cpp:1598 #: client/scenes/lobby_gui.cpp:1641
msgid "Hand tracking is enabled" msgid "Hand tracking is enabled"
msgstr "手部追踪已启用" msgstr "手部追踪已启用"
#: client/scenes/lobby_gui.cpp:1599 #: client/scenes/lobby_gui.cpp:1642
msgid "Hand tracking is disabled" msgid "Hand tracking is disabled"
msgstr "手部追踪已停用" msgstr "手部追踪已停用"
#: client/scenes/lobby_gui.cpp:1608 #: client/scenes/lobby_gui.cpp:1651
msgid "Eye tracking is enabled" msgid "Eye tracking is enabled"
msgstr "眼动追踪已启用" msgstr "眼动追踪已启用"
#: client/scenes/lobby_gui.cpp:1609 #: client/scenes/lobby_gui.cpp:1652
msgid "Eye tracking is disabled" msgid "Eye tracking is disabled"
msgstr "眼动追踪已停用" msgstr "眼动追踪已停用"
#: client/scenes/lobby_gui.cpp:1619 #: client/scenes/lobby_gui.cpp:1662
msgid "Face tracking is enabled" msgid "Face tracking is enabled"
msgstr "面部追踪已启用" msgstr "面部追踪已启用"
#: client/scenes/lobby_gui.cpp:1620 #: client/scenes/lobby_gui.cpp:1663
msgid "Face tracking is disabled" msgid "Face tracking is disabled"
msgstr "面部追踪已停用" msgstr "面部追踪已停用"
#: client/scenes/lobby_gui.cpp:1634 #: client/scenes/lobby_gui.cpp:1677
msgid "Body tracking is enabled" msgid "Body tracking is enabled"
msgstr "身体追踪已启用" msgstr "身体追踪已启用"
#: client/scenes/lobby_gui.cpp:1635 #: client/scenes/lobby_gui.cpp:1678
msgid "Body tracking is disabled" msgid "Body tracking is disabled"
msgstr "身体追踪已停用" msgstr "身体追踪已停用"
#: client/scenes/lobby_gui.cpp:1651 #: client/scenes/lobby_gui.cpp:1694
msgid "Add server" msgid "Add server"
msgstr "新增服务器" msgstr "新增服务器"
#: client/scenes/lobby_gui.cpp:1937 #: client/scenes/lobby_gui.cpp:1980
msgid "Server list" msgid "Server list"
msgstr "服务器列表" msgstr "服务器列表"
#: client/scenes/lobby_gui.cpp:1940 client/scenes/stream_gui.cpp:991 #: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007
msgid "Settings" msgid "Settings"
msgstr "设置" msgstr "设置"
#: client/scenes/lobby_gui.cpp:1943 #: client/scenes/lobby_gui.cpp:1986
msgid "Post-processing" msgid "Post-processing"
msgstr "后处理" msgstr "后处理"
#: client/scenes/lobby_gui.cpp:1946 #: client/scenes/lobby_gui.cpp:1989
msgid "Customize" msgid "Customize"
msgstr "自定义" msgstr "自定义"
#: client/scenes/lobby_gui.cpp:1950 #: client/scenes/lobby_gui.cpp:1993
msgid "Debug" msgid "Debug"
msgstr "Debug" msgstr "Debug"
#: client/scenes/lobby_gui.cpp:1955 #: client/scenes/lobby_gui.cpp:1998
msgid "About" msgid "About"
msgstr "关于" msgstr "关于"
#: client/scenes/lobby_gui.cpp:1961 #: client/scenes/lobby_gui.cpp:2004
msgid "Exit" msgid "Exit"
msgstr "退出" msgstr "退出"
#: client/scenes/lobby_gui.cpp:1978 #: client/scenes/lobby_gui.cpp:2021
msgid "" msgid ""
"Press the grip button or put your palm up\n" "Press the grip button or put your palm up\n"
"to move the main window" "to move the main window"
@@ -537,7 +547,7 @@ msgstr ""
"按下抓握键,或手掌向上\n" "按下抓握键,或手掌向上\n"
"以移动主窗口" "以移动主窗口"
#: client/scenes/lobby_gui.cpp:1980 #: client/scenes/lobby_gui.cpp:2023
msgid "Press the grip button to move the main window" msgid "Press the grip button to move the main window"
msgstr "按下抓握键以移动主窗口" msgstr "按下抓握键以移动主窗口"
@@ -616,73 +626,73 @@ msgstr "下载更多环境"
msgid "Open local glTF model" msgid "Open local glTF model"
msgstr "打开本地 glTF 模型" msgstr "打开本地 glTF 模型"
#: client/scenes/stream_gui.cpp:174 #: client/scenes/stream_gui.cpp:175
msgid "Defoveate" msgid "Defoveate"
msgstr "去凹形畸变" msgstr "去凹形畸变"
#: client/scenes/stream_gui.cpp:176 #: client/scenes/stream_gui.cpp:177
msgid "Network" msgid "Network"
msgstr "网络" msgstr "网络"
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:368 #: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
msgid "Download" msgid "Download"
msgstr "下载" msgstr "下载"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369 #: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
msgid "Upload" msgid "Upload"
msgstr "上传" msgstr "上传"
#: client/scenes/stream_gui.cpp:246 #: client/scenes/stream_gui.cpp:247
#, c++-format #, c++-format
msgid "Decoder {}" msgid "Decoder {}"
msgstr "解码器 {}" msgstr "解码器 {}"
#: client/scenes/stream_gui.cpp:258 #: client/scenes/stream_gui.cpp:259
msgid "Timings [ms]" msgid "Timings [ms]"
msgstr "时间信息 [ms]" msgstr "时间信息 [ms]"
#: client/scenes/stream_gui.cpp:318 #: client/scenes/stream_gui.cpp:319
msgid "Encode" msgid "Encode"
msgstr "编码" msgstr "编码"
#: client/scenes/stream_gui.cpp:319 #: client/scenes/stream_gui.cpp:320
msgid "Send" msgid "Send"
msgstr "发送" msgstr "发送"
#: client/scenes/stream_gui.cpp:320 #: client/scenes/stream_gui.cpp:321
msgid "Receive" msgid "Receive"
msgstr "接收" msgstr "接收"
#: client/scenes/stream_gui.cpp:321 #: client/scenes/stream_gui.cpp:322
msgid "Decode" msgid "Decode"
msgstr "解码" msgstr "解码"
#: client/scenes/stream_gui.cpp:322 #: client/scenes/stream_gui.cpp:323
msgid "Blitted" msgid "Blitted"
msgstr "已传输位块" msgstr "已传输位块"
#: client/scenes/stream_gui.cpp:323 #: client/scenes/stream_gui.cpp:324
msgid "Displayed" msgid "Displayed"
msgstr "已显示" msgstr "已显示"
#: client/scenes/stream_gui.cpp:324 #: client/scenes/stream_gui.cpp:325
msgid "Predicted" msgid "Predicted"
msgstr "已预测" msgstr "已预测"
#: client/scenes/stream_gui.cpp:343 #: client/scenes/stream_gui.cpp:344
#, c++-format #, c++-format
msgid "Estimated motion to photons latency: {}ms" msgid "Estimated motion to photons latency: {}ms"
msgstr "估计从运动到显示延迟: {}ms" msgstr "估计从运动到显示延迟: {}ms"
#: client/scenes/stream_gui.cpp:348 #: client/scenes/stream_gui.cpp:349
msgid "Press the grip button to move the window" msgid "Press the grip button to move the window"
msgstr "按下抓握键来移动窗口" msgstr "按下抓握键来移动窗口"
#: client/scenes/stream_gui.cpp:350 client/scenes/stream_gui.cpp:918 #: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738
msgid "Press both thumbsticks to display the WiVRn window" msgid "Press both thumbsticks to display the WiVRn window"
msgstr "同时按下两侧摇杆以显示 WiVRn 窗口" msgstr "同时按下两侧摇杆以显示 WiVRn 窗口"
#: client/scenes/stream_gui.cpp:372 #: client/scenes/stream_gui.cpp:373
msgid "Motion to photon latency" msgid "Motion to photon latency"
msgstr "从动作到显示的延迟" msgstr "从动作到显示的延迟"
@@ -694,29 +704,29 @@ msgstr "码率:"
msgid "Click to adjust bitrate" msgid "Click to adjust bitrate"
msgstr "点击以调整码率" msgstr "点击以调整码率"
#: client/scenes/stream_gui.cpp:531 #: client/scenes/stream_gui.cpp:532
msgid "Foveation center override" msgid "Foveation center override"
msgstr "注视点渲染位置覆盖" msgstr "注视点渲染位置覆盖"
#: client/scenes/stream_gui.cpp:534 #: client/scenes/stream_gui.cpp:535
msgid "Enable" msgid "Enable"
msgstr "启用" msgstr "启用"
#: client/scenes/stream_gui.cpp:542 client/scenes/stream_gui.cpp:614 #: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614
#, c++-format #, c++-format
msgid "Height {:.1f} deg" msgid "Height {:.1f} deg"
msgstr "俯仰 {:.1f}°" msgstr "俯仰 {:.1f}°"
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:615 #: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615
#, c++-format #, c++-format
msgid "Distance {:.2f} m" msgid "Distance {:.2f} m"
msgstr "距离 {:.2f}m" msgstr "距离 {:.2f}m"
#: client/scenes/stream_gui.cpp:544 #: client/scenes/stream_gui.cpp:545
msgid "Default" msgid "Default"
msgstr "默认" msgstr "默认"
#: client/scenes/stream_gui.cpp:555 #: client/scenes/stream_gui.cpp:556
msgid "Change" msgid "Change"
msgstr "变更" msgstr "变更"
@@ -753,23 +763,23 @@ msgstr "叠加层"
msgid "Request to quit, may be ignored by the application" msgid "Request to quit, may be ignored by the application"
msgstr "退出请求可能会被应用程序忽略" msgstr "退出请求可能会被应用程序忽略"
#: client/scenes/stream_gui.cpp:977 #: client/scenes/stream_gui.cpp:993
msgid "Applications" msgid "Applications"
msgstr "应用程序" msgstr "应用程序"
#: client/scenes/stream_gui.cpp:980 #: client/scenes/stream_gui.cpp:996
msgid "Start" msgid "Start"
msgstr "启动" msgstr "启动"
#: client/scenes/stream_gui.cpp:994 #: client/scenes/stream_gui.cpp:1010
msgid "Stats" msgid "Stats"
msgstr "统计" msgstr "统计"
#: client/scenes/stream_gui.cpp:1000 #: client/scenes/stream_gui.cpp:1016
msgid "Statistics overlay" msgid "Statistics overlay"
msgstr "统计数据叠加" msgstr "统计数据叠加"
#: client/scenes/stream_gui.cpp:1003 #: client/scenes/stream_gui.cpp:1019
msgid "Compact view" msgid "Compact view"
msgstr "概览" msgstr "概览"
+1 -1
View File
@@ -1 +1 @@
723652b545a79609f9f04cb89fcbf807d9d6451a ef152c973b94a313e1ba9552162818b5151ac671
@@ -1,4 +1,4 @@
From 2884795b7d352e3e45348473a17660a568260d6e Mon Sep 17 00:00:00 2001 From 0fe5a8e72f2ba178e155d2ab87e79f34294248dd Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net> From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 22 Oct 2024 15:23:19 +0200 Date: Tue, 22 Oct 2024 15:23:19 +0200
Subject: [PATCH 1/8] c/multi: early wake of compositor 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(-) 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 diff --git a/src/xrt/compositor/multi/comp_multi_compositor.c b/src/xrt/compositor/multi/comp_multi_compositor.c
index 94cea110e..88347a092 100644 index 1fc135ce4..25b64aca8 100644
--- a/src/xrt/compositor/multi/comp_multi_compositor.c --- a/src/xrt/compositor/multi/comp_multi_compositor.c
+++ b/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) @@ -236,7 +236,21 @@ wait_for_scheduled_free(struct multi_compositor *mc)
@@ -1,4 +1,4 @@
From 8d22720c9574146f7115f5ba7ac39f3c4e4f48ae Mon Sep 17 00:00:00 2001 From c0019c2e8822db5efa7d6baf51b9773cc7bdc537 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net> From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 8 Oct 2024 22:13:15 +0200 Date: Tue, 8 Oct 2024 22:13:15 +0200
Subject: [PATCH 2/8] Use extern socket fd Subject: [PATCH 2/8] Use extern socket fd
@@ -8,10 +8,10 @@ Subject: [PATCH 2/8] Use extern socket fd
1 file changed, 8 insertions(+) 1 file changed, 8 insertions(+)
diff --git a/src/xrt/ipc/server/ipc_server_mainloop_linux.c b/src/xrt/ipc/server/ipc_server_mainloop_linux.c diff --git a/src/xrt/ipc/server/ipc_server_mainloop_linux.c b/src/xrt/ipc/server/ipc_server_mainloop_linux.c
index 36bf3e31d..e40447bb2 100644 index 777a31e96..9235375e6 100644
--- a/src/xrt/ipc/server/ipc_server_mainloop_linux.c --- a/src/xrt/ipc/server/ipc_server_mainloop_linux.c
+++ b/src/xrt/ipc/server/ipc_server_mainloop_linux.c +++ b/src/xrt/ipc/server/ipc_server_mainloop_linux.c
@@ -48,6 +48,8 @@ @@ -49,6 +49,8 @@
#endif #endif
@@ -20,7 +20,7 @@ index 36bf3e31d..e40447bb2 100644
/* /*
* *
* Static functions. * Static functions.
@@ -56,6 +58,12 @@ @@ -57,6 +59,12 @@
static int static int
get_systemd_socket(struct ipc_server_mainloop *ml, int *out_fd) get_systemd_socket(struct ipc_server_mainloop *ml, int *out_fd)
{ {
@@ -1,4 +1,4 @@
From dc8c6b0fdd002631827528b0cd831e762cf74c31 Mon Sep 17 00:00:00 2001 From 004623b9038b3043365061e77a0e3cc430fb2dd9 Mon Sep 17 00:00:00 2001
From: galister <85970-galister@users.noreply.gitlab.freedesktop.org> From: galister <85970-galister@users.noreply.gitlab.freedesktop.org>
Date: Sat, 23 Nov 2024 02:42:12 +0900 Date: Sat, 23 Nov 2024 02:42:12 +0900
Subject: [PATCH 3/8] change environment blend mode selection logic Subject: [PATCH 3/8] change environment blend mode selection logic
@@ -1,4 +1,4 @@
From f4b4c07740dcc58438340171ec473570b002b379 Mon Sep 17 00:00:00 2001 From c0d86e77f011f0d75f17e5c30fb20bbf166dfc08 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net> From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Sat, 15 Mar 2025 22:19:48 +0100 Date: Sat, 15 Mar 2025 22:19:48 +0100
Subject: [PATCH 4/8] st/oxr: forward 0 refresh rate 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(-) 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 diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c
index b6c4947bf..0e8ed02b7 100644 index 3364aaead..deec90a73 100644
--- a/src/xrt/compositor/main/comp_compositor.c --- a/src/xrt/compositor/main/comp_compositor.c
+++ b/src/xrt/compositor/main/comp_compositor.c +++ b/src/xrt/compositor/main/comp_compositor.c
@@ -372,7 +372,7 @@ compositor_request_display_refresh_rate(struct xrt_compositor *xc, float display @@ -377,7 +377,7 @@ compositor_request_display_refresh_rate(struct xrt_compositor *xc, float display
if (c->target && c->target->request_refresh_rate) { if (c->target && c->target->request_refresh_rate) {
xrt_result_t result = comp_target_request_refresh_rate(c->target, display_refresh_rate_hz); xrt_result_t result = comp_target_request_refresh_rate(c->target, display_refresh_rate_hz);
// Assume refresh rate change is immediate // Assume refresh rate change is immediate
@@ -22,7 +22,7 @@ index b6c4947bf..0e8ed02b7 100644
return result; return result;
} }
diff --git a/src/xrt/state_trackers/oxr/oxr_api_session.c b/src/xrt/state_trackers/oxr/oxr_api_session.c diff --git a/src/xrt/state_trackers/oxr/oxr_api_session.c b/src/xrt/state_trackers/oxr/oxr_api_session.c
index 587cdf28f..b1f96df54 100644 index 09297f885..9f3a7ebc2 100644
--- a/src/xrt/state_trackers/oxr/oxr_api_session.c --- a/src/xrt/state_trackers/oxr/oxr_api_session.c
+++ b/src/xrt/state_trackers/oxr/oxr_api_session.c +++ b/src/xrt/state_trackers/oxr/oxr_api_session.c
@@ -455,15 +455,11 @@ oxr_xrRequestDisplayRefreshRateFB(XrSession session, float displayRefreshRate) @@ -455,15 +455,11 @@ oxr_xrRequestDisplayRefreshRateFB(XrSession session, float displayRefreshRate)
File diff suppressed because it is too large Load Diff
@@ -1,17 +1,17 @@
From 9d1294834f49fc90ea22f5d841d7c0e5c0c1045d Mon Sep 17 00:00:00 2001 From 80007ab047cb486e78eb0527dc97de56574bc8e2 Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid> From: no name <git-am@invalid>
Date: Sun, 28 Sep 2025 11:33:10 +0200 Date: Sun, 28 Sep 2025 11:33:10 +0200
Subject: [PATCH 6/8] d/steamvr_lh: prevent crash on vive pro2/WiVRn Subject: [PATCH 5/8] d/steamvr_lh: prevent crash on vive pro2/WiVRn
--- ---
src/xrt/drivers/steamvr_lh/steamvr_lh.cpp | 2 +- src/xrt/drivers/steamvr_lh/steamvr_lh.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-) 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 diff --git a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
index 25c68a0ea..86baa9fd4 100644 index 0fbe4f563..dc9e3d3a5 100644
--- a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp --- a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
+++ b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp +++ b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
@@ -913,7 +913,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out @@ -954,7 +954,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out
// Include the HMD // Include the HMD
if (svrs->ctx->hmd) { if (svrs->ctx->hmd) {
@@ -0,0 +1,27 @@
From 659f5782066f77bb027accfcfe9ac4a810d27903 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
profile changes to NULL
---
src/xrt/state_trackers/oxr/actions/oxr_input.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/xrt/state_trackers/oxr/actions/oxr_input.c b/src/xrt/state_trackers/oxr/actions/oxr_input.c
index 51ae13b05..192833639 100644
--- a/src/xrt/state_trackers/oxr/actions/oxr_input.c
+++ b/src/xrt/state_trackers/oxr/actions/oxr_input.c
@@ -1932,9 +1932,6 @@ session_update_action_bindings(struct oxr_logger *log,
#define POPULATE_PROFILE(X) \
do { \
XrPath path = profiles.X != NULL ? profiles.X->path : XR_NULL_PATH; \
- if (path == XR_NULL_PATH) { \
- break; /* Only update on "active" interaction profiles per sub-action path. */ \
- } \
if (action_context->X != path) { \
action_context->X = path; \
interaction_profile_changed = true; \
--
2.53.0
@@ -1,17 +1,17 @@
From 6f17ee6c92b62a2418164f627775f267eb6d19fc Mon Sep 17 00:00:00 2001 From 5dbb5983ab7f5ec1204ff8fe932519c0df7feeed Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid> From: no name <git-am@invalid>
Date: Sun, 25 Jan 2026 10:09:10 +0100 Date: Sun, 25 Jan 2026 10:09:10 +0100
Subject: [PATCH] don't verify GL stuff Subject: [PATCH 7/8] don't verify GL stuff
--- ---
src/xrt/state_trackers/oxr/oxr_verify.c | 10 ---------- src/xrt/state_trackers/oxr/oxr_verify.c | 10 ----------
1 file changed, 10 deletions(-) 1 file changed, 10 deletions(-)
diff --git a/src/xrt/state_trackers/oxr/oxr_verify.c b/src/xrt/state_trackers/oxr/oxr_verify.c diff --git a/src/xrt/state_trackers/oxr/oxr_verify.c b/src/xrt/state_trackers/oxr/oxr_verify.c
index e9197d501..71f81c954 100644 index 8f35222cf..1418a8231 100644
--- a/src/xrt/state_trackers/oxr/oxr_verify.c --- a/src/xrt/state_trackers/oxr/oxr_verify.c
+++ b/src/xrt/state_trackers/oxr/oxr_verify.c +++ b/src/xrt/state_trackers/oxr/oxr_verify.c
@@ -608,16 +608,6 @@ oxr_verify_XrGraphicsBindingOpenGLXlibKHR(struct oxr_logger *log, const XrGraphi @@ -610,16 +610,6 @@ oxr_verify_XrGraphicsBindingOpenGLXlibKHR(struct oxr_logger *log, const XrGraphi
"XrGraphicsBindingOpenGLXlibKHR::glxDrawable is NULL"); "XrGraphicsBindingOpenGLXlibKHR::glxDrawable is NULL");
} }
@@ -29,5 +29,5 @@ index e9197d501..71f81c954 100644
} }
-- --
2.52.0 2.53.0
@@ -1,49 +0,0 @@
From b9af535cf229acdbf7f1b534e9804c1b4e3fa3e1 Mon Sep 17 00:00:00 2001
From: Sapphire <imsapphire0@gmail.com>
Date: Fri, 7 Nov 2025 20:41:16 -0600
Subject: [PATCH 7/8] st/oxr: push XrEventDataInteractionProfileChanged when
profile changes to NULL
---
src/xrt/state_trackers/oxr/oxr_input.c | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/src/xrt/state_trackers/oxr/oxr_input.c b/src/xrt/state_trackers/oxr/oxr_input.c
index df2b479eb..c4b36ba81 100644
--- a/src/xrt/state_trackers/oxr/oxr_input.c
+++ b/src/xrt/state_trackers/oxr/oxr_input.c
@@ -1881,26 +1881,21 @@ oxr_session_update_action_bindings(struct oxr_logger *log, struct oxr_session *s
}
}
- /*
- * This code will only send events (and update the bindings) if there
- * is a profile mapped to the subaction path. Meaning it won't update
- * the cache or generate events when a controller goes away, basically
- * latching the interaction profile to the last active device.
- */
+ bool any_profile_changed = false;
#define POPULATE_PROFILE(X) \
do { \
XrPath path = profiles.X != NULL ? profiles.X->path : XR_NULL_PATH; \
- if (path == XR_NULL_PATH) { \
- break; /* Only update on "active" interaction profiles per sub-action path. */ \
- } \
if (sess->X != path) { \
sess->X = path; \
- oxr_event_push_XrEventDataInteractionProfileChanged(log, sess); \
+ any_profile_changed = true; \
} \
} while (false);
OXR_FOR_EACH_VALID_SUBACTION_PATH(POPULATE_PROFILE)
#undef POPULATE_PROFILE
+ if (any_profile_changed) {
+ oxr_event_push_XrEventDataInteractionProfileChanged(log, sess);
+ }
return oxr_session_success_result(sess);
}
--
2.53.0
@@ -1,40 +0,0 @@
From 02206ede3aae832be5024263a805cafee2264080 Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Thu, 15 Jan 2026 12:13:06 +0100
Subject: [PATCH 8/8] Don't get pose data for fast path
---
src/xrt/compositor/main/comp_renderer.c | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
index ff9728a59..08cdef540 100644
--- a/src/xrt/compositor/main/comp_renderer.c
+++ b/src/xrt/compositor/main/comp_renderer.c
@@ -972,14 +972,15 @@ dispatch_compute(struct comp_renderer *r,
struct xrt_pose world_poses_scanout_begin[XRT_MAX_VIEWS];
struct xrt_pose world_poses_scanout_end[XRT_MAX_VIEWS];
struct xrt_pose eye_poses[XRT_MAX_VIEWS];
- calc_pose_data( //
- r, //
- fov_source, //
- fovs, //
- world_poses_scanout_begin, //
- world_poses_scanout_end, //
- eye_poses, //
- render->r->view_count); //
+ if (!c->base.frame_params.one_projection_layer_fast_path)
+ calc_pose_data( //
+ r, //
+ fov_source, //
+ fovs, //
+ world_poses_scanout_begin, //
+ world_poses_scanout_end, //
+ eye_poses, //
+ render->r->view_count); //
// Target Vulkan resources..
VkImage target_image = r->c->target->images[r->acquired_buffer].handle;
--
2.53.0
@@ -0,0 +1,37 @@
From 11fdc5a904db55867ed567bbc89ee5207e5741f0 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
---
src/xrt/auxiliary/util/CMakeLists.txt | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/xrt/auxiliary/util/CMakeLists.txt b/src/xrt/auxiliary/util/CMakeLists.txt
index d45cd60c9..ec0d45434 100644
--- a/src/xrt/auxiliary/util/CMakeLists.txt
+++ b/src/xrt/auxiliary/util/CMakeLists.txt
@@ -10,11 +10,6 @@
# by applications like the OpenXR runtime library.
#
-configure_file(
- "${CMAKE_CURRENT_SOURCE_DIR}/u_git_tag.c.in" "${CMAKE_CURRENT_BINARY_DIR}/u_git_tag.c"
- @ONLY
- )
-
add_library(
aux_util STATIC
u_autoexpgain.c
@@ -118,7 +113,7 @@ add_library(
u_worker.cpp
u_worker.h
u_worker.hpp
- "${CMAKE_CURRENT_BINARY_DIR}/u_git_tag.c"
+ "${U_GIT_TAG_CPP}"
)
target_link_libraries(
aux_util
--
2.53.0
+18 -4
View File
@@ -1,3 +1,4 @@
set(U_GIT_TAG_CPP "${CMAKE_BINARY_DIR}/u_git_tag.cpp")
set(XRT_BUILD_DRIVER_ARDUINO OFF) set(XRT_BUILD_DRIVER_ARDUINO OFF)
set(XRT_BUILD_DRIVER_BLUBUR_S1 OFF) set(XRT_BUILD_DRIVER_BLUBUR_S1 OFF)
@@ -90,6 +91,11 @@ if (WIVRN_BUILD_SERVER)
audio/audio_setup.cpp audio/audio_setup.cpp
compositor/compositor.cpp
compositor/layer_squasher.cpp
compositor/foveation.cpp
compositor/pacer.cpp
encoder/encoder_settings.cpp encoder/encoder_settings.cpp
encoder/idr_handler.cpp encoder/idr_handler.cpp
encoder/video_encoder.cpp encoder/video_encoder.cpp
@@ -103,15 +109,12 @@ if (WIVRN_BUILD_SERVER)
driver/tracking_control.cpp driver/tracking_control.cpp
driver/view_list.cpp driver/view_list.cpp
driver/wivrn_hmd.cpp driver/wivrn_hmd.cpp
driver/wivrn_pacer.cpp
driver/wivrn_comp_target.cpp
driver/wivrn_controller.cpp driver/wivrn_controller.cpp
driver/wivrn_eye_tracker.cpp driver/wivrn_eye_tracker.cpp
driver/wivrn_android_face_tracker.cpp driver/wivrn_android_face_tracker.cpp
driver/wivrn_fb_face2_tracker.cpp driver/wivrn_fb_face2_tracker.cpp
driver/wivrn_htc_face_tracker.cpp driver/wivrn_htc_face_tracker.cpp
driver/wivrn_generic_tracker.cpp driver/wivrn_generic_tracker.cpp
driver/wivrn_foveation.cpp
driver/wivrn_uinput.cpp driver/wivrn_uinput.cpp
driver/wivrn_session.cpp driver/wivrn_session.cpp
driver/wivrn_connection.cpp driver/wivrn_connection.cpp
@@ -225,7 +228,9 @@ if (WIVRN_BUILD_SERVER)
aux_os aux_os
aux_util aux_util
aux_vk aux_vk
comp_main comp_multi
comp_render
comp_util
ipc_server ipc_server
xrt-external-openxr xrt-external-openxr
xrt-interfaces xrt-interfaces
@@ -238,6 +243,15 @@ if (WIVRN_BUILD_SERVER)
nlohmann_json::nlohmann_json nlohmann_json::nlohmann_json
) )
include(CompileGLSL)
FetchContent_GetProperties(monado SOURCE_DIR _monado_src)
wivrn_compile_glsl(wivrn-server
TARGET_ENV vulkan1.3
SHADERS
"${_monado_src}/src/xrt/compositor/shaders/layer.comp"
"${CMAKE_CURRENT_SOURCE_DIR}/compositor/shaders/foveation.comp"
)
target_compile_definitions(wivrn-server PRIVATE JSON_DIAGNOSTICS=1) target_compile_definitions(wivrn-server PRIVATE JSON_DIAGNOSTICS=1)
configure_file(dist/wivrn.service.in wivrn.service) configure_file(dist/wivrn.service.in wivrn.service)
+2 -2
View File
@@ -22,8 +22,8 @@
#include "util/u_logging.h" #include "util/u_logging.h"
#include "utils/overloaded.h" #include "utils/overloaded.h"
#include "driver/configuration.h"
#include "driver/wivrn_session.h" #include "driver/wivrn_session.h"
#include "wivrn_config.h"
#include "wivrn_ipc.h" #include "wivrn_ipc.h"
#include "wivrn_sockets.h" #include "wivrn_sockets.h"
@@ -33,7 +33,7 @@ std::unique_ptr<wivrn::TCP> wivrn::accept_connection(wivrn_session & cnx, std::s
{ {
wivrn_ipc_socket_monado->send(from_monado::headset_disconnected{}); wivrn_ipc_socket_monado->send(from_monado::headset_disconnected{});
wivrn::TCPListener listener(wivrn::default_port); wivrn::TCPListener listener(configuration().port);
pollfd fds[2]{ pollfd fds[2]{
{.fd = listener.get_fd(), .events = POLLIN}, {.fd = listener.get_fd(), .events = POLLIN},
+10
View File
@@ -176,6 +176,16 @@ active_runtime::active_runtime() :
auto ovr_compat = openvr_compat_path(); auto ovr_compat = openvr_compat_path();
if (not ovr_compat.empty()) if (not ovr_compat.empty())
{ {
if (not wivrn::is_flatpak())
{
auto vrclient = ovr_compat / "bin"
#ifdef __x86_64__
/ "linux64"
#endif
/ "vrclient.so";
if (not std::filesystem::exists(vrclient))
std::cerr << "Unable to read " << vrclient << " ensure your OpenVR compatibility library is set correctly" << std::endl;
}
std::filesystem::path openvr_manifest = xdg_config_home() / "openvr/openvrpaths.vrpath"; std::filesystem::path openvr_manifest = xdg_config_home() / "openvr/openvrpaths.vrpath";
std::filesystem::create_directories(openvr_manifest.parent_path()); std::filesystem::create_directories(openvr_manifest.parent_path());
move_file(openvr_manifest, backup_name(openvr_manifest)); move_file(openvr_manifest, backup_name(openvr_manifest));
+9 -2
View File
@@ -79,7 +79,8 @@ struct pipewire_device : public audio_device
static void mic_state_changed(void * self_v, pw_stream_state old, pw_stream_state state, const char * error); static void mic_state_changed(void * self_v, pw_stream_state old, pw_stream_state state, const char * error);
void process_mic_data(wivrn::audio_data &&) override; void process_mic_data(wivrn::audio_data &&) override;
void on_connect() override; void pause() override;
void resume() override;
~pipewire_device() ~pipewire_device()
{ {
@@ -415,8 +416,14 @@ void pipewire_device::process_mic_data(wivrn::audio_data && sample)
if (mic_samples.write(std::move(sample))) if (mic_samples.write(std::move(sample)))
mic_buffer_size_bytes += size; mic_buffer_size_bytes += size;
} }
void pipewire_device::on_connect()
void pipewire_device::pause()
{ {
}
void pipewire_device::resume()
{
session.send_control(description());
session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, mic_state == PW_STREAM_STATE_STREAMING}); session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, mic_state == PW_STREAM_STATE_STREAMING});
} }
+7 -2
View File
@@ -404,9 +404,14 @@ struct pulse_device : public audio_device
mic_buffer.push(std::move(mic_data)); mic_buffer.push(std::move(mic_data));
} }
void on_connect() override void pause() override
{ {
session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, true}); }
void resume() override
{
session.send_control(description());
session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, (bool)microphone});
} }
pulse_device( pulse_device(
+3 -2
View File
@@ -34,9 +34,10 @@ struct audio_device
virtual ~audio_device() = default; virtual ~audio_device() = default;
virtual wivrn::to_headset::audio_stream_description description() const = 0; virtual wivrn::to_headset::audio_stream_description description() const = 0;
virtual void process_mic_data(wivrn::audio_data &&) = 0; virtual void process_mic_data(wivrn::audio_data &&) = 0;
virtual void on_connect() = 0;
virtual void pause() = 0;
virtual void resume() = 0;
static std::unique_ptr<audio_device> create( static std::unique_ptr<audio_device> create(
const std::string & source_name, const std::string & source_name,
+742
View File
@@ -0,0 +1,742 @@
/*
* WiVRn VR streaming
* Copyright (C) 2026 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// Copyright 2019-2024, Collabora, Ltd.
// Copyright 2025-2026, NVIDIA CORPORATION.
#include "compositor.h"
// Monado includes
#include "driver/xrt_cast.h"
#include "main/comp_frame.h"
#include "util/comp_render_helpers.h"
#include "util/comp_vulkan.h"
#include "util/u_debug.h"
#include "util/u_handles.h"
#include "util/u_time.h"
#include "vk/vk_helpers.h"
#include "driver/wivrn_session.h"
#include "encoder/video_encoder.h"
#include "utils/method.h"
DEBUG_GET_ONCE_LOG_OPTION(log, "XRT_COMPOSITOR_LOG", U_LOGGING_INFO)
namespace details
{
template <auto Method, typename Result, typename... Args>
struct method_trait<Method, Result (wivrn::compositor::*)(Args...)>
{
static Result magic(xrt_compositor * arg, Args... args)
{
return std::invoke(
Method,
static_cast<wivrn::compositor *>(reinterpret_cast<struct comp_base *>(arg)),
args...);
}
};
} // namespace details
namespace
{
os_mutex copy_mutex(std::mutex & m)
{
return {
.mutex = *m.native_handle(),
#ifndef NDEBUG
.initialized = true,
.recursive = false,
#endif
};
}
const comp_swapchain_image & get_layer_image(const comp_layer & layer, uint32_t swapchain_index, uint32_t image_index)
{
return reinterpret_cast<struct comp_swapchain *>(comp_layer_get_swapchain(&layer, swapchain_index))->images[image_index];
}
std::array<vk::Format, 3> image_formats(int bit_depth)
{
switch (bit_depth)
{
case 8:
return {
vk::Format::eR8Unorm,
vk::Format::eR8G8Unorm,
vk::Format::eG8B8R82Plane420Unorm,
};
case 10:
return {
vk::Format::eR16Unorm,
vk::Format::eR16G16Unorm,
vk::Format::eG10X6B10X6R10X62Plane420Unorm3Pack16,
};
}
throw std::runtime_error(std::format("Unsupported bit depth {}", bit_depth));
}
std::array<wivrn::compositor::image, 2> make_images(wivrn::vk_bundle & vk, vk::CommandPool command_pool, std::span<wivrn::encoder_settings> encoders)
{
auto formats = image_formats(encoders[0].bit_depth);
vk::StructureChain image_info{
vk::ImageCreateInfo{
.flags = vk::ImageCreateFlagBits::eExtendedUsage | vk::ImageCreateFlagBits::eMutableFormat,
.imageType = vk::ImageType::e2D,
.format = formats.back(),
.extent = {
.width = encoders[0].width,
.height = encoders[0].height,
.depth = 1,
},
.mipLevels = 1,
.arrayLayers = 3, // left, right then alpha
.samples = vk::SampleCountFlagBits::e1,
.usage = vk::ImageUsageFlagBits::eStorage | vk::ImageUsageFlagBits::eTransferSrc,
},
vk::ImageFormatListCreateInfo{
.viewFormatCount = formats.size(),
.pViewFormats = formats.data(),
},
};
#if WIVRN_USE_VULKAN_ENCODE
if (
std::get<vk::PhysicalDeviceVideoMaintenance1FeaturesKHR>(vk.feat).videoMaintenance1 and
std::ranges::contains(
encoders,
wivrn::encoder_vulkan,
&wivrn::encoder_settings::encoder_name))
{
image_info.get().flags |= vk::ImageCreateFlagBits::eVideoProfileIndependentKHR;
image_info.get().usage |= vk::ImageUsageFlagBits::eVideoEncodeSrcKHR;
}
#endif
auto bufs = vk.device.allocateCommandBuffers({
.commandPool = command_pool,
.commandBufferCount = 2,
});
auto make_image = [&](int i) {
vk::ImageViewUsageCreateInfo usage{
.usage = vk::ImageUsageFlagBits::eStorage,
};
image_allocation image{
vk.device,
image_info.get(),
VmaAllocationCreateInfo{.usage = VMA_MEMORY_USAGE_AUTO},
std::format("compositor YCbCr image {}", i),
};
vk::Image vk_image{image};
return wivrn::compositor::image{
.sem{vk.device, vk::SemaphoreCreateInfo{}},
.fence{vk.device, vk::FenceCreateInfo{}},
.cmd{std::move(bufs[i])},
.image{std::move(image)},
.view_y{
vk.device,
{
.pNext = &usage,
.image = vk_image,
.viewType = vk::ImageViewType::e2DArray,
.format = formats[0],
.subresourceRange = {
.aspectMask = vk::ImageAspectFlagBits::ePlane0,
.levelCount = 1,
.layerCount = vk::RemainingArrayLayers,
},
},
},
.view_cbcr{
vk.device,
{
.pNext = &usage,
.image = vk_image,
.viewType = vk::ImageViewType::e2DArray,
.format = formats[1],
.subresourceRange = {
.aspectMask = vk::ImageAspectFlagBits::ePlane1,
.levelCount = 1,
.layerCount = vk::RemainingArrayLayers,
},
},
}};
};
return {make_image(0), make_image(1)};
}
vk::raii::Fence make_fence(wivrn::vk_bundle & vk, const char * name)
{
vk::raii::Fence res{
vk.device,
vk::FenceCreateInfo{
.flags = vk::FenceCreateFlagBits::eSignaled,
},
};
vk.name(res, name);
return res;
}
vk::Extent3D render_extent(const wivrn::from_headset::headset_info_packet & info)
{
return {
.width = info.render_eye_width,
.height = info.render_eye_height,
.depth = 1,
};
}
} // namespace
namespace wivrn
{
xrt_result_t compositor::predict_frame(int64_t * out_frame_id,
int64_t * out_wake_time_ns,
int64_t * out_predicted_gpu_time_ns,
int64_t * out_predicted_display_time_ns,
int64_t * out_predicted_display_period_ns)
{
int64_t frame_id = -1;
int64_t wake_up_time_ns = 0;
int64_t present_slop_ns = 0;
int64_t desired_present_time_ns = 0;
int64_t predicted_display_time_ns = 0;
pacer.predict(
frame_id,
wake_up_time_ns,
desired_present_time_ns,
present_slop_ns,
predicted_display_time_ns);
frame.waited.id = frame_id;
frame.waited.desired_present_time_ns = desired_present_time_ns;
frame.waited.present_slop_ns = present_slop_ns;
frame.waited.predicted_display_time_ns = predicted_display_time_ns;
*out_frame_id = frame_id;
*out_wake_time_ns = wake_up_time_ns;
*out_predicted_gpu_time_ns = desired_present_time_ns; // Not quite right but close enough.
*out_predicted_display_time_ns = predicted_display_time_ns;
*out_predicted_display_period_ns = pacer.get_frame_duration();
return XRT_SUCCESS;
}
xrt_result_t compositor::mark_frame(int64_t frame_id,
xrt_compositor_frame_point point,
int64_t when_ns)
{
switch (point)
{
case XRT_COMPOSITOR_FRAME_POINT_WOKE:
session.dump_time("wake_up", frame_id, when_ns);
return XRT_SUCCESS;
default:
assert(false);
}
return XRT_ERROR_VULKAN;
}
xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle)
{
u_graphics_sync_unref(&sync_handle);
// Move waited frame to rendering frame, clear waited.
comp_frame_move_and_clear_locked(&frame.rendering, &frame.waited);
U_LOG_IFL_D(log_level, "frame %ld commit %d layers", frame.rendering.id, layer_accum.layer_count);
auto _ = vk.device.waitForFences(*fence, true, INT64_MAX);
if (encode_request >= 0 // encoders have not picked up the previous frame
or layer_accum.layer_count == 0 or not session.connected())
{
comp_frame_clear_locked(&frame.rendering);
return XRT_SUCCESS;
}
int i = acquire_image();
if (i < 0)
{
comp_frame_clear_locked(&frame.rendering);
return XRT_SUCCESS;
}
assert(images[i].fence.getStatus() == vk::Result::eNotReady);
auto & view_info = images[i].view_info;
images[i].frame_index = frame.rendering.id;
view_info = {
.display_time = session.get_offset().to_headset(frame.rendering.predicted_display_time_ns),
.alpha = layer_accum.data.env_blend_mode == XRT_BLEND_MODE_ALPHA_BLEND,
};
session.dump_time("begin", frame.rendering.id, os_monotonic_get_ns());
cmd.reset();
cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit});
bool flip_y = false;
std::array<vk::ImageView, 2> src;
std::array<xrt_rect, 2> src_rect;
std::array<xrt_fov, 2> src_fov;
// Check if we can pass a layer directly to foveation
if (layer_accum.layer_count == 1 and
(layer_accum.layers[0].data.type == XRT_LAYER_PROJECTION or
layer_accum.layers[0].data.type == XRT_LAYER_PROJECTION_DEPTH))
{
const auto & layer = layer_accum.layers[0];
for (int view = 0; view < 2; ++view)
{
const auto & data = (layer.data.type == XRT_LAYER_PROJECTION ? layer.data.proj.v : layer.data.depth.v)[view];
src[view] = get_image_view(
&get_layer_image(layer, view, data.sub.image_index),
layer.data.flags,
data.sub.array_index);
src_rect[view] = data.sub.rect;
src_fov[view] = data.fov;
flip_y = layer.data.flip_y;
view_info.pose[view] = xrt_cast(data.pose);
view_info.fov[view] = xrt_cast(data.fov);
}
}
else
{
// no fast-path, squash layers
std::array<xrt_pose, 2> poses;
const auto extent = images[0].image.info().extent;
std::tie(poses, src_fov, src_rect) = squasher.do_layers(
vk.device,
cmd,
session.get_hmd(),
pacer.get_frame_duration(),
frame.rendering,
layer_accum,
xrt_rect{.extent{.w = int(extent.width), .h = int(extent.height)}});
src = squasher.get_views();
for (int view = 0; view < 2; ++view)
{
view_info.pose[view] = xrt_cast(poses[view]);
view_info.fov[view] = xrt_cast(src_fov[view]);
}
}
vk::ImageMemoryBarrier2 target_barrier{
.dstStageMask = vk::PipelineStageFlagBits2::eComputeShader,
.dstAccessMask = vk::AccessFlagBits2::eShaderStorageWrite,
.oldLayout = vk::ImageLayout::eUndefined,
.newLayout = vk::ImageLayout::eGeneral,
.image = images[i].image,
.subresourceRange = {
.aspectMask = vk::ImageAspectFlagBits::eColor,
.baseMipLevel = 0,
.levelCount = 1,
.baseArrayLayer = 0,
.layerCount = vk::RemainingArrayLayers,
},
};
cmd.pipelineBarrier2({
.imageMemoryBarrierCount = 1,
.pImageMemoryBarriers = &target_barrier,
});
if (session.get_info().eye_gaze)
{
auto now = os_monotonic_get_ns();
session.add_tracking_request(device_id::EYE_GAZE, frame.rendering.desired_present_time_ns, now, now);
}
view_info.foveation = foveation.foveate(
vk.device,
cmd,
images[i].view_y,
images[i].view_cbcr,
flip_y,
src,
src_rect,
src_fov);
if (std::ranges::any_of(encoders, &video_encoder::need_copy))
{
target_barrier.srcAccessMask = target_barrier.dstAccessMask;
target_barrier.srcStageMask = target_barrier.dstStageMask;
target_barrier.oldLayout = target_barrier.newLayout;
target_barrier.dstAccessMask = vk::AccessFlagBits2::eTransferRead;
target_barrier.dstStageMask = vk::PipelineStageFlagBits2::eTransfer;
target_barrier.newLayout = vk::ImageLayout::eTransferSrcOptimal;
cmd.pipelineBarrier2({
.imageMemoryBarrierCount = 1,
.pImageMemoryBarriers = &target_barrier,
});
}
cmd.end();
vk.device.resetFences(*fence);
{
std::unique_lock lock{vk.queue_mutex};
vk.queue.submit(
vk::SubmitInfo{
.commandBufferCount = 1,
.pCommandBuffers = &*cmd,
.signalSemaphoreCount = 1,
.pSignalSemaphores = &*images[i].sem,
},
*fence);
}
images[i].cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit});
auto info = pacer.present_to_info(frame.rendering.desired_present_time_ns);
bool need_queue_transfer = false;
std::vector<vk::Semaphore> present_done_sem;
for (auto & encoder: encoders)
{
if (encoder->stream_idx == 2 and not view_info.alpha)
continue;
auto [transfer, sem] = encoder->present_image(
images[i].image,
need_queue_transfer,
images[i].cmd,
info.frame_id);
need_queue_transfer |= transfer;
if (sem)
present_done_sem.push_back(sem);
}
vk::PipelineStageFlags stages = vk::PipelineStageFlagBits::eAllCommands;
vk::SubmitInfo submit_info{
.waitSemaphoreCount = 1,
.pWaitSemaphores = &*images[i].sem,
.pWaitDstStageMask = &stages,
};
#if WIVRN_USE_VULKAN_ENCODE
if (need_queue_transfer)
{
vk::ImageMemoryBarrier2 video_barrier{
.srcStageMask = vk::PipelineStageFlagBits2KHR::eTransfer,
.srcAccessMask = vk::AccessFlagBits2::eMemoryRead,
.dstStageMask = vk::PipelineStageFlagBits2KHR::eVideoEncodeKHR,
.oldLayout = target_barrier.newLayout,
.newLayout = vk::ImageLayout::eVideoEncodeSrcKHR,
.srcQueueFamilyIndex = vk.queue_family_index,
.dstQueueFamilyIndex = vk.encode_queue_family_index,
.image = images[i].image,
.subresourceRange = {
.aspectMask = vk::ImageAspectFlagBits::eColor,
.baseMipLevel = 0,
.levelCount = 1,
.baseArrayLayer = 0,
.layerCount = vk::RemainingArrayLayers,
},
};
images[i].cmd.pipelineBarrier2({
.imageMemoryBarrierCount = 1,
.pImageMemoryBarriers = &video_barrier,
});
}
submit_info.setSignalSemaphores(present_done_sem);
#endif
images[i].cmd.end();
submit_info.setCommandBuffers(*images[i].cmd);
{
std::unique_lock lock{vk.queue_mutex};
vk.queue.submit(submit_info, *images[i].fence);
for (auto & encoder: encoders)
{
if (encoder->stream_idx == 2 and not view_info.alpha)
continue;
encoder->post_submit();
}
}
auto j = encode_request.exchange(i);
encode_request.notify_all();
assert(j == -1);
// Now is a good point to garbage collect.
comp_swapchain_shared_garbage_collect(&cscs);
return XRT_SUCCESS;
}
xrt_result_t compositor::get_display_refresh_rate(float * hz)
{
*hz = refresh_rate;
return XRT_SUCCESS;
}
xrt_result_t compositor::request_display_refresh_rate(float hz)
{
try
{
session.send_control(to_headset::refresh_rate_change{.fps = hz});
}
catch (std::exception & e)
{
U_LOG_W("refresh rate change failed: %s", e.what());
}
return XRT_SUCCESS;
}
int compositor::acquire_image()
{
for (auto [i, image]: std::ranges::enumerate_view(images))
{
if (not image.busy.exchange(true))
return i;
}
return -1;
}
void compositor::encoder_work(std::stop_token tok)
{
while (not tok.stop_requested())
{
auto req = encode_request.exchange(-1);
if (req < 0)
{
encode_request.wait(req);
continue;
}
assert(req < images.size());
auto & image = images[req];
auto _ = vk.device.waitForFences(*image.fence, true, UINT64_MAX);
vk.device.resetFences(*image.fence);
try
{
for (auto & encoder: encoders)
{
if (encoder->stream_idx < 2 or image.view_info.alpha)
encoder->encode(session, image.view_info, image.frame_index);
}
}
catch (std::exception & e)
{
U_LOG_W("encode error: %s", e.what());
}
image.busy = false;
}
}
void compositor::send_video_stream_description()
{
to_headset::video_stream_description desc{
.width = uint16_t(images[0].image.info().extent.width),
.height = uint16_t(images[0].image.info().extent.height),
.fps = settings[0].fps,
};
static_assert(std::tuple_size_v<decltype(settings)> == std::tuple_size_v<decltype(desc.codec)>);
std::ranges::transform(settings, desc.codec.begin(), &encoder_settings::codec);
session.send_control(std::move(desc));
}
compositor::compositor(wivrn_session & session) :
comp_base{
.base = {
.base = {
.info{},
.begin_session = method_pointer<&compositor::begin_session>,
.end_session = method_pointer<&compositor::end_session>,
.predict_frame = method_pointer<&compositor::predict_frame>,
.mark_frame = method_pointer<&compositor::mark_frame>,
.begin_frame = method_pointer<&compositor::begin_frame>,
.discard_frame = method_pointer<&compositor::discard_frame>,
.layer_commit = method_pointer<&compositor::layer_commit>,
.get_display_refresh_rate = method_pointer<&compositor::get_display_refresh_rate>,
.request_display_refresh_rate = method_pointer<&compositor::request_display_refresh_rate>,
.destroy = method_pointer<&compositor::destroy>,
},
},
},
log_level(debug_get_log_option_log()),
session(session),
cmd_pool(vk.device, vk::CommandPoolCreateInfo{
.flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer,
.queueFamilyIndex = vk.queue_family_index,
}),
settings(get_encoder_settings(vk, session)),
images{make_images(vk, cmd_pool, settings)},
cmd{std::move(vk.device.allocateCommandBuffers({.commandPool = *cmd_pool, .commandBufferCount = 1})[0])},
fence{make_fence(vk, "compositor fence")},
refresh_rate(settings[0].fps),
pacer(U_TIME_1S_IN_NS / refresh_rate),
squasher(vk, render_extent(session.get_info())),
foveation(vk, images[0].image.info().extent),
encoder_thread{[&](std::stop_token t) { encoder_work(t); }}
{
comp_base * c_base = this;
// Ensure we can safely cast pointers
assert(intptr_t(&base) == intptr_t(this));
auto res = vk_init_from_given(
&c_base->vk,
(PFN_vkGetInstanceProcAddr)vk.instance.getProcAddr("vkGetInstanceProcAddr"),
*vk.instance,
*vk.physical_device,
*vk.device,
vk.queue_family_index,
0,
vk.has_device_ext(VK_KHR_EXTERNAL_FENCE_FD_EXTENSION_NAME),
vk.has_device_ext(VK_KHR_EXTERNAL_SEMAPHORE_FD_EXTENSION_NAME),
std::get<vk::PhysicalDeviceVulkan12Features>(vk.feat).timelineSemaphore,
true, // in Vulkan 1.2
vk.has_instance_ext(VK_EXT_DEBUG_UTILS_EXTENSION_NAME),
log_level);
vk::detail::resultCheck(vk::Result(res), "vk_init_from_given");
// vk_init_from_given assumes a graphics queue was provided
c_base->vk.graphics_queue = nullptr;
if (c_base->vk.main_queue)
c_base->vk.main_queue->mutex = copy_mutex(vk.queue_mutex);
if (c_base->vk.encode_queue)
c_base->vk.encode_queue->mutex = copy_mutex(vk.encode_queue_mutex);
{
comp_vulkan_formats formats{};
comp_vulkan_formats_check(&c_base->vk, &formats);
comp_vulkan_formats_copy_to_info(&formats, &base.base.info);
comp_vulkan_formats_log(log_level, &formats);
}
comp_base_init(this);
// Tie the lifetimes of swapchains to Vulkan.
xrt_result_t xret = comp_swapchain_shared_init(&cscs, &c_base->vk);
if (xret != XRT_SUCCESS)
throw std::runtime_error("comp_swapchain_shared_init failed");
print_encoders(settings);
for (auto [i, settings]: std::ranges::enumerate_view(settings))
encoders[i] = video_encoder::create(vk, settings, i);
send_video_stream_description();
}
compositor::~compositor()
{
encoder_thread.request_stop();
encode_request = -2;
encode_request.notify_all();
comp_base * c_base = this;
comp_swapchain_shared_garbage_collect(&cscs);
comp_swapchain_shared_destroy(&cscs, &c_base->vk);
comp_base_fini(this);
}
xrt_system_compositor_info compositor::sys_info() const
{
const auto & info = session.get_info();
auto [prop, dev_id] = vk.physical_device.getProperties2<vk::PhysicalDeviceProperties2, vk::PhysicalDeviceIDProperties>();
xrt_system_compositor_info res{
.view_config_count = 1,
.view_configs = {
{
.view_type = XRT_VIEW_TYPE_STEREO,
.view_count = 2,
.views = {},
},
},
.max_layers = squasher.max_layers(prop.properties),
.supported_blend_modes = {
XRT_BLEND_MODE_OPAQUE,
XRT_BLEND_MODE_ALPHA_BLEND,
},
.supported_blend_mode_count = uint8_t(1 + info.passthrough),
.refresh_rate_count = std::min<uint32_t>(info.available_refresh_rates.size(), std::size(res.refresh_rates_hz)),
.supports_fov_mutable = true,
};
std::ranges::copy(dev_id.deviceUUID, res.compositor_vk_deviceUUID.data);
std::ranges::copy(dev_id.deviceUUID, res.client_vk_deviceUUID.data);
std::ranges::copy(std::span(info.available_refresh_rates).subspan(0, res.refresh_rate_count), res.refresh_rates_hz);
const auto extent = render_extent(info);
for (auto & view: std::span(res.view_configs[0].views, res.view_configs[0].view_count))
{
view = {
.recommended = {
.width_pixels = extent.width,
.height_pixels = extent.height,
.sample_count = 1,
},
.max = {
.width_pixels = extent.width * 2u,
.height_pixels = extent.height * 2u,
.sample_count = 1,
},
};
}
return res;
}
void compositor::set_bitrate(uint32_t bitrate)
{
for (auto & encoder: encoders)
encoder->set_bitrate(bitrate);
}
void compositor::set_refresh_rate(float hz)
{
U_LOG_IFL_D(log_level, "Refresh rate change from %.0f to %.0f", refresh_rate.load(), hz);
refresh_rate = hz;
pacer.set_frame_duration(U_TIME_1S_IN_NS / hz);
for (auto & encoder: encoders)
encoder->set_framerate(hz);
}
void compositor::update_tracking(const from_headset::tracking & tracking)
{
foveation.update_tracking(tracking);
}
void compositor::update_foveation_center_override(const from_headset::override_foveation_center & center)
{
foveation.update_foveation_center_override(center);
}
void compositor::resume()
{
for (auto & encoder: encoders)
encoder->reset();
send_video_stream_description();
}
void compositor::on_feedback(const from_headset::feedback & feedback, const clock_offset & o)
{
uint8_t stream = feedback.stream_index;
if (stream >= encoders.size())
return;
encoders[stream]->on_feedback(feedback);
if (not o)
return;
pacer.on_feedback(feedback, o);
}
} // namespace wivrn
+176
View File
@@ -0,0 +1,176 @@
/*
* WiVRn VR streaming
* Copyright (C) 2026 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// Copyright 2019-2024, Collabora, Ltd.
// Copyright 2025-2026, NVIDIA CORPORATION.
#pragma once
#include "util/comp_base.h"
#include "util/u_logging.h"
#include "encoder/encoder_settings.h"
#include "foveation.h"
#include "layer_squasher.h"
#include "pacer.h"
#include "utils/wivrn_vk_bundle.h"
#include "main/comp_compositor.h"
#include <array>
#include <atomic>
#include <memory>
#include <thread>
namespace wivrn
{
class wivrn_session;
class video_encoder;
class compositor : public comp_base
{
public:
struct image
{
std::atomic<bool> busy = false;
vk::raii::Semaphore sem;
vk::raii::Fence fence;
vk::raii::CommandBuffer cmd;
image_allocation image;
vk::raii::ImageView view_y;
vk::raii::ImageView view_cbcr;
to_headset::video_stream_data_shard::view_info_t view_info{};
uint64_t frame_index;
};
private:
const u_logging_level log_level;
wivrn_session & session;
vk_bundle vk;
vk::raii::CommandPool cmd_pool;
std::array<encoder_settings, 3> settings;
std::array<image, 2> images;
vk::raii::CommandBuffer cmd;
vk::raii::Fence fence;
std::atomic<float> requested_refresh_rate;
std::atomic<float> refresh_rate;
wivrn::pacer pacer;
layer_squasher squasher;
wivrn::foveation foveation;
std::array<std::unique_ptr<video_encoder>, 3> encoders;
#ifdef __cpp_lib_atomic_lock_free_type_aliases
using status_type = std::atomic_signed_lock_free;
#else
using status_type = std::atomic_int8_t;
#endif
status_type encode_request{-1}; // id of the image to encode
std::jthread encoder_thread;
struct
{
comp_frame waited{.id = -1};
comp_frame rendering{.id = -1};
} frame;
xrt_result_t begin_session(const xrt_begin_session_info * info)
{
return XRT_SUCCESS;
};
xrt_result_t end_session()
{
return XRT_SUCCESS;
};
xrt_result_t predict_frame(int64_t * out_frame_id,
int64_t * out_wake_time_ns,
int64_t * out_predicted_gpu_time_ns,
int64_t * out_predicted_display_time_ns,
int64_t * out_predicted_display_period_ns);
xrt_result_t mark_frame(int64_t frame_id,
xrt_compositor_frame_point point,
int64_t when_ns);
xrt_result_t begin_frame(int64_t frame_id)
{
return XRT_SUCCESS;
}
xrt_result_t discard_frame(int64_t frame_id)
{
return XRT_SUCCESS;
};
xrt_result_t layer_commit(xrt_graphics_sync_handle_t sync_handle);
xrt_result_t get_display_refresh_rate(float * out_display_refresh_rate_hz);
public:
xrt_result_t request_display_refresh_rate(float display_refresh_rate_hz);
private:
void destroy()
{
// do nothing, actually owned by wivrn_session object
}
int acquire_image();
void encoder_work(std::stop_token);
void send_video_stream_description();
public:
using base_t = xrt_compositor;
compositor(wivrn_session &);
~compositor();
xrt_system_compositor_info sys_info() const;
int64_t get_frame_duration() const
{
return pacer.get_frame_duration();
}
float get_requested_refresh_rate() const
{
return requested_refresh_rate;
}
float get_refresh_rate() const
{
return refresh_rate;
}
void set_refresh_rate(float hz);
void set_bitrate(uint32_t);
void update_tracking(const from_headset::tracking &);
void update_foveation_center_override(const from_headset::override_foveation_center &);
void resume();
void on_feedback(const from_headset::feedback &, const clock_offset &);
};
} // namespace wivrn
+658
View File
@@ -0,0 +1,658 @@
/*
* WiVRn VR streaming
* Copyright (C) 2024 galister <galister@librevr.org>
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "foveation.h"
#include "driver/xrt_cast.h"
#include "utils/wivrn_vk_bundle.h"
#include "wivrn_packets.h"
#include "xrt/xrt_defines.h"
#include "xrt/xrt_limits.h"
#include <array>
#include <cmath>
#include <ranges>
#include <vulkan/vulkan_raii.hpp>
#include <vulkan/vulkan_structs.hpp>
#include <openxr/openxr.h>
#define RENDER_FOVEATION_BUFFER_DIMENSIONS (4096 + 1)
namespace
{
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;
};
vk::raii::Sampler make_sampler(wivrn::vk_bundle & vk)
{
vk::raii::Sampler res(
vk.device,
vk::SamplerCreateInfo{
.magFilter = vk::Filter::eLinear,
.minFilter = vk::Filter::eLinear,
.mipmapMode = vk::SamplerMipmapMode::eLinear,
.addressModeU = vk::SamplerAddressMode::eClampToBorder,
.addressModeV = vk::SamplerAddressMode::eClampToBorder,
.addressModeW = vk::SamplerAddressMode::eClampToBorder,
.borderColor = vk::BorderColor::eFloatOpaqueBlack,
});
vk.name(res, "foveation sampler");
return res;
}
vk::raii::DescriptorSetLayout make_ds_layout(wivrn::vk_bundle & vk)
{
std::array bindings{
vk::DescriptorSetLayoutBinding{
.binding = 0,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = 2,
.stageFlags = vk::ShaderStageFlagBits::eCompute,
},
vk::DescriptorSetLayoutBinding{
.binding = 1,
.descriptorType = vk::DescriptorType::eStorageBuffer,
.descriptorCount = 1,
.stageFlags = vk::ShaderStageFlagBits::eCompute,
},
vk::DescriptorSetLayoutBinding{
.binding = 2,
.descriptorType = vk::DescriptorType::eStorageImage,
.descriptorCount = 1,
.stageFlags = vk::ShaderStageFlagBits::eCompute,
},
vk::DescriptorSetLayoutBinding{
.binding = 3,
.descriptorType = vk::DescriptorType::eStorageImage,
.descriptorCount = 1,
.stageFlags = vk::ShaderStageFlagBits::eCompute,
},
};
vk::raii::DescriptorSetLayout res{
vk.device,
vk::DescriptorSetLayoutCreateInfo{
.bindingCount = bindings.size(),
.pBindings = bindings.data(),
},
};
vk.name(*res, "foveation descriptor set layout");
return res;
}
vk::raii::PipelineLayout make_layout(wivrn::vk_bundle & vk, vk::DescriptorSetLayout ds_layout)
{
vk::raii::PipelineLayout res(vk.device,
vk::PipelineLayoutCreateInfo{
.setLayoutCount = 1,
.pSetLayouts = &ds_layout,
});
vk.name(*res, "foveation pipeline layout");
return res;
}
vk::raii::Pipeline make_pipeline(wivrn::vk_bundle & vk, vk::PipelineLayout layout)
{
vk::raii::Pipeline res(
vk.device,
nullptr,
vk::ComputePipelineCreateInfo{
.stage = {
.stage = vk::ShaderStageFlagBits::eCompute,
.module = *vk.load_shader("foveation"),
.pName = "main",
},
.layout = layout,
});
vk.name(*res, "foveation pipeline");
return res;
}
vk::raii::DescriptorPool make_ds_pool(wivrn::vk_bundle & vk)
{
std::array pool_sizes{
vk::DescriptorPoolSize{
.type = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = 2,
},
vk::DescriptorPoolSize{
.type = vk::DescriptorType::eStorageImage,
.descriptorCount = 2,
},
vk::DescriptorPoolSize{
.type = vk::DescriptorType::eStorageBuffer,
.descriptorCount = 1,
},
};
vk::raii::DescriptorPool res{
vk.device,
vk::DescriptorPoolCreateInfo{
.maxSets = 5,
.poolSizeCount = pool_sizes.size(),
.pPoolSizes = pool_sizes.data(),
},
};
vk.name(*res, "foveation descriptor pool");
return res;
}
uint32_t divide_and_round_up(uint32_t a, uint32_t b)
{
return (a + (b - 1)) / b;
}
} // namespace
// a, b: parameters computed by solve_foveation
// λ: pixel ratio between full size and foveated image (in range ]0,1[)
// c: coordinates in -1,1 range of the full size image where pixel ratio must be 1:1
// x: coordinates in -1,1 range of the foveated image
// result: full size image coordinates in -1,1 range
static double defoveate(double a, double b, double λ, double c, double x)
{
// In order to save encoding, transmit and decoding time, only a portion of the image is encoded in full resolution.
// on each axis, foveated coordinates are defined by the following formula.
return λ / a * tan(a * x + b) + c;
// a and b are defined such as:
// edges of the image are not moved
// f(-1) = -1
// f( 1) = 1
// the function also enforces pixel ratio 1:1 at fovea
// df⁻¹(x)/dx = 1/scale for x = c
// We then ensure that source and destination pixel grids match by
// rounding to integer pixel ratios: 1:1, 1:2 etc.
// Finally, pixel spans are sorted so that we only have increasing
// ratios going out from the center.
}
static std::tuple<float, float> solve_foveation(float λ, float c)
{
// Compute a and b for the foveation function such that:
// foveate(a, b, scale, c, -1) = -1 (eq. 1)
// foveate(a, b, scale, c, 1) = 1 (eq. 2)
//
// Use eq. 2 to express a as function of b, then replace in eq. 1
// equation that needs to be null is:
auto b = [λ, c](double a) { return atan(a * (1 - c) / λ) - a; };
auto eq = [λ, c](double a) { return atan(a * (1 - c) / λ) + atan(a * (1 + c) / λ) - 2 * a; }; // (eq. 3)
// function starts positive, reaches a maximum then decreases to -∞
double a0 = 0;
// Find a negative value by computing eq(2^n)
double a1 = 1;
while (eq(a1) > 0)
a1 *= 2;
// last computed values for f(a0) and f(a1)
std::optional<double> f_a0;
double f_a1 = eq(a1);
int n = 0;
double a = 0;
while (std::abs(a1 - a0) > 0.0000001 && n++ < 100)
{
if (not f_a0)
{
// use binary search
a = 0.5 * (a0 + a1);
double val = eq(a);
if (val > 0)
{
a0 = a;
f_a0 = val;
}
else
{
a1 = a;
f_a1 = val;
}
}
else
{
// f(a1) is always defined
// when f(a0) is defined, use secant method
a = a1 - f_a1 * (a1 - a0) / (f_a1 - *f_a0);
a0 = a1;
a1 = a;
f_a0 = f_a1;
f_a1 = eq(a);
}
}
return {a, b(a)};
}
static bool is_zero_quat(xrt_quat q)
{
return q.x == 0 and q.y == 0 and q.z == 0 and q.w == 0;
}
static xrt_vec2 yaw_pitch(xrt_quat q)
{
if (is_zero_quat(q))
return xrt_vec2{};
float sine_theta = std::clamp(-2.0f * (q.y * q.z - q.w * q.x), -1.0f, 1.0f);
float pitch = std::asin(sine_theta);
if (std::abs(sine_theta) > 0.99999f)
{
float scale = std::copysign(2.0, sine_theta);
return {scale * std::atan2(-q.z, q.w), pitch};
}
return {
std::atan2(2.0f * (q.x * q.z + q.w * q.y),
q.w * q.w - q.x * q.x - q.y * q.y + q.z * q.z),
pitch};
}
static float angles_to_center(float e, float l, float r)
{
e = tan(e);
l = tan(l);
r = tan(r);
float res = std::clamp((e - l) / (r - l) * 2 - 1, -1.f, 1.f);
// If the center isn't in the FoV, fallback to middle of image
if (std::isnan(res))
return 0;
return res;
}
static float convergence_angle(float distance, float eye_x, float gaze_yaw)
{
auto b = distance * std::sin(gaze_yaw) - eye_x;
return std::asin(b / distance);
}
static void fill_param_2d(
float c,
size_t foveated_dim,
size_t source_dim,
std::vector<uint16_t> & out)
{
float scale = float(foveated_dim) / source_dim;
auto [a, b] = solve_foveation(scale, c);
uint16_t last = 0;
std::vector<uint16_t> left; // index 0: 1:1 ratio, then 2:1 etc.
std::vector<uint16_t> right;
for (size_t i = 1; i < foveated_dim; ++i)
{
double u = (i * 2.) / foveated_dim - 1;
auto f = defoveate(a, b, scale, c, u);
uint16_t n = std::clamp<uint16_t>((f * 0.5 + 0.5) * source_dim + 0.5, 0, source_dim);
assert(n > last);
size_t count = n - last;
auto & vec = u < c ? left : right;
if (count > vec.size())
vec.resize(count);
vec[count - 1]++;
last = n;
}
assert(last < source_dim);
size_t count = source_dim - last;
if (count > right.size())
right.resize(count);
right[count - 1]++;
count = std::max(left.size(), right.size());
out.clear();
out.resize(count - left.size());
out.insert(out.end(), left.rbegin(), left.rend());
if (not right.empty())
out.back() += right.front();
if (right.size() > 1)
out.insert(out.end(), right.begin() + 1, right.end());
out.resize(count * 2 - 1);
}
namespace wivrn
{
void foveation::compute_params()
{
auto e = yaw_pitch(gaze);
if (manual_foveation.enabled)
e.y = manual_foveation.pitch;
for (size_t i = 0; i < 2; ++i)
{
const auto & fov = last.fovs[i];
size_t extent_w = std::abs(last.src[i].extent.w);
if (foveated_size.width < extent_w)
{
auto distance = manual_foveation.enabled ? manual_foveation.distance : convergence_distance;
auto angle_x = convergence_angle(distance, eye_x[i], -e.x);
auto center = angles_to_center(angle_x, fov.angle_left, fov.angle_right);
fill_param_2d(center, foveated_size.width, extent_w, params[i].x);
}
else
params[i].x = {uint16_t(last.src[i].extent.w)};
size_t extent_h = std::abs(last.src[i].extent.h);
if (foveated_size.height < extent_h)
{
auto angle_y = -e.y;
if (is_zero_quat(gaze) and not manual_foveation.enabled)
{
// Natural gaze is not straight forward, adjust the angle
angle_y += angle_offset;
}
auto center = angles_to_center(-angle_y, fov.angle_up, fov.angle_down);
fill_param_2d(center, foveated_size.height, extent_h, params[i].y);
}
else
params[i].y = {uint16_t(last.src[i].extent.h)};
}
}
foveation::foveation(wivrn::vk_bundle & bundle, vk::Extent3D foveated_size) :
foveated_size(foveated_size),
// normal sight line is between 10° and 15° below horizontal
// https://apps.dtic.mil/sti/tr/pdf/AD0758339.pdf pages 393-394
// testing shows 10° looks better
angle_offset(10 * M_PI / 180),
convergence_distance(1 /* meter*/),
gpu_buffer(
bundle.device,
{
.size = sizeof(ubo_data),
.usage = vk::BufferUsageFlagBits::eTransferDst | vk::BufferUsageFlagBits::eStorageBuffer,
},
VmaAllocationCreateInfo{
.flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT | VMA_ALLOCATION_CREATE_HOST_ACCESS_ALLOW_TRANSFER_INSTEAD_BIT,
.usage = VMA_MEMORY_USAGE_AUTO,
},
"foveation storage buffer"),
sampler(make_sampler(bundle)),
ds_layout(make_ds_layout(bundle)),
layout(make_layout(bundle, ds_layout)),
pipeline(make_pipeline(bundle, layout)),
descriptor_pool(make_ds_pool(bundle)),
descriptor_set(bundle.device.allocateDescriptorSets(vk::DescriptorSetAllocateInfo{
.descriptorPool = descriptor_pool,
.descriptorSetCount = 1,
.pSetLayouts = &*ds_layout,
})[0]
.release())
{
if (not(gpu_buffer.properties() & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT))
{
host_buffer = buffer_allocation(
bundle.device,
{
.size = gpu_buffer.info().size,
.usage = vk::BufferUsageFlagBits::eTransferSrc,
},
{
.flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT,
.usage = VMA_MEMORY_USAGE_AUTO_PREFER_HOST,
},
"foveation staging buffer");
}
bundle.name(descriptor_set, "foveation descriptor set");
}
void foveation::update_tracking(const from_headset::tracking & tracking)
{
std::lock_guard lock(mutex);
const uint8_t orientation_ok = from_headset::tracking::orientation_valid | from_headset::tracking::orientation_tracked;
if (tracking.view_flags & XR_VIEW_STATE_POSITION_VALID_BIT)
{
eye_x[0] = tracking.views[0].pose.position.x;
eye_x[1] = tracking.views[1].pose.position.x;
}
for (const auto & pose: tracking.device_poses)
{
if (pose.device != device_id::EYE_GAZE)
continue;
if ((pose.flags & orientation_ok) != orientation_ok)
return;
gaze = xrt_cast(pose.pose.orientation);
return;
}
}
void foveation::update_foveation_center_override(const from_headset::override_foveation_center & center)
{
std::lock_guard lock(mutex);
manual_foveation = center;
}
static void fill_ubo(
std::span<uint32_t> ubo,
const std::vector<uint16_t> & params,
bool flip,
size_t offset,
size_t size,
[[maybe_unused]] int count)
{
assert(params.size() % 2 == 1);
const int n_ratio = (params.size() - 1) / 2;
ubo[0] = offset;
if (flip)
ubo[0] += size;
for (auto [i, n]: std::ranges::enumerate_view(params))
{
const int n_source = std::abs(n_ratio - int(i)) + 1;
for (size_t j = 0; j < n; ++j)
{
assert(count > 0);
if (flip)
ubo[1] = ubo[0] - n_source;
else
ubo[1] = ubo[0] + n_source;
ubo = ubo.subspan(1);
--count;
}
}
if (not ubo.empty())
std::ranges::fill(ubo, ubo[0]);
}
template <typename T>
static bool operator==(const T & a, const T & b)
{
static_assert(std::has_unique_object_representations_v<T>);
return std::memcmp(&a, &b, sizeof(T)) == 0;
}
static bool operator==(const xrt_quat & a, const xrt_quat & b)
{
return a.x == b.x and a.y == b.y and a.z == b.z and a.w == b.w;
}
static bool operator==(const xrt_fov & a, const xrt_fov & b)
{
return a.angle_left == b.angle_left and a.angle_right == b.angle_right and a.angle_up == b.angle_up and a.angle_down == b.angle_down;
}
void foveation::update_ubo(
vk::raii::CommandBuffer & cmd,
bool flip_y,
std::array<xrt_rect, 2> src_rect,
std::array<xrt_fov, 2> src_fov)
{
// Check if the last value is still valid
std::lock_guard lock(mutex);
if (last.flip_y == flip_y and
last.src[0] == src_rect[0] and
last.src[1] == src_rect[1] and
last.fovs[0] == src_fov[0] and
last.fovs[1] == src_fov[1] and
(last.gaze == gaze or manual_foveation.enabled) and // Ignore the gaze if foveation center is overridden
std::abs(last.eye_x[0] - eye_x[0]) < 0.0005 and
std::abs(last.eye_x[1] - eye_x[1]) < 0.0005 and
last.manual_foveation.enabled == manual_foveation.enabled and
std::abs(last.manual_foveation.pitch - manual_foveation.pitch) < 0.0005 and
std::abs(last.manual_foveation.distance - manual_foveation.distance) < 0.0005)
return;
if (host_buffer)
cmd.copyBuffer(host_buffer, gpu_buffer, vk::BufferCopy{.size = sizeof(ubo_data)});
last = {
.gaze = gaze,
.flip_y = flip_y,
.src = {src_rect[0], src_rect[1]},
.fovs = {src_fov[0], src_fov[1]},
.eye_x = {eye_x[0], eye_x[1]},
.manual_foveation = manual_foveation,
};
compute_params();
auto ubo = host_buffer ? host_buffer.data<ubo_data>() : gpu_buffer.data<ubo_data>();
ubo->alpha_width = foveated_size.width / 2;
for (size_t view = 0; view < 2; ++view)
{
bool flip = false;
size_t offset, extent;
if (src_rect[view].extent.w < 0)
{
flip = true;
offset = src_rect[view].offset.w + src_rect[view].extent.w;
extent = -src_rect[view].extent.w;
}
else
{
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),
params[view].x,
flip,
offset,
extent,
foveated_size.width);
if (src_rect[view].extent.h < 0)
{
flip = not flip_y;
offset = src_rect[view].offset.h + src_rect[view].extent.h;
extent = -src_rect[view].extent.h;
}
else
{
flip = flip_y;
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),
params[view].y,
flip,
offset,
extent,
foveated_size.height);
}
}
std::array<to_headset::foveation_parameter, 2> foveation::foveate(
vk::raii::Device & device,
vk::raii::CommandBuffer & cmd,
vk::ImageView y,
vk::ImageView cbcr,
bool flip_y,
std::array<vk::ImageView, 2> src,
std::array<xrt_rect, 2> src_rect,
std::array<xrt_fov, 2> src_fov)
{
update_ubo(cmd, flip_y, src_rect, src_fov);
std::array src_image_info{
vk::DescriptorImageInfo{
.sampler = *sampler,
.imageView = src[0],
.imageLayout = vk::ImageLayout::eShaderReadOnlyOptimal,
},
vk::DescriptorImageInfo{
.sampler = *sampler,
.imageView = src[1],
.imageLayout = vk::ImageLayout::eShaderReadOnlyOptimal,
},
};
vk::DescriptorBufferInfo ubo_info{
.buffer = gpu_buffer,
.range = vk::WholeSize,
};
vk::DescriptorImageInfo y_info{
.imageView = y,
.imageLayout = vk::ImageLayout::eGeneral,
};
vk::DescriptorImageInfo cbcr_info{
.imageView = cbcr,
.imageLayout = vk::ImageLayout::eGeneral,
};
std::array writes = {
vk::WriteDescriptorSet{
.dstSet = descriptor_set,
.dstBinding = 0,
.descriptorCount = src_image_info.size(),
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.pImageInfo = src_image_info.data(),
},
vk::WriteDescriptorSet{
.dstSet = descriptor_set,
.dstBinding = 1,
.descriptorCount = 1,
.descriptorType = vk::DescriptorType::eStorageBuffer,
.pBufferInfo = &ubo_info,
},
vk::WriteDescriptorSet{
.dstSet = descriptor_set,
.dstBinding = 2,
.descriptorCount = 1,
.descriptorType = vk::DescriptorType::eStorageImage,
.pImageInfo = &y_info,
},
vk::WriteDescriptorSet{
.dstSet = descriptor_set,
.dstBinding = 3,
.descriptorCount = 1,
.descriptorType = vk::DescriptorType::eStorageImage,
.pImageInfo = &cbcr_info,
},
};
device.updateDescriptorSets(writes, {});
cmd.bindPipeline(vk::PipelineBindPoint::eCompute, *pipeline);
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),
2);
return params;
}
} // namespace wivrn
@@ -22,9 +22,7 @@
#include "vk/allocation.h" #include "vk/allocation.h"
#include "wivrn_packets.h" #include "wivrn_packets.h"
#include "xrt/xrt_defines.h" #include "xrt/xrt_defines.h"
#include "xrt/xrt_device.h"
#include "utils/singleton.h"
#include <mutex> #include <mutex>
#include <vulkan/vulkan_raii.hpp> #include <vulkan/vulkan_raii.hpp>
@@ -34,14 +32,13 @@ namespace wivrn
{ {
struct clock_offset; struct clock_offset;
struct wivrn_vk_bundle; struct vk_bundle;
class wivrn_foveation : public singleton<wivrn_foveation> class foveation
{ {
std::mutex mutex; std::mutex mutex;
const size_t foveated_width; // per eye const vk::Extent3D foveated_size; // per eye
const size_t foveated_height;
// Natural vertical gaze angle // Natural vertical gaze angle
const float angle_offset; const float angle_offset;
@@ -53,10 +50,15 @@ class wivrn_foveation : public singleton<wivrn_foveation>
from_headset::override_foveation_center manual_foveation = {}; from_headset::override_foveation_center manual_foveation = {};
std::array<to_headset::foveation_parameter, 2> params; std::array<to_headset::foveation_parameter, 2> params;
vk::raii::CommandPool command_pool;
vk::raii::CommandBuffer cmd;
buffer_allocation gpu_buffer; buffer_allocation gpu_buffer;
buffer_allocation host_buffer; buffer_allocation host_buffer;
vk::raii::Sampler sampler;
vk::raii::DescriptorSetLayout ds_layout;
vk::raii::PipelineLayout layout;
vk::raii::Pipeline pipeline;
vk::raii::DescriptorPool descriptor_pool;
vk::DescriptorSet descriptor_set;
// parameters used for last computation // parameters used for last computation
struct P struct P
@@ -72,23 +74,29 @@ class wivrn_foveation : public singleton<wivrn_foveation>
P last; P last;
// must hold lock on mutex to call it // must hold lock on mutex to call it
void compute_params( void compute_params();
xrt_rect src[2],
const xrt_fov fovs[2]); void update_ubo(
vk::raii::CommandBuffer & cmd,
bool flip_y,
std::array<xrt_rect, 2> src_rect,
std::array<xrt_fov, 2> src_fov);
public: public:
wivrn_foveation(wivrn_vk_bundle &, const xrt_hmd_parts &); foveation(wivrn::vk_bundle &,
vk::Extent3D foveated_size);
void update_tracking(const from_headset::tracking &, const clock_offset &); void update_tracking(const from_headset::tracking &);
void update_foveation_center_override(const from_headset::override_foveation_center &); void update_foveation_center_override(const from_headset::override_foveation_center &);
std::array<to_headset::foveation_parameter, 2> get_parameters();
vk::Buffer get_gpu_buffer(); std::array<to_headset::foveation_parameter, 2> foveate(
vk::raii::Device &,
vk::CommandBuffer update_foveation_buffer( vk::raii::CommandBuffer & cmd,
vk::Buffer target, vk::ImageView y,
vk::ImageView cbcr,
bool flip_y, bool flip_y,
xrt_rect src[2], std::array<vk::ImageView, 2> src,
xrt_fov fovs[2]); std::array<xrt_rect, 2> src_rect,
std::array<xrt_fov, 2> src_fov);
}; };
} // namespace wivrn } // namespace wivrn
+977
View File
@@ -0,0 +1,977 @@
/*
* WiVRn VR streaming
* Copyright (C) 2026 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// uses code borrowed from Monado with the following copyright notice:
// Copyright 2019-2024, Collabora, Ltd.
// Copyright 2025, NVIDIA CORPORATION.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief Compositor (compute shader) rendering code.
* @author Jakob Bornecrantz <jakob@collabora.com>
* @author Christoph Haag <christoph.haag@collabora.com>
* @author Fernando Velazquez Innella <finnella@magicleap.com>
* @author Rylie Pavlik <rylie.pavlik@collabora.com>
* @ingroup comp_util
*/
#include "render/render_interface.h"
#include "layer_squasher.h"
#include "driver/wivrn_hmd.h"
#include "utils/wivrn_vk_bundle.h"
#include "vk/specialization_constants.h"
#include "main/comp_compositor.h"
#include "math/m_space.h"
#include "shaders/layer_defines.inc.glsl"
#include "util/comp_layer_accum.h"
#include "util/comp_render_helpers.h"
#include <array>
#include <format>
#include <ranges>
namespace
{
const uint32_t view_count = 2;
const bool do_timewarp = true;
const std::array formats{
vk::Format::eR8G8B8A8Srgb,
vk::Format::eR8G8B8A8Unorm,
};
const comp_layer *
get_projection_layer(const comp_layer_accum & layers)
{
for (const auto & layer: std::span(layers.layers, layers.layer_count))
switch (layer.data.type)
{
case XRT_LAYER_PROJECTION:
case XRT_LAYER_PROJECTION_DEPTH:
return &layer;
case XRT_LAYER_QUAD:
case XRT_LAYER_CUBE:
case XRT_LAYER_CYLINDER:
case XRT_LAYER_EQUIRECT1:
case XRT_LAYER_EQUIRECT2:
case XRT_LAYER_PASSTHROUGH:
break;
}
return NULL;
}
struct pose_data
{
std::array<xrt_fov, XRT_MAX_VIEWS> fovs;
std::array<xrt_pose, XRT_MAX_VIEWS> world_poses;
std::array<xrt_pose, XRT_MAX_VIEWS> eye_poses;
pose_data(
wivrn::wivrn_hmd & hmd,
uint64_t frame_interval_ns,
const comp_frame & frame,
const comp_layer_accum & layers)
{
// Get pose data from projection layer so we avoid one resampling step
const auto * proj = get_projection_layer(layers);
// Except if it's not for the right frame, as it would make quads stutter
int64_t predicted_display_time_ns = frame.predicted_display_time_ns;
int64_t cutoff_ns = 3 * frame_interval_ns;
if (proj and llabs(predicted_display_time_ns - proj->data.timestamp) <= cutoff_ns)
{
// depth has the same first member as proj
for (auto [i, data]: std::ranges::enumerate_view(proj->data.proj.v))
{
fovs[i] = data.fov;
world_poses[i] = data.pose;
eye_poses[i] = data.pose;
}
}
else
{
xrt_space_relation head_rel;
hmd.get_view_poses(
nullptr, // unused
frame.predicted_display_time_ns,
XRT_VIEW_TYPE_STEREO,
view_count,
&head_rel,
fovs.data(),
eye_poses.data());
for (uint32_t i = 0; i < view_count; ++i)
{
xrt_relation_chain xrc{};
xrt_space_relation rel = XRT_SPACE_RELATION_ZERO;
m_relation_chain_push_pose_if_not_identity(&xrc, &eye_poses[i]);
m_relation_chain_push_relation(&xrc, &head_rel);
m_relation_chain_resolve(&xrc, &rel);
world_poses[i] = rel.pose;
}
}
}
};
const comp_swapchain_image & get_layer_image(const comp_layer & layer, uint32_t swapchain_index, uint32_t image_index)
{
return reinterpret_cast<struct comp_swapchain *>(comp_layer_get_swapchain(&layer, swapchain_index))->images[image_index];
}
const struct comp_swapchain_image &
get_layer_depth_image(const comp_layer & layer, uint32_t swapchain_index, uint32_t image_index)
{
return reinterpret_cast<struct comp_swapchain *>(comp_layer_get_depth_swapchain(&layer, swapchain_index))->images[image_index];
}
uint32_t
uint_divide_and_round_up(uint32_t a, uint32_t b)
{
return (a + (b - 1)) / b;
}
std::array<uint32_t, 2> calc_dispatch_dims_1_view(const render_viewport_data & views)
{
// Power of two divide and round up.
return {
uint_divide_and_round_up(views.w, 8),
uint_divide_and_round_up(views.h, 8),
};
}
buffer_allocation make_ubo(vk::raii::Device & device, int i)
{
return buffer_allocation{
device,
vk::BufferCreateInfo{
.size = sizeof(render_compute_layer_ubo_data),
.usage = vk::BufferUsageFlagBits::eUniformBuffer,
},
VmaAllocationCreateInfo{
.flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT,
.usage = VMA_MEMORY_USAGE_AUTO,
},
std::format("layer squasher UBO {}", i)};
}
vk::raii::ImageView make_view(wivrn::vk_bundle & vk, image_allocation & image, vk::ImageUsageFlagBits flag, uint32_t view)
{
vk::raii::ImageView res{vk.device,
vk::StructureChain{
vk::ImageViewCreateInfo{
.image = image,
.viewType = vk::ImageViewType::e2D,
.format = flag == vk::ImageUsageFlagBits::eSampled ? formats[0] : formats[1],
.subresourceRange = {
.aspectMask = vk::ImageAspectFlagBits::eColor,
.levelCount = 1,
.baseArrayLayer = view,
.layerCount = 1,
},
},
vk::ImageViewUsageCreateInfo{
.usage = flag,
},
}
.get()};
vk.name(*res, std::format("layer squasher view {}", view).c_str());
return res;
}
vk::raii::DescriptorSetLayout make_ds_layout(wivrn::vk_bundle & vk, uint32_t image_array_size, bool partially_bound_desc)
{
std::array bindings{
vk::DescriptorSetLayoutBinding{
.binding = 0,
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = image_array_size,
.stageFlags = vk::ShaderStageFlagBits::eCompute,
},
vk::DescriptorSetLayoutBinding{
.binding = 2,
.descriptorType = vk::DescriptorType::eStorageImage,
.descriptorCount = 1,
.stageFlags = vk::ShaderStageFlagBits::eCompute,
},
vk::DescriptorSetLayoutBinding{
.binding = 3,
.descriptorType = vk::DescriptorType::eUniformBuffer,
.descriptorCount = 1,
.stageFlags = vk::ShaderStageFlagBits::eCompute,
},
};
std::array<vk::DescriptorBindingFlags, std::size(bindings)> flags{
vk::DescriptorBindingFlagBits::ePartiallyBound,
vk::DescriptorBindingFlagBits::ePartiallyBound,
vk::DescriptorBindingFlags{},
};
vk::StructureChain info{
vk::DescriptorSetLayoutCreateInfo{
.bindingCount = bindings.size(),
.pBindings = bindings.data(),
},
vk::DescriptorSetLayoutBindingFlagsCreateInfo{
.bindingCount = flags.size(),
.pBindingFlags = flags.data(),
}};
if (not partially_bound_desc)
info.unlink<vk::DescriptorSetLayoutBindingFlagsCreateInfo>();
vk::raii::DescriptorSetLayout res(vk.device, info.get());
vk.name(*res, "layer squasher descriptor set layout");
return res;
}
vk::raii::PipelineLayout make_layout(wivrn::vk_bundle & vk, vk::DescriptorSetLayout ds_layout)
{
vk::raii::PipelineLayout res(vk.device,
vk::PipelineLayoutCreateInfo{
.setLayoutCount = 1,
.pSetLayouts = &ds_layout,
});
vk.name(*res, "layer squasher pipeline layout");
return res;
}
vk::raii::Pipeline make_pipeline(wivrn::vk_bundle & vk, uint32_t image_array_size, vk::PipelineLayout layout)
{
auto specialization = make_specialization_constants(
int32_t(0), // unused
VkBool32(true), // do_timewarp
VkBool32(true), // do_color_correction
int32_t(image_array_size));
vk::raii::Pipeline res(
vk.device,
nullptr,
vk::ComputePipelineCreateInfo{
.stage = {
.stage = vk::ShaderStageFlagBits::eCompute,
.module = *vk.load_shader("layer"),
.pName = "main",
.pSpecializationInfo = specialization,
},
.layout = layout,
});
vk.name(*res, "layer squasher pipeline");
return res;
}
vk::raii::DescriptorPool make_ds_pool(wivrn::vk_bundle & vk, uint32_t image_array_size)
{
const uint32_t view_size = 2;
std::array pool_sizes{
vk::DescriptorPoolSize{
.type = vk::DescriptorType::eCombinedImageSampler,
.descriptorCount = view_size * image_array_size,
},
vk::DescriptorPoolSize{
.type = vk::DescriptorType::eStorageImage,
.descriptorCount = view_size,
},
vk::DescriptorPoolSize{
.type = vk::DescriptorType::eUniformBuffer,
.descriptorCount = view_size,
},
};
vk::raii::DescriptorPool res{
vk.device,
vk::DescriptorPoolCreateInfo{
.maxSets = view_size,
.poolSizeCount = pool_sizes.size(),
.pPoolSizes = pool_sizes.data(),
},
};
vk.name(*res, "layer squasher descriptor pool");
return res;
}
} // namespace
namespace wivrn
{
layer_squasher::layer_squasher(vk_bundle & vk, vk::Extent3D target_size) :
partially_bound_desc{bool(std::get<vk::PhysicalDeviceVulkan12Features>(vk.feat).descriptorBindingPartiallyBound)},
image_array_size{std::min<uint32_t>(vk.physical_device.getProperties().limits.maxPerStageDescriptorSampledImages, RENDER_MAX_IMAGES_SIZE)},
clamp_to_border_black{vk.device,
vk::SamplerCreateInfo{
.magFilter = vk::Filter::eLinear,
.minFilter = vk::Filter::eLinear,
.mipmapMode = vk::SamplerMipmapMode::eLinear,
.addressModeU = vk::SamplerAddressMode::eClampToBorder,
.addressModeV = vk::SamplerAddressMode::eClampToBorder,
.addressModeW = vk::SamplerAddressMode::eClampToBorder,
.borderColor = vk::BorderColor::eFloatOpaqueBlack,
}},
clamp_to_edge{vk.device,
vk::SamplerCreateInfo{
.magFilter = vk::Filter::eLinear,
.minFilter = vk::Filter::eLinear,
.mipmapMode = vk::SamplerMipmapMode::eLinear,
.addressModeU = vk::SamplerAddressMode::eClampToEdge,
.addressModeV = vk::SamplerAddressMode::eClampToEdge,
.addressModeW = vk::SamplerAddressMode::eClampToEdge,
.borderColor = vk::BorderColor::eFloatOpaqueBlack,
}},
ubo{make_ubo(vk.device, 0), make_ubo(vk.device, 1)},
render_target{vk.device,
vk::StructureChain{
vk::ImageCreateInfo{
.flags = vk::ImageCreateFlagBits::eExtendedUsage | vk::ImageCreateFlagBits::eMutableFormat,
.imageType = vk::ImageType::e2D,
.format = formats[0],
.extent = target_size,
.mipLevels = 1,
.arrayLayers = view_count,
.usage = vk::ImageUsageFlagBits::eStorage | vk::ImageUsageFlagBits::eSampled,
},
vk::ImageFormatListCreateInfo{
.viewFormatCount = formats.size(),
.pViewFormats = formats.data(),
},
}
.get(),
VmaAllocationCreateInfo{},
"layer squasher target"},
render_view_srgb{make_view(vk, render_target, vk::ImageUsageFlagBits::eSampled, 0), make_view(vk, render_target, vk::ImageUsageFlagBits::eSampled, 1)},
render_view_unorm{make_view(vk, render_target, vk::ImageUsageFlagBits::eStorage, 0), make_view(vk, render_target, vk::ImageUsageFlagBits::eStorage, 1)},
ds_layout{make_ds_layout(vk, image_array_size, partially_bound_desc)},
layout{make_layout(vk, *ds_layout)},
pipeline{make_pipeline(vk, image_array_size, *layout)},
descriptor_pool{make_ds_pool(vk, image_array_size)}
{
{
std::array layouts = {*ds_layout, *ds_layout};
auto sets = vk.device.allocateDescriptorSets(vk::DescriptorSetAllocateInfo{
.descriptorPool = descriptor_pool,
.descriptorSetCount = uint32_t(descriptor_sets.size()),
.pSetLayouts = layouts.data(),
});
for (int i = 0; i < view_count; ++i)
descriptor_sets[i] = sets[i].release();
}
}
std::tuple<std::array<xrt_pose, 2>,
std::array<xrt_fov, 2>,
std::array<xrt_rect, 2>>
layer_squasher::do_layers(
vk::raii::Device & device,
vk::raii::CommandBuffer & cmd,
wivrn_hmd & hmd,
uint64_t frame_interval_ns,
const comp_frame & frame,
const comp_layer_accum & layers,
const xrt_rect & min_size)
{
// get the head/pose to reproject to
const pose_data poses{hmd, frame_interval_ns, frame, layers};
const auto extent3D = render_target.info().extent;
auto fovs = poses.fovs;
std::array viewports{
render_viewport_data{
.w = extent3D.width,
.h = extent3D.height,
},
render_viewport_data{
.w = extent3D.width,
.h = extent3D.height,
},
};
vk::ImageMemoryBarrier im_barrier{
.dstAccessMask = vk::AccessFlagBits::eShaderWrite,
.oldLayout = vk::ImageLayout::eUndefined,
.newLayout = vk::ImageLayout::eGeneral,
.image = render_target,
.subresourceRange = {
.aspectMask = vk::ImageAspectFlagBits::eColor,
.levelCount = 1,
.layerCount = vk::RemainingArrayLayers,
},
};
cmd.pipelineBarrier(
vk::PipelineStageFlagBits::eAllCommands,
vk::PipelineStageFlagBits::eComputeShader,
{},
{},
{},
im_barrier);
cmd.bindPipeline(vk::PipelineBindPoint::eCompute, *pipeline);
for (int view = 0; view < view_count; ++view)
{
// TODO: staging buffer?
auto & ubo = *(render_compute_layer_ubo_data *)this->ubo[view].map();
// Not the transform of the views, but the inverse: actual view matrices.
xrt_matrix_4x4 world_view_mat, eye_view_mat;
math_matrix_4x4_view_from_pose(&poses.world_poses[view], &world_view_mat);
math_matrix_4x4_view_from_pose(&poses.eye_poses[view], &eye_view_mat);
std::array<vk::DescriptorImageInfo, RENDER_MAX_IMAGES_SIZE> src_image_info{};
for (auto & src: src_image_info)
src.imageLayout = vk::ImageLayout::eShaderReadOnlyOptimal;
xrt_fov all_layers_fov{.angle_left = M_PI,
.angle_right = -M_PI,
.angle_up = -M_PI,
.angle_down = M_PI};
uint32_t cur_image = 0;
int cur_layer = 0;
for (const auto & layer: std::span(layers.layers, layers.layer_count))
{
if (not is_layer_view_visible(&layer.data, view))
continue;
const auto & data = layer.data;
/*!
* Stop compositing layers if device's sampled image limit is
* reached. For most hardware this isn't a problem, most have
* well over 32 max samplers. But notably the RPi4 only have 16
* which is a limit we may run into. But if you got 16+ layers
* on a RPi4 you have more problems then max samplers.
*/
uint32_t required_image_samplers;
switch (data.type)
{
case XRT_LAYER_CYLINDER:
case XRT_LAYER_EQUIRECT2:
case XRT_LAYER_PROJECTION:
case XRT_LAYER_QUAD:
required_image_samplers = 1;
break;
case XRT_LAYER_PROJECTION_DEPTH:
required_image_samplers = 2;
break;
default:
U_LOG_E("Skipping layer %ld, unknown type: %u", std::distance(layers.layers, &layer), data.type);
continue; // Skip this layer if don't know about it.
}
//! Exit loop if shader cannot receive more image samplers
if (cur_image + required_image_samplers > image_array_size)
break;
xrt_fov layer_fov;
switch (data.type)
{
case XRT_LAYER_PROJECTION:
case XRT_LAYER_PROJECTION_DEPTH:
layer_fov = do_projection_layer(
layer,
poses.world_poses[view],
view,
cur_layer,
cur_image,
src_image_info,
ubo);
break;
case XRT_LAYER_QUAD:
layer_fov = do_quad_layer(
layer,
eye_view_mat,
world_view_mat,
view,
cur_layer,
cur_image,
src_image_info,
ubo);
break;
case XRT_LAYER_CYLINDER:
layer_fov = do_cylinder_layer(
layer,
eye_view_mat,
world_view_mat,
view,
cur_layer,
cur_image,
src_image_info,
ubo);
break;
case XRT_LAYER_EQUIRECT2:
layer_fov = do_equirect2_layer(
layer,
eye_view_mat,
world_view_mat,
view,
cur_layer,
cur_image,
src_image_info,
ubo);
break;
case XRT_LAYER_EQUIRECT1:
case XRT_LAYER_PASSTHROUGH:
case XRT_LAYER_CUBE:
U_LOG_E("unsupported layer type");
assert(false);
continue;
}
// Add fov to all_layers_fov if there's an intersection
if (layer_fov.angle_left < fovs[view].angle_right and
layer_fov.angle_right > fovs[view].angle_left and
layer_fov.angle_up > fovs[view].angle_down and
layer_fov.angle_down < fovs[view].angle_up)
all_layers_fov = {
.angle_left = std::min(layer_fov.angle_left, all_layers_fov.angle_left),
.angle_right = std::max(layer_fov.angle_right, all_layers_fov.angle_right),
.angle_up = std::max(layer_fov.angle_up, all_layers_fov.angle_up),
.angle_down = std::min(layer_fov.angle_down, all_layers_fov.angle_down),
};
ubo.layers[cur_layer].layer_data.unpremultiplied_alpha = is_layer_unpremultiplied(&layer.data);
apply_bias_and_scale_from_layer(
&data,
&ubo.layers[cur_layer].color_scale,
&ubo.layers[cur_layer].color_bias);
cur_layer++;
}
all_layers_fov = {
.angle_left = std::max(fovs[view].angle_left, all_layers_fov.angle_left),
.angle_right = std::min(fovs[view].angle_right, all_layers_fov.angle_right),
.angle_up = std::min(fovs[view].angle_up, all_layers_fov.angle_up),
.angle_down = std::max(fovs[view].angle_down, all_layers_fov.angle_down),
};
if (all_layers_fov.angle_up > all_layers_fov.angle_down and
all_layers_fov.angle_left < all_layers_fov.angle_right)
{
fovs[view] = all_layers_fov;
auto w1 = tan(all_layers_fov.angle_right) - tan(all_layers_fov.angle_left);
auto h1 = tan(all_layers_fov.angle_up) - tan(all_layers_fov.angle_down);
auto w2 = tan(fovs[view].angle_right) - tan(fovs[view].angle_left);
auto h2 = tan(fovs[view].angle_up) - tan(fovs[view].angle_down);
viewports[view].w = std::max<uint32_t>(min_size.extent.w, viewports[view].w * w1 / w2);
viewports[view].h = std::max<uint32_t>(min_size.extent.h, viewports[view].h * h1 / h2);
}
ubo.view = viewports[view];
render_calc_uv_to_tangent_lengths_rect(&fovs[view], &ubo.pre_transform);
ubo.layer_count.value = cur_layer;
for (auto & layer: std::span(ubo.layers).subspan(cur_layer))
layer.layer_data.layer_type = LAYER_COMP_TYPE_NOOP;
vk::DescriptorImageInfo target_image_info{
.imageView = *render_view_unorm[view],
.imageLayout = vk::ImageLayout::eGeneral,
};
vk::DescriptorBufferInfo ubo_info{
.buffer = this->ubo[view],
.range = vk::WholeSize,
};
std::array writes = {
vk::WriteDescriptorSet{
.dstSet = descriptor_sets[view],
.dstBinding = 0,
.descriptorCount = uint32_t(cur_image),
.descriptorType = vk::DescriptorType::eCombinedImageSampler,
.pImageInfo = src_image_info.data(),
},
vk::WriteDescriptorSet{
.dstSet = descriptor_sets[view],
.dstBinding = 2,
.descriptorCount = 1,
.descriptorType = vk::DescriptorType::eStorageImage,
.pImageInfo = &target_image_info,
},
vk::WriteDescriptorSet{
.dstSet = descriptor_sets[view],
.dstBinding = 3,
.descriptorCount = 1,
.descriptorType = vk::DescriptorType::eUniformBuffer,
.pBufferInfo = &ubo_info,
},
};
if (not partially_bound_desc)
{
for (int i = cur_image; i < image_array_size; ++i)
src_image_info[i] = src_image_info[0];
writes[0].descriptorCount = image_array_size;
}
device.updateDescriptorSets(writes, {});
cmd.bindDescriptorSets(vk::PipelineBindPoint::eCompute, *layout, 0, descriptor_sets[view], {});
auto [w, h] = calc_dispatch_dims_1_view(viewports[view]);
cmd.dispatch(w, h, 1);
}
im_barrier.oldLayout = im_barrier.newLayout;
im_barrier.newLayout = vk::ImageLayout::eShaderReadOnlyOptimal;
im_barrier.srcAccessMask = im_barrier.dstAccessMask;
im_barrier.dstAccessMask = vk::AccessFlagBits::eShaderRead;
cmd.pipelineBarrier(
vk::PipelineStageFlagBits::eComputeShader,
vk::PipelineStageFlagBits::eComputeShader,
{},
{},
{},
im_barrier);
std::array<xrt_rect, 2> rect;
for (auto [v, r]: std::ranges::zip_view(viewports, rect))
r = {.extent = {.w = int(v.w), .h = int(v.h)}};
return {poses.world_poses, fovs, rect};
}
std::array<vk::ImageView, 2> layer_squasher::get_views()
{
return {*render_view_srgb[0], *render_view_srgb[1]};
}
uint32_t layer_squasher::max_layers(const vk::PhysicalDeviceProperties & prop) const
{
// We may be limited by samplers, and use up to 2 samplers per layer
return std::min({XRT_MAX_LAYERS * 2u,
prop.limits.maxPerStageDescriptorSampledImages,
prop.limits.maxPerStageDescriptorSamplers}) /
2u;
}
xrt_fov layer_squasher::do_projection_layer(
const comp_layer & layer,
const xrt_pose & world_pose,
int view,
int cur_layer,
uint32_t & cur_image,
std::span<vk::DescriptorImageInfo> src_image_info,
render_compute_layer_ubo_data & ubo)
{
const xrt_layer_data & layer_data = layer.data;
const auto & vd = layer_data.type == XRT_LAYER_PROJECTION ? layer_data.proj.v[view] : layer_data.depth.v[view];
uint32_t sc_array_index = view % 2;
ubo.layers[cur_layer].layer_data.layer_type = LAYER_COMP_TYPE_PROJECTION;
// Color
src_image_info[cur_image].sampler = *clamp_to_border_black;
src_image_info[cur_image].imageView = get_image_view(
&get_layer_image(layer, sc_array_index, vd.sub.image_index),
layer_data.flags,
vd.sub.array_index);
ubo.layers[cur_layer].image_info.color_image_index = cur_image++;
// Depth
if (layer_data.type == XRT_LAYER_PROJECTION_DEPTH)
{
const auto & dvd = layer_data.depth.d[view];
src_image_info[cur_image].sampler = *clamp_to_edge; // Edge to keep depth stable at edges.
src_image_info[cur_image].imageView = get_image_view(
&get_layer_depth_image(layer, sc_array_index, dvd.sub.image_index),
layer_data.flags,
dvd.sub.array_index);
ubo.layers[cur_layer].image_info.depth_image_index = cur_image++;
}
set_post_transform_rect(
&layer_data,
&vd.sub.norm_rect,
false,
&ubo.layers[cur_layer].post_transforms);
// unused if timewarp is off
if (do_timewarp)
render_calc_time_warp_matrix(
&vd.pose,
&vd.fov,
&world_pose,
&ubo.layers[cur_layer].transforms_timewarp);
return vd.fov;
}
xrt_fov layer_squasher::do_quad_layer(const comp_layer & layer,
const xrt_matrix_4x4 & eye_view_mat,
const xrt_matrix_4x4 & world_view_mat,
uint32_t view_index,
int cur_layer,
uint32_t & cur_image,
std::span<vk::DescriptorImageInfo> src_image_info,
render_compute_layer_ubo_data & ubo)
{
const xrt_layer_data & layer_data = layer.data;
const xrt_layer_quad_data & q = layer_data.quad;
ubo.layers[cur_layer].layer_data.layer_type = LAYER_COMP_TYPE_QUAD;
// Image to use.
src_image_info[cur_image].sampler = *clamp_to_edge;
src_image_info[cur_image].imageView = get_image_view(
&get_layer_image(layer, 0, q.sub.image_index),
layer_data.flags,
q.sub.array_index);
// Set the normalized post transform values.
xrt_normalized_rect post_transform{};
// Used for Subimage and OpenGL flip.
set_post_transform_rect(
&layer_data,
&q.sub.norm_rect,
true,
&post_transform);
// Is this layer viewspace or not.
const xrt_matrix_4x4 & view_mat = is_layer_view_space(&layer_data) ? eye_view_mat : world_view_mat;
// Transform quad pose into view space.
xrt_vec3 quad_position{};
math_matrix_4x4_transform_vec3(&view_mat, &layer_data.quad.pose.position, &quad_position);
// neutral quad layer faces +z, towards the user
xrt_vec3 normal{.x = 0, .y = 0, .z = 1};
// rotation of the quad normal in world space
math_quat_rotate_vec3(&layer_data.quad.pose.orientation, &normal, &normal);
/*
* normal is a vector that originates on the plane, not on the origin.
* Instead of using the inverse quad transform to transform it into view space we can
* simply add up vectors:
*
* combined_normal [in world space] = plane_origin [in world space] + normal [in plane
* space] [with plane in world space]
*
* Then combined_normal can be transformed to view space via view matrix and a new
* normal_view_space retrieved:
*
* normal_view_space = combined_normal [in view space] - plane_origin [in view space]
*/
xrt_vec3 normal_view_space = normal;
math_vec3_accum(&layer_data.quad.pose.position, &normal_view_space);
math_matrix_4x4_transform_vec3(&view_mat, &normal_view_space, &normal_view_space);
math_vec3_subtract(&quad_position, &normal_view_space);
xrt_vec3 scale{1.f, 1.f, 1.f};
xrt_matrix_4x4 plane_transform_view_space, inverse_quad_transform;
math_matrix_4x4_model(&layer_data.quad.pose, &scale, &plane_transform_view_space);
math_matrix_4x4_multiply(&view_mat, &plane_transform_view_space, &plane_transform_view_space);
math_matrix_4x4_inverse(&plane_transform_view_space, &inverse_quad_transform);
// Write all of the UBO data.
ubo.layers[cur_layer].post_transforms = post_transform;
ubo.layers[cur_layer].quad_extent.val = layer_data.quad.size;
ubo.layers[cur_layer].quad_position.val = quad_position;
ubo.layers[cur_layer].quad_normal.val = normal_view_space;
ubo.layers[cur_layer].inverse_quad_transform = inverse_quad_transform;
ubo.layers[cur_layer].image_info.color_image_index = cur_image;
cur_image++;
// Compute effective fov
struct xrt_matrix_4x4 quad_pose;
math_matrix_4x4_view_from_pose(&q.pose, &quad_pose);
math_matrix_4x4_inverse(&quad_pose, &quad_pose);
math_matrix_4x4_multiply(&view_mat, &quad_pose, &quad_pose);
std::array corners{
xrt_vec3{-q.size.x / 2, -q.size.y / 2, 0},
xrt_vec3{q.size.x / 2, -q.size.y / 2, 0},
xrt_vec3{-q.size.x / 2, q.size.y / 2, 0},
xrt_vec3{q.size.x / 2, q.size.y / 2, 0}};
xrt_fov layer_fov = {.angle_left = M_PI,
.angle_right = -M_PI,
.angle_up = -M_PI,
.angle_down = M_PI};
if (normal_view_space.z < 0)
return layer_fov; // back face is not visible
for (auto & c: corners)
{
math_matrix_4x4_transform_vec3(&quad_pose, &c, &c);
float x = atan2f(c.x, -c.z);
float y = atan2f(c.y, -c.z);
layer_fov = {
.angle_left = std::min(layer_fov.angle_left, x),
.angle_right = std::max(layer_fov.angle_right, x),
.angle_up = std::max(layer_fov.angle_up, y),
.angle_down = std::min(layer_fov.angle_down, y),
};
}
return layer_fov;
}
xrt_fov layer_squasher::do_cylinder_layer(const comp_layer & layer,
const xrt_matrix_4x4 & eye_view_mat,
const xrt_matrix_4x4 & world_view_mat,
uint32_t view_index,
int cur_layer,
uint32_t & cur_image,
std::span<vk::DescriptorImageInfo> src_image_info,
render_compute_layer_ubo_data & ubo)
{
const xrt_layer_data & layer_data = layer.data;
const xrt_layer_cylinder_data & c = layer_data.cylinder;
ubo.layers[cur_layer].layer_data.layer_type = LAYER_COMP_TYPE_CYLINDER;
// Image to use.
src_image_info[cur_image].sampler = *clamp_to_edge;
src_image_info[cur_image].imageView = get_image_view(
&get_layer_image(layer, 0, c.sub.image_index),
layer_data.flags,
c.sub.array_index);
// Used for Subimage and OpenGL flip.
set_post_transform_rect(
&layer_data,
&c.sub.norm_rect,
false,
&ubo.layers[cur_layer].post_transforms);
ubo.layers[cur_layer].cylinder_data.central_angle = c.central_angle;
ubo.layers[cur_layer].cylinder_data.aspect_ratio = c.aspect_ratio;
xrt_vec3 scale{1.f, 1.f, 1.f};
xrt_matrix_4x4 model;
math_matrix_4x4_model(&c.pose, &scale, &model);
xrt_matrix_4x4 model_inv;
math_matrix_4x4_inverse(&model, &model_inv);
const xrt_matrix_4x4 & v = is_layer_view_space(&layer_data) ? eye_view_mat : world_view_mat;
xrt_matrix_4x4 v_inv;
math_matrix_4x4_inverse(&v, &v_inv);
math_matrix_4x4_multiply(&model_inv, &v_inv, &ubo.layers[cur_layer].mv_inverse);
// Simplifies the shader.
ubo.layers[cur_layer].cylinder_data.radius = c.radius >= INFINITY ? 0.f : c.radius;
ubo.layers[cur_layer].cylinder_data.central_angle = c.central_angle;
ubo.layers[cur_layer].cylinder_data.aspect_ratio = c.aspect_ratio;
ubo.layers[cur_layer].image_info.color_image_index = cur_image;
cur_image++;
// Compute effective FOV, simplify by projecting 2 quads instead
struct xrt_matrix_4x4 quad_pose;
math_matrix_4x4_view_from_pose(&c.pose, &quad_pose);
math_matrix_4x4_inverse(&quad_pose, &quad_pose);
math_matrix_4x4_multiply(&v, &quad_pose, &quad_pose);
const float w = sin(c.central_angle / 2) * c.radius;
const float h = c.radius * c.central_angle / 2 * c.aspect_ratio;
const float d = c.radius * cos(c.central_angle / 2);
std::array corners{
xrt_vec3{-w, -h, -c.radius},
xrt_vec3{w, -h, -c.radius},
xrt_vec3{-w, h, -c.radius},
xrt_vec3{w, h, -c.radius},
xrt_vec3{-w, -h, -d},
xrt_vec3{w, -h, -d},
xrt_vec3{-w, h, -d},
xrt_vec3{w, h, -d},
};
xrt_fov layer_fov = {.angle_left = M_PI,
.angle_right = -M_PI,
.angle_up = -M_PI,
.angle_down = M_PI};
for (auto & c: corners)
{
math_matrix_4x4_transform_vec3(&quad_pose, &c, &c);
float x = atan2f(c.x, -c.z);
float y = atan2f(c.y, -c.z);
layer_fov = {
.angle_left = std::min(layer_fov.angle_left, x),
.angle_right = std::max(layer_fov.angle_right, x),
.angle_up = std::max(layer_fov.angle_up, y),
.angle_down = std::min(layer_fov.angle_down, y),
};
}
return layer_fov;
}
xrt_fov layer_squasher::do_equirect2_layer(const comp_layer & layer,
const xrt_matrix_4x4 & eye_view_mat,
const xrt_matrix_4x4 & world_view_mat,
uint32_t view_index,
int cur_layer,
uint32_t & cur_image,
std::span<vk::DescriptorImageInfo> src_image_info,
render_compute_layer_ubo_data & ubo)
{
const xrt_layer_data & layer_data = layer.data;
const xrt_layer_equirect2_data & eq2 = layer_data.equirect2;
ubo.layers[cur_layer].layer_data.layer_type = LAYER_COMP_TYPE_EQUIRECT2;
// Image to use.
src_image_info[cur_image].sampler = *clamp_to_edge;
src_image_info[cur_image].imageView = get_image_view(
&get_layer_image(layer, 0, eq2.sub.image_index),
layer_data.flags,
eq2.sub.array_index);
// Used for Subimage and OpenGL flip.
set_post_transform_rect( //
&layer_data, // data
&eq2.sub.norm_rect, // src_norm_rect
false, // invert_flip
&ubo.layers[cur_layer].post_transforms); // out_norm_rect
xrt_vec3 scale{1.f, 1.f, 1.f};
xrt_matrix_4x4 model;
math_matrix_4x4_model(&eq2.pose, &scale, &model);
xrt_matrix_4x4 model_inv;
math_matrix_4x4_inverse(&model, &model_inv);
const xrt_matrix_4x4 & v = is_layer_view_space(&layer_data) ? eye_view_mat : world_view_mat;
xrt_matrix_4x4 v_inv;
math_matrix_4x4_inverse(&v, &v_inv);
math_matrix_4x4_multiply(&model_inv, &v_inv, &ubo.layers[cur_layer].mv_inverse);
// Simplifies the shader.
ubo.layers[cur_layer].eq2_data.radius = eq2.radius >= INFINITY ? 0.f : eq2.radius;
ubo.layers[cur_layer].eq2_data.central_horizontal_angle = eq2.central_horizontal_angle;
ubo.layers[cur_layer].eq2_data.upper_vertical_angle = eq2.upper_vertical_angle;
ubo.layers[cur_layer].eq2_data.lower_vertical_angle = eq2.lower_vertical_angle;
ubo.layers[cur_layer].image_info.color_image_index = cur_image;
cur_image++;
// TODO: effective fov
return {.angle_left = -M_PI,
.angle_right = M_PI,
.angle_up = M_PI,
.angle_down = -M_PI};
}
} // namespace wivrn
+109
View File
@@ -0,0 +1,109 @@
/*
* WiVRn VR streaming
* Copyright (C) 2026 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include "vk/allocation.h"
#include "xrt/xrt_defines.h"
#include <vulkan/vulkan_raii.hpp>
struct comp_layer;
struct comp_layer_accum;
struct comp_frame;
struct render_compute_layer_ubo_data;
struct xrt_pose;
struct xrt_matrix_4x4;
namespace wivrn
{
struct vk_bundle;
class wivrn_hmd;
class layer_squasher
{
const bool partially_bound_desc;
const uint32_t image_array_size;
vk::raii::Sampler clamp_to_border_black;
vk::raii::Sampler clamp_to_edge;
std::array<buffer_allocation, 2> ubo;
image_allocation render_target;
std::array<vk::raii::ImageView, 2> render_view_srgb;
std::array<vk::raii::ImageView, 2> render_view_unorm;
vk::raii::DescriptorSetLayout ds_layout;
vk::raii::PipelineLayout layout;
vk::raii::Pipeline pipeline;
vk::raii::DescriptorPool descriptor_pool;
std::array<vk::DescriptorSet, 2> descriptor_sets;
public:
layer_squasher(vk_bundle &, vk::Extent3D target_size);
std::tuple<std::array<xrt_pose, 2>,
std::array<xrt_fov, 2>,
std::array<xrt_rect, 2>>
do_layers(
vk::raii::Device &,
vk::raii::CommandBuffer &,
wivrn_hmd &,
uint64_t frame_interval_ns,
const comp_frame &,
const comp_layer_accum &,
const xrt_rect & min_size);
std::array<vk::ImageView, 2> get_views();
uint32_t max_layers(const vk::PhysicalDeviceProperties &) const;
private:
xrt_fov do_projection_layer(
const comp_layer & layer,
const xrt_pose & world_pose,
int view,
int cur_layer,
uint32_t & cur_image,
std::span<vk::DescriptorImageInfo> src_image_info,
render_compute_layer_ubo_data & ubo);
xrt_fov do_quad_layer(const comp_layer & layer,
const xrt_matrix_4x4 & eye_view_mat,
const xrt_matrix_4x4 & world_view_mat,
uint32_t view_index,
int cur_layer,
uint32_t & cur_image,
std::span<vk::DescriptorImageInfo> src_image_info,
render_compute_layer_ubo_data & ubo);
xrt_fov do_cylinder_layer(const comp_layer & layer,
const xrt_matrix_4x4 & eye_view_mat,
const xrt_matrix_4x4 & world_view_mat,
uint32_t view_index,
int cur_layer,
uint32_t & cur_image,
std::span<vk::DescriptorImageInfo> src_image_info,
render_compute_layer_ubo_data & ubo);
xrt_fov do_equirect2_layer(const comp_layer & layer,
const xrt_matrix_4x4 & eye_view_mat,
const xrt_matrix_4x4 & world_view_mat,
uint32_t view_index,
int cur_layer,
uint32_t & cur_image,
std::span<vk::DescriptorImageInfo> src_image_info,
render_compute_layer_ubo_data & ubo);
};
} // namespace wivrn
@@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
#include "wivrn_pacer.h" #include "pacer.h"
#include "driver/clock_offset.h" #include "driver/clock_offset.h"
#include "os/os_time.h" #include "os/os_time.h"
#include <algorithm> #include <algorithm>
@@ -41,7 +41,7 @@ static T lerp_mod(T a, T b, double t, T mod)
return T(std::lerp(a, b, t)) % mod; return T(std::lerp(a, b, t)) % mod;
} }
wivrn_pacer::wivrn_pacer(uint64_t frame_duration) : pacer::pacer(uint64_t frame_duration) :
frame_duration_ns(frame_duration), frame_duration_ns(frame_duration),
frame_times(5000), frame_times(5000),
frame_times_compute(frame_times), frame_times_compute(frame_times),
@@ -70,25 +70,25 @@ wivrn_pacer::wivrn_pacer(uint64_t frame_duration) :
}) })
{} {}
wivrn_pacer::~wivrn_pacer() pacer::~pacer()
{ {
worker.request_stop(); worker.request_stop();
compute_cv.notify_all(); compute_cv.notify_all();
} }
uint64_t wivrn_pacer::get_frame_duration() uint64_t pacer::get_frame_duration() const
{ {
std::lock_guard lock(mutex); std::lock_guard lock(mutex);
return frame_duration_ns; return frame_duration_ns;
} }
void wivrn_pacer::set_frame_duration(uint64_t frame_duration_ns) void pacer::set_frame_duration(uint64_t frame_duration_ns)
{ {
std::lock_guard lock(mutex); std::lock_guard lock(mutex);
this->frame_duration_ns = frame_duration_ns; this->frame_duration_ns = frame_duration_ns;
} }
void wivrn_pacer::predict( void pacer::predict(
int64_t & frame_id, int64_t & frame_id,
int64_t & out_wake_up_time_ns, int64_t & out_wake_up_time_ns,
int64_t & out_desired_present_time_ns, int64_t & out_desired_present_time_ns,
@@ -122,7 +122,7 @@ void wivrn_pacer::predict(
out_present_slop_ns = slop_ns; out_present_slop_ns = slop_ns;
} }
void wivrn_pacer::on_feedback(const wivrn::from_headset::feedback & feedback, const clock_offset & offset) void pacer::on_feedback(const wivrn::from_headset::feedback & feedback, const clock_offset & offset)
{ {
if (feedback.times_displayed > 1 or not feedback.blitted) if (feedback.times_displayed > 1 or not feedback.blitted)
return; return;
@@ -156,7 +156,7 @@ void wivrn_pacer::on_feedback(const wivrn::from_headset::feedback & feedback, co
if (feedback.displayed and feedback.displayed > feedback.blitted and feedback.displayed < feedback.blitted + 100'000'000) if (feedback.displayed and feedback.displayed > feedback.blitted and feedback.displayed < feedback.blitted + 100'000'000)
mean_render_to_display_ns = std::lerp(mean_render_to_display_ns, feedback.displayed - feedback.blitted, 0.1); mean_render_to_display_ns = std::lerp(mean_render_to_display_ns, feedback.displayed - feedback.blitted, 0.1);
} }
void wivrn_pacer::mark_timing_point( void pacer::mark_timing_point(
comp_target_timing_point point, comp_target_timing_point point,
int64_t frame_id, int64_t frame_id,
int64_t when_ns) int64_t when_ns)
@@ -185,7 +185,7 @@ void wivrn_pacer::mark_timing_point(
} }
} }
wivrn_pacer::frame_info wivrn_pacer::present_to_info(int64_t present) pacer::frame_info pacer::present_to_info(int64_t present)
{ {
std::lock_guard lock(mutex); std::lock_guard lock(mutex);
for (const auto & info: in_flight_frames) for (const auto & info: in_flight_frames)
@@ -197,7 +197,7 @@ wivrn_pacer::frame_info wivrn_pacer::present_to_info(int64_t present)
return {}; return {};
} }
void wivrn_pacer::reset() void pacer::reset()
{ {
std::lock_guard lock(mutex); std::lock_guard lock(mutex);
std::ranges::fill(frame_times, frame_time{}); std::ranges::fill(frame_times, frame_time{});
@@ -33,7 +33,7 @@ namespace wivrn
struct clock_offset; struct clock_offset;
class wivrn_pacer class pacer
{ {
public: public:
struct frame_info struct frame_info
@@ -44,7 +44,7 @@ public:
}; };
private: private:
std::mutex mutex; mutable std::mutex mutex;
uint64_t frame_duration_ns; uint64_t frame_duration_ns;
int64_t last_ns = 0; int64_t last_ns = 0;
int64_t frame_id = 0; int64_t frame_id = 0;
@@ -73,10 +73,10 @@ private:
std::array<frame_info, 8> in_flight_frames; std::array<frame_info, 8> in_flight_frames;
public: public:
wivrn_pacer(uint64_t frame_duration); pacer(uint64_t frame_duration);
~wivrn_pacer(); ~pacer();
uint64_t get_frame_duration(); uint64_t get_frame_duration() const;
void set_frame_duration(uint64_t frame_duration); void set_frame_duration(uint64_t frame_duration);
void predict( void predict(
+136
View File
@@ -0,0 +1,136 @@
/*
* WiVRn VR streaming
* Copyright (C) 2026 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
// Copyright 2021-2022, Collabora Ltd.
// Author: Jakob Bornecrantz <jakob@collabora.com>
// SPDX-License-Identifier: BSL-1.0
#version 460
#extension GL_KHR_shader_subgroup_basic: require
#extension GL_KHR_shader_subgroup_shuffle: require
layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in;
#define MAX_DIM 4097
#define MAX_SAMPLES 4
layout(set = 0, binding = 0) uniform sampler2D source[2];
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;
} ubo;
layout(set = 0, binding = 2) uniform writeonly restrict image2DArray luma;
layout(set = 0, binding = 3) uniform writeonly restrict image2DArray chroma;
const mat3 color_space = mat3(
// R G B
/* Y */ 0.2126, 0.7152, 0.0722,
/* Cb*/-0.1146, -0.3854, 0.5,
/* Cr*/ 0.5 , -0.4542, -0.0458);
vec3 rgb_to_ycbcr(vec3 color)
{
return transpose(color_space) * color + vec3(0, 0.5, 0.5);
}
float from_linear_to_srgb_channel(float value)
{
if (value < 0.0031308) {
return 12.92 * value;
} else {
return 1.055 * pow(value, 1.0 / 2.4) - 0.055;
}
}
vec3 from_linear_to_srgb(vec3 linear_rgb)
{
return vec3(
from_linear_to_srgb_channel(linear_rgb.r),
from_linear_to_srgb_channel(linear_rgb.g),
from_linear_to_srgb_channel(linear_rgb.b)
);
}
void main()
{
uint iz = gl_GlobalInvocationID.z;
uint iy = gl_GlobalInvocationID.y;
uint ymin = ubo.y[MAX_DIM * iz + iy];
uint ymax = ubo.y[MAX_DIM * iz + iy + 1];
if (ymin == ymax)
return;
if (ymin > ymax)
{
uint tmp = ymin;
ymin = ymax;
ymax = tmp;
}
uint ix = gl_GlobalInvocationID.x;
uint xmin = ubo.x[MAX_DIM * iz + ix];
uint xmax = ubo.x[MAX_DIM * iz + ix + 1];
if (xmin == xmax)
return;
uint xstep = (xmax - xmin + MAX_SAMPLES - 1) / MAX_SAMPLES;
uint ystep = (ymax - ymin + MAX_SAMPLES - 1) / MAX_SAMPLES;
vec4 colour = vec4(0);
uint count = 0;
for (uint y = ymin ; y < ymax; y += ystep) {
for (uint x = xmin ; x < xmax; x += xstep) {
colour += texelFetch(source[iz], ivec2(x, y), 0);
++count;
}
}
colour /= count;
colour.xyz = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb));
imageStore(luma, ivec3(ix, iy, iz), vec4(colour.x));
vec4 sum = colour;
for (uint i = 0 ; i < gl_SubgroupSize; ++i)
{
uvec3 other = subgroupShuffle(gl_GlobalInvocationID, i);
vec4 c = subgroupShuffle(colour, i);
if (
other == gl_GlobalInvocationID + uvec3(1, 0, 0)
|| other == gl_GlobalInvocationID + uvec3(0, 1, 0)
|| other == gl_GlobalInvocationID + uvec3(1, 1, 0))
{
sum += c;
}
}
if (ix %2 == 0 && iy %2 == 0)
{
// actual chroma
imageStore(chroma, ivec3(gl_GlobalInvocationID.xy/2, iz), vec4(sum.y, sum.z, 0, 0) / 4);
// alpha in luma
ivec2 offset = ivec2(ubo.alpha_width * iz, 0);
imageStore(luma, ivec3(offset.xy + gl_GlobalInvocationID.xy/2, 2), vec4(sum.w, 0, 0, 0) / 4);
imageStore(chroma, ivec3(offset.xy + gl_GlobalInvocationID.xy/2, 2), vec4(0.5, 0.5, 0, 0));
}
}
+1 -1
View File
@@ -56,7 +56,7 @@ class app_pacer : public u_pacing_app
} }
public: public:
using base = u_pacing_app; using base_t = u_pacing_app;
app_pacer(pacing_app_factory & parent) : app_pacer(pacing_app_factory & parent) :
u_pacing_app{ u_pacing_app{
+1 -1
View File
@@ -37,7 +37,7 @@ class pacing_app_factory : public u_pacing_app_factory
void remove_app(app_pacer *); void remove_app(app_pacer *);
public: public:
using base = u_pacing_app_factory; using base_t = u_pacing_app_factory;
pacing_app_factory(); pacing_app_factory();
xrt_result_t create(struct u_pacing_app ** out_upa); xrt_result_t create(struct u_pacing_app ** out_upa);
+6
View File
@@ -204,6 +204,12 @@ configuration::configuration()
if (auto it = json.find("tcp-only"); it != json.end()) if (auto it = json.find("tcp-only"); it != json.end())
tcp_only = *it; tcp_only = *it;
if (auto it = json.find("port"); it != json.end())
port = *it;
if (auto it = json.find("hostname"); it != json.end())
hostname = *it;
if (auto it = json.find("publish-service"); it != json.end()) if (auto it = json.find("publish-service"); it != json.end())
{ {
publication = *it; publication = *it;
+4
View File
@@ -19,6 +19,8 @@
#pragma once #pragma once
#include "hostname.h"
#include "wivrn_config.h"
#include <array> #include <array>
#include <chrono> #include <chrono>
#include <filesystem> #include <filesystem>
@@ -57,6 +59,8 @@ struct configuration
bool use_steamvr_lh = false; bool use_steamvr_lh = false;
bool hid_forwarding = false; bool hid_forwarding = false;
bool tcp_only = false; bool tcp_only = false;
int port = wivrn::default_port;
std::string hostname = wivrn::hostname();
service_publication publication = service_publication::avahi; service_publication publication = service_publication::avahi;
// monostate: default value, string: user defined, nullptr: disabled // monostate: default value, string: user defined, nullptr: disabled
-9
View File
@@ -31,7 +31,6 @@
#include <Eigen/Core> #include <Eigen/Core>
#include <Eigen/QR> #include <Eigen/QR>
#include <algorithm> #include <algorithm>
#include <cassert>
#include <limits> #include <limits>
#include <optional> #include <optional>
#include <ranges> #include <ranges>
@@ -199,14 +198,6 @@ public:
else else
sol = (Aprime.transpose() * Aprime).ldlt().solve(Aprime.transpose() * bprime).transpose(); sol = (Aprime.transpose() * Aprime).ldlt().solve(Aprime.transpose() * bprime).transpose();
#ifndef NDEBUG
if constexpr (quaternion)
{
float norm = sol.template block<N, 1>(0, 0).norm();
assert(norm > 0.9);
}
#endif
return sample{ return sample{
.production_timestamp = production_timestamp, .production_timestamp = production_timestamp,
.timestamp = timestamp, .timestamp = timestamp,
+9 -2
View File
@@ -43,8 +43,15 @@ void wivrn::tracking_control::add_request(device_id device, XrTime now, XrTime a
if (not std::ranges::contains(last_control.pattern, device, &to_headset::tracking_control::sample::device)) if (not std::ranges::contains(last_control.pattern, device, &to_headset::tracking_control::sample::device))
{ {
last_control.pattern.push_back({.device = device, .prediction_ns = prediction}); try
cnx.send_control(to_headset::tracking_control(last_control)); {
cnx.send_control(to_headset::tracking_control(last_control));
last_control.pattern.push_back({.device = device, .prediction_ns = prediction});
}
catch (...)
{
// ignore network errors
}
} }
} }
+1 -1
View File
@@ -89,7 +89,7 @@ class wivrn_android_face_tracker : public xrt_device
wivrn::wivrn_session & cnx; wivrn::wivrn_session & cnx;
public: public:
using base = xrt_device; using base_t = xrt_device;
wivrn_android_face_tracker(xrt_device * hmd, wivrn::wivrn_session & cnx); wivrn_android_face_tracker(xrt_device * hmd, wivrn::wivrn_session & cnx);
xrt_result_t update_inputs(); xrt_result_t update_inputs();
-877
View File
@@ -1,877 +0,0 @@
/*
* WiVRn VR streaming
* Copyright (C) 2022 Guillaume Meunier <guillaume.meunier@centraliens.net>
* Copyright (C) 2022 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "wivrn_comp_target.h"
#include "driver/wivrn_session.h"
#include "encoder/video_encoder.h"
#include "util/u_logging.h"
#include "utils/scoped_lock.h"
#include "wivrn_config.h"
#include "wivrn_foveation.h"
#include "main/comp_compositor.h"
#include "math/m_space.h"
#include "xrt_cast.h"
#include <algorithm>
#include <ranges>
#include <vector>
#include <vulkan/vulkan.hpp>
#include <vulkan/vulkan_core.h>
#include <vulkan/vulkan_handles.hpp>
#include "xrt/xrt_config_build.h" // IWYU pragma: keep
#ifdef XRT_FEATURE_RENDERDOC
#include "renderdoc_app.h"
#endif
namespace wivrn
{
std::vector<const char *> wivrn_comp_target::wanted_instance_extensions = {};
std::vector<const char *> wivrn_comp_target::wanted_device_extensions = {
// For FFMPEG
#ifdef VK_EXT_external_memory_dma_buf
VK_EXT_EXTERNAL_MEMORY_DMA_BUF_EXTENSION_NAME,
#endif
#ifdef VK_EXT_image_drm_format_modifier
VK_EXT_IMAGE_DRM_FORMAT_MODIFIER_EXTENSION_NAME,
#endif
// For vulkan video encode
#ifdef VK_KHR_video_queue
VK_KHR_VIDEO_QUEUE_EXTENSION_NAME,
#endif
#ifdef VK_KHR_video_encode_queue
VK_KHR_VIDEO_ENCODE_QUEUE_EXTENSION_NAME,
#endif
#ifdef VK_KHR_video_maintenance1
VK_KHR_VIDEO_MAINTENANCE_1_EXTENSION_NAME,
#endif
#ifdef VK_KHR_video_encode_h264
VK_KHR_VIDEO_ENCODE_H264_EXTENSION_NAME,
#endif
#ifdef VK_KHR_video_encode_h265
VK_KHR_VIDEO_ENCODE_H265_EXTENSION_NAME,
#endif
};
static void target_init_semaphores(struct wivrn_comp_target * cn);
static void target_fini_semaphores(struct wivrn_comp_target * cn);
static inline struct vk_bundle * get_vk(struct wivrn_comp_target * cn)
{
return &cn->c->base.vk;
}
#ifdef XRT_FEATURE_RENDERDOC
static auto renderdoc()
{
auto x = []() {
RENDERDOC_API_1_5_0 * rdoc_api = nullptr;
const char * env = std::getenv("ENABLE_VULKAN_RENDERDOC_CAPTURE");
if (not env or env != std::string_view("1"))
return rdoc_api;
void * mod = dlopen("librenderdoc.so", RTLD_NOW | RTLD_NOLOAD);
if (mod)
{
pRENDERDOC_GetAPI RENDERDOC_GetAPI = (pRENDERDOC_GetAPI)dlsym(mod, "RENDERDOC_GetAPI");
XRT_MAYBE_UNUSED int ret = RENDERDOC_GetAPI(eRENDERDOC_API_Version_1_5_0, (void **)&rdoc_api);
assert(ret == 1);
}
return rdoc_api;
};
static auto res = x();
return res;
}
#endif
static void destroy_images(struct wivrn_comp_target * cn)
{
if (cn->images == nullptr)
return;
if (cn->wivrn_bundle)
cn->wivrn_bundle->device.waitIdle();
cn->psc.status = 1;
cn->psc.status.notify_all();
cn->encoder_threads.clear();
cn->encoders.clear();
cn->psc.images.clear();
free(cn->images);
cn->images = NULL;
target_fini_semaphores(cn);
}
static void comp_wivrn_present_thread(std::stop_token stop_token, wivrn_comp_target * cn, int index, std::vector<std::shared_ptr<video_encoder>> encoders);
static void create_encoders(wivrn_comp_target * cn)
{
auto vk = get_vk(cn);
assert(cn->encoders.empty());
assert(cn->encoder_threads.empty());
assert(cn->wivrn_bundle);
cn->psc.status = 0;
to_headset::video_stream_description & desc = cn->desc;
desc.width = cn->width;
desc.height = cn->height;
std::map<int, std::vector<std::shared_ptr<video_encoder>>> thread_params;
for (auto [i, settings]: std::ranges::enumerate_view(cn->settings))
{
auto & encoder = cn->encoders.emplace_back(
video_encoder::create(*cn->wivrn_bundle, settings, i));
desc.codec[i] = settings.codec;
thread_params[settings.group].emplace_back(encoder);
}
for (auto & [group, params]: thread_params)
{
auto & thread = cn->encoder_threads.emplace_back(
comp_wivrn_present_thread, cn, cn->encoder_threads.size(), std::move(params));
std::string name = "encoder " + std::to_string(group);
pthread_setname_np(thread.native_handle(), name.c_str());
}
cn->cnx.send_control(to_headset::video_stream_description{desc});
}
static VkResult create_images(struct wivrn_comp_target * cn, vk::ImageUsageFlags flags)
{
auto vk = get_vk(cn);
assert(cn->image_count > 0);
COMP_DEBUG(cn->c, "Creating %d images.", cn->image_count);
auto & device = cn->wivrn_bundle->device;
destroy_images(cn);
auto format = vk::Format(cn->format);
bool is_10bit = format == vk::Format::eG10X6B10X6R10X62Plane420Unorm3Pack16;
std::array formats = {
is_10bit ? vk::Format::eR16Unorm : vk::Format::eR8Unorm,
is_10bit ? vk::Format::eR16G16Unorm : vk::Format::eR8G8Unorm,
format};
cn->images = U_TYPED_ARRAY_CALLOC(struct comp_target_image, cn->image_count);
vk::StructureChain image_info{
vk::ImageCreateInfo{
.flags = vk::ImageCreateFlagBits::eExtendedUsage | vk::ImageCreateFlagBits::eMutableFormat,
.imageType = vk::ImageType::e2D,
.format = format,
.extent = {
.width = cn->width,
.height = cn->height,
.depth = 1,
},
.mipLevels = 1,
.arrayLayers = 3, // left, right then alpha
.samples = vk::SampleCountFlagBits::e1,
.tiling = vk::ImageTiling::eOptimal,
.usage = flags | vk::ImageUsageFlagBits::eStorage | vk::ImageUsageFlagBits::eTransferSrc,
.sharingMode = vk::SharingMode::eExclusive,
},
vk::ImageFormatListCreateInfo{
.viewFormatCount = formats.size(),
.pViewFormats = formats.data(),
},
};
#if WIVRN_USE_VULKAN_ENCODE
if (
vk->features.video_maintenance_1 and
std::ranges::contains(
cn->settings,
encoder_vulkan,
&encoder_settings::encoder_name))
{
image_info.get().flags |= vk::ImageCreateFlagBits::eVideoProfileIndependentKHR;
image_info.get().usage |= vk::ImageUsageFlagBits::eVideoEncodeSrcKHR;
}
#endif
cn->psc.images.resize(cn->image_count);
for (uint32_t i = 0; i < cn->image_count; i++)
{
auto & image = cn->psc.images[i].image;
image = image_allocation(
device,
image_info.get(),
{.usage = VMA_MEMORY_USAGE_AUTO},
std::format("comp target image {}", i));
cn->images[i].handle = image;
}
for (uint32_t i = 0; i < cn->image_count; i++)
{
auto & item = cn->psc.images[i];
vk::ImageViewUsageCreateInfo usage{
.usage = flags,
};
item.image_view_y = vk::raii::ImageView(device,
{
.pNext = &usage,
.image = item.image,
.viewType = vk::ImageViewType::e2DArray,
.format = formats[0],
.subresourceRange = {
.aspectMask = vk::ImageAspectFlagBits::ePlane0,
.levelCount = 1,
.layerCount = vk::RemainingArrayLayers,
},
});
item.image_view_cbcr = vk::raii::ImageView(device,
{
.pNext = &usage,
.image = item.image,
.viewType = vk::ImageViewType::e2DArray,
.format = formats[1],
.subresourceRange = {
.aspectMask = vk::ImageAspectFlagBits::ePlane1,
.levelCount = 1,
.layerCount = vk::RemainingArrayLayers,
},
});
cn->images[i].view = VkImageView(*item.image_view_y);
cn->images[i].view_cbcr = VkImageView(*item.image_view_cbcr);
cn->wivrn_bundle->name(item.image_view_y, "comp target image view (y)");
cn->wivrn_bundle->name(item.image_view_cbcr, "comp target image view (CbCr)");
}
cn->psc.fence = vk::raii::Fence(device, vk::FenceCreateInfo{.flags = vk::FenceCreateFlagBits::eSignaled});
cn->wivrn_bundle->name(cn->psc.fence, "comp target fence");
cn->psc.command_buffer = std::move(device.allocateCommandBuffers(
{.commandPool = *cn->command_pool,
.commandBufferCount = 1})[0]);
cn->wivrn_bundle->name(cn->psc.command_buffer, "comp target command buffer");
return VK_SUCCESS;
}
static bool comp_wivrn_init_pre_vulkan(struct comp_target * ct)
{
return true;
}
static bool comp_wivrn_init_post_vulkan(struct comp_target * ct, uint32_t preferred_width, uint32_t preferred_height)
{
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
auto vk = get_vk(cn);
try
{
cn->wivrn_bundle.emplace(*vk,
wivrn_comp_target::wanted_instance_extensions,
wivrn_comp_target::wanted_device_extensions);
cn->command_pool = vk::raii::CommandPool(
cn->wivrn_bundle->device,
{
.flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer,
.queueFamilyIndex = vk->main_queue->family_index,
});
cn->wivrn_bundle->name(cn->command_pool, "comp target command pool");
}
catch (std::exception & e)
{
U_LOG_E("Compositor target init failed: %s", e.what());
return false;
}
try
{
cn->settings = get_encoder_settings(
*cn->wivrn_bundle,
cn->cnx.get_info(),
*cn->cnx.get_settings());
print_encoders(cn->settings);
cn->c->settings.preferred.width = cn->settings[0].width;
cn->c->settings.preferred.height = cn->settings[0].height;
}
catch (const std::exception & e)
{
wivrn_ipc_socket_monado->send(from_monado::server_error{
.where = "Error creating encoder",
.message = e.what(),
});
U_LOG_E("Failed to create video encoder: %s", e.what());
return false;
}
cn->cnx.set_foveated_size(cn->c->settings.preferred.width, cn->c->settings.preferred.height);
cn->foveation.emplace(*cn->wivrn_bundle, *cn->cnx.get_hmd().hmd);
return true;
}
static bool comp_wivrn_check_ready(struct comp_target * ct)
{
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
if (not cn->cnx.connected())
return false;
return true;
}
static void target_fini_semaphores(struct wivrn_comp_target * cn)
{
struct vk_bundle * vk = get_vk(cn);
if (cn->semaphores.present_complete != VK_NULL_HANDLE)
{
vk->vkDestroySemaphore(vk->device, cn->semaphores.present_complete, NULL);
cn->semaphores.present_complete = VK_NULL_HANDLE;
}
if (cn->semaphores.render_complete != VK_NULL_HANDLE)
{
vk->vkDestroySemaphore(vk->device, cn->semaphores.render_complete, NULL);
cn->semaphores.render_complete = VK_NULL_HANDLE;
}
}
static void target_init_semaphores(struct wivrn_comp_target * cn)
{
struct vk_bundle * vk = get_vk(cn);
VkResult ret;
target_fini_semaphores(cn);
VkSemaphoreCreateInfo info = {
.sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO,
};
ret = vk->vkCreateSemaphore(vk->device, &info, NULL, &cn->semaphores.present_complete);
if (ret != VK_SUCCESS)
{
COMP_ERROR(cn->c, "vkCreateSemaphore: %s", vk_result_string(ret));
}
cn->semaphores.render_complete_is_timeline = false;
ret = vk->vkCreateSemaphore(vk->device, &info, NULL, &cn->semaphores.render_complete);
if (ret != VK_SUCCESS)
{
COMP_ERROR(cn->c, "vkCreateSemaphore: %s", vk_result_string(ret));
}
}
static void comp_wivrn_create_images(struct comp_target * ct, const struct comp_target_create_images_info * create_info, struct vk_bundle_queue * present_queue)
{
assert(present_queue != NULL);
(void)present_queue;
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
// Free old images.
destroy_images(cn);
target_init_semaphores(cn);
// will fail on encoder init if bit_depth is arbitrary garbage
if (cn->settings[0].bit_depth == 10)
ct->format = VK_FORMAT_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16;
else
ct->format = VK_FORMAT_G8_B8R8_2PLANE_420_UNORM;
ct->width = create_info->extent.width;
ct->height = create_info->extent.height;
ct->surface_transform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR;
cn->image_count = 3;
cn->color_space = create_info->color_space;
VkResult res = create_images(cn, vk::ImageUsageFlags(create_info->image_usage));
if (res != VK_SUCCESS)
{
vk_print_result(get_vk(cn), __FILE__, __LINE__, __func__, res, "create_images");
// TODO
abort();
}
create_encoders(cn);
}
static bool comp_wivrn_has_images(struct comp_target * ct)
{
return ct->images;
}
static VkResult comp_wivrn_acquire(struct comp_target * ct, uint32_t * out_index)
{
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
while (true)
{
for (uint32_t i = 0; i < ct->image_count; i++)
{
if (cn->psc.images[i].status == pseudo_swapchain::status_t::free)
{
cn->psc.images[i].status = pseudo_swapchain::status_t::acquired;
*out_index = i;
return VK_SUCCESS;
}
}
};
}
static void comp_wivrn_present_thread(std::stop_token stop_token, wivrn_comp_target * cn, int index, std::vector<std::shared_ptr<video_encoder>> encoders)
{
auto & vk = *cn->wivrn_bundle;
U_LOG_I("Starting encoder thread %d", index);
const uint8_t status_bit = 1 << (index + 1);
while (not stop_token.stop_requested())
{
{
auto status = cn->psc.status.load();
// Bit 0 to request exit
if (status & 1)
return;
if (not(status & status_bit))
{
cn->psc.status.wait(status);
continue;
}
}
// Get local copies before releasing the image
auto view_info = cn->psc.view_info;
auto frame_index = cn->psc.frame_index;
auto res = vk.device.waitForFences(*cn->psc.fence, true, UINT64_MAX);
try
{
for (auto & encoder: encoders)
{
if (encoder->stream_idx < 2 or view_info.alpha)
encoder->encode(cn->cnx, view_info, frame_index);
}
}
catch (std::exception & e)
{
U_LOG_W("encode error: %s", e.what());
}
catch (...)
{
// Ignore errors
}
// Update encoder status, release image
if ((cn->psc.status &= ~status_bit) == 0)
{
cn->psc.status.notify_all();
for (auto & img: cn->psc.images)
{
if (img.status == pseudo_swapchain::status_t::encoding)
{
img.status = pseudo_swapchain::status_t::free;
break;
}
}
}
}
}
static VkResult comp_wivrn_present(struct comp_target * ct,
struct vk_bundle_queue * present_queue,
uint32_t index,
uint64_t timeline_semaphore_value,
int64_t desired_present_time_ns,
int64_t present_slop_ns)
{
assert(present_queue != NULL);
(void)present_queue;
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
assert(index < cn->image_count);
assert(cn->psc.images[index].status == pseudo_swapchain::status_t::acquired);
struct vk_bundle * vk = get_vk(cn);
auto res = cn->wivrn_bundle->device.waitForFences(*cn->psc.fence, true, UINT64_MAX);
vk::Semaphore wait_semaphore(cn->semaphores.render_complete);
vk::PipelineStageFlags wait_stage = vk::PipelineStageFlagBits::eTransfer;
vk::SubmitInfo submit_info{
.waitSemaphoreCount = 1,
.pWaitSemaphores = &wait_semaphore,
.pWaitDstStageMask = &wait_stage,
};
if (cn->c->base.layer_accum.layer_count == 0 or not cn->cnx.get_offset())
{
scoped_lock lock(vk->main_queue->mutex);
cn->wivrn_bundle->queue.submit(submit_info);
cn->psc.images[index].status = pseudo_swapchain::status_t::free;
return VK_SUCCESS;
}
auto & command_buffer = cn->psc.command_buffer;
auto & psc_image = cn->psc.images[index];
// Wait for encoders to be done with previous frame
for (auto status = cn->psc.status.load(); status != 0; status = cn->psc.status)
cn->psc.status.wait(status);
command_buffer.reset();
command_buffer.begin(vk::CommandBufferBeginInfo{
.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit,
});
cn->wivrn_bundle->device.resetFences(*cn->psc.fence);
psc_image.status = pseudo_swapchain::status_t::encoding;
auto info = cn->pacer.present_to_info(desired_present_time_ns);
const bool do_alpha = cn->c->base.layer_accum.data.env_blend_mode == XRT_BLEND_MODE_ALPHA_BLEND;
bool need_queue_transfer = false;
std::vector<vk::Semaphore> present_done_sem;
for (auto & encoder: cn->encoders)
{
if (encoder->stream_idx == 2 and not do_alpha)
continue;
auto [transfer, sem] = encoder->present_image(
psc_image.image,
need_queue_transfer,
command_buffer,
info.frame_id);
need_queue_transfer |= transfer;
if (sem)
present_done_sem.push_back(sem);
}
#if WIVRN_USE_VULKAN_ENCODE
if (need_queue_transfer)
{
vk::ImageMemoryBarrier2 video_barrier{
.srcStageMask = vk::PipelineStageFlagBits2KHR::eTransfer,
.srcAccessMask = vk::AccessFlagBits2::eMemoryRead,
.dstStageMask = vk::PipelineStageFlagBits2KHR::eVideoEncodeKHR,
.oldLayout = vk::ImageLayout::eTransferSrcOptimal,
.newLayout = vk::ImageLayout::eVideoEncodeSrcKHR,
.srcQueueFamilyIndex = vk->main_queue->family_index,
.dstQueueFamilyIndex = vk->encode_queue->family_index,
.image = psc_image.image,
.subresourceRange = {.aspectMask = vk::ImageAspectFlagBits::eColor,
.baseMipLevel = 0,
.levelCount = 1,
.baseArrayLayer = 0,
.layerCount = vk::RemainingArrayLayers},
};
command_buffer.pipelineBarrier2({
.imageMemoryBarrierCount = 1,
.pImageMemoryBarriers = &video_barrier,
});
}
submit_info.setSignalSemaphores(present_done_sem);
#endif
command_buffer.end();
submit_info.setCommandBuffers(*command_buffer);
{
scoped_lock lock(vk->main_queue->mutex);
cn->wivrn_bundle->queue.submit(submit_info, *cn->psc.fence);
for (auto & encoder: cn->encoders)
{
if (encoder->stream_idx == 2 and not do_alpha)
continue;
encoder->post_submit();
}
}
#ifdef XRT_FEATURE_RENDERDOC
if (auto r = renderdoc())
r->EndFrameCapture(NULL, NULL);
#endif
auto & view_info = cn->psc.view_info;
view_info.foveation = cn->foveation->get_parameters();
view_info.display_time = cn->cnx.get_offset().to_headset(info.predicted_display_time);
if (view_info.alpha != do_alpha)
cn->pacer.reset();
view_info.alpha = do_alpha;
for (int eye = 0; eye < 2; ++eye)
{
const auto & frame_params = cn->c->base.frame_params;
view_info.fov[eye] = xrt_cast(frame_params.fovs[eye]);
view_info.pose[eye] = xrt_cast(frame_params.poses[eye]);
if (cn->c->base.frame_params.one_projection_layer_fast_path)
{
const auto & proj = cn->c->base.layer_accum.layers[0].data.proj;
view_info.pose[eye] = xrt_cast(proj.v[eye].pose);
view_info.fov[eye] = xrt_cast(proj.v[eye].fov);
}
else
{
xrt_relation_chain xrc{};
xrt_space_relation result{};
m_relation_chain_push_pose_if_not_identity(&xrc, &frame_params.poses[eye]);
m_relation_chain_resolve(&xrc, &result);
view_info.pose[eye] = xrt_cast(result.pose);
}
}
// set bits to 1 for index 1..num encoder threads + 1
cn->psc.status = (1 << (cn->encoder_threads.size() + 1)) - 2;
cn->psc.frame_index = info.frame_id;
cn->psc.status.notify_all();
return VK_SUCCESS;
}
static void comp_wivrn_flush(struct comp_target * ct)
{
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
#ifdef XRT_FEATURE_RENDERDOC
if (auto r = renderdoc())
r->StartFrameCapture(NULL, NULL);
#endif
if (cn->cnx.get_info().eye_gaze)
{
// FIXME: actually get the gaze data here
auto now = os_monotonic_get_ns();
cn->cnx.add_tracking_request(device_id::EYE_GAZE, cn->c->base.layer_accum.data.display_time_ns, now, now);
}
vk::CommandBuffer cmd;
// apply foveation for current frame
if (cn->c->base.frame_params.one_projection_layer_fast_path)
{
const auto & data = cn->c->base.layer_accum.layers[0].data;
const auto & hmd = cn->cnx.get_hmd().hmd;
xrt_rect rect[] = {data.proj.v[0].sub.rect, data.proj.v[1].sub.rect};
xrt_fov fov[] = {data.proj.v[0].fov, data.proj.v[1].fov};
cmd = cn->foveation->update_foveation_buffer(
ct->c->nr.distortion.buffer,
data.flip_y,
rect,
fov);
}
else
{
const auto & hmd = cn->cnx.get_hmd().hmd;
xrt_rect rect[] = {
{.extent = {
.w = int(hmd->views[0].display.w_pixels),
.h = int(hmd->views[0].display.h_pixels),
}},
{.extent = {
.w = int(hmd->views[1].display.w_pixels),
.h = int(hmd->views[1].display.h_pixels),
}},
};
cmd = cn->foveation->update_foveation_buffer(
ct->c->nr.distortion.buffer,
false,
rect,
hmd->distortion.fov);
}
struct vk_bundle * vk = get_vk(cn);
vk::Semaphore sem(cn->semaphores.present_complete);
vk::SubmitInfo submit_info{
.commandBufferCount = cmd ? 1u : 0,
.pCommandBuffers = &cmd,
.signalSemaphoreCount = 1,
.pSignalSemaphores = &sem,
};
{
scoped_lock lock(vk->main_queue->mutex);
cn->wivrn_bundle->queue.submit(submit_info);
}
}
static void comp_wivrn_calc_frame_pacing(struct comp_target * ct,
int64_t * out_frame_id,
int64_t * out_wake_up_time_ns,
int64_t * out_desired_present_time_ns,
int64_t * out_present_slop_ns,
int64_t * out_predicted_display_time_ns)
{
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
cn->pacer.predict(
*out_frame_id,
*out_wake_up_time_ns,
*out_desired_present_time_ns,
*out_present_slop_ns,
*out_predicted_display_time_ns);
}
static void comp_wivrn_mark_timing_point(struct comp_target * ct,
enum comp_target_timing_point point,
int64_t frame_id,
int64_t when_ns)
{
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
cn->pacer.mark_timing_point(point, frame_id, when_ns);
switch (point)
{
case COMP_TARGET_TIMING_POINT_WAKE_UP:
cn->cnx.dump_time("wake_up", frame_id, when_ns);
break;
case COMP_TARGET_TIMING_POINT_BEGIN:
cn->cnx.dump_time("begin", frame_id, when_ns);
break;
case COMP_TARGET_TIMING_POINT_SUBMIT_BEGIN:
break;
case COMP_TARGET_TIMING_POINT_SUBMIT_END:
cn->cnx.dump_time("submit", frame_id, when_ns);
break;
default:
assert(false);
}
}
static VkResult comp_wivrn_update_timings(struct comp_target * ct)
{
// TODO
return VK_SUCCESS;
}
static void comp_wivrn_set_title(struct comp_target * ct, const char * title)
{}
static xrt_result_t comp_wivrn_get_refresh_rates(struct comp_target * ct, uint32_t * count, float * refresh_rates_hz)
{
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
const auto & rates = cn->cnx.get_info().available_refresh_rates;
*count = std::min<uint32_t>(rates.size(), XRT_MAX_SUPPORTED_REFRESH_RATES);
std::copy_n(rates.begin(), *count, refresh_rates_hz);
return XRT_SUCCESS;
}
static xrt_result_t comp_wivrn_get_current_refresh_rate(struct comp_target * ct, float * refresh_rate_hz)
{
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
*refresh_rate_hz = cn->desc.fps;
return XRT_SUCCESS;
}
static xrt_result_t comp_wivrn_request_refresh_rate(struct comp_target * ct, float refresh_rate_hz)
{
struct wivrn_comp_target * cn = (struct wivrn_comp_target *)ct;
cn->requested_refresh_rate = refresh_rate_hz;
if (refresh_rate_hz == 0.0f)
refresh_rate_hz = get_default_rate(cn->cnx.get_info(), *cn->cnx.get_settings());
cn->cnx.send_control(to_headset::refresh_rate_change{.fps = refresh_rate_hz});
return XRT_SUCCESS;
}
wivrn_comp_target::~wivrn_comp_target()
{
destroy_images(this);
}
static void comp_wivrn_destroy(struct comp_target * ct)
{
auto cn = (struct wivrn_comp_target *)ct;
cn->cnx.unset_comp_target();
delete cn;
}
static void comp_wivrn_info_gpu(struct comp_target * ct, int64_t frame_id, int64_t gpu_start_ns, int64_t gpu_end_ns, int64_t when_ns)
{
COMP_TRACE_MARKER();
}
void wivrn_comp_target::on_feedback(const from_headset::feedback & feedback, const clock_offset & o)
{
uint8_t stream = feedback.stream_index;
if (psc.status & 1)
return;
if (encoders.size() <= stream)
return;
encoders[stream]->on_feedback(feedback);
if (not o)
return;
pacer.on_feedback(feedback, o);
}
void wivrn_comp_target::reset_encoders()
{
pacer.reset();
for (auto & encoder: encoders)
encoder->reset();
cnx.send_control(to_headset::video_stream_description{desc});
}
void wivrn_comp_target::set_bitrate(uint32_t bitrate_bps)
{
for (auto & encoder: encoders)
{
auto encoder_bps = (uint32_t)(bitrate_bps * encoder->bitrate_multiplier);
U_LOG_D("Encoder %d bitrate: %d", encoder->stream_idx, encoder_bps);
encoder->set_bitrate(encoder_bps);
}
}
void wivrn_comp_target::set_refresh_rate(float refresh_rate_hz)
{
U_LOG_I("Refresh rate change from %.0f to %.0f", desc.fps, refresh_rate_hz);
desc.fps = refresh_rate_hz;
c->frame_interval_ns = U_TIME_1S_IN_NS / refresh_rate_hz;
pacer.set_frame_duration(c->frame_interval_ns);
for (auto & encoder: encoders)
encoder->set_framerate(refresh_rate_hz);
}
wivrn_comp_target::wivrn_comp_target(wivrn::wivrn_session & cnx, struct comp_compositor * c) :
comp_target{
.c = c,
.init_pre_vulkan = comp_wivrn_init_pre_vulkan,
.init_post_vulkan = comp_wivrn_init_post_vulkan,
.check_ready = comp_wivrn_check_ready,
.create_images = comp_wivrn_create_images,
.has_images = comp_wivrn_has_images,
.acquire = comp_wivrn_acquire,
.present = comp_wivrn_present,
.flush = comp_wivrn_flush,
.calc_frame_pacing = comp_wivrn_calc_frame_pacing,
.mark_timing_point = comp_wivrn_mark_timing_point,
.update_timings = comp_wivrn_update_timings,
.info_gpu = comp_wivrn_info_gpu,
.set_title = comp_wivrn_set_title,
.get_refresh_rates = comp_wivrn_get_refresh_rates,
.get_current_refresh_rate = comp_wivrn_get_current_refresh_rate,
.request_refresh_rate = comp_wivrn_request_refresh_rate,
.destroy = comp_wivrn_destroy,
},
desc{.fps = get_default_rate(cnx.get_info(), *cnx.get_settings())},
pacer(U_TIME_1S_IN_NS / desc.fps),
cnx(cnx)
{
c->frame_interval_ns = U_TIME_1S_IN_NS / desc.fps;
}
} // namespace wivrn
-122
View File
@@ -1,122 +0,0 @@
/*
* WiVRn VR streaming
* Copyright (C) 2022 Guillaume Meunier <guillaume.meunier@centraliens.net>
* Copyright (C) 2022 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include "main/comp_target.h"
#include "encoder/encoder_settings.h"
#include "utils/wivrn_vk_bundle.h"
#include "vk/allocation.h"
#include "wivrn_foveation.h"
#include "wivrn_pacer.h"
#include "wivrn_packets.h"
#include <list>
#include <memory>
#include <optional>
#include <thread>
#include <vector>
#include <vulkan/vulkan_raii.hpp>
namespace wivrn
{
class wivrn_session;
class video_encoder;
struct pseudo_swapchain
{
#ifdef __cpp_lib_atomic_lock_free_type_aliases
using status_type = std::atomic_unsigned_lock_free;
#else
using status_type = std::atomic_uint64_t;
#endif
enum class status_t
{
free,
acquired,
encoding,
};
struct item
{
image_allocation image;
vk::raii::ImageView image_view_y = nullptr;
vk::raii::ImageView image_view_cbcr = nullptr;
status_t status;
};
std::vector<item> images;
// bitmask of encoder status, first bit to request exit, then one bit per thread:
// 0 when encoder is done
// 1 when busy/image to be encoded
status_type status;
// Data to be encoded
vk::raii::Fence fence = nullptr;
vk::raii::CommandBuffer command_buffer = nullptr;
int64_t frame_index;
to_headset::video_stream_data_shard::view_info_t view_info{};
};
struct wivrn_comp_target : public comp_target
{
to_headset::video_stream_description desc{};
wivrn_pacer pacer;
std::optional<wivrn_vk_bundle> wivrn_bundle;
vk::raii::CommandPool command_pool = nullptr;
int64_t current_frame_id = 0;
pseudo_swapchain psc;
VkColorSpaceKHR color_space;
static std::vector<const char *> wanted_instance_extensions;
static std::vector<const char *> wanted_device_extensions;
std::array<encoder_settings, 3> settings;
std::list<std::jthread> encoder_threads;
std::vector<std::shared_ptr<video_encoder>> encoders;
wivrn::wivrn_session & cnx;
std::optional<wivrn_foveation> foveation;
std::atomic<float> requested_refresh_rate;
wivrn_comp_target(wivrn::wivrn_session & cnx, struct comp_compositor * c);
~wivrn_comp_target();
void on_feedback(const from_headset::feedback &, const clock_offset &);
void reset_encoders();
void set_bitrate(uint32_t bitrate_bps);
void set_refresh_rate(float);
};
inline float get_default_rate(const from_headset::headset_info_packet & info, const from_headset::settings_changed & settings)
{
if (settings.preferred_refresh_rate)
return settings.preferred_refresh_rate;
return info.available_refresh_rates.back();
}
} // namespace wivrn
+5 -14
View File
@@ -34,20 +34,11 @@
using namespace std::chrono_literals; using namespace std::chrono_literals;
static void handle_event_from_main_loop(to_monado::stop) // Ignored until connection is established
{ static void handle_event_from_main_loop(to_monado::stop) {}
// Ignore stop request when no headset is connected static void handle_event_from_main_loop(to_monado::disconnect) {}
} static void handle_event_from_main_loop(to_monado::set_bitrate) {}
static void handle_event_from_main_loop(wivrn::to_headset::stream_tab_change) {}
static void handle_event_from_main_loop(to_monado::disconnect)
{
// Ignore disconnect request when no headset is connected
}
static void handle_event_from_main_loop(to_monado::set_bitrate)
{
// Ignore bitrate request when no headset is connected
}
static std::string clean_key(std::string key) static std::string clean_key(std::string key)
{ {
+1 -1
View File
@@ -50,7 +50,7 @@ class wivrn_controller : public xrt_device
wivrn::wivrn_session * cnx; wivrn::wivrn_session * cnx;
public: public:
using base = xrt_device; using base_t = xrt_device;
wivrn_controller(xrt_device_name name, int hand_id, xrt_device * hmd, wivrn::wivrn_session * cnx); wivrn_controller(xrt_device_name name, int hand_id, xrt_device * hmd, wivrn::wivrn_session * cnx);
xrt_result_t update_inputs(); xrt_result_t update_inputs();
+1 -1
View File
@@ -42,7 +42,7 @@ class wivrn_eye_tracker : public xrt_device
wivrn_session & cnx; wivrn_session & cnx;
public: public:
using base = xrt_device; using base_t = xrt_device;
wivrn_eye_tracker(wivrn_session &); wivrn_eye_tracker(wivrn_session &);
xrt_result_t update_inputs(); xrt_result_t update_inputs();
+1 -1
View File
@@ -94,7 +94,7 @@ class wivrn_fb_face2_tracker : public xrt_device
wivrn::wivrn_session & cnx; wivrn::wivrn_session & cnx;
public: public:
using base = xrt_device; using base_t = xrt_device;
wivrn_fb_face2_tracker(xrt_device * hmd, wivrn::wivrn_session & cnx); wivrn_fb_face2_tracker(xrt_device * hmd, wivrn::wivrn_session & cnx);
xrt_result_t update_inputs(); xrt_result_t update_inputs();
-477
View File
@@ -1,477 +0,0 @@
/*
* WiVRn VR streaming
* Copyright (C) 2024 galister <galister@librevr.org>
* Copyright (C) 2025 Patrick Nicolas <patricknicolas@laposte.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "render/render_interface.h"
#include "wivrn_foveation.h"
#include "driver/xrt_cast.h"
#include "utils/wivrn_vk_bundle.h"
#include "wivrn_packets.h"
#include "xrt/xrt_defines.h"
#include <array>
#include <cmath>
#include <map>
#include <ranges>
#include <vulkan/vulkan_raii.hpp>
#include <vulkan/vulkan_structs.hpp>
#include <openxr/openxr.h>
extern const std::map<std::string, std::vector<uint32_t>> shaders;
bool render_distortion_images_ensure(struct render_resources * r,
struct vk_bundle * vk,
struct xrt_device * xdev,
bool pre_rotate)
{
if (r->distortion.buffer == VK_NULL_HANDLE)
r->distortion.buffer = wivrn::wivrn_foveation::instance().get_gpu_buffer();
return true;
}
void render_distortion_images_fini(struct render_resources * r)
{
r->distortion.buffer = VK_NULL_HANDLE;
}
// a, b: parameters computed by solve_foveation
// λ: pixel ratio between full size and foveated image (in range ]0,1[)
// c: coordinates in -1,1 range of the full size image where pixel ratio must be 1:1
// x: coordinates in -1,1 range of the foveated image
// result: full size image coordinates in -1,1 range
static double defoveate(double a, double b, double λ, double c, double x)
{
// In order to save encoding, transmit and decoding time, only a portion of the image is encoded in full resolution.
// on each axis, foveated coordinates are defined by the following formula.
return λ / a * tan(a * x + b) + c;
// a and b are defined such as:
// edges of the image are not moved
// f(-1) = -1
// f( 1) = 1
// the function also enforces pixel ratio 1:1 at fovea
// df⁻¹(x)/dx = 1/scale for x = c
// We then ensure that source and destination pixel grids match by
// rounding to integer pixel ratios: 1:1, 1:2 etc.
// Finally, pixel spans are sorted so that we only have increasing
// ratios going out from the center.
}
static std::tuple<float, float> solve_foveation(float λ, float c)
{
// Compute a and b for the foveation function such that:
// foveate(a, b, scale, c, -1) = -1 (eq. 1)
// foveate(a, b, scale, c, 1) = 1 (eq. 2)
//
// Use eq. 2 to express a as function of b, then replace in eq. 1
// equation that needs to be null is:
auto b = [λ, c](double a) { return atan(a * (1 - c) / λ) - a; };
auto eq = [λ, c](double a) { return atan(a * (1 - c) / λ) + atan(a * (1 + c) / λ) - 2 * a; }; // (eq. 3)
// function starts positive, reaches a maximum then decreases to -∞
double a0 = 0;
// Find a negative value by computing eq(2^n)
double a1 = 1;
while (eq(a1) > 0)
a1 *= 2;
// last computed values for f(a0) and f(a1)
std::optional<double> f_a0;
double f_a1 = eq(a1);
int n = 0;
double a = 0;
while (std::abs(a1 - a0) > 0.0000001 && n++ < 100)
{
if (not f_a0)
{
// use binary search
a = 0.5 * (a0 + a1);
double val = eq(a);
if (val > 0)
{
a0 = a;
f_a0 = val;
}
else
{
a1 = a;
f_a1 = val;
}
}
else
{
// f(a1) is always defined
// when f(a0) is defined, use secant method
a = a1 - f_a1 * (a1 - a0) / (f_a1 - *f_a0);
a0 = a1;
a1 = a;
f_a0 = f_a1;
f_a1 = eq(a);
}
}
return {a, b(a)};
}
static bool is_zero_quat(xrt_quat q)
{
return q.x == 0 and q.y == 0 and q.z == 0 and q.w == 0;
}
static xrt_vec2 yaw_pitch(xrt_quat q)
{
if (is_zero_quat(q))
return xrt_vec2{};
float sine_theta = std::clamp(-2.0f * (q.y * q.z - q.w * q.x), -1.0f, 1.0f);
float pitch = std::asin(sine_theta);
if (std::abs(sine_theta) > 0.99999f)
{
float scale = std::copysign(2.0, sine_theta);
return {scale * std::atan2(-q.z, q.w), pitch};
}
return {
std::atan2(2.0f * (q.x * q.z + q.w * q.y),
q.w * q.w - q.x * q.x - q.y * q.y + q.z * q.z),
pitch};
}
static float angles_to_center(float e, float l, float r)
{
e = tan(e);
l = tan(l);
r = tan(r);
float res = std::clamp((e - l) / (r - l) * 2 - 1, -1.f, 1.f);
// If the center isn't in the FoV, fallback to middle of image
if (std::isnan(res))
return 0;
return res;
}
static float convergence_angle(float distance, float eye_x, float gaze_yaw)
{
auto b = distance * std::sin(gaze_yaw) - eye_x;
return std::asin(b / distance);
}
static void fill_param_2d(
float c,
size_t foveated_dim,
size_t source_dim,
std::vector<uint16_t> & out)
{
float scale = float(foveated_dim) / source_dim;
auto [a, b] = solve_foveation(scale, c);
uint16_t last = 0;
std::vector<uint16_t> left; // index 0: 1:1 ratio, then 2:1 etc.
std::vector<uint16_t> right;
for (size_t i = 1; i < foveated_dim; ++i)
{
double u = (i * 2.) / foveated_dim - 1;
auto f = defoveate(a, b, scale, c, u);
uint16_t n = std::clamp<uint16_t>((f * 0.5 + 0.5) * source_dim + 0.5, 0, source_dim);
assert(n > last);
size_t count = n - last;
auto & vec = u < c ? left : right;
if (count > vec.size())
vec.resize(count);
vec[count - 1]++;
last = n;
}
assert(last < source_dim);
size_t count = source_dim - last;
if (count > right.size())
right.resize(count);
right[count - 1]++;
count = std::max(left.size(), right.size());
out.clear();
out.resize(count - left.size());
out.insert(out.end(), left.rbegin(), left.rend());
if (not right.empty())
out.back() += right.front();
if (right.size() > 1)
out.insert(out.end(), right.begin() + 1, right.end());
out.resize(count * 2 - 1);
}
namespace wivrn
{
void wivrn_foveation::compute_params(
xrt_rect src[2],
const xrt_fov fovs[2])
{
auto e = yaw_pitch(gaze);
if (manual_foveation.enabled)
e.y = manual_foveation.pitch;
for (size_t i = 0; i < 2; ++i)
{
const auto & fov = fovs[i];
size_t extent_w = std::abs(src[i].extent.w);
if (foveated_width < extent_w)
{
auto distance = manual_foveation.enabled ? manual_foveation.distance : convergence_distance;
auto angle_x = convergence_angle(distance, eye_x[i], -e.x);
auto center = angles_to_center(angle_x, fov.angle_left, fov.angle_right);
fill_param_2d(center, foveated_width, extent_w, params[i].x);
}
else
params[i].x = {uint16_t(src[i].extent.w)};
size_t extent_h = std::abs(src[i].extent.h);
if (foveated_height < extent_h)
{
auto angle_y = -e.y;
if (is_zero_quat(gaze) and not manual_foveation.enabled)
{
// Natural gaze is not straight forward, adjust the angle
angle_y += angle_offset;
}
auto center = angles_to_center(-angle_y, fov.angle_up, fov.angle_down);
fill_param_2d(center, foveated_height, extent_h, params[i].y);
}
else
params[i].y = {uint16_t(src[i].extent.h)};
}
}
wivrn_foveation::wivrn_foveation(wivrn_vk_bundle & bundle, const xrt_hmd_parts & hmd) :
foveated_width(hmd.screens[0].w_pixels),
foveated_height(hmd.screens[0].h_pixels),
// normal sight line is between 10° and 15° below horizontal
// https://apps.dtic.mil/sti/tr/pdf/AD0758339.pdf pages 393-394
// testing shows 10° looks better
angle_offset(10 * M_PI / 180),
convergence_distance(1 /* meter*/),
command_pool(bundle.device, vk::CommandPoolCreateInfo{.queueFamilyIndex = bundle.queue_family_index}),
cmd(std::move(bundle.device.allocateCommandBuffers({
.commandPool = *command_pool,
.commandBufferCount = 1,
})[0])),
gpu_buffer(
bundle.device,
{
.size = sizeof(render_compute_distortion_foveation_data),
.usage = vk::BufferUsageFlagBits::eTransferDst | vk::BufferUsageFlagBits::eStorageBuffer,
},
VmaAllocationCreateInfo{
.flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT | VMA_ALLOCATION_CREATE_HOST_ACCESS_ALLOW_TRANSFER_INSTEAD_BIT,
.usage = VMA_MEMORY_USAGE_AUTO,
},
"foveation storage buffer")
{
if (not(gpu_buffer.properties() & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT))
{
host_buffer = buffer_allocation(
bundle.device,
{
.size = gpu_buffer.info().size,
.usage = vk::BufferUsageFlagBits::eTransferSrc,
},
{
.flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT,
.usage = VMA_MEMORY_USAGE_AUTO_PREFER_HOST,
},
"foveation staging buffer");
}
bundle.name(command_pool, "foveation command pool");
bundle.name(cmd, "foveation command buffer");
}
void wivrn_foveation::update_tracking(const from_headset::tracking & tracking, const clock_offset & offset)
{
std::lock_guard lock(mutex);
const uint8_t orientation_ok = from_headset::tracking::orientation_valid | from_headset::tracking::orientation_tracked;
if (tracking.view_flags & XR_VIEW_STATE_POSITION_VALID_BIT)
{
eye_x[0] = tracking.views[0].pose.position.x;
eye_x[1] = tracking.views[1].pose.position.x;
}
for (const auto & pose: tracking.device_poses)
{
if (pose.device != device_id::EYE_GAZE)
continue;
if ((pose.flags & orientation_ok) != orientation_ok)
return;
gaze = xrt_cast(pose.pose.orientation);
return;
}
}
void wivrn_foveation::update_foveation_center_override(const from_headset::override_foveation_center & center)
{
std::lock_guard lock(mutex);
manual_foveation = center;
}
std::array<to_headset::foveation_parameter, 2> wivrn_foveation::get_parameters()
{
std::lock_guard lock(mutex);
return params;
}
static void fill_ubo(
std::span<uint32_t> ubo,
const std::vector<uint16_t> & params,
bool flip,
size_t offset,
size_t size,
[[maybe_unused]] int count)
{
assert(params.size() % 2 == 1);
const int n_ratio = (params.size() - 1) / 2;
ubo[0] = offset;
if (flip)
ubo[0] += size;
for (auto [i, n]: std::ranges::enumerate_view(params))
{
const int n_source = std::abs(n_ratio - int(i)) + 1;
for (size_t j = 0; j < n; ++j)
{
assert(count > 0);
if (flip)
ubo[1] = ubo[0] - n_source;
else
ubo[1] = ubo[0] + n_source;
ubo = ubo.subspan(1);
--count;
}
}
if (not ubo.empty())
std::ranges::fill(ubo, ubo[0]);
}
template <typename T>
static bool operator==(const T & a, const T & b)
{
static_assert(std::has_unique_object_representations_v<T>);
return std::memcmp(&a, &b, sizeof(T)) == 0;
}
static bool operator==(const xrt_quat & a, const xrt_quat & b)
{
return a.x == b.x and a.y == b.y and a.z == b.z and a.w == b.w;
}
static bool operator==(const xrt_fov & a, const xrt_fov & b)
{
return a.angle_left == b.angle_left and a.angle_right == b.angle_right and a.angle_up == b.angle_up and a.angle_down == b.angle_down;
}
vk::Buffer wivrn_foveation::get_gpu_buffer()
{
return gpu_buffer;
}
vk::CommandBuffer wivrn_foveation::update_foveation_buffer(
vk::Buffer target,
bool flip_y,
xrt_rect source[2],
xrt_fov fovs[2])
{
if (not target)
return nullptr;
// Check if the last value is still valid
std::lock_guard lock(mutex);
if (last.flip_y == flip_y //
and last.src[0] == source[0] //
and last.src[1] == source[1] //
and last.fovs[0] == fovs[0] //
and last.fovs[1] == fovs[1] //
and (last.gaze == gaze or manual_foveation.enabled) // Ignore the gaze if foveation center is overridden
and std::abs(last.eye_x[0] - eye_x[0]) < 0.0005 //
and std::abs(last.eye_x[1] - eye_x[1]) < 0.0005 //
and last.manual_foveation.enabled == manual_foveation.enabled //
and std::abs(last.manual_foveation.pitch - manual_foveation.pitch) < 0.0005 //
and std::abs(last.manual_foveation.distance - manual_foveation.distance) < 0.0005 //
)
return nullptr;
assert(target == gpu_buffer);
if (host_buffer)
{
command_pool.reset();
cmd.begin({});
cmd.copyBuffer(host_buffer, target, vk::BufferCopy{.size = sizeof(render_compute_distortion_foveation_data)});
cmd.end();
}
last = {
.gaze = gaze,
.flip_y = flip_y,
.src = {source[0], source[1]},
.fovs = {fovs[0], fovs[1]},
.eye_x = {eye_x[0], eye_x[1]},
.manual_foveation = manual_foveation,
};
compute_params(source, fovs);
auto ubo = host_buffer ? host_buffer.data<render_compute_distortion_foveation_data>() : gpu_buffer.data<render_compute_distortion_foveation_data>();
for (size_t view = 0; view < 2; ++view)
{
bool flip = false;
size_t offset, extent;
if (source[view].extent.w < 0)
{
flip = true;
offset = source[view].offset.w + source[view].extent.w;
extent = -source[view].extent.w;
}
else
{
offset = source[view].offset.w;
extent = source[view].extent.w;
}
fill_ubo(std::span(ubo->x + view * RENDER_FOVEATION_BUFFER_DIMENSIONS, RENDER_FOVEATION_BUFFER_DIMENSIONS), params[view].x, flip, offset, extent, foveated_width);
if (source[view].extent.h < 0)
{
flip = not flip_y;
offset = source[view].offset.h + source[view].extent.h;
extent = -source[view].extent.h;
}
else
{
flip = flip_y;
offset = source[view].offset.h;
extent = source[view].extent.h;
}
fill_ubo(std::span(ubo->y + view * RENDER_FOVEATION_BUFFER_DIMENSIONS, RENDER_FOVEATION_BUFFER_DIMENSIONS), params[view].y, flip, offset, extent, foveated_height);
}
if (host_buffer)
return *cmd;
return nullptr;
}
} // namespace wivrn
+1 -1
View File
@@ -47,7 +47,7 @@ class wivrn_generic_tracker : public xrt_device
wivrn_session & cnx; wivrn_session & cnx;
public: public:
using base = xrt_device; using base_t = xrt_device;
wivrn_generic_tracker(int index, xrt_device * hmd, wivrn_session & cnx); wivrn_generic_tracker(int index, xrt_device * hmd, wivrn_session & cnx);
xrt_result_t update_inputs(); xrt_result_t update_inputs();
+9 -7
View File
@@ -18,7 +18,6 @@
*/ */
#include "wivrn_hmd.h" #include "wivrn_hmd.h"
#include "math/m_api.h"
#include "os/os_time.h" #include "os/os_time.h"
#include "wivrn_config.h" #include "wivrn_config.h"
#include "wivrn_session.h" #include "wivrn_session.h"
@@ -37,6 +36,10 @@
#include "configuration.h" #include "configuration.h"
#ifndef NDEBUG
#include "math/m_api.h"
#endif
namespace wivrn namespace wivrn
{ {
@@ -148,8 +151,7 @@ void wivrn_hmd::update_tracking(const from_headset::tracking & tracking, const c
void wivrn_hmd::update_battery(const from_headset::battery & new_battery) void wivrn_hmd::update_battery(const from_headset::battery & new_battery)
{ {
// We will only request a new sample if the current one is consumed // We will only request a new sample if the current one is consumed
std::lock_guard lock(mutex); *battery.lock() = new_battery;
battery = new_battery;
} }
xrt_result_t wivrn_hmd::get_presence(bool * out_presence) xrt_result_t wivrn_hmd::get_presence(bool * out_presence)
@@ -204,10 +206,10 @@ xrt_result_t wivrn_hmd::get_battery_status(bool * out_present,
bool * out_charging, bool * out_charging,
float * out_charge) float * out_charge)
{ {
std::lock_guard lock(mutex); auto bat = battery.lock();
*out_present = battery.present; *out_present = bat->present;
*out_charging = battery.charging; *out_charging = bat->charging;
*out_charge = battery.charge; *out_charge = bat->charge;
return XRT_SUCCESS; return XRT_SUCCESS;
} }

Some files were not shown because too many files have changed in this diff Show More