Compare commits

..
Author SHA1 Message Date
Vindicus999 9d220d34d5 Merge remote-tracking branch 'upstream/master' 2026-02-11 02:42:18 +00:00
Vindicus999 54e12d7fbf Merge remote-tracking branch 'upstream/master' 2026-02-10 02:44:33 +00:00
Vindicus999 277434b6f3 Merge remote-tracking branch 'upstream/master' 2026-02-09 02:35:47 +00:00
Vindicus999 71876599df Merge remote-tracking branch 'upstream/master' 2026-02-08 02:51:18 +00:00
Vindicus999 b2614fbe0f Merge remote-tracking branch 'upstream/master' 2026-02-07 02:24:32 +00:00
Vindicus999 938c133f4d Merge remote-tracking branch 'upstream/master' 2026-02-06 02:29:03 +00:00
Vindicus999 ee9db80b8d Merge remote-tracking branch 'upstream/master' 2026-02-05 02:28:25 +00:00
Vindicus999 efe30badda Merge remote-tracking branch 'upstream/master' 2026-02-04 02:26:39 +00:00
Vindicus999 ea127d0ad6 Merge remote-tracking branch 'upstream/master' 2026-02-03 02:32:20 +00:00
Vindicus999 cc71c32a68 Merge remote-tracking branch 'upstream/master' 2026-02-02 02:35:11 +00:00
Vindicus999 423d0254b8 Merge remote-tracking branch 'upstream/master' 2026-02-01 02:45:28 +00:00
Vindicus999 cde153a8f2 Merge remote-tracking branch 'upstream/master' 2026-01-31 02:21:24 +00:00
Vindicus999 0dbc6b31db Merge remote-tracking branch 'upstream/master' 2026-01-29 23:53:28 +00:00
Vindicus999 59a765c877 Merge remote-tracking branch 'upstream/master' 2026-01-27 02:08:20 +00:00
Vindicus999 a6b8301a73 Merge remote-tracking branch 'upstream/master' 2026-01-25 02:12:03 +00:00
Vindicus999 94af0f5f55 Merge remote-tracking branch 'upstream/master' 2026-01-24 01:57:41 +00:00
Vindicus999 9cacea294c Merge remote-tracking branch 'upstream/master' 2026-01-22 02:05:16 +00:00
Vindicus999 75da37bf6c Merge remote-tracking branch 'upstream/master' 2026-01-20 02:01:41 +00:00
Vindicus999 7f849180f5 Merge remote-tracking branch 'upstream/master' 2026-01-19 02:06:44 +00:00
Vindicus999 731873e16c Merge remote-tracking branch 'upstream/master' 2026-01-17 01:55:50 +00:00
Vindicus999 665dc3620c Merge remote-tracking branch 'upstream/master' 2026-01-16 02:01:50 +00:00
Vindicus999 2fccafd423 Merge remote-tracking branch 'upstream/master' 2026-01-14 02:04:59 +00:00
Vindicus999 f5dcc4b70f Merge remote-tracking branch 'upstream/master' 2026-01-12 02:06:15 +00:00
Vindicus999 ce89cea248 Merge remote-tracking branch 'upstream/master' 2026-01-11 02:09:54 +00:00
Vindicus999 48417c5f22 Merge remote-tracking branch 'upstream/master' 2026-01-10 01:57:18 +00:00
Vindicus999 55a6bb3c69 Merge remote-tracking branch 'upstream/master' 2026-01-08 02:00:06 +00:00
Vindicus999 079d760740 Merge remote-tracking branch 'upstream/master' 2026-01-07 01:59:39 +00:00
Vindicus999 35eb409403 Merge remote-tracking branch 'upstream/master' 2026-01-06 02:00:07 +00:00
Vindicus999 b725f95a55 Merge remote-tracking branch 'upstream/master' 2026-01-04 02:10:02 +00:00
Vindicus999 7e33152f43 Merge remote-tracking branch 'upstream/master' 2026-01-02 02:00:17 +00:00
Vindicus999 c381a0a6d6 Merge remote-tracking branch 'upstream/master' 2026-01-01 02:08:47 +00:00
Vindicus999 633c696a80 Merge remote-tracking branch 'upstream/master' 2025-12-31 01:58:42 +00:00
Vindicus999 ea56845aea Merge remote-tracking branch 'upstream/master' 2025-12-30 01:58:04 +00:00
Vindicus999 331b2e875c Merge remote-tracking branch 'upstream/master' 2025-12-29 02:06:30 +00:00
Vindicus999 36b4da49e8 Merge remote-tracking branch 'upstream/master' 2025-12-27 01:55:04 +00:00
Vindicus999 04507e36f6 Merge remote-tracking branch 'upstream/master' 2025-12-23 01:57:36 +00:00
Vindicus999 3a442d3a87 Merge remote-tracking branch 'upstream/master' 2025-12-22 02:02:10 +00:00
Vindicus999 d9884014e6 Merge remote-tracking branch 'upstream/master' 2025-12-21 02:02:56 +00:00
Vindicus999 5370d24789 Merge remote-tracking branch 'upstream/master' 2025-12-20 01:50:05 +00:00
Vindicus999 83f00ebcf0 Merge remote-tracking branch 'upstream/master' 2025-12-18 01:53:10 +00:00
Vindicus999 d407368f64 Merge remote-tracking branch 'upstream/master' 2025-12-17 01:52:42 +00:00
Vindicus999 4afb3b5786 Merge remote-tracking branch 'upstream/master' 2025-12-16 01:57:09 +00:00
Vindicus999 18457b8e9b Merge remote-tracking branch 'upstream/master' 2025-12-15 02:00:30 +00:00
Vindicus999 3d3b712ba0 Merge remote-tracking branch 'upstream/master' 2025-12-14 02:03:17 +00:00
Vindicus999 67e2627116 Merge remote-tracking branch 'upstream/master' 2025-12-13 01:50:11 +00:00
Vindicus999 06bd4e430a Merge remote-tracking branch 'upstream/master' 2025-12-12 01:56:25 +00:00
Vindicus999 375cced814 Merge remote-tracking branch 'upstream/master' 2025-12-10 01:55:41 +00:00
Vindicus999 46d06413f7 Merge remote-tracking branch 'upstream/master' 2025-12-09 01:53:51 +00:00
Vindicus999 c2c4978275 Merge remote-tracking branch 'upstream/master' 2025-12-08 01:54:49 +00:00
Vindicus999 694def436c Merge remote-tracking branch 'upstream/master' 2025-12-07 02:02:34 +00:00
Vindicus999 e01f5326c4 Merge remote-tracking branch 'upstream/master' 2025-12-06 01:47:37 +00:00
Vindicus999 7a6c53acf0 Merge remote-tracking branch 'upstream/master' 2025-12-05 01:53:53 +00:00
Vindicus999 dd7be5c830 Merge remote-tracking branch 'upstream/master' 2025-12-04 01:53:49 +00:00
Vindicus999 c4d5a235d8 Merge remote-tracking branch 'upstream/master' 2025-12-03 01:52:34 +00:00
Vindicus999 fbfda1fc40 Merge remote-tracking branch 'upstream/master' 2025-12-01 02:09:32 +00:00
Vindicus999 c96d600db2 Merge remote-tracking branch 'upstream/master' 2025-11-30 02:02:06 +00:00
Vindicus999 7dc1daaf73 Merge remote-tracking branch 'upstream/master' 2025-11-26 01:50:49 +00:00
Vindicus999 bd4f21ab67 Merge remote-tracking branch 'upstream/master' 2025-11-24 01:57:13 +00:00
Vindicus999 2e8a83eb5a Merge remote-tracking branch 'upstream/master' 2025-11-23 02:03:00 +00:00
Vindicus999 8d13d910e8 Merge remote-tracking branch 'upstream/master' 2025-11-21 01:48:58 +00:00
Vindicus999 0626bacc10 Merge remote-tracking branch 'upstream/master' 2025-11-20 01:48:03 +00:00
Vindicus999 1755c4de0b Merge remote-tracking branch 'upstream/master' 2025-11-19 01:49:17 +00:00
Vindicus999 7c84b55b6a Merge remote-tracking branch 'upstream/master' 2025-11-18 01:49:53 +00:00
Vindicus999 f5c1f0af1b Merge remote-tracking branch 'upstream/master' 2025-11-17 01:51:16 +00:00
Vindicus999 bc0c7c745c Merge remote-tracking branch 'upstream/master' 2025-11-16 01:55:38 +00:00
Vindicus999 5c4a094357 Merge remote-tracking branch 'upstream/master' 2025-11-15 01:46:08 +00:00
Vindicus999 3133b55edf Merge remote-tracking branch 'upstream/master' 2025-11-14 01:50:30 +00:00
Vindicus999 199d2a15f8 Merge remote-tracking branch 'upstream/master' 2025-11-13 01:51:08 +00:00
Vindicus999 122011e930 Merge remote-tracking branch 'upstream/master' 2025-11-12 01:49:50 +00:00
Vindicus999 f2b5bd506a Merge remote-tracking branch 'upstream/master' 2025-11-11 01:50:44 +00:00
Vindicus999 b8ca0b524f Merge remote-tracking branch 'upstream/master' 2025-11-10 01:54:04 +00:00
Vindicus999 eb156e82a0 Merge remote-tracking branch 'upstream/master' 2025-11-09 01:52:46 +00:00
Vindicus999 9ebac86b75 Merge remote-tracking branch 'upstream/master' 2025-11-08 01:42:51 +00:00
Vindicus999 ffe02e6b46 Merge remote-tracking branch 'upstream/master' 2025-11-07 01:48:41 +00:00
Vindicus999 4b7ebda75d Merge remote-tracking branch 'upstream/master' 2025-11-06 01:49:58 +00:00
Vindicus999 b3fe3b23a3 Merge remote-tracking branch 'upstream/master' 2025-11-05 01:49:29 +00:00
Vindicus999 77b44fb217 Merge remote-tracking branch 'upstream/master' 2025-11-04 01:48:35 +00:00
Vindicus999 c7e2a61cda Merge remote-tracking branch 'upstream/master' 2025-11-03 01:53:00 +00:00
Vindicus999 a0bddec054 Merge remote-tracking branch 'upstream/master' 2025-11-02 01:53:40 +00:00
Vindicus999 2375775a9c Merge remote-tracking branch 'upstream/master' 2025-11-01 01:51:23 +00:00
Vindicus999 c4e6cd623e Merge remote-tracking branch 'upstream/master' 2025-10-31 01:47:49 +00:00
Vindicus999 f77e6e669c Merge remote-tracking branch 'upstream/master' 2025-10-30 01:51:27 +00:00
Vindicus999 c9be142917 Merge remote-tracking branch 'upstream/master' 2025-10-26 20:57:19 +00:00
Vindicus999 f55e52cc69 Update Sync.yml 2025-10-26 15:33:00 -04:00
Vindicus999 7253d4cc9f Update Sync.yml 2025-10-26 15:30:37 -04:00
Vindicus999 54929abae9 Update Sync.yml 2025-10-26 15:28:55 -04:00
Vindicus999 b641c66d25 Update Sync.yml 2025-10-26 15:21:05 -04:00
Vindicus999 0736fc3fc5 Update Sync.yml 2025-10-26 14:57:28 -04:00
Vindicus999 aa4ccfd0b0 Update Sync.yml
Update Sync.yml
2025-10-26 14:52:04 -04:00
Vindicus999 73e86ed096 Configure build actions 2025-10-26 13:56:01 -04:00
172 changed files with 26115 additions and 28304 deletions
+6
View File
@@ -0,0 +1,6 @@
version: "1"
rules:
- base: master
upstream: WiVRn:master
mergeMethod: hardreset
+10 -79
View File
@@ -8,75 +8,6 @@ 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
@@ -87,10 +18,10 @@ jobs:
buildtype: ['Release', 'Debug', 'DebugWithValidationLayer'] buildtype: ['Release', 'Debug', 'DebugWithValidationLayer']
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v4
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: 'gitea/WiVRn' repository: 'Vindicus999/WiVRn'
ref: ${{ github.sha }} ref: ${{ github.sha }}
fetch-depth: 0 fetch-depth: 0
@@ -158,7 +89,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, build-steam-frame] needs: build-android-only
if: ${{ vars.APK_ONLY != '' }} if: ${{ vars.APK_ONLY != '' }}
steps: steps:
@@ -169,12 +100,13 @@ jobs:
pattern: 'apk-*' pattern: 'apk-*'
merge-multiple: true merge-multiple: true
- name: Download Steam Frame artifact # - name: Rename APK artifacts
uses: actions/download-artifact@v4 # run: |
with: # cd apk
path: install/usr # for f in *.apk; do
pattern: 'wivrn-frame-client.zip' # BASENAME=`echo ${f}|awk -F '-APK-' '{print $2}'`
merge-multiple: true # mv "${f}" "org.meumeu.wivrn-${BASENAME}"
# done
- name: Download APK debug artifacts - name: Download APK debug artifacts
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
@@ -198,6 +130,5 @@ 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
+85 -116
View File
@@ -6,52 +6,46 @@ 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 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 libpulse-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-26.04 runs-on: ubuntu-24.04
if: ${{ vars.APK_ONLY == '' }} if: ${{ vars.APK_ONLY == '' }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
config: config:
- preset: 'client-no-system-boost' - preset: 'client'
packages: libharfbuzz-dev libfreetype-dev libavcodec-dev libavutil-dev libswscale-dev librsvg2-bin gettext libcurl4-openssl-dev libfontconfig-dev libpipewire-0.3-dev packages: libboost-all-dev libharfbuzz-dev libfreetype-dev libavcodec-dev libavutil-dev libswscale-dev librsvg2-bin gettext libcurl4-openssl-dev libfontconfig-dev
- preset: 'dashboard' # dashboard requires a more recent Ubuntu, have it out of this job
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@v6 - uses: actions/checkout@v4
- name: Apt dependencies - name: Apt dependencies
uses: awalsh128/cache-apt-pkgs-action@v1.6.1 uses: awalsh128/cache-apt-pkgs-action@v1.6.0
with: with:
packages: ccache libvulkan-dev glslang-tools spirv-tools libwayland-dev libxrandr-dev ${{matrix.config.packages}} ${{ startsWith(matrix.config.preset, 'server') && env.SERVER_DEPS || ''}} packages: ccache ${{matrix.config.packages}} ${{ startsWith(matrix.config.preset, 'server') && env.SERVER_DEPS || ''}}
- name: ccache - name: ccache
uses: hendrikmuhs/ccache-action@v1.2.23 uses: hendrikmuhs/ccache-action@v1.2
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@v5 - uses: actions/cache@v4
with: with:
key: cmake-linux-${{matrix.config.preset}} key: cmake-linux-${{matrix.config.preset}}
path: | path: |
@@ -63,23 +57,18 @@ jobs:
restore-keys: cmake-linux- restore-keys: cmake-linux-
- name: Install dependencies - name: Install dependencies
if: ${{ startswith(matrix.config.preset, 'client') }} if: ${{ 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: Fetch Perfetto SDK - name: Prepare Vulkan SDK
if: ${{ matrix.config.preset == 'server-tracing' }} uses: humbletim/setup-vulkan-sdk@v1.2.1
# The amalgamated SDK is two files; install them where server/CMakeLists.txt looks. with:
env: vulkan-query-version: 1.3.296.0
PERFETTO_TAG: v51.0 vulkan-components: Vulkan-Headers, Vulkan-Loader, Glslang, SPIRV-Reflect, SPIRV-Tools
run: | vulkan-use-cache: true
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.
@@ -96,7 +85,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 --exclude .git --file ${{github.workspace}}/server-build-deps.tar.xz *-src run: (cd ${{github.workspace}}/cmake-fetch ; tar --create --xz *-src) > ${{github.workspace}}/server-build-deps.tar.xz
- name: Build - name: Build
# Build your program with the given configuration # Build your program with the given configuration
@@ -104,7 +93,7 @@ jobs:
- name: Publish build dependencies - name: Publish build dependencies
if: ${{ matrix.config.preset == 'server' }} if: ${{ matrix.config.preset == 'server' }}
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v4
with: with:
name: server-build-deps name: server-build-deps
path: server-build-deps.tar.xz path: server-build-deps.tar.xz
@@ -118,84 +107,55 @@ jobs:
draft: true draft: true
files: server-build-deps.tar.xz files: server-build-deps.tar.xz
build-steam-frame: build-dashboard:
name: Steam Frame #FIXME: merge with the matrixed build once Ubuntu gets updated
runs-on: ubuntu-24.04-arm name: Linux Dashboard
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@v6 - uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Apt dependencies - name: Prepare
uses: awalsh128/cache-apt-pkgs-action@v1.6.1 run: |
with: apt-get update
packages: librsvg2-bin npm 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
- name: ccache - uses: actions/cache@v4
uses: hendrikmuhs/ccache-action@v1.2.23
with: with:
key: steam-frame key: cmake-linux-dashboard
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
${{github.workspace}}/cmake-fetch/*-src/.git restore-keys: cmake-linux-
- 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}}
-DWIVRN_CSS=${{env.CSS}} -DFETCHCONTENT_BASE_DIR=${{github.workspace}}/cmake-fetch
-DFETCHCONTENT_BASE_DIR="$GITHUB_WORKSPACE/cmake-fetch" --preset dashboard
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DWIVRN_USE_SYSTEM_OPENXR=OFF
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
-DCMAKE_INSTALL_PREFIX=/usr
--preset frame
- name: Build - name: Build
run: | # Build your program with the given configuration
git config --global --add safe.directory "$GITHUB_WORKSPACE" run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
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:
# Tag matches runtime-version in the manifest. image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.9
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.10
options: --privileged options: --privileged
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -206,18 +166,22 @@ 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.7 - uses: flatpak/flatpak-github-actions/flatpak-builder@v6.4
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
# The manifest is regenerated on every commit with the git hash embedded, upload-artifact: false
# so its default (manifest-hash) cache key never hits. Key on the files
# that actually define the dependency set instead, so the toolchain # Upload manually instead of using flatpak/flatpak-github-actions/flatpak-builder because
# downloads and build cache persist across commits. # it uses upload-artifact@v3
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') }} - name: Publish artifact
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@v7 uses: actions/upload-artifact@v4
if: failure() if: failure()
with: with:
name: flatpak-debug name: flatpak-debug
@@ -231,7 +195,7 @@ jobs:
if: ${{ vars.APK_ONLY == '' }} if: ${{ vars.APK_ONLY == '' }}
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -249,11 +213,18 @@ jobs:
buildtype: ['Release', 'Debug', 'DebugWithValidationLayer', 'Oculus'] buildtype: ['Release', 'Debug', 'DebugWithValidationLayer', 'Oculus']
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- uses: actions/cache@v5 - name: Prepare Vulkan SDK
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: |
@@ -264,18 +235,9 @@ 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 spirv-tools librsvg2-bin gettext sudo apt-get update && sudo apt-get install glslang-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
@@ -330,22 +292,29 @@ 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 ${{env.CSS}} and name $APPNAME echo Using stylesheet $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=${{env.CSS}} \ -Pwivrn_css=$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@v7 uses: actions/upload-artifact@v4
if: failure() if: failure()
with: with:
name: android-cxx-debug-${{ matrix.buildtype }} name: android-cxx-debug-${{ matrix.buildtype }}
@@ -362,7 +331,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@v7 uses: actions/upload-artifact@v4
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 }}
@@ -370,7 +339,7 @@ jobs:
retention-days: 30 retention-days: 30
- name: Archive debug symbols - name: Archive debug symbols
uses: actions/upload-artifact@v7 uses: actions/upload-artifact@v4
with: with:
name: symbols-${{ matrix.buildtype }} name: symbols-${{ matrix.buildtype }}
path: debug/**/*.so path: debug/**/*.so
@@ -408,13 +377,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 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 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
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@v6 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
path: wivrn path: wivrn
@@ -456,7 +425,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@v7 uses: actions/upload-artifact@v4
with: with:
name: wivrn-${{ matrix.distro }} name: wivrn-${{ matrix.distro }}
path: | path: |
@@ -474,7 +443,7 @@ jobs:
if: success() && startsWith(github.ref, 'refs/tags/') if: success() && startsWith(github.ref, 'refs/tags/')
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
path: wivrn path: wivrn
@@ -489,7 +458,7 @@ jobs:
echo "available=false" >> $GITHUB_OUTPUT; echo "available=false" >> $GITHUB_OUTPUT;
fi fi
- uses: actions/checkout@v6 - uses: actions/checkout@v4
if: ${{ steps.flathub-token-check.outputs.available == 'true' }} if: ${{ steps.flathub-token-check.outputs.available == 'true' }}
with: with:
fetch-depth: 0 fetch-depth: 0
@@ -498,19 +467,19 @@ jobs:
token: ${{ secrets.FLATHUB_TOKEN }} token: ${{ secrets.FLATHUB_TOKEN }}
- name: Download artifacts (APK) - name: Download artifacts (APK)
uses: actions/download-artifact@v8 uses: actions/download-artifact@v4
with: with:
name: apk-Release name: apk-Release
path: apk path: apk
- name: Download artifacts (flatpak) - name: Download artifacts (flatpak)
uses: actions/download-artifact@v8 uses: actions/download-artifact@v4
with: with:
name: wivrn-server-x86_64.flatpak name: wivrn-flatpak-x86_64
path: flatpak path: flatpak
- name: Release - name: Release
uses: softprops/action-gh-release@v3 uses: softprops/action-gh-release@v2
with: with:
tag_name: ${{ inputs.ref }} tag_name: ${{ inputs.ref }}
generate_release_notes: true generate_release_notes: true
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Run clang-format style check for C/C++/Protobuf programs. - name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@v4.16.0 uses: jidicula/clang-format-action@2c659fea724e981e94741c0e7db663982cd7d3f4
with: with:
clang-format-version: '21' clang-format-version: '21'
check-path: ${{ matrix.path }} check-path: ${{ matrix.path }}
+22 -31
View File
@@ -6,46 +6,37 @@ env:
UPSTREAM_BRANCH: "master" UPSTREAM_BRANCH: "master"
on: on:
workflow_dispatch:
schedule: schedule:
- cron: '18 2 * * *' - cron: '0 0 * * *'
workflow_dispatch:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repo - name: GitHub Sync to Upstream Repository
uses: actions/checkout@v4 uses: dabreadman/sync-upstream-repo@v1.3.0
with: with:
upstream_repo: vindicus999/wivrn upstream_repo: ${{ env.UPSTREAM_URL }}
fetch-depth: 0 upstream_branch: ${{ env.UPSTREAM_BRANCH }}
token: ${{ env.WORKFLOW_TOKEN }} token: ${{ env.WORKFLOW_TOKEN }}
- name: Add upstream - name: Checkout stuff
run: | uses: actions/checkout@master
git remote add upstream ${{ env.UPSTREAM_URL }}
- name: Fetch all - name: Merge master -> apk-build
run: | uses: devmasx/merge-branch@master
git fetch origin with:
git fetch upstream type: now
from_branch: master
target_branch: apk-build
github_token: ${{ env.WORKFLOW_TOKEN }}
- name: Update sync branch - name: Merge sneed -> apk-build
run: | uses: devmasx/merge-branch@master
git config --global user.email "sneed@feedandse.edu" with:
git config --global user.name "Sneed Chuckinson" type: now
git checkout -B sync upstream/master from_branch: sneed
git push origin sync --force target_branch: apk-build
github_token: ${{ env.WORKFLOW_TOKEN }}
- 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
+7 -22
View File
@@ -39,12 +39,7 @@ option(WIVRN_BUILD_WIVRNCTL "Build wivrnctl" ON)
option(WIVRN_BUILD_DISSECTOR "Build Wireshark dissector" OFF) option(WIVRN_BUILD_DISSECTOR "Build Wireshark dissector" OFF)
option(WIVRN_BUILD_TEST "Build test binaries" OFF) option(WIVRN_BUILD_TEST "Build test binaries" OFF)
option(WIVRN_WERROR "Treat warnings as errors" OFF) option(WIVRN_WERROR "Treat warnings as errors" OFF)
option(WIVRN_OPTIMIZE_SHADERS "Run spirv-opt on compiled shaders" ON) option(WIVRN_OPTIMIZE_SHADERS "Run siprv-opt on compiled shaders" ON)
option(WIVRN_DEBUG_SHADERS "Compile shaders with debug information" OFF)
if(WIVRN_OPTIMIZE_SHADERS AND WIVRN_DEBUG_SHADERS)
message(FATAL_ERROR "WIVRN_OPTIMIZE_SHADERS and WIVRN_DEBUG_SHADERS are incompatible")
endif()
option(WIVRN_USE_NVENC "Enable nvenc (Nvidia) hardware encoder" ON) option(WIVRN_USE_NVENC "Enable nvenc (Nvidia) hardware encoder" ON)
option(WIVRN_USE_VAAPI "Enable vaapi (AMD/Intel) hardware encoder" ON) option(WIVRN_USE_VAAPI "Enable vaapi (AMD/Intel) hardware encoder" ON)
@@ -102,9 +97,9 @@ include(VulkanVersion)
if (WIVRN_USE_SYSTEM_BOOST AND NEED_COMMON) if (WIVRN_USE_SYSTEM_BOOST AND NEED_COMMON)
if (WIVRN_BUILD_DISSECTOR) if (WIVRN_BUILD_DISSECTOR)
find_package(Boost 1.84.0 REQUIRED COMPONENTS locale url iostreams) find_package(Boost 1.84.0 REQUIRED COMPONENTS locale url)
else() else()
find_package(Boost 1.75.0 REQUIRED COMPONENTS locale url iostreams) find_package(Boost 1.75.0 REQUIRED COMPONENTS locale url)
endif() endif()
endif() endif()
@@ -177,6 +172,10 @@ 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)
@@ -278,20 +277,6 @@ 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)
+7 -20
View File
@@ -38,19 +38,15 @@ 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 the flatpak package from Flathub:
- [Arch User Repository](https://aur.archlinux.org/packages/wivrn-dashboard)
- [Fedora](https://packages.fedoraproject.org/pkgs/wivrn/wivrn/)
- [Gentoo Guru](https://gitweb.gentoo.org/repo/proj/guru.git/tree/media-libs/wivrn)
- [NixOS](https://search.nixos.org/packages?channel=25.11&show=wivrn)
For OpenVR and Steam compatibility, you also need a [compatibility library](#openvr-and-steam-games) such as xrizer or OpenComposite.
A flatpak is available on Flathub for all distributions:
[![Flathub](https://flathub.org/api/badge)](https://flathub.org/apps/io.github.wivrn.wivrn) [![Flathub](https://flathub.org/api/badge)](https://flathub.org/apps/io.github.wivrn.wivrn)
Note that due to flatpak sandboxing some features may not be available such as Lighthouse tracked devices. Alternatively, packages are available from:
- [Arch User Repositoy](https://aur.archlinux.org/packages/wivrn-dashboard)
- [Fedora](https://packages.fedoraproject.org/pkgs/wivrn/wivrn/)
- [Gentoo Guru](https://gitweb.gentoo.org/repo/proj/guru.git/tree/media-libs/wivrn)
## Headset Client/App ## Headset Client/App
@@ -101,7 +97,7 @@ The flatpak includes [OpenComposite](https://gitlab.com/znixian/OpenOVR/) and [x
If using Wine/Proton, it will probe for OpenVR at startup, This means even for OpenXR applications, OpenComposite or xrizer is required. If using Wine/Proton, it will probe for OpenVR at startup, This means even for OpenXR applications, OpenComposite or xrizer is required.
When a headset connects, wivrn-server sets the OpenVR runtime to xrizer unless manually configured differently. When you start the server through flatpak, it automatically configures the current OpenVR to use xrizer.
### Steam Flatpak ### Steam Flatpak
If you're using the Steam Flatpak, you'll need to grant read only access to the following paths: If you're using the Steam Flatpak, you'll need to grant read only access to the following paths:
@@ -180,15 +176,6 @@ 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
Binary file not shown.
BIN
View File
Binary file not shown.
+5 -1
View File
@@ -1243,6 +1243,10 @@ 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,
@@ -1336,7 +1340,7 @@ void application::initialize()
spaces[size_t(xr::spaces::view)] = xr_session.create_reference_space(XR_REFERENCE_SPACE_TYPE_VIEW); spaces[size_t(xr::spaces::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, xr_session); config.emplace(xr_system_id);
// 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
+4 -20
View File
@@ -19,7 +19,6 @@
#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"
@@ -30,9 +29,6 @@
#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
{ {
{ {
@@ -99,7 +95,7 @@ void configuration::set_feature(feature f, bool state)
save(); save();
} }
configuration::configuration(xr::system & system, xr::session & session) configuration::configuration(xr::system & system)
{ {
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();
@@ -126,15 +122,6 @@ configuration::configuration(xr::system & system, xr::session & session)
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;
@@ -158,11 +145,7 @@ configuration::configuration(xr::system & system, xr::session & session)
} }
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();
@@ -302,7 +285,8 @@ 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 << "]";
json << ",\"preferred_refresh_rate\":" << preferred_refresh_rate; if (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 -5
View File
@@ -31,9 +31,8 @@
namespace xr namespace xr
{ {
class session;
class system; class system;
} // namespace xr }
class configuration class configuration
{ {
@@ -49,7 +48,7 @@ public:
}; };
std::map<std::string, server_data> servers; std::map<std::string, server_data> servers;
float preferred_refresh_rate = 0; std::optional<float> preferred_refresh_rate;
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;
@@ -77,7 +76,7 @@ public:
std::string environment_model = "assets://ground.glb"; std::string environment_model = "assets://ground.glb";
bool override_foveation_enable = false; bool override_foveation_enable = false;
float override_foveation_pitch = -10 * M_PI / 180; float override_foveation_pitch = 10 * M_PI / 180;
float override_foveation_distance = 3; float override_foveation_distance = 3;
bool high_power_mode; bool high_power_mode;
@@ -100,7 +99,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 &, xr::session &); configuration(xr::system &);
configuration() = default; configuration() = default;
void save(); void save();
+8 -10
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.7; constexpr float trigger_click_thd = 0.8;
// 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
@@ -53,8 +53,9 @@ constexpr float fingertip_distance_stick_thd = -0.02; // Max distance wher
constexpr float scroll_value_thd = 0.01; constexpr float scroll_value_thd = 0.01;
// Pointer radius // Pointer radius
constexpr float pointer_thickness = 2; constexpr float pointer_radius_in = 10;
constexpr float pointer_radius_in = 6; constexpr float pointer_radius_out = 12;
constexpr float pointer_thickness = 4;
// Pointer transparency // Pointer transparency
constexpr float pointer_alpha = 0.8; constexpr float pointer_alpha = 0.8;
@@ -62,7 +63,8 @@ constexpr float pointer_alpha_disabled = 0.25;
constexpr float pointer_fading_distance = 40; constexpr float pointer_fading_distance = 40;
// Pointer color // Pointer color
constexpr uint32_t pointer_color = 0x40ffffff; constexpr uint32_t pointer_color_pressed = 0xffff3300;
constexpr uint32_t pointer_color_unpressed = 0xffffffff;
constexpr uint32_t pointer_color_border = 0xff000000; constexpr uint32_t pointer_color_border = 0xff000000;
} // namespace constants::gui } // namespace constants::gui
@@ -108,8 +110,7 @@ constexpr int zindex_passthrough = -2;
constexpr int zindex_lobby = -1; constexpr int zindex_lobby = -1;
constexpr int zindex_gui = 0; constexpr int zindex_gui = 0;
constexpr int zindex_controllers = 1; constexpr int zindex_controllers = 1;
constexpr int zindex_tooltip = 2; constexpr int zindex_recenter_tip = 2;
constexpr int zindex_recenter_tip = 3;
} // namespace constants::lobby } // namespace constants::lobby
namespace constants::stream namespace constants::stream
@@ -117,9 +118,6 @@ 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;
@@ -133,7 +131,7 @@ constexpr float window_rounding = 10;
constexpr ImVec2 tooltip_padding = {5, 5}; constexpr ImVec2 tooltip_padding = {5, 5};
constexpr float tooltip_rounding = 0; constexpr float tooltip_rounding = 0;
constexpr glm::vec3 tooltip_distance = {0, 0.004, 0.005}; constexpr float tooltip_distance = 10;
constexpr ImVec2 button_size = {220, 80}; constexpr ImVec2 button_size = {220, 80};
constexpr ImVec2 icon_button_size = {80, 80}; constexpr ImVec2 icon_button_size = {80, 80};
+4 -10
View File
@@ -71,20 +71,14 @@ std::shared_ptr<wivrn::decoder> wivrn::decoder::make(
__builtin_unreachable(); __builtin_unreachable();
} }
static std::vector<wivrn::video_codec> supported_codecs_() std::vector<wivrn::video_codec> wivrn::decoder::supported_codecs()
{ {
std::vector<wivrn::video_codec> res; std::vector<wivrn::video_codec> res;
#ifdef __ANDROID__ #ifdef __ANDROID__
wivrn::android::decoder::supported_codecs(res); android::decoder::supported_codecs(res);
#else #else
wivrn::ffmpeg::decoder::supported_codecs(res); ffmpeg::decoder::supported_codecs(res);
#endif #endif
res.push_back(wivrn::video_codec::raw); res.push_back(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 const std::vector<wivrn::video_codec> & supported_codecs(); static std::vector<wivrn::video_codec> supported_codecs();
}; };
} // namespace wivrn } // namespace wivrn
+2 -6
View File
@@ -376,10 +376,10 @@ std::pair<glm::vec3, glm::quat> controller_offset(std::string_view profile, xr::
return {{0, -0.006, -0.025}, glm::angleAxis(glm::radians(-15.f), glm::vec3{1, 0, 0})}; return {{0, -0.006, -0.025}, glm::angleAxis(glm::radians(-15.f), glm::vec3{1, 0, 0})};
case xr::spaces::aim_left: case xr::spaces::aim_left:
return {{-0.010, 0, 0.02}, {1, 0, 0, 0}}; return {{-0.010, 0, 0.025}, {1, 0, 0, 0}};
case xr::spaces::aim_right: case xr::spaces::aim_right:
return {{0.010, 0, 0.02}, {1, 0, 0, 0}}; return {{0.010, 0, 0.025}, {1, 0, 0, 0}};
default: default:
break; break;
@@ -392,10 +392,6 @@ std::pair<glm::vec3, glm::quat> controller_offset(std::string_view profile, xr::
case xr::spaces::grip_right: case xr::spaces::grip_right:
return {{0, -0.010, -0.025}, glm::angleAxis(glm::radians(-12.f), glm::vec3{1, 0, 0})}; return {{0, -0.010, -0.025}, glm::angleAxis(glm::radians(-12.f), glm::vec3{1, 0, 0})};
case xr::spaces::aim_left:
case xr::spaces::aim_right:
return {{0, 0, -0.03}, {1, 0, 0, 0}};
default: default:
break; break;
} }
+55 -87
View File
@@ -37,7 +37,6 @@
#include <cmath> #include <cmath>
#include <cstddef> #include <cstddef>
#include <glm/gtc/matrix_access.hpp> #include <glm/gtc/matrix_access.hpp>
#include <glm/gtc/quaternion.hpp>
#include <imgui.h> #include <imgui.h>
#include <imgui_internal.h> #include <imgui_internal.h>
#include <limits> #include <limits>
@@ -209,18 +208,13 @@ 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;
for (const auto & i: layers_) for (const auto & i: layers_)
{ {
if (i.space != xr::spaces::world or i.tooltip_viewport) if (i.space != xr::spaces::world)
continue; continue;
auto M = glm::transpose(glm::mat3_cast(i.orientation)); // world-to-plane transform auto M = glm::transpose(glm::mat3_cast(i.orientation)); // world-to-plane transform
@@ -639,6 +633,10 @@ std::vector<imgui_context::controller_state> imgui_context::read_controllers_sta
auto trigger = application::read_action_float(ctrl.trigger).value_or(std::pair{0, 0}); auto trigger = application::read_action_float(ctrl.trigger).value_or(std::pair{0, 0});
state.trigger_value = trigger.second; state.trigger_value = trigger.second;
// TODO tunable
/*if (new_state.trigger_value < 0.5)
new_state.trigger_clicked = false;
else */
if (state.trigger_value > constants::gui::trigger_click_thd) if (state.trigger_value > constants::gui::trigger_click_thd)
state.trigger_clicked = true; state.trigger_clicked = true;
} }
@@ -845,7 +843,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.image(image_index); vk::Image destination = swapchain.images()[image_index].image;
ImGui::SetCurrentContext(context); ImGui::SetCurrentContext(context);
ImPlot::SetCurrentContext(plot_context); ImPlot::SetCurrentContext(plot_context);
@@ -922,13 +920,15 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> imgui_context::end_frame()
else else
alpha *= constants::gui::pointer_alpha_disabled; alpha *= constants::gui::pointer_alpha_disabled;
float radius_in = constants::gui::pointer_radius_in; ImU32 color_pressed = ImGui::GetColorU32(constants::gui::pointer_color_pressed, alpha);
float radius_out = radius_in + constants::gui::pointer_thickness * 0.5; ImU32 color_unpressed = ImGui::GetColorU32(constants::gui::pointer_color_unpressed, alpha);
bool pressed = controller.second.trigger_clicked || controller.second.fingertip_touching;
ImDrawList * draw_list = ImGui::GetForegroundDrawList(); ImDrawList * draw_list = ImGui::GetForegroundDrawList();
draw_list->PushClipRect(clip_rect_min, clip_rect_max); draw_list->PushClipRect(clip_rect_min, clip_rect_max);
draw_list->AddCircleFilled(*position, radius_in, ImGui::GetColorU32(constants::gui::pointer_color, alpha)); draw_list->AddCircleFilled(*position, constants::gui::pointer_radius_in, pressed ? color_pressed : color_unpressed);
draw_list->AddCircle(*position, radius_out, ImGui::GetColorU32(constants::gui::pointer_color_border, alpha), 0, constants::gui::pointer_thickness); draw_list->AddCircle(*position, constants::gui::pointer_radius_out, ImGui::GetColorU32(constants::gui::pointer_color_border, alpha), 0, constants::gui::pointer_thickness);
draw_list->PopClipRect(); draw_list->PopClipRect();
} }
} }
@@ -983,47 +983,15 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> imgui_context::end_frame()
for (auto & i: layers_) for (auto & i: layers_)
{ {
bool visible = false; bool visible = false;
ImRect layer_rect(
i.vp_origin.x,
i.vp_origin.y,
i.vp_origin.x + i.vp_size.x,
i.vp_origin.y + i.vp_size.y);
ImRect all_windows_rect{
std::numeric_limits<float>::max(),
std::numeric_limits<float>::max(),
std::numeric_limits<float>::lowest(),
std::numeric_limits<float>::lowest(),
};
for (ImGuiWindow * window: context->Windows) for (ImGuiWindow * window: context->Windows)
{ {
ImRect window_rect{ if (window->Active and not window->Hidden and window_intersects_viewport(window, i))
window->Pos.x,
window->Pos.y,
window->Pos.x + window->Size.x,
window->Pos.y + window->Size.y};
if (window->Active and not window->Hidden and layer_rect.Overlaps(window_rect))
{ {
visible = true; visible = true;
break;
// Take the union of all visible windows in this layer
all_windows_rect.Add(window_rect);
} }
} }
// Take the intersection with the layer
all_windows_rect.ClipWithFull(layer_rect);
glm::vec2 pixel_size = i.size / glm::vec2(i.vp_size);
glm::vec2 all_windows_center(all_windows_rect.GetCenter().x, all_windows_rect.GetCenter().y);
glm::vec2 layer_center(layer_rect.GetCenter().x, layer_rect.GetCenter().y);
glm::vec3 new_position = i.position + i.orientation * glm::vec3((all_windows_center - layer_center) * pixel_size, 0);
glm::vec2 new_size = glm::vec2(all_windows_rect.GetWidth(), all_windows_rect.GetHeight()) * pixel_size;
if (not visible) if (not visible)
continue; continue;
@@ -1038,12 +1006,12 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> imgui_context::end_frame()
.swapchain = swapchain, .swapchain = swapchain,
.imageRect = { .imageRect = {
.offset = { .offset = {
.x = int(all_windows_rect.Min.x), .x = i.vp_origin.x,
.y = int(all_windows_rect.Min.y), .y = i.vp_origin.y,
}, },
.extent = { .extent = {
.width = int(all_windows_rect.Max.x - all_windows_rect.Min.x), .width = i.vp_size.x,
.height = int(all_windows_rect.Max.y - all_windows_rect.Min.y), .height = i.vp_size.y,
}}, }},
}, },
.pose = { .pose = {
@@ -1054,14 +1022,14 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> imgui_context::end_frame()
.w = i.orientation.w, .w = i.orientation.w,
}, },
.position = { .position = {
.x = new_position.x, .x = i.position.x,
.y = new_position.y, .y = i.position.y,
.z = new_position.z, .z = i.position.z,
}, },
}, },
.size = { .size = {
.width = new_size.x, .width = i.size.x,
.height = new_size.y, .height = i.size.y,
}, },
}); });
} }
@@ -1069,9 +1037,11 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> imgui_context::end_frame()
return quads; return quads;
} }
std::vector<imgui_context::window_viewport> imgui_context::windows() std::vector<imgui_context::viewport> imgui_context::windows()
{ {
std::vector<imgui_context::window_viewport> w; std::vector<imgui_context::viewport> w;
ImGuiWindow * modal_popup = ImGui::GetTopMostAndVisiblePopupModal();
for (const imgui_context::viewport & layer: layers_) for (const imgui_context::viewport & layer: layers_)
{ {
@@ -1082,7 +1052,10 @@ std::vector<imgui_context::window_viewport> imgui_context::windows()
for (ImGuiWindow * window: context->Windows) for (ImGuiWindow * window: context->Windows)
{ {
if (not window->Active or window->Hidden or (window->Flags & ImGuiWindowFlags_ChildWindow)) if (not window->Active or window->Hidden /*or window->ParentWindowInBeginStack != nullptr*/)
continue;
if (modal_popup != nullptr and window != modal_popup and not layer.always_show_cursor)
continue; continue;
if (not window_intersects_viewport(window, layer)) if (not window_intersects_viewport(window, layer))
@@ -1093,7 +1066,7 @@ std::vector<imgui_context::window_viewport> imgui_context::windows()
ImVec2 min = ImMax(v.Min, window->Pos); ImVec2 min = ImMax(v.Min, window->Pos);
ImVec2 center = (min + max) / 2; ImVec2 center = (min + max) / 2;
w.push_back(window_viewport{ w.push_back(viewport{
.space = layer.space, .space = layer.space,
.position = layer.position + .position = layer.position +
glm::mat3_cast(layer.orientation) * glm::mat3_cast(layer.orientation) *
@@ -1106,6 +1079,9 @@ std::vector<imgui_context::window_viewport> imgui_context::windows()
(max.x - min.x) * layer.size.x / layer.vp_size.x, (max.x - min.x) * layer.size.x / layer.vp_size.x,
(max.y - min.y) * layer.size.y / layer.vp_size.y, (max.y - min.y) * layer.size.y / layer.vp_size.y,
}, },
.vp_origin = {min.x, min.y},
.vp_size = {max.x - min.x, max.y - min.y},
.always_show_cursor = layer.always_show_cursor,
}); });
} }
} }
@@ -1265,32 +1241,34 @@ void imgui_context::tooltip(std::string_view text)
// FIXME: this is incorrect if we use the docking branch of imgui // FIXME: this is incorrect if we use the docking branch of imgui
ImGuiViewport * viewport = ImGui::GetMainViewport(); ImGuiViewport * viewport = ImGui::GetMainViewport();
auto & current_layer = layer(ImGui::GetMousePos()); auto & current_layer = layer(ImGui::GetMousePos());
assert(std::ranges::contains(layers_, true, &viewport::tooltip_viewport));
auto & tooltip_layer = *std::ranges::find(layers_, true, &viewport::tooltip_viewport);
// Get the item position before drawing the tooltip (top center)
ImVec2 item_position{
(ImGui::GetItemRectMin().x + ImGui::GetItemRectMax().x) / 2,
ImGui::GetItemRectMin().y,
};
auto pos_backup = viewport->Pos; auto pos_backup = viewport->Pos;
auto size_backup = viewport->Size; auto size_backup = viewport->Size;
viewport->Pos = ImVec2(tooltip_layer.vp_origin.x, tooltip_layer.vp_origin.y); viewport->Pos = ImVec2(current_layer.vp_origin.x, current_layer.vp_origin.y);
viewport->Size = ImVec2(tooltip_layer.vp_size.x, tooltip_layer.vp_size.y); viewport->Size = ImVec2(current_layer.vp_size.x, current_layer.vp_size.y);
ImVec2 pos{
(ImGui::GetItemRectMin().x + ImGui::GetItemRectMax().x) / 2,
ImGui::GetItemRectMin().y - constants::style::tooltip_distance,
};
// Draw the tooltip in the tooltip layer
// Clamp position to avoid overflowing on the left or the right
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, constants::style::tooltip_padding); ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, constants::style::tooltip_padding);
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, constants::style::tooltip_rounding); ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, constants::style::tooltip_rounding);
// Clamp position to avoid overflowing on the left or the right
auto & style = ImGui::GetStyle(); auto & style = ImGui::GetStyle();
const ImVec2 text_size = ImGui::CalcTextSize(text.data(), text.data() + text.size(), true); const ImVec2 text_size = ImGui::CalcTextSize(text.data(), text.data() + text.size(), true);
const ImVec2 tooltip_size = {text_size.x + style.WindowPadding.x * 2.0f, text_size.y + style.WindowPadding.y * 2.0f}; const ImVec2 size = {text_size.x + style.WindowPadding.x * 2.0f, text_size.y + style.WindowPadding.y * 2.0f};
pos.x = std::clamp<float>(pos.x, viewport->Pos.x + size.x / 2, viewport->Pos.x + viewport->Size.x - size.x / 2);
ImVec2 pivot = {0.5, 1};
ImGui::SetNextWindowPos(viewport->Pos + viewport->Size * 0.5, ImGuiCond_Always, {0.5, 0.5}); // Move tooltip below the item if it overflows on the top
ImGui::SetNextWindowSizeConstraints({0, 0}, viewport->Size); if (pos.y - size.y <= viewport->Pos.y)
{
pos.y = ImGui::GetItemRectMax().y + constants::style::tooltip_distance;
pivot.y = 0;
}
ImGui::SetNextWindowPos(pos, ImGuiCond_Always, pivot);
if (ImGui::BeginTooltip()) if (ImGui::BeginTooltip())
{ {
ImGui::PushStyleColor(ImGuiCol_Text, 0xffffffff); ImGui::PushStyleColor(ImGuiCol_Text, 0xffffffff);
@@ -1298,21 +1276,11 @@ void imgui_context::tooltip(std::string_view text)
ImGui::PopStyleColor(); ImGui::PopStyleColor();
ImGui::EndTooltip(); ImGui::EndTooltip();
} }
ImGui::PopStyleVar(2); ImGui::PopStyleVar(2);
viewport->Pos = pos_backup; viewport->Pos = pos_backup;
viewport->Size = size_backup; viewport->Size = size_backup;
// Compute the tooltip position
glm::quat tooltip_orientation = current_layer.orientation;
auto M = glm::mat3_cast(tooltip_orientation);
float pixel_size = current_layer.size.y / current_layer.vp_size.y;
glm::vec3 tooltip_position_centre = rw_from_vp(item_position) + M * (glm::vec3(0, tooltip_size.y / 2, 0) * pixel_size + constants::style::tooltip_distance);
// Position the tooltip layer
tooltip_layer.position = tooltip_position_centre;
tooltip_layer.orientation = tooltip_orientation;
} }
// https://github.com/ocornut/imgui/issues/3379#issuecomment-2943903877 // https://github.com/ocornut/imgui/issues/3379#issuecomment-2943903877
+1 -12
View File
@@ -68,7 +68,6 @@ 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 = "");
@@ -137,7 +136,6 @@ public:
glm::ivec2 vp_size; glm::ivec2 vp_size;
bool always_show_cursor = false; // Show the cursor in this viewport even if there is a modal popup elsewhere (eg. this is a virtual keyboard) bool always_show_cursor = false; // Show the cursor in this viewport even if there is a modal popup elsewhere (eg. this is a virtual keyboard)
bool tooltip_viewport = false; // Choose this viewport to display the tooltip, ignore mouse events
int z_index = 0; int z_index = 0;
@@ -147,15 +145,6 @@ public:
} }
}; };
struct window_viewport
{
// Position of this window in the world
xr::spaces space;
glm::vec3 position;
glm::quat orientation;
glm::vec2 size;
};
private: private:
uint32_t queue_family_index; uint32_t queue_family_index;
@@ -226,7 +215,7 @@ public:
return layers_; return layers_;
} }
std::vector<window_viewport> windows(); std::vector<viewport> windows();
viewport & layer(ImVec2 position); viewport & layer(ImVec2 position);
+4 -18
View File
@@ -19,7 +19,6 @@
#pragma once #pragma once
#include <array> #include <array>
#include <inplace_vector.hpp>
#include <memory> #include <memory>
#include <type_traits> #include <type_traits>
#include <utility> #include <utility>
@@ -101,7 +100,7 @@ struct material
size_t offset; size_t offset;
std::string name; std::string name;
std::string fragment_shader = "lit.frag"; std::string fragment_shader_name = "lit.frag";
}; };
struct primitive struct primitive
@@ -111,7 +110,7 @@ struct primitive
uint32_t vertex_count; uint32_t vertex_count;
vk::IndexType index_type; vk::IndexType index_type;
vk::DeviceSize index_offset; vk::DeviceSize index_offset;
beman::inplace_vector::inplace_vector<vk::DeviceSize, 8> vertex_offset; // See VkPhysicalDeviceLimits::maxVertexInputBindings std::vector<vk::DeviceSize> vertex_offset; // TODO: inplace_vector
vertex_layout layout; vertex_layout layout;
glm::vec3 obb_min; glm::vec3 obb_min;
@@ -156,24 +155,11 @@ struct node
bool visible = true; bool visible = true;
uint32_t layer_mask = -1; uint32_t layer_mask = -1;
std::array<glm::vec4, 4> clipping_planes;
// TODO: separate component? // TODO: separate component?
std::vector<std::pair<entt::entity, glm::mat4>> joints; // Node index, inverse bind matrix of each joint std::vector<std::pair<entt::entity, glm::mat4>> joints; // Node index, inverse bind matrix of each joint
std::vector<std::byte> extra_shader_data;
template <typename T>
void set_extra_shader_data(const T & data)
{
extra_shader_data.resize(sizeof(std::decay_t<T>));
memcpy(extra_shader_data.data(), &data, sizeof(std::decay_t<T>));
}
template <typename T>
T & get_extra_shader_data()
{
assert(extra_shader_data.size() == sizeof(std::decay_t<T>));
return *reinterpret_cast<T *>(extra_shader_data.data());
}
// For internal use by the renderer // For internal use by the renderer
glm::mat4 transform_to_root; glm::mat4 transform_to_root;
bool global_visible; bool global_visible;
+12 -40
View File
@@ -45,9 +45,6 @@
#include <limits> #include <limits>
#include <ranges> #include <ranges>
#include <simdjson/dom.h> #include <simdjson/dom.h>
#include <simdjson/dom/element.h>
#include <simdjson/dom/object.h>
#include <simdjson/error.h>
#include <spdlog/spdlog.h> #include <spdlog/spdlog.h>
#include <string> #include <string>
#include <vulkan/vulkan_format_traits.hpp> #include <vulkan/vulkan_format_traits.hpp>
@@ -516,7 +513,7 @@ struct : std::error_category
} fastgltf_error_category; } fastgltf_error_category;
// END // END
fastgltf::Asset load_gltf_asset(fastgltf::GltfDataBuffer & buffer, const std::filesystem::path & directory, std::function<void(simdjson::dom::object &, std::size_t, fastgltf::Category)> extra_callback) fastgltf::Asset load_gltf_asset(fastgltf::GltfDataBuffer & buffer, const std::filesystem::path & directory)
{ {
fastgltf::Parser parser( fastgltf::Parser parser(
fastgltf::Extensions::KHR_texture_basisu | fastgltf::Extensions::KHR_texture_basisu |
@@ -527,12 +524,6 @@ fastgltf::Asset load_gltf_asset(fastgltf::GltfDataBuffer & buffer, const std::fi
fastgltf::Options::AllowDouble | fastgltf::Options::AllowDouble |
fastgltf::Options::DecomposeNodeMatrices; fastgltf::Options::DecomposeNodeMatrices;
parser.setUserPointer(&extra_callback);
parser.setExtrasParseCallback([](simdjson::dom::object * extras, std::size_t object_index, fastgltf::Category category, void * user_pointer) {
auto f = reinterpret_cast<std::function<void(simdjson::dom::object &, std::size_t, fastgltf::Category)> *>(user_pointer);
(*f)(*extras, object_index, category);
});
auto expected_asset = parser.loadGltf(buffer, directory, gltf_options); auto expected_asset = parser.loadGltf(buffer, directory, gltf_options);
if (auto error = expected_asset.error(); error != fastgltf::Error::None) if (auto error = expected_asset.error(); error != fastgltf::Error::None)
@@ -549,8 +540,7 @@ class loader_context
vk::raii::PhysicalDevice physical_device; vk::raii::PhysicalDevice physical_device;
vk::raii::Device & device; vk::raii::Device & device;
thread_safe<vk::raii::Queue> & queue; thread_safe<vk::raii::Queue> & queue;
image_loader loader; image_loader & loader;
const std::map<std::tuple<fastgltf::Category, size_t, std::string>, std::string> & extras;
std::vector<utils::mapped_file> loaded_assets; std::vector<utils::mapped_file> loaded_assets;
utils::mapped_file & load_from_asset(const std::filesystem::path & path) utils::mapped_file & load_from_asset(const std::filesystem::path & path)
@@ -573,16 +563,14 @@ public:
vk::raii::PhysicalDevice physical_device, vk::raii::PhysicalDevice physical_device,
vk::raii::Device & device, vk::raii::Device & device,
thread_safe<vk::raii::Queue> & queue, thread_safe<vk::raii::Queue> & queue,
uint32_t queue_family_index, image_loader & loader) :
std::map<std::tuple<fastgltf::Category, size_t, std::string>, std::string> & extras) :
base_directory(std::move(base_directory)), base_directory(std::move(base_directory)),
name(std::move(name)), name(std::move(name)),
gltf(gltf), gltf(gltf),
physical_device(physical_device), physical_device(physical_device),
device(device), device(device),
queue(queue), queue(queue),
loader(device, physical_device, queue, queue_family_index), loader(loader)
extras(extras)
{ {
} }
@@ -805,8 +793,6 @@ public:
materials.reserve(gltf.materials.size()); materials.reserve(gltf.materials.size());
for (const fastgltf::Material & gltf_material: gltf.materials) for (const fastgltf::Material & gltf_material: gltf.materials)
{ {
size_t material_id = materials.size();
// Copy the default material, without references to its buffer or descriptor set // Copy the default material, without references to its buffer or descriptor set
auto & material = *materials.emplace_back(std::make_shared<renderer::material>(default_material)); auto & material = *materials.emplace_back(std::make_shared<renderer::material>(default_material));
material.name = gltf_material.name; material.name = gltf_material.name;
@@ -817,24 +803,21 @@ public:
switch (gltf_material.alphaMode) switch (gltf_material.alphaMode)
{ {
case fastgltf::AlphaMode::Opaque: case fastgltf::AlphaMode::Opaque:
material.fragment_shader = "lit.frag"; material.fragment_shader_name = "lit.frag";
material.blend_enable = false; material.blend_enable = false;
break; break;
case fastgltf::AlphaMode::Mask: case fastgltf::AlphaMode::Mask:
material.fragment_shader = "lit_mask.frag"; material.fragment_shader_name = "lit_mask.frag";
material.blend_enable = false; material.blend_enable = false;
break; break;
case fastgltf::AlphaMode::Blend: case fastgltf::AlphaMode::Blend:
material.fragment_shader = "lit.frag"; material.fragment_shader_name = "lit.frag";
material.blend_enable = true; material.blend_enable = true;
break; break;
} }
if (auto it = extras.find({fastgltf::Category::Materials, material_id, "fragment_shader"}); it != extras.end())
material.fragment_shader = it->second;
renderer::material::gpu_data & material_data = material.staging; renderer::material::gpu_data & material_data = material.staging;
material_data.base_color_factor = convert(gltf_material.pbrData.baseColorFactor); material_data.base_color_factor = convert(gltf_material.pbrData.baseColorFactor);
@@ -887,7 +870,6 @@ public:
meshes.reserve(gltf.meshes.size()); meshes.reserve(gltf.meshes.size());
for (const fastgltf::Mesh & gltf_mesh: gltf.meshes) for (const fastgltf::Mesh & gltf_mesh: gltf.meshes)
{ {
size_t mesh_id = meshes.size();
std::shared_ptr<renderer::mesh> & mesh_ref = meshes.emplace_back(); std::shared_ptr<renderer::mesh> & mesh_ref = meshes.emplace_back();
mesh_ref = std::make_shared<renderer::mesh>(); mesh_ref = std::make_shared<renderer::mesh>();
@@ -910,9 +892,7 @@ public:
renderer::vertex_layout & layout = primitive_ref.layout; renderer::vertex_layout & layout = primitive_ref.layout;
if (auto it = extras.find({fastgltf::Category::Meshes, mesh_id, "vertex_shader"}); it != extras.end()) if (gltf_primitive.findAttribute("JOINTS_0") == gltf_primitive.attributes.cend())
primitive_ref.vertex_shader = it->second;
else if (gltf_primitive.findAttribute("JOINTS_0") == gltf_primitive.attributes.cend())
primitive_ref.vertex_shader = "lit.vert"; primitive_ref.vertex_shader = "lit.vert";
else else
primitive_ref.vertex_shader = "lit_skinned.vert"; primitive_ref.vertex_shader = "lit_skinned.vert";
@@ -1027,6 +1007,7 @@ public:
node.orientation = glm::make_quat(TRS.rotation.data()); node.orientation = glm::make_quat(TRS.rotation.data());
node.scale = glm::make_vec3(TRS.scale.data()); node.scale = glm::make_vec3(TRS.scale.data());
node.visible = true; node.visible = true;
std::ranges::fill(node.clipping_planes, glm::vec4{0, 0, 0, 1});
} }
return entities; return entities;
@@ -1167,19 +1148,10 @@ std::shared_ptr<entt::registry> scene_loader::operator()(
if (auto error = data_buffer.error(); error != fastgltf::Error::None) if (auto error = data_buffer.error(); error != fastgltf::Error::None)
throw std::system_error((int)error, fastgltf_error_category); throw std::system_error((int)error, fastgltf_error_category);
std::map<std::tuple<fastgltf::Category, size_t, std::string>, std::string> gltf_extras; fastgltf::Asset asset = load_gltf_asset(data_buffer.get(), parent_path);
fastgltf::Asset asset = load_gltf_asset(data_buffer.get(), parent_path, [&](simdjson::dom::object & extras, std::size_t object_index, fastgltf::Category category) { image_loader loader{device, physical_device, queue, queue_family_index};
std::string_view value; loader_context ctx{parent_path, name, asset, physical_device, device, queue, loader};
for (const auto & kv: extras)
{
if (kv.value.get_string().get(value) == simdjson::SUCCESS)
gltf_extras.emplace(std::tuple{category, object_index, kv.key}, value);
}
});
loader_context ctx{parent_path, name, asset, physical_device, device, queue, queue_family_index, gltf_extras};
#ifndef NDEBUG #ifndef NDEBUG
if (auto error = fastgltf::validate(asset); error != fastgltf::Error::None) if (auto error = fastgltf::validate(asset); error != fastgltf::Error::None)
+58 -13
View File
@@ -29,7 +29,6 @@
#include "vk/pipeline.h" #include "vk/pipeline.h"
#include "vk/shader.h" #include "vk/shader.h"
#include "vk/specialization_constants.h" #include "vk/specialization_constants.h"
#include <algorithm>
#include <boost/pfr/core.hpp> #include <boost/pfr/core.hpp>
#include <entt/entity/entity.hpp> #include <entt/entity/entity.hpp>
#include <entt/entt.hpp> #include <entt/entt.hpp>
@@ -340,7 +339,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::RenderPassMultiviewCreateInfo> info; vk::StructureChain<vk::RenderPassCreateInfo, vk::RenderPassFragmentDensityMapCreateInfoEXT, vk::RenderPassMultiviewCreateInfo> info;
scene_renderer::renderpass rp; scene_renderer::renderpass rp;
std::vector<vk::AttachmentDescription> attachments; std::vector<vk::AttachmentDescription> attachments;
@@ -392,6 +391,29 @@ 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{
@@ -550,6 +572,27 @@ 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,
@@ -574,6 +617,9 @@ 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;
@@ -629,8 +675,8 @@ vk::raii::Pipeline scene_renderer::create_pipeline(const pipeline_info & info)
{ {
spdlog::debug("Creating pipeline"); spdlog::debug("Creating pipeline");
auto vertex_shader = load_shader(device, info.vertex_shader_name); auto vertex_shader = shader_loader{device}(info.vertex_shader_name);
auto fragment_shader = load_shader(device, info.fragment_shader_name); auto fragment_shader = shader_loader{device}(info.fragment_shader_name);
auto specialization = make_specialization_constants( auto specialization = make_specialization_constants(
int32_t(info.nb_texcoords), int32_t(info.nb_texcoords),
@@ -686,7 +732,7 @@ vk::raii::Pipeline scene_renderer::create_pipeline(const pipeline_info & info)
.ColorBlendState = {vk::PipelineColorBlendStateCreateInfo{}}, .ColorBlendState = {vk::PipelineColorBlendStateCreateInfo{}},
.ColorBlendAttachments = {vk::PipelineColorBlendAttachmentState{ .ColorBlendAttachments = {vk::PipelineColorBlendAttachmentState{
.blendEnable = info.blend_enable, .blendEnable = info.blend_enable,
.srcColorBlendFactor = vk::BlendFactor::eOne, .srcColorBlendFactor = vk::BlendFactor::eSrcAlpha,
.dstColorBlendFactor = vk::BlendFactor::eOneMinusSrcAlpha, .dstColorBlendFactor = vk::BlendFactor::eOneMinusSrcAlpha,
.colorBlendOp = vk::BlendOp::eAdd, .colorBlendOp = vk::BlendOp::eAdd,
.srcAlphaBlendFactor = vk::BlendFactor::eOne, .srcAlphaBlendFactor = vk::BlendFactor::eOne,
@@ -864,6 +910,7 @@ 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)
{ {
@@ -916,6 +963,7 @@ 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;
@@ -1011,6 +1059,7 @@ 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;
@@ -1057,12 +1106,8 @@ void scene_renderer::render(
// TODO: reuse the UBO if another primitive of the same mesh has already been drawn // TODO: reuse the UBO if another primitive of the same mesh has already been drawn
vk::DeviceSize instance_ubo_offset = resources.uniform_buffer_offset; vk::DeviceSize instance_ubo_offset = resources.uniform_buffer_offset;
vk::DeviceSize instance_ubo_size = sizeof(instance_gpu_data) + node.extra_shader_data.size();
instance_gpu_data & object_ubo = *reinterpret_cast<instance_gpu_data *>(ubo + resources.uniform_buffer_offset); instance_gpu_data & object_ubo = *reinterpret_cast<instance_gpu_data *>(ubo + resources.uniform_buffer_offset);
std::span<std::byte> extra_shader_data{reinterpret_cast<std::byte *>(ubo + resources.uniform_buffer_offset + sizeof(instance_gpu_data)), node.extra_shader_data.size()}; resources.uniform_buffer_offset += utils::align_up(buffer_alignment, sizeof(instance_gpu_data));
resources.uniform_buffer_offset += utils::align_up(buffer_alignment, sizeof(instance_gpu_data) + node.extra_shader_data.size());
vk::DeviceSize joints_ubo_offset = 0; vk::DeviceSize joints_ubo_offset = 0;
if (!node.joints.empty()) if (!node.joints.empty())
@@ -1085,7 +1130,7 @@ void scene_renderer::render(
object_ubo.modelview[frame_index] = frame.view * transform; object_ubo.modelview[frame_index] = frame.view * transform;
object_ubo.modelviewproj[frame_index] = viewproj[frame_index] * transform; object_ubo.modelviewproj[frame_index] = viewproj[frame_index] * transform;
} }
std::ranges::copy(node.extra_shader_data, extra_shader_data.begin()); object_ubo.clipping_planes = node.clipping_planes;
// Get the material // Get the material
std::shared_ptr<renderer::material> material = primitive.material_ ? primitive.material_ : default_material; std::shared_ptr<renderer::material> material = primitive.material_ ? primitive.material_ : default_material;
@@ -1094,7 +1139,7 @@ void scene_renderer::render(
pipeline_info info{ pipeline_info info{
.renderpass = rp_info, .renderpass = rp_info,
.vertex_shader_name = primitive.vertex_shader, .vertex_shader_name = primitive.vertex_shader,
.fragment_shader_name = material->fragment_shader, .fragment_shader_name = material->fragment_shader_name,
.vertex_layout = primitive.layout, .vertex_layout = primitive.layout,
.cull_mode = primitive.cull_mode, .cull_mode = primitive.cull_mode,
.front_face = primitive.front_face, .front_face = primitive.front_face,
@@ -1142,7 +1187,7 @@ void scene_renderer::render(
vk::DescriptorBufferInfo buffer_info_2{ vk::DescriptorBufferInfo buffer_info_2{
.buffer = resources.uniform_buffer, .buffer = resources.uniform_buffer,
.offset = instance_ubo_offset, .offset = instance_ubo_offset,
.range = instance_ubo_size, .range = sizeof(instance_gpu_data),
}; };
vk::DescriptorBufferInfo buffer_info_3{ vk::DescriptorBufferInfo buffer_info_3{
.buffer = resources.uniform_buffer, .buffer = resources.uniform_buffer,
+6
View File
@@ -44,6 +44,7 @@ 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;
@@ -80,6 +81,7 @@ 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;
}; };
@@ -125,6 +127,8 @@ 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
@@ -195,6 +199,7 @@ class scene_renderer
glm::mat4 model; glm::mat4 model;
std::array<glm::mat4, 2> modelview; std::array<glm::mat4, 2> modelview;
std::array<glm::mat4, 2> modelviewproj; std::array<glm::mat4, 2> modelviewproj;
std::array<glm::vec4, 4> clipping_planes;
}; };
struct debug_draw_vertex struct debug_draw_vertex
@@ -275,6 +280,7 @@ 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();
+67 -17
View File
@@ -155,20 +155,28 @@ 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); std::vector<scene_renderer::frame_info> frames;
beman::inplace_vector::inplace_vector<scene_renderer::frame_info, layer::max_views> frames; frames.reserve(views.size());
beman::inplace_vector::inplace_vector<XrCompositionLayerProjectionView, layer::max_views> composition_layer_color;
beman::inplace_vector::inplace_vector<XrCompositionLayerDepthInfoKHR, layer::max_views> composition_layer_depth;
auto [color_swapchain, color_image] = [&]() -> std::tuple<XrSwapchain, vk::Image> { // TODO inplace vector
xr::swapchain & color_swapchain = get_swapchain(swapchain_format, width, height, 1, views.size()); std::vector<XrCompositionLayerProjectionView> composition_layer_color;
std::vector<XrCompositionLayerDepthInfoKHR> composition_layer_depth;
composition_layer_color.reserve(views.size());
if (keep_depth_buffer)
composition_layer_depth.reserve(views.size());
auto [color_swapchain, color_image, foveation_image] = [&]() -> std::tuple<XrSwapchain, vk::Image, vk::Image> {
xr::swapchain & color_swapchain = get_swapchain(swapchain_format, width, height, 1, views.size(), foveation);
int color_image_index = color_swapchain.acquire(); int color_image_index = color_swapchain.acquire();
vk::Image color_image = color_swapchain.image(color_image_index); vk::Image color_image = color_swapchain.images()[color_image_index].image;
vk::Image foveation_image = color_swapchain.images()[color_image_index].foveation;
color_swapchain.wait(); color_swapchain.wait();
return {color_swapchain, color_image}; return {color_swapchain, color_image, foveation_image};
}(); }();
auto [depth_swapchain, depth_image] = [&]() -> std::pair<XrSwapchain, vk::Image> { auto [depth_swapchain, depth_image] = [&]() -> std::pair<XrSwapchain, vk::Image> {
@@ -177,7 +185,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.image(depth_image_index); vk::Image depth_image = depth_swapchain.images()[depth_image_index].image;
depth_swapchain.wait(); depth_swapchain.wait();
return {depth_swapchain, depth_image}; return {depth_swapchain, depth_image};
} }
@@ -238,20 +246,52 @@ 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);
add_projection_layer( add_projection_layer(
XR_COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT, XR_COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT,
space, space,
composition_layer_color, std::move(composition_layer_color),
composition_layer_depth); std::move(composition_layer_depth));
} }
xr::swapchain & scene::get_swapchain(vk::Format format, int32_t width, int32_t height, int sample_count, uint32_t array_size) 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)
{ {
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
@@ -260,7 +300,13 @@ 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;
} }
} }
@@ -272,6 +318,9 @@ 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,
@@ -281,7 +330,8 @@ 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;
@@ -327,8 +377,8 @@ void scene::render_start(bool passthrough, XrTime predicted_display_time_)
void scene::add_projection_layer( void scene::add_projection_layer(
XrCompositionLayerFlags flags, XrCompositionLayerFlags flags,
XrSpace space, XrSpace space,
std::span<XrCompositionLayerProjectionView> color_views, std::vector<XrCompositionLayerProjectionView> && color_views,
std::span<XrCompositionLayerDepthInfoKHR> depth_views) std::vector<XrCompositionLayerDepthInfoKHR> && depth_views)
{ {
layers.push_back(layer{ layers.push_back(layer{
.composition_layer = XrCompositionLayerProjection{ .composition_layer = XrCompositionLayerProjection{
@@ -339,8 +389,8 @@ void scene::add_projection_layer(
.viewCount = (uint32_t)color_views.size(), .viewCount = (uint32_t)color_views.size(),
.views = nullptr, .views = nullptr,
}, },
.color_views{color_views.begin(), color_views.end()}, .color_views = std::move(color_views),
.depth_views{depth_views.begin(), depth_views.end()}, .depth_views = std::move(depth_views),
}); });
} }
+12 -8
View File
@@ -24,11 +24,11 @@
#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"
#include "xr/system.h" #include "xr/system.h"
#include <inplace_vector.hpp>
#include <cstdint> #include <cstdint>
#include <entt/entity/registry.hpp> #include <entt/entity/registry.hpp>
@@ -132,12 +132,11 @@ protected:
struct layer struct layer
{ {
static const int max_views = 2;
std::variant<XrCompositionLayerProjection, XrCompositionLayerQuad, XrCompositionLayerBaseHeader *> composition_layer; std::variant<XrCompositionLayerProjection, XrCompositionLayerQuad, XrCompositionLayerBaseHeader *> composition_layer;
beman::inplace_vector::inplace_vector<XrCompositionLayerProjectionView, max_views> color_views; // Used by XrCompositionLayerProjection // TODO in place vectors
beman::inplace_vector::inplace_vector<XrCompositionLayerDepthInfoKHR, max_views> depth_views; // Used by XrCompositionLayerProjection std::vector<XrCompositionLayerProjectionView> color_views; // Used by XrCompositionLayerProjection
std::vector<XrCompositionLayerDepthInfoKHR> depth_views; // Used by XrCompositionLayerProjection
std::optional<XrCompositionLayerColorScaleBiasKHR> color_scale_bias; std::optional<XrCompositionLayerColorScaleBiasKHR> color_scale_bias;
std::optional<XrCompositionLayerDepthTestFB> depth_test; std::optional<XrCompositionLayerDepthTestFB> depth_test;
@@ -155,13 +154,17 @@ 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); 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);
void clear_swapchains(); void clear_swapchains();
void render_start(bool passthrough, XrTime predicted_display_time); void render_start(bool passthrough, XrTime predicted_display_time);
@@ -169,8 +172,8 @@ protected:
void add_projection_layer( void add_projection_layer(
XrCompositionLayerFlags flags, XrCompositionLayerFlags flags,
XrSpace space, XrSpace space,
std::span<XrCompositionLayerProjectionView> color_views, std::vector<XrCompositionLayerProjectionView> && color_views,
std::span<XrCompositionLayerDepthInfoKHR> depth_views = {}); std::vector<XrCompositionLayerDepthInfoKHR> && depth_views = {});
void add_quad_layer( void add_quad_layer(
XrCompositionLayerFlags flags, XrCompositionLayerFlags flags,
@@ -189,6 +192,7 @@ 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,6 +103,14 @@ 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,6 +50,7 @@ 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,
+54 -86
View File
@@ -23,8 +23,6 @@
#include "render/scene_components.h" #include "render/scene_components.h"
#include "utils/mapped_file.h" #include "utils/mapped_file.h"
#include "xr/space.h" #include "xr/space.h"
#include <array>
#include <entt/entity/fwd.hpp>
#include <entt/entt.hpp> #include <entt/entt.hpp>
#include <glm/gtc/matrix_access.hpp> #include <glm/gtc/matrix_access.hpp>
#include <glm/gtc/quaternion.hpp> #include <glm/gtc/quaternion.hpp>
@@ -35,7 +33,6 @@
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
#include <variant> #include <variant>
#include <openxr/openxr.h>
namespace components namespace components
{ {
@@ -65,27 +62,17 @@ struct visual_response
details::node_state state; details::node_state state;
}; };
} // namespace components
namespace
{
// Component added to nodes bound to an action space // Component added to nodes bound to an action space
struct bound_space struct bound_space
{ {
xr::spaces space; xr::spaces space;
XrDuration Δt;
}; };
// Component added to node clipped by the GUI
struct clipped_by_gui
{
};
struct emissive_trigger
{
XrAction action;
};
} // namespace components
namespace
{
// clang-format off // clang-format off
const std::unordered_map<std::string, std::string> input_mappings = { const std::unordered_map<std::string, std::string> input_mappings = {
{"xr-standard-squeeze" , "/input/squeeze/value" }, {"xr-standard-squeeze" , "/input/squeeze/value" },
@@ -184,21 +171,9 @@ struct json_visual_response
// OpenXR component path // OpenXR component path
std::string component_subpath; std::string component_subpath;
}; };
struct ray_extra_shader_data
{
std::array<glm::mat4, 4> window_to_world;
float emissive_factor;
};
void setup_ray_shader(entt::registry & scene, entt::entity entity, const ray_extra_shader_data & initial_data = {})
{
auto & node = scene.get<components::node>(entity);
node.set_extra_shader_data(initial_data);
}
} // namespace } // namespace
input_profile::input_profile(scene & scene, const std::filesystem::path & json_profile, uint32_t layer_mask_controller, uint32_t layer_mask_ray, XrAction left_trigger, XrAction right_trigger) input_profile::input_profile(scene & scene, const std::filesystem::path & json_profile, uint32_t layer_mask_controller, uint32_t layer_mask_ray)
{ {
utils::mapped_file json{json_profile}; utils::mapped_file json{json_profile};
@@ -291,7 +266,7 @@ input_profile::input_profile(scene & scene, const std::filesystem::path & json_p
auto [e, node] = scene.add_gltf(model, layer_mask_controller); auto [e, node] = scene.add_gltf(model, layer_mask_controller);
node.name = layout; node.name = layout;
entity = e; entity = e;
scene.world.emplace<components::bound_space>(e, space, 0); scene.world.emplace<bound_space>(e, space);
spdlog::debug("Created entity {}", layout); spdlog::debug("Created entity {}", layout);
} }
@@ -306,32 +281,16 @@ input_profile::input_profile(scene & scene, const std::filesystem::path & json_p
else else
continue; continue;
auto && [ray_entity, ray_node] = scene.add_gltf(controller_ray_model_name(), layer_mask_ray); auto && [entity, node] = scene.add_gltf(controller_ray_model_name(), layer_mask_ray);
node.name = (std::string)layout.key + "_ray";
spdlog::debug("Created entity {}", node.name);
ray_node.name = (std::string)layout.key + "_ray"; scene.world.emplace<bound_space>(entity, space);
spdlog::debug("Created entity {}", ray_node.name);
scene.world.emplace<components::bound_space>(find_node_by_name(scene.world, "Ray", ray_entity), space, 0); if (layout.key == "left")
scene.world.emplace<components::clipped_by_gui>(find_node_by_name(scene.world, "Ray", ray_entity)); left_ray = entity;
scene.world.emplace<components::emissive_trigger>(find_node_by_name(scene.world, "Ray", ray_entity), layout.key == "left" ? left_trigger : right_trigger); else if (layout.key == "right")
setup_ray_shader(scene.world, find_node_by_name(scene.world, "Ray", ray_entity)); right_ray = entity;
try
{
// These nodes don't exist in the HTC version
scene.world.emplace<components::bound_space>(find_node_by_name(scene.world, "Trail", ray_entity), space, 0);
scene.world.emplace<components::bound_space>(find_node_by_name(scene.world, "Trail now", ray_entity), space, 0);
scene.world.emplace<components::bound_space>(find_node_by_name(scene.world, "Trail -10ms", ray_entity), space, -10'000'000);
scene.world.emplace<components::bound_space>(find_node_by_name(scene.world, "Trail -20ms", ray_entity), space, -20'000'000);
scene.world.emplace<components::bound_space>(find_node_by_name(scene.world, "Trail -30ms", ray_entity), space, -30'000'000);
scene.world.emplace<components::bound_space>(find_node_by_name(scene.world, "Trail -40ms", ray_entity), space, -40'000'000);
scene.world.emplace<components::clipped_by_gui>(find_node_by_name(scene.world, "Trail", ray_entity));
scene.world.emplace<components::emissive_trigger>(find_node_by_name(scene.world, "Trail", ray_entity), layout.key == "left" ? left_trigger : right_trigger);
setup_ray_shader(scene.world, find_node_by_name(scene.world, "Trail", ray_entity));
}
catch (...)
{
}
} }
for (auto & json_response: json_responses) for (auto & json_response: json_responses)
@@ -403,6 +362,41 @@ static void apply_visual_response(components::node & node, components::details::
node.visible = value > 0.5; node.visible = value > 0.5;
} }
static void set_clipping_planes(entt::registry & scene, entt::entity entity, std::span<glm::vec4> clipping_planes)
{
// If the ray starts on the wrong side of the GUI, hide it entirely
// This assumes the node is a child of the root node
components::node & node = scene.get<components::node>(entity);
for (glm::vec4 & plane: clipping_planes)
{
if (glm::dot(plane, glm::vec4(node.position, 1)) < 0)
{
scene.get<components::node>(entity).visible = false;
return;
}
}
// Apply the clipping planes on direct children of the target entity
for (auto && [child_entity, child_node]: scene.view<components::node>().each())
{
if (child_node.parent == entity)
{
size_t nb_clipping_planes = std::min(child_node.clipping_planes.size(), clipping_planes.size());
auto copy_results = std::ranges::copy_n(
clipping_planes.begin(),
nb_clipping_planes,
child_node.clipping_planes.begin());
// Disable the remaining clipping planes
std::ranges::fill_n(
copy_results.out,
child_node.clipping_planes.size() - nb_clipping_planes,
glm::vec4(0, 0, 0, 1));
}
}
}
void input_profile::apply( void input_profile::apply(
entt::registry & scene, entt::registry & scene,
XrSpace world_space, XrSpace world_space,
@@ -411,9 +405,9 @@ void input_profile::apply(
bool hide_left_ray, bool hide_left_ray,
bool hide_right_controller, bool hide_right_controller,
bool hide_right_ray, bool hide_right_ray,
std::span<glm::mat4> world_to_window) std::span<glm::vec4> pointer_limits)
{ {
for (auto && [entity, node, space]: scene.view<components::node, components::bound_space>().each()) for (auto && [entity, node, space]: scene.view<components::node, bound_space>().each())
{ {
if ((space.space == xr::spaces::grip_left and hide_left_controller) or if ((space.space == xr::spaces::grip_left and hide_left_controller) or
(space.space == xr::spaces::aim_left and hide_left_ray) or (space.space == xr::spaces::aim_left and hide_left_ray) or
@@ -422,7 +416,7 @@ void input_profile::apply(
{ {
node.visible = false; node.visible = false;
} }
else if (auto location = application::locate_controller(application::space(space.space), world_space, predicted_display_time + space.Δt); location) else if (auto location = application::locate_controller(application::space(space.space), world_space, predicted_display_time); location)
{ {
node.visible = true; node.visible = true;
@@ -501,32 +495,6 @@ void input_profile::apply(
} }
} }
for (auto && [entity, node, response]: scene.view<components::node, components::emissive_trigger>().each()) set_clipping_planes(scene, left_ray, pointer_limits);
{ set_clipping_planes(scene, right_ray, pointer_limits);
if (not response.action)
continue;
if (auto opt_value = application::read_action_float(response.action))
{
float value = opt_value->second * 0.9 + 0.1;
node.set_extra_shader_data(ray_extra_shader_data{{}, value});
}
}
for (auto && [entity, node]: scene.view<components::node, components::clipped_by_gui>().each())
{
auto & data = node.get_extra_shader_data<ray_extra_shader_data>();
size_t nb_windows = std::min(data.window_to_world.size(), world_to_window.size());
auto copy_results = std::ranges::copy_n(
world_to_window.begin(),
nb_windows,
data.window_to_world.begin());
// Disable the remaining clipping planes
std::ranges::fill_n(
copy_results.out,
data.window_to_world.size() - nb_windows,
glm::mat4{/* TODO */});
}
} }
+2 -2
View File
@@ -37,7 +37,7 @@ struct input_profile
magic_enum::containers::array<xr::spaces, std::pair<glm::vec3, glm::quat>> offset; magic_enum::containers::array<xr::spaces, std::pair<glm::vec3, glm::quat>> offset;
input_profile(scene & scene, const std::filesystem::path & json_profile, uint32_t layer_mask_controller, uint32_t layer_mask_ray, XrAction left_trigger = XR_NULL_HANDLE, XrAction right_trigger = XR_NULL_HANDLE); input_profile(scene & scene, const std::filesystem::path & json_profile, uint32_t layer_mask_controller, uint32_t layer_mask_ray);
// application::poll_actions() must have been called before // application::poll_actions() must have been called before
void apply( void apply(
@@ -48,5 +48,5 @@ struct input_profile
bool hide_left_ray, bool hide_left_ray,
bool hide_right_controller, bool hide_right_controller,
bool hide_right_ray, bool hide_right_ray,
std::span<glm::mat4> world_to_window); std::span<glm::vec4> pointer_limits);
}; };
+59 -38
View File
@@ -157,6 +157,15 @@ 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;
@@ -341,7 +350,12 @@ 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 (not discover) if (application::is_focused() && !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();
@@ -612,7 +626,28 @@ std::optional<glm::vec3> scenes::lobby::check_recenter_gui(glm::vec3 head_positi
return std::nullopt; return std::nullopt;
} }
static void stick_finger_to_gui(std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT> & hand, const std::vector<imgui_context::window_viewport> & layers) // Return the vector v such that dot(v, x) > 0 iff x is on the side where the composition layer is visible
static glm::vec4 compute_ray_limits(const XrPosef & pose, float margin = 0)
{
glm::quat q{
pose.orientation.w,
pose.orientation.x,
pose.orientation.y,
pose.orientation.z,
};
glm::vec3 p{
pose.position.x,
pose.position.y,
pose.position.z,
};
glm::vec3 normal = glm::column(glm::mat3_cast(q), 2);
return glm::vec4(normal, -glm::dot(p, normal) - margin);
}
static void stick_finger_to_gui(std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT> & hand, const std::vector<imgui_context::viewport> & layers)
{ {
// Move XR_HAND_JOINT_INDEX_{TIP,DISTAL,INTERMEDIATE,PROXIMAL}_EXT so that: // Move XR_HAND_JOINT_INDEX_{TIP,DISTAL,INTERMEDIATE,PROXIMAL}_EXT so that:
// - Only the X rotation changes for distal and intermediate (relative to the parent bone) // - Only the X rotation changes for distal and intermediate (relative to the parent bone)
@@ -632,7 +667,7 @@ static void stick_finger_to_gui(std::array<xr::hand_tracker::joint, XR_HAND_JOIN
// Compute the target position of the tip // Compute the target position of the tip
std::vector<std::pair<glm::vec3, float>> intersections; // Target position of the finger tip, distance to the GUI plane std::vector<std::pair<glm::vec3, float>> intersections; // Target position of the finger tip, distance to the GUI plane
for (const imgui_context::window_viewport & layer: layers) for (const imgui_context::viewport & layer: layers)
{ {
// Ignore layers that are not absolutely positionned // Ignore layers that are not absolutely positionned
if (layer.space != xr::spaces::world) if (layer.space != xr::spaces::world)
@@ -868,19 +903,10 @@ void scenes::lobby::render(const XrFrameState & frame_state)
if (next_scene) if (next_scene)
{ {
switch (next_scene->current_state()) if (!next_scene->alive())
{ next_scene.reset();
case scenes::stream::state::streaming: else if (next_scene->current_state() == 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();
@@ -1028,11 +1054,11 @@ void scenes::lobby::render(const XrFrameState & frame_state)
#endif #endif
// Get the planes that limit the ray size from the composition layers // Get the planes that limit the ray size from the composition layers
std::vector<glm::mat4> world_to_window; std::vector<glm::vec4> ray_limits;
for (auto & window: imgui_ctx->windows()) for (auto & [z_index, layer]: imgui_layers)
{ {
if (window.space == xr::spaces::world) if (z_index != constants::lobby::zindex_recenter_tip)
world_to_window.push_back(glm::inverse(glm::translate(window.position) * glm::mat4(glm::mat3_cast(window.orientation)) * glm::scale(glm::vec3(window.size, 1)))); ray_limits.push_back(compute_ray_limits(layer.pose));
} }
input->apply(world, input->apply(world,
@@ -1042,7 +1068,7 @@ void scenes::lobby::render(const XrFrameState & frame_state)
not imgui_ctx->is_aim_interaction()[0], not imgui_ctx->is_aim_interaction()[0],
hide_right_controller, hide_right_controller,
not imgui_ctx->is_aim_interaction()[1], not imgui_ctx->is_aim_interaction()[1],
world_to_window); ray_limits);
renderer::animate(world, frame_state.predictedDisplayPeriod * 1.0e-9); renderer::animate(world, frame_state.predictedDisplayPeriod * 1.0e-9);
@@ -1060,6 +1086,7 @@ 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)
@@ -1090,7 +1117,8 @@ 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);
@@ -1140,9 +1168,7 @@ void scenes::lobby::on_focused()
*this, *this,
"assets://controllers/" + profile + "/profile.json", "assets://controllers/" + profile + "/profile.json",
layer_controllers, layer_controllers,
layer_rays, layer_rays);
get_action("left_trigger").first,
get_action("right_trigger").first);
spdlog::info("Loaded input profile {}", input->id); spdlog::info("Loaded input profile {}", input->id);
@@ -1238,17 +1264,7 @@ void scenes::lobby::on_focused()
.vp_origin = {0, 1000}, .vp_origin = {0, 1000},
.vp_size = {1500, 300}, .vp_size = {1500, 300},
.z_index = constants::lobby::zindex_recenter_tip, .z_index = constants::lobby::zindex_recenter_tip,
}, }};
{
// Tooltip
.space = xr::spaces::world,
.size = {0.6, 0.08},
.vp_origin = {0, 1300},
.vp_size = {1500, 200},
.tooltip_viewport = true,
.z_index = constants::lobby::zindex_tooltip,
},
};
xr::swapchain swapchain_imgui(instance, session, device, swapchain_format, 3000, 1500); xr::swapchain swapchain_imgui(instance, session, device, swapchain_format, 3000, 1500);
@@ -1262,6 +1278,8 @@ 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)
@@ -1320,8 +1338,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);
@@ -1353,6 +1371,7 @@ 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();
} }
@@ -1361,7 +1380,9 @@ 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_FOCUSED) if (event.state_changed.state == XR_SESSION_STATE_STOPPING)
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;
+5 -1
View File
@@ -31,6 +31,7 @@
#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>
@@ -78,6 +79,8 @@ 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;
@@ -132,6 +135,8 @@ 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;
@@ -219,7 +224,6 @@ 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();
+38 -56
View File
@@ -249,51 +249,19 @@ 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)
{ {
assert(next_scene); if (not 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)
{ {
next_scene->exit(); next_scene.reset();
current_tab = tab::server_list; current_tab = tab::server_list;
} }
} }
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;
@@ -528,12 +496,8 @@ 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("", ImGuiPopupFlags_AnyPopup)) if ((async_session.valid() || next_scene) and not ImGui::IsPopupOpen("connecting"))
ImGui::OpenPopup("connecting"); ImGui::OpenPopup("connecting");
const auto & popup_layer = imgui_ctx->layers()[1]; const auto & popup_layer = imgui_ctx->layers()[1];
@@ -552,13 +516,6 @@ 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))
@@ -619,10 +576,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; float active_rate = config.preferred_refresh_rate.value_or(refresh_rates.back());
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"), active_rate == 0, ImGuiSelectableFlags_SelectOnRelease)) if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), config.preferred_refresh_rate == 0, ImGuiSelectableFlags_SelectOnRelease))
{ {
session.set_refresh_rate(0); session.set_refresh_rate(0);
config.preferred_refresh_rate = 0; config.preferred_refresh_rate = 0;
@@ -632,7 +589,7 @@ void scenes::lobby::gui_settings()
imgui_ctx->tooltip(_("Select refresh rate based on measured application performance.\nMay cause flicker when a change happens.")); 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 == active_rate, ImGuiSelectableFlags_SelectOnRelease)) if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == config.preferred_refresh_rate, ImGuiSelectableFlags_SelectOnRelease))
{ {
session.set_refresh_rate(rate); session.set_refresh_rate(rate);
config.preferred_refresh_rate = rate; config.preferred_refresh_rate = rate;
@@ -643,7 +600,7 @@ void scenes::lobby::gui_settings()
} }
imgui_ctx->vibrate_on_hover(); imgui_ctx->vibrate_on_hover();
if (active_rate == 0 and refresh_rates.size() > 2) if (config.preferred_refresh_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()))
@@ -663,6 +620,31 @@ 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;
@@ -747,7 +729,7 @@ void scenes::lobby::gui_settings()
config.codec = std::nullopt; config.codec = std::nullopt;
config.save(); config.save();
} }
for (auto codec: decoder::supported_codecs()) for (auto codec: supported_codecs)
{ {
// don't show raw in GUI // don't show raw in GUI
if (codec == wivrn::raw) if (codec == wivrn::raw)
@@ -1052,7 +1034,7 @@ void scenes::lobby::gui_debug_node_hierarchy(entt::entity root)
primitive.vertex_count, primitive.vertex_count,
primitive.material_->name, primitive.material_->name,
primitive.vertex_shader, primitive.vertex_shader,
primitive.material_->fragment_shader); primitive.material_->fragment_shader_name);
imgui_ctx->tooltip(tooltip); imgui_ctx->tooltip(tooltip);
} }
+1
View File
@@ -283,6 +283,7 @@ 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}, // {1, "", ImGuiKey_None, "1/2", virtual_keyboard::key_flag_hidden},
{1, "\""}, {1, "\""},
{1, "<"}, {1, "<"},
{1, ">"}, {1, ">"},
+113 -147
View File
@@ -34,8 +34,8 @@
#include "boost/pfr/core.hpp" #include "boost/pfr/core.hpp"
#include "decoder/shard_accumulator.h" #include "decoder/shard_accumulator.h"
#include "hardware.h" #include "hardware.h"
#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"
@@ -51,7 +51,6 @@
#endif #endif
using namespace wivrn; using namespace wivrn;
using namespace beman::inplace_vector;
// clang-format off // clang-format off
static const std::unordered_map<std::string, device_id> device_ids = { static const std::unordered_map<std::string, device_id> device_ids = {
@@ -232,8 +231,20 @@ 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();
info.settings.preferred_refresh_rate = config.preferred_refresh_rate; // I can't find anything in specification the ensures it won't be empty
info.settings.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0); if (not info.available_refresh_rates.empty())
{
if (config.preferred_refresh_rate and (config.preferred_refresh_rate == 0 or utils::contains(info.available_refresh_rates, *config.preferred_refresh_rate)))
{
info.settings.preferred_refresh_rate = *config.preferred_refresh_rate;
info.settings.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0);
}
else
{
// Default to highest refresh rate
info.settings.preferred_refresh_rate = info.available_refresh_rates.back();
}
}
} }
if (info.available_refresh_rates.empty()) if (info.available_refresh_rates.empty())
@@ -248,11 +259,6 @@ 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())
@@ -322,9 +328,6 @@ 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))
{ {
@@ -425,9 +428,7 @@ void scenes::stream::on_focused()
*this, *this,
"assets://controllers/" + profile + "/profile.json", "assets://controllers/" + profile + "/profile.json",
layer_controllers, layer_controllers,
layer_rays, layer_rays);
get_action("left_trigger").first,
get_action("right_trigger").first);
spdlog::info("Loaded input profile {}", input->id); spdlog::info("Loaded input profile {}", input->id);
@@ -471,23 +472,14 @@ void scenes::stream::on_focused()
device, device,
swapchain_format, swapchain_format,
1800, 1800,
1200); 1000);
std::vector<imgui_context::viewport> vps{ imgui_context::viewport vp{
{ .space = xr::spaces::world,
.space = xr::spaces::world, // Position and orientation are set at each frame
// Position and orientation are set at each frame .size = {1.2, 0.6666},
.size = {1.2, 0.6666}, .vp_origin = {0, 0},
.vp_origin = {0, 0}, .vp_size = {1800, 1000},
.vp_size = {1800, 1000},
},
{
.space = xr::spaces::world,
.size = {1.2, 0.1333},
.vp_origin = {0, 1000},
.vp_size = {1800, 200},
.tooltip_viewport = true,
},
}; };
imgui_ctx.emplace(physical_device, imgui_ctx.emplace(physical_device,
@@ -496,7 +488,7 @@ void scenes::stream::on_focused()
queue, queue,
imgui_inputs, imgui_inputs,
std::move(swapchain_imgui), std::move(swapchain_imgui),
std::move(vps), std::vector{vp},
image_cache); image_cache);
if (application::get_config().enable_stream_gui) if (application::get_config().enable_stream_gui)
@@ -511,6 +503,9 @@ 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);
@@ -528,6 +523,7 @@ 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();
@@ -566,7 +562,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()))
{ {
set_state(state::streaming); state_ = state::streaming;
spdlog::info("Stream scene ready at t={}", instance.now()); spdlog::info("Stream scene ready at t={}", instance.now());
} }
} }
@@ -592,7 +588,8 @@ std::array<std::shared_ptr<shard_accumulator::blit_handle>, 3> scenes::stream::c
if (decoders.empty()) if (decoders.empty())
return {}; return {};
std::unique_lock lock(frames_mutex); std::unique_lock lock(frames_mutex);
inplace_vector<shard_accumulator::blit_handle *, decoder_count> common_frames; thread_local std::vector<shard_accumulator::blit_handle *> common_frames;
common_frames.clear();
const bool alpha = decoders[0].latest_frames[0] and decoders[0].latest_frames[0]->view_info.alpha; const bool alpha = decoders[0].latest_frames[0] and decoders[0].latest_frames[0]->view_info.alpha;
for (size_t i = 0; i < view_count + alpha; ++i) for (size_t i = 0; i < view_count + alpha; ++i)
{ {
@@ -605,7 +602,7 @@ std::array<std::shared_ptr<shard_accumulator::blit_handle>, 3> scenes::stream::c
else else
{ {
// clang-format off // clang-format off
erase_if(common_frames, std::erase_if(common_frames,
[this, i](auto & left) [this, i](auto & left)
{ {
return std::ranges::none_of( return std::ranges::none_of(
@@ -618,7 +615,7 @@ std::array<std::shared_ptr<shard_accumulator::blit_handle>, 3> scenes::stream::c
// clang-format on // clang-format on
} }
} }
std::array<std::shared_ptr<shard_accumulator::blit_handle>, decoder_count> result; std::array<std::shared_ptr<shard_accumulator::blit_handle>, view_count + 1> result;
if (not common_frames.empty()) if (not common_frames.empty())
{ {
auto min = std::ranges::min_element(common_frames, auto min = std::ranges::min_element(common_frames,
@@ -673,51 +670,28 @@ 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
{ {
auto & frame = latest_frames[id % latest_frames.size()]; for (auto it = latest_frames.rbegin(); it != latest_frames.rend(); ++it)
if (frame and frame->feedback.frame_index != id) {
return nullptr; if (not *it)
return frame; continue;
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)
{ {
std::optional<std::pair<glm::vec3, glm::quat>> aim; auto aim = application::locate_controller(
application::space(controller),
application::space(xr::spaces::view),
predicted_display_time);
switch (guess_model()) if (not aim)
{ 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];
@@ -762,44 +736,40 @@ void scenes::stream::update_gui_position(xr::spaces controller)
} }
} }
bool scenes::stream::is_interactable(stream_tab tab)
{
switch (tab)
{
case stream_tab::stats:
case stream_tab::settings:
case stream_tab::bitrate_settings:
case stream_tab::foveation_settings:
case stream_tab::applications:
case stream_tab::application_launcher:
return true;
case stream_tab::hidden:
case stream_tab::overlay_only:
case stream_tab::compact:
return false;
}
spdlog::warn("Invalid tab value {}", int(tab));
return false;
}
bool scenes::stream::is_gui_interactable() const bool scenes::stream::is_gui_interactable() const
{ {
return is_interactable(gui_status); switch (gui_status)
{
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:
return true;
case gui_status::hidden:
case gui_status::overlay_only:
case gui_status::compact:
return false;
}
assert(false);
__builtin_unreachable();
} }
void scenes::stream::render(const XrFrameState & frame_state) void scenes::stream::render(const XrFrameState & frame_state)
{ {
if (state_ == state::shutdown) if (exiting)
application::pop_scene(); application::pop_scene();
display_time_phase = frame_state.predictedDisplayPeriod ? frame_state.predictedDisplayTime % frame_state.predictedDisplayPeriod : 0; display_time_phase = frame_state.predictedDisplayTime % frame_state.predictedDisplayPeriod;
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 state_ == state::shutdown) if (not frame_state.shouldRender or (decoders[0].empty() and decoders[1].empty()))
{ {
// TODO: stop/restart video stream // TODO: stop/restart video stream
session.begin_frame(); session.begin_frame();
@@ -815,7 +785,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
.variant = application::get_messages_info().variant, .variant = application::get_messages_info().variant,
}); });
next_gui_status = stream_tab::hidden; gui_status = stream::gui_status::hidden;
application::pop_scene(); application::pop_scene();
} }
@@ -879,7 +849,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)
set_state(state::stalled); state_ = stream::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;
@@ -988,9 +958,9 @@ void scenes::stream::render(const XrFrameState & frame_state)
vk::SubmitInfo submit_info; vk::SubmitInfo submit_info;
submit_info.setCommandBuffers(*command_buffer); submit_info.setCommandBuffers(*command_buffer);
inplace_vector<vk::Semaphore, decoder_count> semaphores; std::vector<vk::Semaphore> semaphores;
inplace_vector<uint64_t, decoder_count> semaphore_vals; std::vector<uint64_t> semaphore_vals;
inplace_vector<vk::PipelineStageFlags, decoder_count> wait_stages; std::vector<vk::PipelineStageFlags> wait_stages;
for (auto b: current_blit_handles) for (auto b: current_blit_handles)
{ {
if (b and b->semaphore) if (b and b->semaphore)
@@ -1015,6 +985,8 @@ void scenes::stream::render(const XrFrameState & frame_state)
#endif #endif
swapchain.release(); swapchain.release();
std::vector<XrCompositionLayerProjectionView> layer_view(view_count);
if (use_alpha) if (use_alpha)
session.enable_passthrough(system); session.enable_passthrough(system);
else else
@@ -1023,7 +995,6 @@ void scenes::stream::render(const XrFrameState & frame_state)
render_start(use_alpha, frame_state.predictedDisplayTime); render_start(use_alpha, frame_state.predictedDisplayTime);
// Add the layer with the streamed content // Add the layer with the streamed content
std::array<XrCompositionLayerProjectionView, view_count> layer_view;
for (uint32_t view = 0; view < view_count; view++) for (uint32_t view = 0; view < view_count; view++)
{ {
layer_view[view] = layer_view[view] =
@@ -1045,23 +1016,23 @@ void scenes::stream::render(const XrFrameState & frame_state)
add_projection_layer( add_projection_layer(
XR_COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT, XR_COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT,
application::space(xr::spaces::world), application::space(xr::spaces::world),
layer_view); std::move(layer_view));
if (composition_layer_color_scale_bias_supported) if (composition_layer_color_scale_bias_supported)
{ {
switch (gui_status) switch (gui_status)
{ {
case stream_tab::hidden: case gui_status::hidden:
case stream_tab::bitrate_settings: case gui_status::bitrate_settings:
case stream_tab::foveation_settings: case gui_status::foveation_settings:
case stream_tab::compact: case gui_status::compact:
case stream_tab::overlay_only: case gui_status::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 stream_tab::stats: case gui_status::stats:
case stream_tab::settings: case gui_status::settings:
case stream_tab::applications: case gui_status::applications:
case stream_tab::application_launcher: case gui_status::application_launcher:
dimming = dimming + frame_state.predictedDisplayPeriod / (1e9 * constants::stream::fade_duration); dimming = dimming + frame_state.predictedDisplayPeriod / (1e9 * constants::stream::fade_duration);
break; break;
} }
@@ -1098,8 +1069,8 @@ void scenes::stream::render(const XrFrameState & frame_state)
// Network operations may be blocking, do them once everything was submitted // Network operations may be blocking, do them once everything was submitted
{ {
// Keep a copy of the feedback packets as they can be modified if they're encrypted // Keep a copy of the feedback packets as they can be modified if they're encrypted
inplace_vector<from_headset::feedback, decoder_count> feedbacks; std::vector<from_headset::feedback> feedbacks;
inplace_vector<serialization_packet, decoder_count> packets; std::vector<serialization_packet> packets;
feedbacks.reserve(current_blit_handles.size()); feedbacks.reserve(current_blit_handles.size());
packets.reserve(current_blit_handles.size()); packets.reserve(current_blit_handles.size());
@@ -1142,14 +1113,23 @@ 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))
{ {
// Arbitraty transitions can happen from network commands switch (gui_status)
// Ensure we can't have a set of 2 non interactable states {
if (is_gui_interactable()) case gui_status::hidden:
next_gui_status = stream_tab::hidden; case gui_status::compact:
else if (is_interactable(stored_gui_status)) case gui_status::overlay_only:
next_gui_status = stored_gui_status; gui_status = next_gui_status;
else break;
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;
}
} }
} }
@@ -1158,17 +1138,15 @@ void scenes::stream::render(const XrFrameState & frame_state)
void scenes::stream::exit() void scenes::stream::exit()
{ {
state_ = state::shutdown; exiting = true;
} }
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);
std::unique_lock lock(decoder_mutex);
if (video_stream_description == description)
return;
spdlog::info("Creating decoders, size {}x{}", description.width, description.height); spdlog::info("Creating decoders, size {}x{}", description.width, description.height);
std::unique_lock lock(decoder_mutex);
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))
@@ -1177,9 +1155,6 @@ 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)
@@ -1201,11 +1176,14 @@ 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());
} }
@@ -1285,18 +1263,6 @@ 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)
+27 -40
View File
@@ -32,7 +32,6 @@
#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>
@@ -46,8 +45,7 @@ public:
{ {
initializing, initializing,
streaming, streaming,
stalled, stalled
shutdown,
}; };
static const size_t image_buffer_size = 3; static const size_t image_buffer_size = 3;
@@ -55,7 +53,6 @@ public:
private: private:
static const size_t view_count = 2; static const size_t view_count = 2;
static const size_t decoder_count = view_count + 1;
struct accumulator_images struct accumulator_images
{ {
@@ -71,14 +68,14 @@ private:
// for frames inside accumulator images // for frames inside accumulator images
std::mutex frames_mutex; std::mutex frames_mutex;
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>, view_count + 1> 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
std::atomic<bool> interaction_profile_changed = false; std::atomic<bool> interaction_profile_changed = false;
std::atomic<XrTime> scheduled_derived_pose = 0; // Tracking thread will compute derived pose when time is reached
std::atomic<bool> recenter_requested = false; std::atomic<bool> recenter_requested = false;
std::atomic<bool> hid_forwarding = false; std::atomic<bool> hid_forwarding = false;
std::atomic<XrDuration> display_time_phase = 0; std::atomic<XrDuration> display_time_phase = 0;
@@ -89,7 +86,7 @@ private:
std::shared_mutex decoder_mutex; std::shared_mutex decoder_mutex;
std::optional<to_headset::video_stream_description> video_stream_description; std::optional<to_headset::video_stream_description> video_stream_description;
std::array<accumulator_images, decoder_count> decoders; // Locked by decoder_mutex std::array<accumulator_images, view_count + 1> decoders; // Locked by decoder_mutex
std::optional<stream_defoveator> defoveator; std::optional<stream_defoveator> defoveator;
@@ -105,16 +102,7 @@ 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;
std::atomic<state> state_ = state::initializing; 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;
@@ -131,28 +119,27 @@ private:
uint32_t height; uint32_t height;
std::optional<imgui_context> imgui_ctx; std::optional<imgui_context> imgui_ctx;
struct gui_toast enum class gui_status
{ {
std::string content; hidden,
bool is_urgent = false; overlay_only,
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;
// Tab currently being displayed std::atomic<gui_status> gui_status = gui_status::hidden;
stream_tab gui_status = stream_tab::hidden; enum gui_status last_gui_status = gui_status::hidden;
// Tab that we will switch to if button is pressed enum gui_status next_gui_status = gui_status::applications;
stream_tab stored_gui_status = stream_tab::applications; XrTime gui_status_last_change;
// 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;
@@ -175,7 +162,7 @@ private:
void update_gui_position(xr::spaces controller); void update_gui_position(xr::spaces controller);
// Keep a reference to the resources needed to blit the images until vkWaitForFences // Keep a reference to the resources needed to blit the images until vkWaitForFences
std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, decoder_count> current_blit_handles; std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, view_count + 1> current_blit_handles;
XrTime running_application_req = 0; XrTime running_application_req = 0;
thread_safe<to_headset::running_applications> running_applications; thread_safe<to_headset::running_applications> running_applications;
@@ -209,7 +196,6 @@ 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 &&);
@@ -218,7 +204,6 @@ 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 &&);
@@ -233,11 +218,14 @@ public:
return state_; return state_;
} }
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();
@@ -245,10 +233,10 @@ private:
void read_actions(); void read_actions();
void on_interaction_profile_changed(const XrEventDataInteractionProfileChanged &); void on_interaction_profile_changed(const XrEventDataInteractionProfileChanged &);
void send_derived_pose();
void setup(const to_headset::video_stream_description &); void setup(const to_headset::video_stream_description &);
void setup_reprojection_swapchain(uint32_t width, uint32_t height); void setup_reprojection_swapchain(uint32_t width, uint32_t height);
void exit();
vk::raii::QueryPool query_pool = nullptr; vk::raii::QueryPool query_pool = nullptr;
bool query_pool_filled = false; bool query_pool_filled = false;
@@ -314,14 +302,13 @@ private:
float compact_cpu_time = 0; float compact_cpu_time = 0;
float compact_gpu_time = 0; float compact_gpu_time = 0;
void accumulate_metrics(XrTime predicted_display_time, const std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, decoder_count> & blit_handles, const gpu_timestamps & timestamps); void accumulate_metrics(XrTime predicted_display_time, const std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, view_count + 1> & blit_handles, const gpu_timestamps & timestamps);
void gui_performance_metrics(); void gui_performance_metrics();
void gui_compact_view(); void gui_compact_view();
void gui_settings(float predicted_display_period); void gui_settings(float predicted_display_period);
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,14 +283,6 @@ 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,8 +81,6 @@ 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,
+162 -182
View File
@@ -26,13 +26,12 @@
#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>
#include <chrono> #include <chrono>
#include <cmath> #include <cmath>
#include <glm/ext.hpp>
#include <glm/ext/matrix_transform.hpp>
#include <glm/gtc/matrix_access.hpp> #include <glm/gtc/matrix_access.hpp>
#include <limits> #include <limits>
#include <ranges> #include <ranges>
@@ -383,9 +382,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 (not refresh_rates.empty()) if (config.preferred_refresh_rate and (config.preferred_refresh_rate == 0 or utils::contains(refresh_rates, *config.preferred_refresh_rate)))
{ {
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
@@ -408,11 +407,12 @@ 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; float active_rate = config.preferred_refresh_rate.value_or(refresh_rates.back());
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"), active_rate == 0, ImGuiSelectableFlags_SelectOnRelease)) if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), config.preferred_refresh_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();
@@ -421,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 == active_rate, ImGuiSelectableFlags_SelectOnRelease)) if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == config.preferred_refresh_rate, ImGuiSelectableFlags_SelectOnRelease))
{ {
session.set_refresh_rate(rate); session.set_refresh_rate(rate);
config.preferred_refresh_rate = rate; config.preferred_refresh_rate = rate;
@@ -433,7 +433,7 @@ void scenes::stream::gui_settings(float predicted_display_period)
} }
imgui_ctx->vibrate_on_hover(); imgui_ctx->vibrate_on_hover();
if (active_rate == 0 and refresh_rates.size() > 2) if (config.preferred_refresh_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()))
@@ -462,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()))
next_gui_status = stream_tab::bitrate_settings; gui_status = gui_status::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"));
@@ -525,58 +525,58 @@ void scenes::stream::gui_settings(float predicted_display_period)
} }
} }
ImGui::Unindent(); ImGui::Unindent();
}
bool send_packet = false; bool send_packet = false;
bool save_config = false; bool save_config = false;
ImGui::Text("%s", _S("Foveation center override")); ImGui::Text("%s", _S("Foveation center override"));
ImGui::Indent(); ImGui::Indent();
{
if (ImGui::Checkbox(_S("Enable"), &override_foveation_enable))
{ {
send_packet = true; if (ImGui::Checkbox(_S("Enable"), &override_foveation_enable))
save_config = true; {
} send_packet = true;
imgui_ctx->vibrate_on_hover(); save_config = true;
}
imgui_ctx->vibrate_on_hover();
ImGui::BeginDisabled(!override_foveation_enable); ImGui::BeginDisabled(!override_foveation_enable);
ImGui::Text("%s", fmt::format(_F("Height {:.1f} deg"), -override_foveation_pitch * 180 / M_PI).c_str()); ImGui::Text("%s", fmt::format(_F("Height {:.1f} deg"), -override_foveation_pitch * 180 / M_PI).c_str());
ImGui::Text("%s", fmt::format(_F("Distance {:.2f} m"), override_foveation_distance).c_str()); ImGui::Text("%s", fmt::format(_F("Distance {:.2f} m"), override_foveation_distance).c_str());
if (ImGui::Button(_S("Default"))) if (ImGui::Button(_S("Default")))
{
override_foveation_distance = configuration{}.override_foveation_distance;
override_foveation_pitch = configuration{}.override_foveation_pitch;
send_packet = true;
save_config = true;
}
imgui_ctx->vibrate_on_hover();
ImGui::SameLine();
if (ImGui::Button(_S("Change")))
gui_status = gui_status::foveation_settings;
imgui_ctx->vibrate_on_hover();
ImGui::EndDisabled();
}
ImGui::Unindent();
if (send_packet)
{ {
override_foveation_distance = configuration{}.override_foveation_distance; network_session->send_control(from_headset::override_foveation_center{
override_foveation_pitch = configuration{}.override_foveation_pitch; .enabled = override_foveation_enable,
send_packet = true; .pitch = override_foveation_pitch,
save_config = true; .distance = override_foveation_distance,
});
} }
imgui_ctx->vibrate_on_hover();
ImGui::SameLine(); if (save_config)
{
if (ImGui::Button(_S("Change"))) auto & config = application::get_config();
next_gui_status = stream_tab::foveation_settings; config.override_foveation_enable = override_foveation_enable;
imgui_ctx->vibrate_on_hover(); config.override_foveation_pitch = override_foveation_pitch;
config.override_foveation_distance = override_foveation_distance;
ImGui::EndDisabled(); config.save();
} }
ImGui::Unindent();
if (send_packet)
{
network_session->send_control(from_headset::override_foveation_center{
.enabled = override_foveation_enable,
.pitch = override_foveation_pitch,
.distance = override_foveation_distance,
});
}
if (save_config)
{
auto & config = application::get_config();
config.override_foveation_enable = override_foveation_enable;
config.override_foveation_pitch = override_foveation_pitch;
config.override_foveation_distance = override_foveation_distance;
config.save();
} }
ImGui::PopStyleVar(); ImGui::PopStyleVar();
} }
@@ -600,7 +600,7 @@ void scenes::stream::gui_bitrate_settings(float predicted_display_period)
if (ok) if (ok)
{ {
config.save(); config.save();
next_gui_status = stream_tab::settings; gui_status = gui_status::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);
@@ -629,7 +629,7 @@ void scenes::stream::gui_foveation_settings(float predicted_display_period)
if (ok) if (ok)
{ {
next_gui_status = stream_tab::settings; gui_status = gui_status::settings;
// Save settings // Save settings
auto & config = application::get_config(); auto & config = application::get_config();
@@ -640,7 +640,7 @@ void scenes::stream::gui_foveation_settings(float predicted_display_period)
} }
else if (cancel) else if (cancel)
{ {
next_gui_status = stream_tab::settings; gui_status = gui_status::settings;
// Restore settings // Restore settings
const auto & config = application::get_config(); const auto & config = application::get_config();
@@ -729,26 +729,70 @@ void scenes::stream::gui_applications()
ImGui::PopStyleVar(3); ImGui::PopStyleVar(3);
} }
void scenes::stream::gui_toasts() // Return the vector v such that dot(v, x) > 0 iff x is on the side where the composition layer is visible
static glm::vec4 compute_ray_limits(const XrPosef & pose, float margin = 0)
{ {
auto toast = gui_toast.lock(); glm::quat q{
pose.orientation.w,
pose.orientation.x,
pose.orientation.y,
pose.orientation.z,
};
if (!toast->has_value()) glm::vec3 p{
{ pose.position.x,
ImGui::Text("%s", _S("Press both thumbsticks to display the WiVRn window")); pose.position.y,
return; pose.position.z,
} };
ImGui::Text("%s", (*toast)->content.c_str()); glm::vec3 normal = glm::column(glm::mat3_cast(q), 2);
return glm::vec4(normal, -glm::dot(p, normal) - margin);
} }
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 (auto new_status = next_gui_status.load(); new_status != gui_status) if (not(plots_toggle_1 and plots_toggle_2))
return;
bool interactable = true;
XrSpace world_space = application::space(xr::spaces::world);
auto views = session.locate_views(viewconfig, predicted_display_time, world_space).second;
switch (gui_status)
{ {
spdlog::info("Switch tab from {} to {}", magic_enum::enum_name(gui_status), magic_enum::enum_name(new_status)); case gui_status::hidden:
stored_gui_status = gui_status; case gui_status::bitrate_settings:
gui_status = new_status; case gui_status::foveation_settings:
case gui_status::overlay_only:
case gui_status::compact:
interactable = false;
break;
case gui_status::stats:
case gui_status::settings:
case gui_status::applications:
case gui_status::application_launcher:
break;
}
imgui_ctx->set_controllers_enabled(interactable);
if (interactable)
{
if (system.hand_tracking_supported())
{
left_hand = session.create_hand_tracker(XR_HAND_LEFT_EXT);
right_hand = session.create_hand_tracker(XR_HAND_RIGHT_EXT);
}
}
else
{
left_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; gui_status_last_change = predicted_display_time;
// Override session state if the GUI is interactable // Override session state if the GUI is interactable
@@ -760,64 +804,17 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
network_session->send_control(from_headset::session_state_changed{ network_session->send_control(from_headset::session_state_changed{
.state = XR_SESSION_STATE_VISIBLE, .state = XR_SESSION_STATE_VISIBLE,
}); });
network_session->send_control(from_headset::stream_tab_changed{.tab = new_status});
}
bool interactable = true;
XrSpace world_space = application::space(xr::spaces::world);
auto views = session.locate_views(viewconfig, predicted_display_time, world_space).second;
switch (gui_status)
{
case stream_tab::hidden:
case stream_tab::bitrate_settings:
case stream_tab::foveation_settings:
case stream_tab::overlay_only:
case stream_tab::compact:
interactable = false;
break;
case stream_tab::stats:
case stream_tab::settings:
case stream_tab::applications:
case stream_tab::application_launcher:
break;
}
imgui_ctx->set_controllers_enabled(interactable);
if (interactable)
{
if (system.hand_tracking_supported())
{
if (not left_hand)
left_hand = session.create_hand_tracker(XR_HAND_LEFT_EXT);
if (not right_hand)
right_hand = session.create_hand_tracker(XR_HAND_RIGHT_EXT);
}
}
else
{
left_hand.reset();
right_hand.reset();
} }
float alpha = 1; float alpha = 1;
bool is_urgent = false; if (gui_status == gui_status::hidden)
if (gui_status == stream_tab::hidden)
{ {
auto toast = gui_toast.lock();
if (toast->has_value())
is_urgent = (*toast)->is_urgent;
float t = (predicted_display_time - gui_status_last_change) * 1.e-9f; 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); alpha = std::clamp<float>(1 - (t - constants::stream::fade_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
@@ -827,24 +824,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 stream_tab::bitrate_settings: case gui_status::bitrate_settings:
case stream_tab::foveation_settings: case gui_status::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 stream_tab::hidden: case gui_status::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 stream_tab::overlay_only: case gui_status::overlay_only:
case stream_tab::compact: case gui_status::compact:
case stream_tab::stats: case gui_status::stats:
case stream_tab::settings: case gui_status::settings:
case stream_tab::applications: case gui_status::applications:
case stream_tab::application_launcher: case gui_status::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;
@@ -857,56 +854,49 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
const ImGuiStyle & style = ImGui::GetStyle(); const ImGuiStyle & style = ImGui::GetStyle();
imgui_ctx->new_frame(predicted_display_time); imgui_ctx->new_frame(predicted_display_time);
ImVec2 viewport_size(imgui_ctx->layers()[0].vp_size.x, imgui_ctx->layers()[0].vp_size.y); ImVec2 content_size{ImGui::GetMainViewport()->Size - ImVec2{tab_width, 0} - margin_around_window * 2};
ImVec2 content_size{viewport_size - ImVec2{tab_width, 0} - margin_around_window * 2};
ImVec2 content_center = margin_around_window + content_size / 2 + ImVec2{tab_width, 0}; ImVec2 content_center = margin_around_window + content_size / 2 + ImVec2{tab_width, 0};
bool display_tabs, always_auto_resize; bool display_tabs, always_auto_resize;
switch (gui_status) switch (gui_status)
{ {
case stream_tab::overlay_only: case gui_status::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 stream_tab::hidden: case gui_status::hidden:
case stream_tab::bitrate_settings: case gui_status::bitrate_settings:
case stream_tab::foveation_settings: case gui_status::foveation_settings:
ImGui::SetNextWindowPos(viewport_size / 2, ImGuiCond_Always, ImVec2(0.5f, 0.5f)); ImGui::SetNextWindowPos(ImGui::GetMainViewport()->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 stream_tab::compact: case gui_status::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 stream_tab::stats: case gui_status::stats:
case stream_tab::settings: case gui_status::settings:
case stream_tab::applications: case gui_status::applications:
ImGui::SetNextWindowPos(margin_around_window); ImGui::SetNextWindowPos(margin_around_window);
ImGui::SetNextWindowSize(viewport_size - margin_around_window * 2); ImGui::SetNextWindowSize(ImGui::GetMainViewport()->Size - margin_around_window * 2);
always_auto_resize = false; always_auto_resize = false;
display_tabs = true; display_tabs = true;
break; break;
case stream_tab::application_launcher: case gui_status::application_launcher:
ImGui::SetNextWindowPos(margin_around_window); ImGui::SetNextWindowPos(margin_around_window);
ImGui::SetNextWindowSize(viewport_size - margin_around_window * 2); ImGui::SetNextWindowSize(ImGui::GetMainViewport()->Size - margin_around_window * 2);
always_auto_resize = false; always_auto_resize = false;
display_tabs = false; display_tabs = false;
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)
{ {
@@ -919,64 +909,58 @@ 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 stream_tab::hidden: case gui_status::hidden:
gui_toasts(); ImGui::Text("%s", _S("Press both thumbsticks to display the WiVRn window"));
break; break;
case stream_tab::overlay_only: case gui_status::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 stream_tab::compact: case gui_status::compact:
gui_compact_view(); gui_compact_view();
break; break;
case stream_tab::stats: case gui_status::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 stream_tab::settings: case gui_status::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 stream_tab::bitrate_settings: case gui_status::bitrate_settings:
gui_bitrate_settings(predicted_display_period * 1.e-9f); gui_bitrate_settings(predicted_display_period * 1.e-9f);
break; break;
case stream_tab::foveation_settings: case gui_status::foveation_settings:
gui_foveation_settings(predicted_display_period * 1.e-9f); gui_foveation_settings(predicted_display_period * 1.e-9f);
break; break;
case stream_tab::applications: case gui_status::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 stream_tab::application_launcher: case gui_status::application_launcher:
if (apps.draw_gui(*imgui_ctx, _("Cancel")) != app_launcher::None) if (apps.draw_gui(*imgui_ctx, _("Cancel")) != app_launcher::None)
next_gui_status = stream_tab::applications; gui_status = gui_status::applications;
} }
ImGui::PopStyleVar(2); // ImGuiStyleVar_WindowPadding, ImGuiStyleVar_FrameRounding ImGui::PopStyleVar(2); // ImGuiStyleVar_WindowPadding, ImGuiStyleVar_FrameRounding
@@ -990,11 +974,10 @@ 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));
auto target = next_gui_status.load(); RadioButtonWithoutCheckBox(ICON_FA_LIST " " + _("Applications"), gui_status, gui_status::applications, {tab_width, 0});
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"), target, stream_tab::application_launcher, {tab_width, 0})) if (RadioButtonWithoutCheckBox(ICON_FA_ROCKET " " + _("Start"), gui_status, gui_status::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{
@@ -1005,22 +988,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"), target, stream_tab::settings, {tab_width, 0}); RadioButtonWithoutCheckBox(ICON_FA_GEARS " " + _("Settings"), gui_status, gui_status::settings, {tab_width, 0});
imgui_ctx->vibrate_on_hover(); imgui_ctx->vibrate_on_hover();
RadioButtonWithoutCheckBox(ICON_FA_COMPUTER " " + _("Stats"), target, stream_tab::stats, {tab_width, 0}); RadioButtonWithoutCheckBox(ICON_FA_COMPUTER " " + _("Stats"), gui_status, gui_status::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"), target, stream_tab::overlay_only, {tab_width, 0}); RadioButtonWithoutCheckBox(ICON_FA_CHART_LINE " " + _("Statistics overlay"), gui_status, gui_status::overlay_only, {tab_width, 0});
imgui_ctx->vibrate_on_hover(); imgui_ctx->vibrate_on_hover();
RadioButtonWithoutCheckBox(ICON_FA_MINIMIZE " " + _("Compact view"), target, stream_tab::compact, {tab_width, 0}); RadioButtonWithoutCheckBox(ICON_FA_MINIMIZE " " + _("Compact view"), gui_status, gui_status::compact, {tab_width, 0});
imgui_ctx->vibrate_on_hover(); imgui_ctx->vibrate_on_hover();
RadioButtonWithoutCheckBox(ICON_FA_XMARK " " + _("Close"), target, stream_tab::hidden, {tab_width, 0}); RadioButtonWithoutCheckBox(ICON_FA_XMARK " " + _("Close"), gui_status, gui_status::hidden, {tab_width, 0});
imgui_ctx->vibrate_on_hover(); imgui_ctx->vibrate_on_hover();
bool dummy = false; bool dummy = false;
@@ -1030,7 +1013,6 @@ 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
} }
@@ -1071,12 +1053,10 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
else else
recentering_context.reset(); recentering_context.reset();
std::vector<glm::mat4> world_to_window; std::vector<glm::vec4> ray_limits;
for (auto & window: imgui_ctx->windows())
{ for (auto [_, layer]: layers)
if (window.space == xr::spaces::world) ray_limits.push_back(compute_ray_limits(layer.pose));
world_to_window.push_back(glm::inverse(glm::translate(window.position) * glm::mat4(glm::mat3_cast(window.orientation)) * glm::scale(glm::vec3(window.size, 1))));
}
bool hide_left_controller = false; bool hide_left_controller = false;
bool hide_right_controller = false; bool hide_right_controller = false;
@@ -1100,7 +1080,7 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
hide_left_controller, hide_left_controller,
hide_right_controller, hide_right_controller,
hide_right_controller, hide_right_controller,
world_to_window); ray_limits);
// Add the layer with the controllers // Add the layer with the controllers
if (composition_layer_depth_test_supported) if (composition_layer_depth_test_supported)
+1 -28
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 (state_ != state::shutdown) while (not exiting)
{ {
try try
{ {
@@ -47,28 +47,6 @@ 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);
@@ -117,11 +95,6 @@ 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{
+9 -16
View File
@@ -84,7 +84,7 @@ from_headset::tracking::pose locate_space(device_id device, XrSpace space, XrSpa
.flags = cast_flags(location.locationFlags, velocity.velocityFlags), .flags = cast_flags(location.locationFlags, velocity.velocityFlags),
}; };
spdlog::warn("xrLocateSpace failed for {}: {}", magic_enum::enum_name(device), xr::to_string(res)); spdlog::warn("xrLocateSpace failed for {}: {}", magic_enum::enum_name(device), xr::to_string(res));
return {.device = device}; return {};
} }
class locate_spaces_functor class locate_spaces_functor
@@ -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 (state_ != state::shutdown) while (not exiting)
{ {
try try
{ {
@@ -622,13 +622,6 @@ void scenes::stream::tracking()
} }
network_session->send_stream(std::span(packets.data(), packet_count)); network_session->send_stream(std::span(packets.data(), packet_count));
XrTime old = scheduled_derived_pose;
if (old and now > old)
{
send_derived_pose();
scheduled_derived_pose.compare_exchange_strong(old, 0);
}
} }
catch (std::exception & e) catch (std::exception & e)
{ {
@@ -728,12 +721,6 @@ void scenes::stream::on_interaction_profile_changed(const XrEventDataInteraction
interaction_profiles[i] = interaction_profile::none; interaction_profiles[i] = interaction_profile::none;
} }
// Wait for runtime to know about the controllers before sending data
scheduled_derived_pose = instance.now() + 1'000'000'000;
}
void scenes::stream::send_derived_pose()
{
auto now = instance.now(); auto now = instance.now();
for (device_id target: { for (device_id target: {
device_id::LEFT_AIM, device_id::LEFT_AIM,
@@ -748,8 +735,14 @@ void scenes::stream::send_derived_pose()
{ {
// don't do derived poses for hand interaction // don't do derived poses for hand interaction
const bool right = (target >= device_id::RIGHT_GRIP && target <= device_id::RIGHT_PALM) || target == device_id::RIGHT_PINCH_POSE || target == device_id::RIGHT_POKE; const bool right = (target >= device_id::RIGHT_GRIP && target <= device_id::RIGHT_PALM) || target == device_id::RIGHT_PINCH_POSE || target == device_id::RIGHT_POKE;
if (interaction_profiles[right] == interaction_profile::ext_hand_interaction_ext) if (interaction_profiles[right].load() == interaction_profile::ext_hand_interaction_ext)
{
network_session->send_control(from_headset::derived_pose{
.source = target,
.target = target,
});
continue; continue;
}
auto source = derived_from(target); auto source = derived_from(target);
auto source_space = application::space(device_to_space(source)); auto source_space = application::space(device_to_space(source));
+2
View File
@@ -1,6 +1,7 @@
// kate: hl glsl // kate: hl glsl
const int nb_views = 2; const int nb_views = 2;
const int nb_clipping = 4;
const int nb_texcoords = 2; const int nb_texcoords = 2;
const bool use_pbr = false; const bool use_pbr = false;
@@ -19,6 +20,7 @@ layout(set = 0, binding = 1) uniform mesh_ubo
mat4 model; mat4 model;
mat4 modelview[nb_views]; mat4 modelview[nb_views];
mat4 modelviewproj[nb_views]; mat4 modelviewproj[nb_views];
vec4 clipping_plane[nb_clipping];
} mesh; } mesh;
layout(set = 0, binding = 2) uniform joints_ubo layout(set = 0, binding = 2) uniform joints_ubo
+2
View File
@@ -27,6 +27,7 @@ layout (constant_id = 2) const bool alpha_cutout = false;
layout (constant_id = 3) const bool skinning = false; layout (constant_id = 3) const bool skinning = false;
const int nb_views = 2; const int nb_views = 2;
const int nb_clipping = 4;
layout(set = 0, binding = 0) uniform scene_ubo layout(set = 0, binding = 0) uniform scene_ubo
{ {
@@ -41,6 +42,7 @@ layout(set = 0, binding = 1) uniform mesh_ubo
mat4 model; mat4 model;
mat4 modelview[nb_views]; mat4 modelview[nb_views];
mat4 modelviewproj[nb_views]; mat4 modelviewproj[nb_views];
vec4 clipping_plane[nb_clipping];
} mesh; } mesh;
layout(set = 0, binding = 2) uniform joints_ubo layout(set = 0, binding = 2) uniform joints_ubo
+6
View File
@@ -34,6 +34,7 @@ layout(location = 5) in vec4 in_color;
out gl_PerVertex out gl_PerVertex
{ {
vec4 gl_Position; vec4 gl_Position;
float gl_ClipDistance[nb_clipping];
}; };
void main() void main()
@@ -58,4 +59,9 @@ void main()
frag_pos = mesh.modelview[gl_ViewIndex] * vec4(in_position, 1.0); frag_pos = mesh.modelview[gl_ViewIndex] * vec4(in_position, 1.0);
light_pos = scene.view[gl_ViewIndex] * scene.light_position; light_pos = scene.view[gl_ViewIndex] * scene.light_position;
vertex_color = in_color; vertex_color = in_color;
for (int i = 0; i < nb_clipping; i++)
{
gl_ClipDistance[i] = dot(mesh.clipping_plane[i], mesh.model * vec4(in_position, 1.0));
}
} }
+10 -3
View File
@@ -36,6 +36,7 @@ layout(location = 7) in vec4 in_weights;
out gl_PerVertex out gl_PerVertex
{ {
vec4 gl_Position; vec4 gl_Position;
float gl_ClipDistance[nb_clipping];
}; };
void main() void main()
@@ -52,8 +53,8 @@ void main()
in_weights.z * joints.joint_matrices[int(in_joints.z)] + in_weights.z * joints.joint_matrices[int(in_joints.z)] +
in_weights.w * joints.joint_matrices[int(in_joints.w)]; in_weights.w * joints.joint_matrices[int(in_joints.w)];
// TODO on CPU?
mat3 mv = inverse(transpose(mat3(mesh.modelview[gl_ViewIndex] * skinMatrix))); mat3 mv = inverse(transpose(mat3(mesh.modelview[gl_ViewIndex])));
tangent = vec4(normalize(mv * in_tangent.xyz), in_tangent.w); tangent = vec4(normalize(mv * in_tangent.xyz), in_tangent.w);
if (any(isnan(tangent))) // avoid NaNs if no tangent data is provided if (any(isnan(tangent))) // avoid NaNs if no tangent data is provided
@@ -61,9 +62,15 @@ void main()
normal = normalize(mv * in_normal); normal = normalize(mv * in_normal);
normal = vec3(mesh.modelview[gl_ViewIndex] * skinMatrix * vec4(in_normal, 0.0));
gl_Position = mesh.modelviewproj[gl_ViewIndex] * skinMatrix * vec4(in_position, 1.0); gl_Position = mesh.modelviewproj[gl_ViewIndex] * skinMatrix * vec4(in_position, 1.0);
frag_pos = mesh.modelview[gl_ViewIndex] * skinMatrix * vec4(in_position, 1.0); frag_pos = mesh.modelview[gl_ViewIndex] * vec4(in_position, 1.0);
light_pos = scene.view[gl_ViewIndex] * scene.light_position; light_pos = scene.view[gl_ViewIndex] * scene.light_position;
vertex_color = in_color; vertex_color = in_color;
for(int i = 0; i < nb_clipping; i++)
{
gl_ClipDistance[i] = dot(mesh.clipping_plane[i], mesh.model * vec4(in_position, 1.0));
}
} }
-23
View File
@@ -1,23 +0,0 @@
/*
* WiVRn VR streaming
* Copyright (C) 2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#version 450
#extension GL_GOOGLE_include_directive : require
#include "ray_common.glsl.inc"
-25
View File
@@ -1,25 +0,0 @@
/*
* WiVRn VR streaming
* Copyright (C) 2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#version 450
#extension GL_EXT_multiview : require
#extension GL_GOOGLE_include_directive : require
#define SKINNED 0
#include "ray_common.glsl.inc"
-140
View File
@@ -1,140 +0,0 @@
// kate: hl glsl
/*
* WiVRn VR streaming
* Copyright (C) 2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
const int nb_views = 2;
const int nb_windows = 4;
layout(set = 0, binding = 1) uniform mesh_ubo
{
mat4 model;
mat4 modelview[nb_views];
mat4 modelviewproj[nb_views];
// Extra data
mat4 world_to_window[nb_windows];
float emissive_factor;
} mesh;
layout(set = 0, binding = 2) uniform joints_ubo
{
mat4 joint_matrices[32];
} joints;
layout(set = 0, binding = 6) uniform sampler2D emissive_texture;
#ifdef VERT_SHADER
// Vertex input
layout(location = 0) in vec3 in_position;
layout(location = 1) in vec2 in_texcoord;
#if SKINNED
layout(location = 2) in vec4 in_joints;
layout(location = 3) in vec4 in_weights;
#endif
#endif
#ifdef FRAG_SHADER
#define VS_TO_FS in
#else
#define VS_TO_FS out
#endif
// Vertex-to-fragment
layout(location = 0) VS_TO_FS vec2 texcoord;
#ifndef HTC_WORKAROUND
layout(location = 1) VS_TO_FS vec4 position_wrt_window[nb_windows];
layout(location = 1 + nb_windows) VS_TO_FS vec4 base_wrt_window[nb_windows];
#endif // HTC_WORKAROUND
#ifdef VERT_SHADER
out gl_PerVertex
{
vec4 gl_Position;
#ifdef HTC_WORKAROUND
float gl_ClipDistance[nb_windows];
#endif
};
void main()
{
texcoord = in_texcoord;
#if SKINNED
mat4 skinMatrix =
in_weights.x * joints.joint_matrices[int(in_joints.x)] +
in_weights.y * joints.joint_matrices[int(in_joints.y)] +
in_weights.z * joints.joint_matrices[int(in_joints.z)] +
in_weights.w * joints.joint_matrices[int(in_joints.w)];
gl_Position = mesh.modelviewproj[gl_ViewIndex] * skinMatrix * vec4(in_position, 1.0);
vec4 world_position = mesh.model * skinMatrix * vec4(in_position, 1.0);
vec4 base_position = mesh.model * skinMatrix * vec4(in_position.xy, 0.0, 1.0);
#else // SKINNED
gl_Position = mesh.modelviewproj[gl_ViewIndex] * vec4(in_position, 1.0);
vec4 world_position = mesh.model * vec4(in_position, 1.0);
vec4 base_position = mesh.model * vec4(in_position.xy, 0.0, 1.0);
#endif // SKINNED
for(uint i = 0; i < nb_windows; i++)
{
#ifdef HTC_WORKAROUND
vec4 tmp = mesh.world_to_window[i] * world_position;
gl_ClipDistance[i] = tmp.z;
#else // HTC_WORKAROUND
position_wrt_window[i] = mesh.world_to_window[i] * world_position;
base_wrt_window[i] = mesh.world_to_window[i] * base_position;
#endif // HTC_WORKAROUND
}
}
#endif // VERT_SHADER
#ifdef FRAG_SHADER
// Fragment output
layout(location = 0) out vec4 out_color;
void main()
{
#ifdef HTC_WORKAROUND
out_color = vec4(mesh.emissive_factor * texture(emissive_texture, texcoord).rgb, 1.0 / 255.0);
#else // HTC_WORKAROUND
for (uint i = 0; i < nb_windows; i++)
{
if (position_wrt_window[i].w < 0.5)
continue;
// TODO check NaN
float lambda = -base_wrt_window[i].z / (position_wrt_window[i].z - base_wrt_window[i].z);
if (lambda < 0 || lambda > 1)
continue;
vec2 intersection = base_wrt_window[i].xy + lambda * (position_wrt_window[i].xy - base_wrt_window[i].xy);
if (abs(intersection.x) < 0.5 && abs(intersection.y) < 0.5)
discard;
}
out_color = vec4(mesh.emissive_factor * texture(emissive_texture, texcoord).rgb, 0);
#endif // HTC_WORKAROUND
}
#endif // FRAG_SHADER
-25
View File
@@ -1,25 +0,0 @@
/*
* WiVRn VR streaming
* Copyright (C) 2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#version 450
#extension GL_GOOGLE_include_directive : require
#define HTC_WORKAROUND
#include "ray_common.glsl.inc"
-26
View File
@@ -1,26 +0,0 @@
/*
* WiVRn VR streaming
* Copyright (C) 2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#version 450
#extension GL_EXT_multiview : require
#extension GL_GOOGLE_include_directive : require
#define SKINNED 0
#define HTC_WORKAROUND
#include "ray_common.glsl.inc"
-25
View File
@@ -1,25 +0,0 @@
/*
* WiVRn VR streaming
* Copyright (C) 2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#version 450
#extension GL_EXT_multiview : require
#extension GL_GOOGLE_include_directive : require
#define SKINNED 1
#include "ray_common.glsl.inc"
-26
View File
@@ -1,26 +0,0 @@
/*
* WiVRn VR streaming
* Copyright (C) 2026 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#version 450
#extension GL_EXT_multiview : require
#extension GL_GOOGLE_include_directive : require
#define SKINNED 1
#define HTC_WORKAROUND
#include "ray_common.glsl.inc"
+6
View File
@@ -18,6 +18,7 @@
*/ */
#include "shader.h" #include "shader.h"
#include "utils/cache.h"
#include "wivrn_shaders.h" #include "wivrn_shaders.h"
#include <magic_enum.hpp> #include <magic_enum.hpp>
#include <spdlog/spdlog.h> #include <spdlog/spdlog.h>
@@ -103,3 +104,8 @@ std::shared_ptr<shader> shader_loader::operator()(const std::string & name)
return (*this)(shaders.at(name)); return (*this)(shaders.at(name));
} }
std::shared_ptr<shader> load_shader(vk::raii::Device & device, const std::string & name)
{
return shader_loader{device}(name);
}
+1 -4
View File
@@ -64,7 +64,4 @@ struct shader_loader
std::shared_ptr<shader> operator()(const std::string & name); std::shared_ptr<shader> operator()(const std::string & name);
}; };
inline std::shared_ptr<shader> load_shader(vk::raii::Device & device, const std::string & name) std::shared_ptr<shader> load_shader(vk::raii::Device & device, const std::string & name);
{
return shader_loader{device}(name);
}
+41
View File
@@ -0,0 +1,41 @@
/*
* 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
@@ -0,0 +1,57 @@
/*
* 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
+41 -5
View File
@@ -30,13 +30,16 @@ 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;
@@ -55,8 +58,14 @@ 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),
@@ -70,11 +79,29 @@ xr::swapchain::swapchain(
CHECK_XR(xrCreateSwapchain(s, &create_info, &id)); CHECK_XR(xrCreateSwapchain(s, &create_info, &id));
auto images = details::enumerate<XrSwapchainImageVulkanKHR>(xrEnumerateSwapchainImages, id); std::tuple<std::vector<XrSwapchainImageVulkanKHR>, std::vector<XrSwapchainImageFoveationVulkanFB>> array;
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_.reserve(images.size()); images_.resize(images.size());
for (auto & image: images) for (uint32_t i = 0; i < images.size(); i++)
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()
@@ -112,3 +139,12 @@ 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));
}
+16 -5
View File
@@ -35,13 +35,21 @@ 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<vk::Image> images_; std::vector<image> images_;
public: public:
swapchain() = default; swapchain() = default;
@@ -53,7 +61,8 @@ 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
{ {
@@ -71,13 +80,13 @@ public:
{ {
return sample_count_; return sample_count_;
} }
const std::vector<vk::Image> & images() const const std::vector<image> & images() const
{ {
return images_; return images_;
} }
vk::Image image(size_t i) const std::vector<image> & images()
{ {
return images_[i]; return images_;
} }
vk::Format format() const vk::Format format() const
{ {
@@ -87,5 +96,7 @@ 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 -8
View File
@@ -13,20 +13,13 @@ function(compile_glsl_aux shader_stage shader_name glsl_filename output target_e
}}, }},
") ")
if (WIVRN_DEBUG_SHADERS)
set(SHADER_FLAGS -gVS)
else()
set(SHADER_FLAGS )
endif()
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 ${glsl_filename} ${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 ${in_file} -o "${SPV_FILE}-nopt" --depfile "${SPV_FILE}.d"
DEPENDS "${glsl_filename}" DEPENDS "${glsl_filename}"
DEPFILE "${SPV_FILE}.d" DEPFILE "${SPV_FILE}.d"
VERBATIM VERBATIM
) )
if (WIVRN_OPTIMIZE_SHADERS) if (WIVRN_OPTIMIZE_SHADERS)
add_custom_command( add_custom_command(
OUTPUT "${SPV_FILE}-opt" OUTPUT "${SPV_FILE}-opt"
+1 -2
View File
@@ -1,6 +1,5 @@
function(add_file_to_target TARGET OUTPUT_FILE) function(add_file_to_target TARGET OUTPUT_FILE)
file(RELATIVE_PATH TARGET_SUFFIX "${CMAKE_SOURCE_DIR}" "${OUTPUT_FILE}") string(REPLACE "/" "_" TARGET_SUFFIX ${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})
+4 -3
View File
@@ -20,14 +20,15 @@ if (NOT GIT_COMMIT)
endif() endif()
if (NOT GIT_DESC) if (NOT GIT_DESC)
message(FATAL_ERROR "GIT_DESC cannot be inferred from .git and was not provided at build time") set(GIT_DESC v${CMAKE_PROJECT_VERSION})
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()
message(FATAL_ERROR "GIT_COMMIT cannot be inferred from .git and was not provided at build time") set(GIT_COMMIT "")
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})
+19 -14
View File
@@ -1,18 +1,30 @@
if (WIVRN_USE_SYSTEM_BOOST) if (WIVRN_USE_SYSTEM_BOOST)
add_library(Boost::pfr ALIAS Boost::headers) add_library(Boost::pfr ALIAS Boost::headers)
else() else()
set(BOOST_INCLUDE_LIBRARIES locale url pfr iostreams) set(BOOST_INCLUDE_LIBRARIES locale url pfr)
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_BINARY_DIR}/version.cpp ${CMAKE_CURRENT_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
@@ -28,17 +40,14 @@ add_library(wivrn-common STATIC EXCLUDE_FROM_ALL
if (WIVRN_BUILD_DASHBOARD OR WIVRN_BUILD_SERVER) if (WIVRN_BUILD_DASHBOARD OR WIVRN_BUILD_SERVER)
add_library(wivrn-common-server STATIC EXCLUDE_FROM_ALL add_library(wivrn-common-server STATIC EXCLUDE_FROM_ALL
application.cpp
utils/flatpak.cpp utils/flatpak.cpp
utils/xdg_icon_lookup.cpp
utils/steam_app_info.cpp
utils/load_icon.cpp utils/load_icon.cpp
utils/ini.cpp utils/ini.cpp
utils/steam_info.cpp application.cpp
utils/vdf.cpp
utils/xdg_icon_lookup.cpp
) )
target_link_libraries(wivrn-common-server target_link_libraries(wivrn-common-server PRIVATE nlohmann_json::nlohmann_json PNG::PNG PkgConfig::librsvg-2.0 LibArchive::LibArchive PUBLIC wivrn-common-base)
PRIVATE nlohmann_json::nlohmann_json PNG::PNG PkgConfig::librsvg-2.0 LibArchive::LibArchive Boost::iostreams
PUBLIC wivrn-common-base)
if (WIVRN_BUILD_TEST) if (WIVRN_BUILD_TEST)
add_executable(list-apps add_executable(list-apps
@@ -46,10 +55,6 @@ if (WIVRN_BUILD_DASHBOARD OR WIVRN_BUILD_SERVER)
) )
target_link_libraries(list-apps wivrn-common-server) target_link_libraries(list-apps wivrn-common-server)
add_executable(vdf utils/vdf.cpp)
target_compile_definitions(vdf PRIVATE WIVRN_BUILD_TEST)
target_link_libraries(vdf Boost::iostreams)
endif() endif()
endif() endif()
+167 -14
View File
@@ -20,12 +20,13 @@
#include "application.h" #include "application.h"
#include "utils/flatpak.h" #include "utils/flatpak.h"
#include "utils/steam_info.h" #include "utils/steam_app_info.h"
#include "utils/xdg_base_directory.h" #include "utils/xdg_base_directory.h"
#include "utils/xdg_icon_lookup.h" #include "utils/xdg_icon_lookup.h"
#include <filesystem> #include <filesystem>
#include <fstream> #include <fstream>
#include <iostream>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
namespace wivrn namespace wivrn
@@ -41,6 +42,168 @@ std::string read_file(const std::filesystem::path & path)
return {begin, end}; return {begin, end};
} }
std::filesystem::path home()
{
auto home = std::getenv("HOME");
return home ? home : "";
}
std::pair<std::string, std::optional<std::filesystem::path>> find_steam()
{
auto h = home();
// Flatpak Steam
if (std::filesystem::exists(h / ".var/app/com.valvesoftware.Steam/.steam/steam"))
return {"flatpak run com.valvesoftware.Steam", h / ".var/app/com.valvesoftware.Steam/.steam/steam"};
// Debian Steam (accessed from flatpak)
if (std::filesystem::exists(h / ".steam/debian-installation"))
return {"steam", h / ".steam/debian-installation"};
// system Steam
if (std::filesystem::exists(xdg_data_home() / "Steam"))
return {"steam", xdg_data_home() / "Steam"};
// system Steam (accessed from flatpak)
if (std::filesystem::exists(h / ".local/share/Steam"))
return {"steam", h / ".local/share/Steam"};
return {};
}
std::string read_vr_manifest(const std::filesystem::path & root)
{
return read_file(root / "config/steamapps.vrmanifest");
}
std::unordered_map<uint32_t, wivrn::steam_icon> safe_read_steam_icons(const std::filesystem::path & root)
{
try
{
return read_steam_icons(root / "appcache/appinfo.vdf");
}
catch (...)
{}
return {};
}
std::optional<std::filesystem::path> find_steam_icon(const std::filesystem::path & root, int app_id, const std::unordered_map<uint32_t, wivrn::steam_icon> & info)
{
auto icon = info.find(app_id);
if (icon == info.end())
return std::nullopt;
try
{
auto icon_path = root / "steam/games" / (icon->second.clienticon + ".ico");
if (std::filesystem::exists(icon_path))
return icon_path;
}
catch (...)
{
}
try
{
auto icon_path = root / "steam/games" / (icon->second.linuxclienticon + ".zip");
if (std::filesystem::exists(icon_path))
return icon_path;
}
catch (...)
{
}
return std::nullopt;
}
void read_steam_vr_apps(std::unordered_map<std::string, application> & res)
{
auto [command, root] = find_steam();
if (not root)
return;
auto manifest = read_vr_manifest(*root);
auto info = safe_read_steam_icons(*root);
if (manifest.empty())
return;
nlohmann::json json = nlohmann::json::parse(manifest);
for (auto & i: json["applications"])
{
try
{
application app;
if (i["launch_type"] == "url")
app.exec = command + " " + (std::string)i["url"];
else
continue;
std::string app_key = i["app_key"];
for (auto [locale, items]: i["strings"].items())
{
if (auto it = items.find("name"); it != items.end())
app.name[locale] = *it;
}
if (not app.name.contains(""))
{
auto it = app.name.find("en_us");
if (it == app.name.end())
it = app.name.begin();
if (it != app.name.end())
app.name[""] = it->second;
}
try
{
const char prefix[] = "steam.app.";
if (app_key.starts_with(prefix))
{
uint32_t app_id = stoll(app_key.substr(strlen(prefix)));
app.icon_path = find_steam_icon(*root, app_id, info);
}
}
catch (...)
{
}
if (not app.exec.empty())
res[app_key] = std::move(app);
}
catch (std::exception & e)
{
std::cerr << "Failed to parse Steam VR manifest: " << e.what() << std::endl;
}
}
for (auto const & entry: std::filesystem::directory_iterator{*root / "userdata"})
{
auto shortcuts_vdf = entry.path() / "config/shortcuts.vdf";
if (std::filesystem::exists(shortcuts_vdf))
{
try
{
for (auto && item: read_steam_shortcuts(shortcuts_vdf))
{
res[std::to_string(item.appid)] = {
.name = {{"", std::move(item.name)}},
// ¯\_(ツ)_/¯
.exec = command + " steam://rungameid/" + std::to_string((uint64_t(item.appid) << 32) + 0x2000000),
.icon_path = std::move(item.icon),
};
}
}
catch (std::exception & e)
{
std::cerr << "Failed to parse Steam shortcuts file " << shortcuts_vdf << ": " << e.what() << std::endl;
}
}
}
}
std::string unescape(std::string_view in) std::string unescape(std::string_view in)
{ {
std::string out; std::string out;
@@ -228,19 +391,9 @@ std::unordered_map<std::string, application> list_applications()
{ {
std::unordered_map<std::string, application> res; std::unordered_map<std::string, application> res;
for (auto & steam: steam::find_installations()) read_steam_vr_apps(res);
{
auto cmd = steam.get_steam_command() + " "; do_data_dir(xdg_data_home(), res);
for (auto && app: steam.list_applications())
{
res.emplace(std::to_string(app.appid),
application{
.name = std::move(app.name),
.exec = cmd + app.url,
.icon_path = steam.get_icon(app.appid),
});
}
}
for (auto && dir: xdg_data_dirs()) for (auto && dir: xdg_data_dirs())
do_data_dir(std::move(dir), res); do_data_dir(std::move(dir), res);
+274
View File
@@ -0,0 +1,274 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "steam_app_info.h"
#include <bit>
#include <cstring>
#include <fstream>
#include <iostream>
namespace
{
class binary_reader
{
std::ifstream in;
public:
binary_reader(std::ifstream && in) : in{std::move(in)} {}
void discard(size_t bytes)
{
in.seekg(bytes, std::ios_base::cur);
}
template <typename T>
T read();
template <typename T>
requires std::is_integral_v<T>
T read()
{
T res;
in.read((char *)&res, sizeof(T));
if (not in)
throw std::runtime_error{"File truncated"};
static_assert(std::endian::native == std::endian::big or std::endian::native == std::endian::little);
if constexpr (std::endian::native == std::endian::big)
return std::byteswap(res);
else
return res;
}
std::vector<std::string> string_table();
auto tellg()
{
return in.tellg();
}
void seekg(size_t pos)
{
in.seekg(pos);
}
};
template <>
std::string binary_reader::read()
{
std::string res;
std::getline(in, res, '\0');
if (not in)
throw std::runtime_error{"File truncated"};
return res;
}
std::vector<std::string> binary_reader::string_table()
{
std::vector<std::string> res;
size_t string_offset = read<uint64_t>();
auto pos = in.tellg();
in.seekg(string_offset);
auto count = read<uint32_t>();
res.reserve(count);
for (size_t i = 0; i < count; ++i)
res.emplace_back(read<std::string>());
in.seekg(pos);
return res;
}
template <typename T>
void read_dict(binary_reader & in, T & visitor, const std::vector<std::string> * string_table = nullptr)
{
while (true)
{
auto type = in.read<uint8_t>();
if (type == 8)
{
visitor.end_dict();
return;
}
// Key
const std::string & key = string_table ? string_table->at(in.read<uint32_t>()) : in.read<std::string>();
// Value
switch (type)
{
case 0: // Dictionary
visitor.begin_dict(key);
read_dict(in, visitor, string_table);
break;
case 1: // UTF-8 string
visitor.on_string(key, in.read<std::string>());
break;
case 2: // uint32_t
visitor.on_uint32_t(key, in.read<uint32_t>());
break;
// case 3: // float
default:
throw std::runtime_error{"Unknown object type " + std::to_string(type)};
}
}
}
} // namespace
std::unordered_map<uint32_t, wivrn::steam_icon> wivrn::read_steam_icons(std::filesystem::path path)
{
binary_reader in{std::ifstream{path}};
uint32_t magic = in.read<uint32_t>();
if ((magic & 0xff'ff'ff'00) != 0x07'56'44'00)
throw std::runtime_error{"Wrong magic number"};
auto universe = in.read<uint32_t>();
int version = magic & 0xff;
std::vector<std::string> string_table;
std::vector<std::string> * string_table_ptr = nullptr;
if (version >= 41)
{
string_table = in.string_table();
string_table_ptr = &string_table;
}
std::unordered_map<uint32_t, wivrn::steam_icon> res;
struct V
{
wivrn::steam_icon current{};
void begin_dict(const std::string & key)
{
}
void end_dict()
{
}
void on_string(const std::string & key, std::string && val)
{
if (strcasecmp(key.c_str(), "clienticon") == 0)
current.clienticon = std::move(val);
else if (strcasecmp(key.c_str(), "linuxclienticon") == 0)
current.linuxclienticon = std::move(val);
}
void on_uint32_t(const std::string & key, uint32_t val)
{
}
};
while (true)
{
// See https://github.com/SteamDatabase/SteamAppInfo/blob/master/README.md#app-entry-repeated
auto app_id = in.read<uint32_t>();
if (app_id == 0)
break;
size_t size_data = in.read<uint32_t>();
size_t pos = in.tellg();
in.discard(
4 // info_state
+ 4 // last_updated
+ 8 // pics_token
+ 20 // SHA1 of the app info
+ 4 // change number
+ 20 // SHA1 of the bin data
+ 4 // checksum
+ 1 // type
);
try
{
V v;
read_dict(in, v, string_table_ptr);
if (not(v.current.clienticon.empty() and v.current.linuxclienticon.empty()))
res.emplace(app_id, std::move(v.current));
}
catch (...)
{
// Ignore errors
}
in.seekg(pos + size_data);
}
return res;
}
std::vector<wivrn::steam_shortcut> wivrn::read_steam_shortcuts(std::filesystem::path path)
{
binary_reader in{std::ifstream{path}};
auto type = in.read<uint8_t>();
auto name = in.read<std::string>();
if (type != 0 or name != "shortcuts")
throw std::runtime_error{"Invalid type for shortcuts file"};
std::vector<wivrn::steam_shortcut> res;
struct V
{
std::vector<wivrn::steam_shortcut> & items;
int depth = 0;
wivrn::steam_shortcut current{};
bool VR = false;
void begin_dict(const std::string & key)
{
++depth;
if (depth == 1)
{
current = decltype(current){};
VR = false;
}
}
void end_dict()
{
--depth;
if (depth == 0)
{
if (VR)
items.push_back(std::move(current));
}
}
void on_string(const std::string & key, std::string && val)
{
if (depth == 1)
{
if (strcasecmp(key.c_str(), "AppName") == 0)
current.name = std::move(val);
else if (strcasecmp(key.c_str(), "icon") == 0 and not val.empty())
current.icon = std::move(val);
}
}
void on_uint32_t(const std::string & key, uint32_t val)
{
if (depth == 1)
{
if (strcasecmp(key.c_str(), "appid") == 0)
current.appid = val;
else if (strcasecmp(key.c_str(), "OpenVR") == 0)
VR = val;
}
}
} v{res};
read_dict(in, v);
return res;
}
@@ -1,6 +1,6 @@
/* /*
* WiVRn VR streaming * WiVRn VR streaming
* Copyright (C) 2026 Patrick Nicolas <patricknicolas@laposte.net> * Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@@ -18,37 +18,28 @@
#pragma once #pragma once
#include <any>
#include <filesystem> #include <filesystem>
#include <string_view> #include <optional>
#include <variant> #include <unordered_map>
#include <vector> #include <vector>
namespace wivrn namespace wivrn
{ {
namespace vdf struct steam_icon
{ {
struct string std::string clienticon;
{ std::string linuxclienticon;
std::string_view data;
bool operator==(const char *) const;
}; };
struct keyvalue struct steam_shortcut
{ {
string key; uint32_t appid;
std::variant<string, std::vector<keyvalue>> value; std::string name;
std::optional<std::filesystem::path> icon;
}; };
struct root : public keyvalue std::unordered_map<uint32_t, steam_icon> read_steam_icons(std::filesystem::path path);
{ std::vector<steam_shortcut> read_steam_shortcuts(std::filesystem::path path);
root(const std::filesystem::path &);
private:
std::any opaque;
};
} // namespace vdf
} // namespace wivrn } // namespace wivrn
-495
View File
@@ -1,495 +0,0 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
* 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/>.
*/
#include "steam_info.h"
#include "vdf.h"
#include "xdg_base_directory.h"
#include <bit>
#include <charconv>
#include <cstring>
#include <format>
#include <fstream>
#include <iostream>
#include <nlohmann/json.hpp>
namespace
{
class binary_reader
{
std::ifstream in;
public:
binary_reader(std::ifstream && in) : in{std::move(in)} {}
void discard(size_t bytes)
{
in.seekg(bytes, std::ios_base::cur);
}
template <typename T>
T read();
template <typename T>
requires std::is_integral_v<T>
T read()
{
T res;
in.read((char *)&res, sizeof(T));
if (not in)
throw std::runtime_error{"File truncated"};
static_assert(std::endian::native == std::endian::big or std::endian::native == std::endian::little);
if constexpr (std::endian::native == std::endian::big)
return std::byteswap(res);
else
return res;
}
std::vector<std::string> string_table();
auto tellg()
{
return in.tellg();
}
void seekg(size_t pos)
{
in.seekg(pos);
}
};
template <>
std::string binary_reader::read()
{
std::string res;
std::getline(in, res, '\0');
if (not in)
throw std::runtime_error{"File truncated"};
return res;
}
std::vector<std::string> binary_reader::string_table()
{
std::vector<std::string> res;
size_t string_offset = read<uint64_t>();
auto pos = in.tellg();
in.seekg(string_offset);
auto count = read<uint32_t>();
res.reserve(count);
for (size_t i = 0; i < count; ++i)
res.emplace_back(read<std::string>());
in.seekg(pos);
return res;
}
template <typename T>
void read_dict(binary_reader & in, T & visitor, const std::vector<std::string> * string_table = nullptr)
{
while (true)
{
auto type = in.read<uint8_t>();
if (type == 8)
{
visitor.end_dict();
return;
}
// Key
const std::string & key = string_table ? string_table->at(in.read<uint32_t>()) : in.read<std::string>();
// Value
switch (type)
{
case 0: // Dictionary
visitor.begin_dict(key);
read_dict(in, visitor, string_table);
break;
case 1: // UTF-8 string
visitor.on_string(key, in.read<std::string>());
break;
case 2: // uint32_t
visitor.on_uint32_t(key, in.read<uint32_t>());
break;
// case 3: // float
default:
throw std::runtime_error{"Unknown object type " + std::to_string(type)};
}
}
}
std::filesystem::path home()
{
auto home = std::getenv("HOME");
return home ? home : "";
}
std::optional<uint32_t> guess_steam_userid(const std::filesystem::path & root)
{
auto localconfig = root / "config/loginusers.vdf";
if (not std::filesystem::exists(localconfig))
return {};
try
{
wivrn::vdf::root loginusers(localconfig);
if (loginusers.key != "users")
return {};
std::optional<uint32_t> res;
for (const auto & [userid, entries]: std::get<std::vector<wivrn::vdf::keyvalue>>(loginusers.value))
{
uint64_t v;
if (std::from_chars(userid.data.begin(), userid.data.end(), v).ec != std::errc{})
continue;
res = v; // truncate to 32 bits
for (const auto & [key, value]: std::get<std::vector<wivrn::vdf::keyvalue>>(entries))
{
if (key == "MostRecent" and std::get<wivrn::vdf::string>(value) == "1")
return res;
}
}
return res;
}
catch (std::exception & e)
{
return {};
}
}
} // namespace
void read_steam_icons(std::filesystem::path path, std::unordered_map<uint32_t, wivrn::steam::icon> & icons)
{
binary_reader in{std::ifstream{path}};
uint32_t magic = in.read<uint32_t>();
if ((magic & 0xff'ff'ff'00) != 0x07'56'44'00)
throw std::runtime_error{"Wrong magic number"};
auto universe = in.read<uint32_t>();
int version = magic & 0xff;
std::vector<std::string> string_table;
std::vector<std::string> * string_table_ptr = nullptr;
if (version >= 41)
{
string_table = in.string_table();
string_table_ptr = &string_table;
}
struct V
{
wivrn::steam::icon current{};
void begin_dict(const std::string & key)
{
}
void end_dict()
{
}
void on_string(const std::string & key, std::string && val)
{
if (strcasecmp(key.c_str(), "clienticon") == 0)
current.clienticon = std::move(val);
else if (strcasecmp(key.c_str(), "linuxclienticon") == 0)
current.linuxclienticon = std::move(val);
}
void on_uint32_t(const std::string & key, uint32_t val)
{
}
};
while (true)
{
// See https://github.com/SteamDatabase/SteamAppInfo/blob/master/README.md#app-entry-repeated
auto app_id = in.read<uint32_t>();
if (app_id == 0)
break;
size_t size_data = in.read<uint32_t>();
size_t pos = in.tellg();
in.discard(
4 // info_state
+ 4 // last_updated
+ 8 // pics_token
+ 20 // SHA1 of the app info
+ 4 // change number
+ 20 // SHA1 of the bin data
+ 4 // checksum
+ 1 // type
);
try
{
V v;
read_dict(in, v, string_table_ptr);
if (not(v.current.clienticon.empty() and v.current.linuxclienticon.empty()))
icons.emplace(app_id, std::move(v.current));
}
catch (...)
{
// Ignore errors
}
in.seekg(pos + size_data);
}
}
void read_steam_shortcuts(
const std::filesystem::path & path,
std::vector<wivrn::steam::application> & apps,
std::unordered_map<uint32_t, std::filesystem::path> & icons)
{
if (not std::filesystem::exists(path))
return;
binary_reader in{std::ifstream{path}};
auto type = in.read<uint8_t>();
auto name = in.read<std::string>();
if (type != 0 or name != "shortcuts")
throw std::runtime_error{"Invalid type for shortcuts file"};
std::vector<wivrn::steam_shortcut> res;
struct V
{
std::vector<wivrn::steam::application> & apps;
std::unordered_map<uint32_t, std::filesystem::path> & icons;
int depth = 0;
wivrn::steam::application current{};
std::filesystem::path icon;
bool VR = false;
void begin_dict(const std::string & key)
{
++depth;
if (depth == 1)
{
current = decltype(current){};
icon.clear();
VR = false;
}
}
void end_dict()
{
--depth;
if (depth == 0)
{
if (VR)
{
if (not icon.empty())
icons[current.appid] = std::move(icon);
// ¯\_(ツ)_/¯
current.appid = (current.appid << 32) | 0x02000000;
current.url = std::format("steam://rungameid/{}", current.appid);
apps.push_back(std::move(current));
}
}
}
void on_string(const std::string & key, std::string && val)
{
if (depth == 1)
{
if (strcasecmp(key.c_str(), "AppName") == 0)
current.name[""] = std::move(val);
else if (strcasecmp(key.c_str(), "icon") == 0 and not val.empty())
icon = std::move(val);
}
}
void on_uint32_t(const std::string & key, uint32_t val)
{
if (depth == 1)
{
if (strcasecmp(key.c_str(), "appid") == 0)
current.appid = val;
else if (strcasecmp(key.c_str(), "OpenVR") == 0)
VR = val;
}
}
} v{apps, icons};
read_dict(in, v);
}
wivrn::steam::steam(std::filesystem::path root, bool flatpak) :
root(std::move(root)),
flatpak(flatpak),
default_userid(guess_steam_userid(this->root))
{
}
std::vector<wivrn::steam> wivrn::steam::find_installations()
{
std::vector<wivrn::steam> res;
auto h = home();
auto try_construct = [&res](std::filesystem::path root, bool flatpak = false) {
try
{
if (std::filesystem::exists(root))
{
res.push_back(wivrn::steam(std::move(root), flatpak));
return true;
}
}
catch (std::exception &)
{
}
return false;
};
// Flatpak Steam
try_construct(h / ".var/app/com.valvesoftware.Steam/.steam/steam", true);
// Debian Steam (accessed from flatpak)
try_construct(h / ".steam/debian-installation")
// system Steam
or try_construct(xdg_data_home() / "Steam")
// system Steam (accessed from flatpak)
or try_construct(h / ".local/share/Steam");
return res;
}
std::vector<wivrn::steam::application> wivrn::steam::list_applications()
{
std::vector<wivrn::steam::application> res;
// Steam games, from VR manifest
try
{
std::ifstream manifest(root / "config/steamapps.vrmanifest");
nlohmann::json json = nlohmann::json::parse(manifest);
for (auto & i: json["applications"])
{
try
{
// Steam games have an url launch
// shortcuts may be in this file, or may not...
if (i["launch_type"] != "url")
continue;
std::string app_key = i["app_key"];
const char prefix[] = "steam.app.";
if (not app_key.starts_with(prefix))
continue;
application app{
.appid = stoul(app_key.substr(strlen(prefix))),
.url = i["url"],
};
for (auto [locale, items]: i["strings"].items())
{
if (auto it = items.find("name"); it != items.end())
app.name[locale] = *it;
}
if (not app.name.contains(""))
{
auto it = app.name.find("en_us");
if (it == app.name.end())
it = app.name.begin();
if (it != app.name.end())
app.name[""] = it->second;
else
continue; // skip unnamed app
}
res.push_back(std::move(app));
}
catch (std::exception & e)
{
std::cerr << "Failed to parse Steam VR manifest: " << e.what() << std::endl;
}
}
}
catch (std::exception & e)
{
}
// Shortcuts
if (default_userid)
{
try
{
read_steam_shortcuts(root / "userdata" / std::to_string(*default_userid) / "config/shortcuts.vdf", res, shortcut_icons);
}
catch (std::exception & e)
{
}
}
else
{
// Is it a good idea to just iterate over all users?
for (auto const & entry: std::filesystem::directory_iterator{root / "userdata"})
try
{
read_steam_shortcuts(entry.path() / "config/shortcuts.vdf", res, shortcut_icons);
}
catch (std::exception & e)
{
}
}
return res;
}
std::optional<std::filesystem::path> wivrn::steam::get_icon(uint64_t appid)
{
if (appid & 0x02000000)
{
// Shortcut
auto it = shortcut_icons.find(appid >> 32);
if (it != shortcut_icons.end())
return it->second;
return {};
}
if (not icons)
{
icons.emplace();
try
{
read_steam_icons(root / "appcache/appinfo.vdf", *icons);
}
catch (...)
{}
}
auto it = icons->find(appid);
if (it == icons->end())
return {};
auto icon_path = root / "steam/games" / (it->second.clienticon + ".ico");
if (std::filesystem::exists(icon_path))
return icon_path;
icon_path = root / "steam/games" / (it->second.linuxclienticon + ".zip");
if (std::filesystem::exists(icon_path))
return icon_path;
return {};
}
std::string wivrn::steam::get_steam_command() const
{
if (flatpak)
return "flatpak run com.valvesoftware.Steam";
return "steam";
}
-69
View File
@@ -1,69 +0,0 @@
/*
* WiVRn VR streaming
* Copyright (C) 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#pragma once
#include <filesystem>
#include <optional>
#include <unordered_map>
#include <vector>
namespace wivrn
{
class steam
{
public:
struct application
{
uint64_t appid;
// localised names, with empty locale for default
std::unordered_map<std::string, std::string> name;
std::string url;
};
struct icon
{
std::string clienticon;
std::string linuxclienticon;
};
private:
std::filesystem::path root;
bool flatpak;
std::optional<uint32_t> default_userid;
std::optional<std::unordered_map<uint32_t, icon>> icons;
std::unordered_map<uint32_t, std::filesystem::path> shortcut_icons;
steam(std::filesystem::path root, bool flatpak);
public:
static std::vector<steam> find_installations();
std::vector<application> list_applications();
std::optional<std::filesystem::path> get_icon(uint64_t app_id);
std::string get_steam_command() const;
};
struct steam_shortcut
{
uint32_t appid;
std::string name;
std::optional<std::filesystem::path> icon;
};
} // namespace wivrn
-191
View File
@@ -1,191 +0,0 @@
/*
* 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/>.
*/
#include "vdf.h"
#include <boost/iostreams/device/mapped_file.hpp>
#include <iostream>
namespace
{
void consume_whitespace(const char *& pos, const char * end)
{
for (; pos != end; ++pos)
{
if (not std::isspace(*pos))
return;
}
throw std::runtime_error("malformed VDF file");
}
wivrn::vdf::string read_string(const char *& pos, const char * end)
{
consume_whitespace(pos, end);
const bool quoted = *pos == '"';
if (quoted)
++pos;
const char * begin = pos;
for (; pos != end; ++pos)
{
if (*pos == '\\')
{
++pos;
if (pos == end)
break;
continue;
}
if (quoted)
{
if (*pos == '"')
return {std::string_view(begin, pos++)};
}
else
{
if (std::isspace(*pos) or *pos == '{' or *pos == '}')
return {std::string_view(begin, pos)};
}
}
throw std::runtime_error("malformed string in VDF file");
}
std::variant<wivrn::vdf::string, std::vector<wivrn::vdf::keyvalue>> read_value(const char *& pos, const char * end);
wivrn::vdf::keyvalue read_key_value(const char *& pos, const char * end)
{
return wivrn::vdf::keyvalue{
.key = read_string(pos, end),
.value = read_value(pos, end),
};
}
std::vector<wivrn::vdf::keyvalue> read_dict(const char *& pos, const char * end)
{
consume_whitespace(pos, end);
if (*pos != '{')
throw std::runtime_error("malformed VDF file");
++pos;
std::vector<wivrn::vdf::keyvalue> res;
while (true)
{
consume_whitespace(pos, end);
if (*pos == '}')
{
++pos;
return res;
}
res.push_back(read_key_value(pos, end));
}
throw std::runtime_error("malformed dict in VDF file");
}
std::variant<wivrn::vdf::string, std::vector<wivrn::vdf::keyvalue>> read_value(const char *& pos, const char * end)
{
consume_whitespace(pos, end);
if (*pos == '{')
return read_dict(pos, end);
else
return read_string(pos, end);
}
} // namespace
bool wivrn::vdf::string::operator==(const char * b) const
{
const char * a = data.begin();
for (; a != data.end(); ++a, ++b)
{
if (*b == '\0')
return false;
if (*a == '\\')
{
++a;
// This should be taken care of by the parser
assert(a != data.end());
}
if (std::tolower(*b) != std::tolower(*a))
return false;
}
return *b == '\0';
}
wivrn::vdf::root::root(const std::filesystem::path & file)
{
boost::iostreams::mapped_file in{file};
opaque = in;
const char * pos = in.begin();
key = read_string(pos, in.end());
value = read_value(pos, in.end());
}
void dump(const wivrn::vdf::keyvalue & kv, int depth)
{
for (int i = 0; i < depth; ++i)
std::cout << '\t';
std::cout << '"' << kv.key.data << "\": ";
struct V
{
int depth;
void operator()(const wivrn::vdf::string & s)
{
std::cout << '"' << s.data << '"';
}
void operator()(const std::vector<wivrn::vdf::keyvalue> & kv)
{
std::cout << '{' << std::endl;
for (const auto & i: kv)
{
dump(i, depth + 1);
if (&i != &kv.back())
std::cout << ',';
std::cout << std::endl;
}
for (int i = 0; i < depth; ++i)
std::cout << '\t';
std::cout << "}";
}
};
std::visit(V{depth}, kv.value);
}
#ifdef WIVRN_BUILD_TEST
void dump(const wivrn::vdf::root & kv)
{
std::cout << '{';
dump(kv, 0);
std::cout << '}';
}
int main(int argc, char ** argv)
{
for (int i = 1; i < argc; ++i)
{
wivrn::vdf::root doc{argv[i]};
dump(doc);
}
}
#endif
+2 -4
View File
@@ -45,7 +45,7 @@ std::filesystem::path xdg_cache_home()
std::filesystem::path xdg_data_home() std::filesystem::path xdg_data_home()
{ {
if (const char * xdg_data_home = std::getenv("XDG_DATA_HOME"); xdg_data_home and *xdg_data_home) if (const char * xdg_data_home = std::getenv("XDG_DATA_HOME"))
return xdg_data_home; return xdg_data_home;
if (const char * home = std::getenv("HOME")) if (const char * home = std::getenv("HOME"))
@@ -71,11 +71,9 @@ std::vector<std::filesystem::path> xdg_config_dirs()
return paths; return paths;
} }
std::vector<std::filesystem::path> xdg_data_dirs(bool include_data_home) std::vector<std::filesystem::path> xdg_data_dirs()
{ {
std::vector<std::filesystem::path> paths; std::vector<std::filesystem::path> paths;
if (include_data_home)
paths.push_back(xdg_data_home());
if (const char * xdg_config_dirs = std::getenv("XDG_DATA_DIRS")) if (const char * xdg_config_dirs = std::getenv("XDG_DATA_DIRS"))
{ {
+1 -1
View File
@@ -26,4 +26,4 @@ std::filesystem::path xdg_config_home();
std::filesystem::path xdg_cache_home(); std::filesystem::path xdg_cache_home();
std::filesystem::path xdg_data_home(); std::filesystem::path xdg_data_home();
std::vector<std::filesystem::path> xdg_config_dirs(); std::vector<std::filesystem::path> xdg_config_dirs();
std::vector<std::filesystem::path> xdg_data_dirs(bool include_data_home = true); std::vector<std::filesystem::path> xdg_data_dirs();
+38 -63
View File
@@ -25,7 +25,6 @@
#include <algorithm> #include <algorithm>
#include <filesystem> #include <filesystem>
#include <format>
#include <fstream> #include <fstream>
#include <limits> #include <limits>
#include <optional> #include <optional>
@@ -108,75 +107,51 @@ void find_icon_theme_dirs_helper(const std::vector<std::filesystem::path> & base
const auto theme_dir = base_dir / "icons" / theme; const auto theme_dir = base_dir / "icons" / theme;
const auto index_theme = theme_dir / "index.theme"; const auto index_theme = theme_dir / "index.theme";
if (std::filesystem::exists(index_theme)) if (not std::filesystem::exists(index_theme))
continue;
try
{ {
try std::ifstream file{index_theme};
wivrn::ini index{file};
for (const auto & inherited_theme: utils::split(index.get<std::string>("Icon Theme", "Inherits", ""), ","))
{ {
std::ifstream file{index_theme}; if (inherited_theme != "" and not std::ranges::contains(themes, inherited_theme))
wivrn::ini index{file}; themes.push_back(inherited_theme);
for (const auto & inherited_theme: utils::split(index.get<std::string>("Icon Theme", "Inherits", ""), ","))
{
if (inherited_theme != "" and not std::ranges::contains(themes, inherited_theme))
themes.push_back(inherited_theme);
}
for (auto directory: utils::split(index.get<std::string>("Icon Theme", "Directories", ""), ","))
{
int size = index.get<int>(directory, "Size");
int scale = index.get<int>(directory, "Scale", 1);
int min_size = index.get<int>(directory, "MinSize", size);
int max_size = index.get<int>(directory, "MaxSize", size);
int threshold = index.get<int>(directory, "Threshold", 2);
std::string type_str = index.get<std::string>(directory, "Type", "Threshold");
icon_theme_type type = icon_theme_type::threshold;
if (type_str == "Fixed")
type = icon_theme_type::fixed;
else if (type_str == "Scalable")
type = icon_theme_type::scalable;
else if (type_str == "Threshold")
type = icon_theme_type::threshold;
dirs.push_back(icon_theme_dir{
.path = theme_dir / directory,
.size = size,
.scale = scale,
.type = type,
.min_size = min_size,
.max_size = max_size,
.threshold = threshold,
});
}
} }
catch (std::exception & e)
for (auto directory: utils::split(index.get<std::string>("Icon Theme", "Directories", ""), ","))
{ {
int size = index.get<int>(directory, "Size");
int scale = index.get<int>(directory, "Scale", 1);
int min_size = index.get<int>(directory, "MinSize", size);
int max_size = index.get<int>(directory, "MaxSize", size);
int threshold = index.get<int>(directory, "Threshold", 2);
std::string type_str = index.get<std::string>(directory, "Type", "Threshold");
icon_theme_type type = icon_theme_type::threshold;
if (type_str == "Fixed")
type = icon_theme_type::fixed;
else if (type_str == "Scalable")
type = icon_theme_type::scalable;
else if (type_str == "Threshold")
type = icon_theme_type::threshold;
dirs.push_back(icon_theme_dir{
.path = theme_dir / directory,
.size = size,
.scale = scale,
.type = type,
.min_size = min_size,
.max_size = max_size,
.threshold = threshold,
});
} }
} }
else if (theme == "hicolor") catch (std::exception & e)
{ {
// FIXME: full theme support
for (int size: {256})
dirs.push_back(icon_theme_dir{
.path = theme_dir / std::format("{}x{}/apps", size, size),
.size = size,
.scale = 1,
.type = icon_theme_type::threshold,
.min_size = size,
.max_size = size,
.threshold = 2,
});
dirs.push_back(icon_theme_dir{
.path = theme_dir / "scalable/apps",
.size = 128,
.scale = 1,
.type = icon_theme_type::scalable,
.min_size = 1,
.max_size = 256,
.threshold = 2,
});
} }
} }
} }
-44
View File
@@ -173,19 +173,6 @@ 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;
@@ -525,11 +512,6 @@ 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;
@@ -583,7 +565,6 @@ 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,
@@ -627,22 +608,6 @@ 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,
@@ -678,8 +643,6 @@ 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
@@ -767,11 +730,6 @@ 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;
@@ -808,7 +766,6 @@ 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,
@@ -818,7 +775,6 @@ 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,10 +7,6 @@ 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
@@ -28,7 +28,7 @@
<li>Samsung Galaxy XR</li> <li>Samsung Galaxy XR</li>
</ul> </ul>
<p>For desktop streaming, check out WayVR.</p> <p>For desktop streaming, check out wlx-overlay-s.</p>
</description> </description>
<developer id="io.github.wivrn.wivrn"> <developer id="io.github.wivrn.wivrn">
<name>Guillaume Meunier, Patrick Nicolas et al</name> <name>Guillaume Meunier, Patrick Nicolas et al</name>
+1 -9
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 && Settings.port == Settings.default_port visible: DashboardSettings.show_system_checks && Firewall.needSetup
actions: [ actions: [
Kirigami.Action { Kirigami.Action {
text: i18n("Fix it") text: i18n("Fix it")
@@ -188,14 +188,6 @@ Kirigami.ApplicationWindow {
] ]
} }
Kirigami.InlineMessage {
Layout.fillWidth: true
text: Settings.flatpak ? i18n("Vulkan drivers cannot be found, you may need to run \"flatpak update\"") : i18n("Vulkan drivers cannot be found")
type: Kirigami.MessageType.Warning
showCloseButton: true
visible: DashboardSettings.show_system_checks && (VulkanInfo.type == VulkanInfo.SoftGPU || VulkanInfo.type == VulkanInfo.NoGPU)
}
Kirigami.InlineMessage { Kirigami.InlineMessage {
Layout.fillWidth: true Layout.fillWidth: true
text: i18n("Use the Mesa (radv) driver for AMD GPUs\nHardware encoding with vaapi does not work with AMDVLK and AMDGPU-PRO") text: i18n("Use the Mesa (radv) driver for AMD GPUs\nHardware encoding with vaapi does not work with AMDVLK and AMDGPU-PRO")
+20 -3
View File
@@ -7,6 +7,8 @@ import io.github.wivrn.wivrn
ColumnLayout { ColumnLayout {
id: select_game id: select_game
property bool json_loaded: false
Component.onCompleted: { Component.onCompleted: {
apps.append({ apps.append({
"name": i18nc("don't start an application automatically", "None"), "name": i18nc("don't start an application automatically", "None"),
@@ -73,8 +75,13 @@ ColumnLayout {
} }
} }
function reload() {
select_game.json_loaded = false;
load();
}
function load() { function load() {
if (WivrnServer.jsonConfiguration == "") if (select_game.json_loaded || WivrnServer.serverStatus != WivrnServer.Started || WivrnServer.jsonConfiguration == "")
return; return;
Settings.load(WivrnServer); Settings.load(WivrnServer);
@@ -96,12 +103,22 @@ ColumnLayout {
app_text.text = Settings.application; app_text.text = Settings.application;
app_combobox.currentIndex = custom_idx; app_combobox.currentIndex = custom_idx;
} }
select_game.json_loaded = true;
} }
function save() { function save() {
var new_application;
if (apps.get(app_combobox.currentIndex).is_custom) if (apps.get(app_combobox.currentIndex).is_custom)
Settings.application = app_text.text; new_application = app_text.text;
else else
Settings.application = apps.get(app_combobox.currentIndex).command; new_application = apps.get(app_combobox.currentIndex).command;
Settings.load(WivrnServer);
if (Settings.application != new_application) {
Settings.application = new_application;
Settings.save(WivrnServer);
}
} }
} }
+1 -45
View File
@@ -21,7 +21,6 @@
#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>
@@ -122,8 +121,6 @@ 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)
@@ -432,40 +429,6 @@ 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
@@ -489,7 +452,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)
openvrChanged(); tcpOnlyChanged();
} }
QList<Settings::video_codec> Settings::allowedCodecs() const QList<Settings::video_codec> Settings::allowedCodecs() const
@@ -541,8 +504,6 @@ 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();
} }
@@ -551,11 +512,6 @@ 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,8 +68,6 @@ 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)
@@ -78,7 +76,6 @@ 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)
@@ -92,8 +89,6 @@ 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();
@@ -112,7 +107,6 @@ 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;
+6 -34
View File
@@ -24,40 +24,14 @@
vulkan_info::vulkan_info() vulkan_info::vulkan_info()
{ {
try vk::raii::Context context;
{
vk::raii::Context context;
vk::ApplicationInfo app_info{"WiVRn dashboard", 1, "No engine", 1, VK_API_VERSION_1_1}; vk::ApplicationInfo app_info{"WiVRn dashboard", 1, "No engine", 1, VK_API_VERSION_1_1};
vk::InstanceCreateInfo instance_info{vk::InstanceCreateFlags{0}, &app_info}; vk::InstanceCreateInfo instance_info{vk::InstanceCreateFlags{0}, &app_info};
vk::raii::Instance vulkan{context, instance_info}; vk::raii::Instance vulkan{context, instance_info};
auto devices = vulkan.enumeratePhysicalDevices(); auto devices = vulkan.enumeratePhysicalDevices();
set_info(choose_device(devices)); set_info(choose_device(devices));
}
catch (std::runtime_error & e)
{
qCritical() << "Failed to get vulkan info: " << e.what();
}
}
static vulkan_info::gpu_type cast_type(vk::PhysicalDeviceType type)
{
switch (type)
{
case vk::PhysicalDeviceType::eOther:
return vulkan_info::OtherGPU;
case vk::PhysicalDeviceType::eIntegratedGpu:
return vulkan_info::IGPU;
case vk::PhysicalDeviceType::eDiscreteGpu:
return vulkan_info::DGPU;
case vk::PhysicalDeviceType::eVirtualGpu:
return vulkan_info::VirtGPU;
case vk::PhysicalDeviceType::eCpu:
return vulkan_info::SoftGPU;
}
qCritical() << "invalid GPU type enum " << int(type);
return vulkan_info::OtherGPU;
} }
vk::raii::PhysicalDevice & vulkan_info::choose_device(std::vector<vk::raii::PhysicalDevice> & devices) vk::raii::PhysicalDevice & vulkan_info::choose_device(std::vector<vk::raii::PhysicalDevice> & devices)
@@ -96,7 +70,5 @@ void vulkan_info::set_info(vk::raii::PhysicalDevice & device)
break; break;
} }
m_type = cast_type(prop.properties.deviceType);
qDebug() << "Driver" << m_driverId << m_driverVersion; qDebug() << "Driver" << m_driverId << m_driverVersion;
} }
+1 -19
View File
@@ -33,27 +33,14 @@ class vulkan_info : public QObject
Q_OBJECT Q_OBJECT
QML_NAMED_ELEMENT(VulkanInfo) QML_NAMED_ELEMENT(VulkanInfo)
QML_SINGLETON QML_SINGLETON
public:
enum gpu_type
{
DGPU,
IGPU,
SoftGPU,
VirtGPU,
OtherGPU,
NoGPU,
};
Q_ENUM(gpu_type)
Q_PROPERTY(QString driverId READ driverId CONSTANT) Q_PROPERTY(QString driverId READ driverId CONSTANT)
Q_PROPERTY(QString driverVersion READ driverVersion CONSTANT) Q_PROPERTY(QString driverVersion READ driverVersion CONSTANT)
Q_PROPERTY(uint32_t driverVersionCode READ driverVersionCode CONSTANT) Q_PROPERTY(uint32_t driverVersionCode READ driverVersionCode CONSTANT)
Q_PROPERTY(gpu_type type READ type CONSTANT)
QString m_driverId; QString m_driverId;
QString m_driverVersion; QString m_driverVersion;
uint32_t m_driverVersionCode{}; uint32_t m_driverVersionCode;
gpu_type m_type = NoGPU;
vk::raii::PhysicalDevice & choose_device(std::vector<vk::raii::PhysicalDevice> & devices); vk::raii::PhysicalDevice & choose_device(std::vector<vk::raii::PhysicalDevice> & devices);
void set_info(vk::raii::PhysicalDevice & device); void set_info(vk::raii::PhysicalDevice & device);
@@ -75,9 +62,4 @@ public:
{ {
return m_driverVersionCode; return m_driverVersionCode;
} }
gpu_type type() const
{
return m_type;
}
}; };
-5
View File
@@ -73,11 +73,6 @@
<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"/>
+7 -10
View File
@@ -22,6 +22,7 @@ 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`.
@@ -45,6 +46,12 @@ 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
@@ -151,13 +158,3 @@ 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.
-956
View File
@@ -1,956 +0,0 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef BEMAN_INPLACE_VECTOR_INPLACE_VECTOR_HPP
#define BEMAN_INPLACE_VECTOR_INPLACE_VECTOR_HPP
#if !defined(__has_include) || __has_include(<beman/inplace_vector/config.hpp>)
#include <beman/inplace_vector/config.hpp>
#endif
#include <algorithm> // for rotate...
#include <array>
#include <compare>
#include <concepts> // for lots...
#include <cstddef> // for size_t
#include <cstdint> // for fixed-width integer types
#include <iterator> // for reverse_iterator and iterator traits
#include <limits> // for numeric_limits
#include <memory> // for destroy
#include <ranges>
#include <type_traits> // for aligned_storage and all meta-functions
// Artifact from previous implementation, can be used as hints for optimizer
#define IV_EXPECT(EXPR)
#ifndef BEMAN_IV_THROW_OR_ABORT
#ifndef BEMAN_INPLACE_VECTOR_NO_EXCEPTIONS
#define BEMAN_INPLACE_VECTOR_NO_EXCEPTIONS() 0
#endif
#if BEMAN_INPLACE_VECTOR_NO_EXCEPTIONS()
#include <cstdlib> // for abort
#define BEMAN_IV_THROW_OR_ABORT(x) abort()
#else
#include <stdexcept> // for length_error
#define BEMAN_IV_THROW_OR_ABORT(x) throw x
#endif
#endif
// Private utilities
namespace beman::inplace_vector::details {
struct from_range_t {};
inline constexpr from_range_t from_range;
// clang-format off
// Smallest unsigned integer that can represent values in [0, N].
template <size_t N>
using smallest_size_t
= std::conditional_t<(N < std::numeric_limits<uint8_t>::max()), uint8_t,
std::conditional_t<(N < std::numeric_limits<uint16_t>::max()), uint16_t,
std::conditional_t<(N < std::numeric_limits<uint32_t>::max()), uint32_t,
std::conditional_t<(N < std::numeric_limits<uint64_t>::max()), uint64_t,
size_t>>>>;
// clang-format on
// Index a random-access and sized range doing bound checks in debug builds
template <std::ranges::random_access_range Rng, std::integral Index>
static constexpr decltype(auto) index(Rng &&rng, Index i) noexcept
requires(std::ranges::sized_range<Rng>)
{
IV_EXPECT(static_cast<ptrdiff_t>(i) < std::ranges::size(rng));
return std::begin(std::forward<Rng>(rng))[std::forward<Index>(i)];
}
// http://eel.is/c++draft/container.requirements.general#container.intro.reqmts-2
template <class Rng, class T>
concept container_compatible_range =
std::ranges::input_range<Rng> &&
std::convertible_to<std::ranges::range_reference_t<Rng>, T>;
template <typename T>
concept satisfy_triviality = std::is_trivially_copyable_v<T> &&
std::is_trivially_default_constructible_v<T> &&
std::is_trivially_destructible_v<T>;
template <typename T, std::size_t N>
concept satisfy_constexpr = N == 0 || satisfy_triviality<T>;
template <typename T>
concept lessthan_comparable = requires(const T &a, const T &b) {
{ a < b } -> std::convertible_to<bool>;
};
// Types implementing the `inplace_vector`'s storage
namespace storage {
// Storage for zero elements.
template <class T> struct zero_sized {
protected:
using size_type = uint8_t;
static constexpr T *storage_data() noexcept { return nullptr; }
static constexpr size_type storage_size() noexcept { return 0; }
static constexpr void
unsafe_set_size([[maybe_unused]] size_t new_size) noexcept {
IV_EXPECT(new_size == 0 &&
"tried to change size of empty storage to non-zero value");
}
public:
constexpr zero_sized() = default;
constexpr zero_sized(zero_sized const &) = default;
constexpr zero_sized &operator=(zero_sized const &) = default;
constexpr zero_sized(zero_sized &&) = default;
constexpr zero_sized &operator=(zero_sized &&) = default;
constexpr ~zero_sized() = default;
};
// Storage for trivial types.
template <class T, size_t N> struct trivial {
static_assert(satisfy_triviality<T>,
"storage::trivial<T, C> requires Trivial<T>");
static_assert(N != size_t{0}, "N == 0, use zero_sized");
protected:
using size_type = smallest_size_t<N>;
private:
using array_based_storage = std::array<std::remove_const_t<T>, N>;
alignas(alignof(T)) array_based_storage storage_data_{};
size_type storage_size_ = 0;
protected:
constexpr const T *storage_data() const noexcept {
return storage_data_.data();
}
constexpr auto storage_data() noexcept { return storage_data_.data(); }
constexpr size_type storage_size() const noexcept { return storage_size_; }
constexpr void unsafe_set_size(size_t new_size) noexcept {
IV_EXPECT(size_type(new_size) <= N && "new_size out-of-bounds [0, N]");
storage_size_ = size_type(new_size);
}
public:
constexpr trivial() noexcept = default;
constexpr trivial(trivial const &) noexcept = default;
constexpr trivial &operator=(trivial const &) noexcept = default;
constexpr trivial(trivial &&) noexcept = default;
constexpr trivial &operator=(trivial &&) noexcept = default;
constexpr ~trivial() = default;
};
// This is the base storage for non-trivial types.
// In this storage solution, elements are stored in type-erased byte storage,
// thus, reinterpret_cast must be used,
// which makes inplace_vector of non-trivial types non-constexpr-friendly.
//
// Note: This is not used if trivial union is supported.
template <class T, size_t N> struct raw_byte_based_storage {
alignas(T) std::byte _d[sizeof(T) * N];
T *storage_data(size_t i) noexcept {
IV_EXPECT(i < N);
return reinterpret_cast<T *>(_d) + i;
}
const T *storage_data(size_t i) const noexcept {
IV_EXPECT(i < N);
return reinterpret_cast<const T *>(_d) + i;
}
};
/// Storage for non-trivial elements.
template <class T, size_t N> struct non_trivial {
static_assert(!satisfy_triviality<T>,
"use storage::trivial for Trivial<T> elements");
static_assert(N != size_t{0}, "use storage::zero for N==0");
protected:
using size_type = smallest_size_t<N>;
private:
using byte_based_storage = raw_byte_based_storage<std::remove_const_t<T>, N>;
byte_based_storage storage_data_{}; // BUGBUG: test SIMD types
size_type storage_size_ = 0;
protected:
constexpr const T *storage_data() const noexcept {
return storage_data_.storage_data(0);
}
constexpr auto storage_data() noexcept {
return storage_data_.storage_data(0);
}
constexpr size_type storage_size() const noexcept { return storage_size_; }
constexpr void unsafe_set_size(size_t new_size) noexcept {
IV_EXPECT(size_type(new_size) <= N && "new_size out-of-bounds [0, N)");
storage_size_ = size_type(new_size);
}
public:
constexpr non_trivial() noexcept = default;
constexpr non_trivial(non_trivial const &) noexcept = default;
constexpr non_trivial &operator=(non_trivial const &) noexcept = default;
constexpr non_trivial(non_trivial &&) noexcept = default;
constexpr non_trivial &operator=(non_trivial &&) noexcept = default;
constexpr ~non_trivial()
requires(std::is_trivially_destructible_v<T>)
= default;
constexpr ~non_trivial() {
std::destroy(storage_data(), storage_data() + storage_size());
}
};
// Selects the vector storage.
template <class T, size_t N>
using storage_for = std::conditional_t<
!satisfy_constexpr<T, N>, non_trivial<T, N>,
std::conditional_t<N == 0, zero_sized<T>, trivial<T, N>>>;
} // namespace storage
template <class T, size_t N>
struct inplace_vector_base : private storage::storage_for<T, N> {
protected:
static_assert(std::is_nothrow_destructible_v<T>,
"T must be nothrow destructible");
using base_t = storage::storage_for<T, N>;
using base_t::storage_data;
using base_t::storage_size;
using base_t::unsafe_set_size;
public:
using value_type = T;
using pointer = T *;
using const_pointer = const T *;
using reference = value_type &;
using const_reference = const value_type &;
using size_type = size_t;
using difference_type = std::ptrdiff_t;
using iterator = pointer;
using const_iterator = const_pointer;
using reverse_iterator = std::reverse_iterator<iterator>;
using const_reverse_iterator = std::reverse_iterator<const_iterator>;
// iterators
constexpr iterator begin() noexcept { return storage_data(); }
constexpr const_iterator begin() const noexcept { return storage_data(); }
constexpr iterator end() noexcept { return begin() + size(); }
constexpr const_iterator end() const noexcept { return begin() + size(); }
constexpr reverse_iterator rbegin() noexcept {
return reverse_iterator(end());
}
constexpr const_reverse_iterator rbegin() const noexcept {
return const_reverse_iterator(end());
}
constexpr reverse_iterator rend() noexcept {
return reverse_iterator(begin());
}
constexpr const_reverse_iterator rend() const noexcept {
return const_reverse_iterator(begin());
}
constexpr const_iterator cbegin() const noexcept { return storage_data(); }
constexpr const_iterator cend() const noexcept { return cbegin() + size(); }
constexpr const_reverse_iterator crbegin() const noexcept {
return const_reverse_iterator(cend());
}
constexpr const_reverse_iterator crend() const noexcept {
return const_reverse_iterator(cbegin());
}
// [inplace.vector.capacity], size/capacity
[[nodiscard]] constexpr bool empty() const noexcept {
return storage_size() == 0;
};
constexpr size_type size() const noexcept { return storage_size(); }
constexpr void shrink_to_fit() {}
static constexpr size_type max_size() noexcept { return N; }
static constexpr size_type capacity() noexcept { return N; }
// element access
constexpr reference operator[](size_type n) {
return details::index(*this, n);
}
constexpr const_reference operator[](size_type n) const {
return details::index(*this, n);
}
constexpr reference front() { return details::index(*this, size_type(0)); }
constexpr const_reference front() const {
return details::index(*this, size_type(0));
}
constexpr reference back() {
return details::index(*this, size() - size_type(1));
}
constexpr const_reference back() const {
return details::index(*this, size() - size_type(1));
}
// [containers.sequences.inplace_vector.data], data access
constexpr T *data() noexcept { return storage_data(); }
constexpr const T *data() const noexcept { return storage_data(); }
protected: // Utilities
constexpr void
assert_iterator_in_range([[maybe_unused]] const_iterator it) noexcept {
IV_EXPECT(begin() <= it && "iterator not in range");
IV_EXPECT(it <= end() && "iterator not in range");
}
constexpr void
assert_valid_iterator_pair([[maybe_unused]] const_iterator first,
[[maybe_unused]] const_iterator last) noexcept {
IV_EXPECT(first <= last && "invalid iterator pair");
}
constexpr void assert_iterator_pair_in_range(const_iterator first,
const_iterator last) noexcept {
assert_iterator_in_range(first);
assert_iterator_in_range(last);
assert_valid_iterator_pair(first, last);
}
constexpr void
unsafe_destroy(T *first,
T *last) noexcept(std::is_nothrow_destructible_v<T>) {
assert_iterator_pair_in_range(first, last);
if constexpr (N > 0 && !std::is_trivially_destructible_v<T>) {
for (; first != last; ++first)
first->~T();
}
}
public:
// [inplace.vector.modifiers], modifiers
template <class... Args>
constexpr T &unchecked_emplace_back(Args &&...args)
requires(std::constructible_from<T, Args...>)
{
IV_EXPECT(size() < capacity() && "inplace_vector out-of-memory");
std::construct_at(storage_data() + size(), std::forward<Args>(args)...);
unsafe_set_size(size() + size_type(1));
return this->back();
}
template <class... Args> constexpr T *try_emplace_back(Args &&...args) {
if (size() == capacity()) [[unlikely]]
return nullptr;
return &unchecked_emplace_back(std::forward<Args>(args)...);
}
constexpr T *try_push_back(const T &x)
requires(std::constructible_from<T, const T &>)
{
return try_emplace_back(x);
}
constexpr T *try_push_back(T &&x)
requires(std::constructible_from<T, T &&>)
{
return try_emplace_back(std::forward<T &&>(x));
}
constexpr T &unchecked_push_back(const T &x)
requires(std::constructible_from<T, const T &>)
{
return unchecked_emplace_back(x);
}
constexpr T &unchecked_push_back(T &&x)
requires(std::constructible_from<T, T &&>)
{
return unchecked_emplace_back(std::forward<T &&>(x));
}
template <details::container_compatible_range<T> R>
constexpr std::ranges::borrowed_iterator_t<R> try_append_range(R &&rg)
requires(std::constructible_from<T, std::ranges::range_reference_t<R>>)
{
auto it = std::ranges::begin(rg);
const auto end = std::ranges::end(rg);
for (; size() != capacity() && it != end; ++it) {
unchecked_emplace_back(*it);
}
return it;
}
constexpr iterator erase(const_iterator first, const_iterator last)
requires(std::movable<T>)
{
assert_iterator_pair_in_range(first, last);
iterator f = begin() + (first - begin());
if (first != last) {
unsafe_destroy(std::move(f + (last - first), end(), f), end());
unsafe_set_size(size() - static_cast<size_type>(last - first));
}
return f;
}
constexpr iterator erase(const_iterator position)
requires(std::movable<T>)
{
return erase(position, position + 1);
}
constexpr void clear() noexcept {
unsafe_destroy(begin(), end());
unsafe_set_size(0);
}
constexpr void pop_back() {
IV_EXPECT(size() > 0 && "pop_back from empty inplace_vector!");
if (size() > 0) { // UB fail-safe
unsafe_destroy(end() - 1, end());
unsafe_set_size(size() - 1);
}
}
constexpr friend bool operator==(const inplace_vector_base &x,
const inplace_vector_base &y) {
return x.size() == y.size() && std::ranges::equal(x, y);
}
constexpr void swap(inplace_vector_base &x) noexcept(
N == 0 || (std::is_nothrow_swappable_v<T> &&
std::is_nothrow_move_constructible_v<T>))
requires(std::movable<T>)
{
auto tmp = std::move(x);
x = std::move(*this);
(*this) = std::move(tmp);
}
constexpr friend void
swap(inplace_vector_base &x, inplace_vector_base &y) noexcept(
N == 0 || (std::is_nothrow_swappable_v<T> &&
std::is_nothrow_move_constructible_v<T>)) {
x.swap(y);
}
constexpr friend auto operator<=>(const inplace_vector_base &x,
const inplace_vector_base &y)
requires(details::lessthan_comparable<T>)
{
if constexpr (std::three_way_comparable<T>) {
return std::lexicographical_compare_three_way(x.begin(), x.end(),
y.begin(), y.end());
} else {
const auto sz = std::min(x.size(), y.size());
for (std::size_t i = 0; i < sz; ++i) {
if (x[i] < y[i])
return std::strong_ordering::less;
if (y[i] < x[i])
return std::strong_ordering::greater;
// [container.opt.reqmts] < must be total ordering relationship
}
return x.size() <=> y.size();
}
}
// [containers.sequences.inplace_vector.cons], construct/copy/destroy
constexpr inplace_vector_base() noexcept = default;
constexpr inplace_vector_base(const inplace_vector_base &x)
requires(N == 0 || std::is_trivially_copy_constructible_v<T>)
= default;
constexpr inplace_vector_base(const inplace_vector_base &x)
requires(N != 0 && !std::is_trivially_copy_constructible_v<T> &&
std::copyable<T>)
{
for (auto &&e : x)
unchecked_emplace_back(e);
}
constexpr inplace_vector_base(inplace_vector_base &&x)
requires(N == 0 || std::is_trivially_move_constructible_v<T>)
= default;
constexpr inplace_vector_base(inplace_vector_base &&x)
requires(N != 0 && !std::is_trivially_move_constructible_v<T> &&
std::movable<T>)
{
for (auto &&e : x)
unchecked_emplace_back(std::move(e));
}
constexpr inplace_vector_base &operator=(const inplace_vector_base &x)
requires(N == 0 || (std::is_trivially_destructible_v<T> &&
std::is_trivially_copy_constructible_v<T> &&
std::is_trivially_copy_assignable_v<T>))
= default;
constexpr inplace_vector_base &operator=(const inplace_vector_base &x)
requires(N != 0 &&
!(std::is_trivially_destructible_v<T> &&
std::is_trivially_copy_constructible_v<T> &&
std::is_trivially_copy_assignable_v<T>) &&
std::copyable<T>)
{
clear();
for (auto &&e : x)
unchecked_emplace_back(e);
return *this;
}
constexpr inplace_vector_base &operator=(inplace_vector_base &&x)
requires(N == 0 || (std::is_trivially_destructible_v<T> &&
std::is_trivially_move_constructible_v<T> &&
std::is_trivially_move_assignable_v<T>))
= default;
constexpr inplace_vector_base &operator=(inplace_vector_base &&x)
requires(N != 0 &&
!(std::is_trivially_destructible_v<T> &&
std::is_trivially_move_constructible_v<T> &&
std::is_trivially_move_assignable_v<T>) &&
std::movable<T>)
{
clear();
for (auto &&e : x)
unchecked_emplace_back(std::move(e));
return *this;
}
};
} // namespace beman::inplace_vector::details
namespace beman::inplace_vector {
template <typename IV>
concept has_constexpr_support =
details::satisfy_constexpr<typename IV::value_type, IV::capacity()>;
/// Dynamically-resizable fixed-N vector with inplace storage.
template <class T, size_t N>
struct inplace_vector : public details::inplace_vector_base<T, N> {
using value_type = T;
using pointer = T *;
using const_pointer = const T *;
using reference = value_type &;
using const_reference = const value_type &;
using size_type = size_t;
using difference_type = std::ptrdiff_t;
using iterator = pointer;
using const_iterator = const_pointer;
using reverse_iterator = std::reverse_iterator<iterator>;
using const_reverse_iterator = std::reverse_iterator<const_iterator>;
// [containers.sequences.inplace_vector.modifiers], modifiers
template <class... Args>
constexpr T &emplace_back(Args &&...args)
requires(std::constructible_from<T, Args...>)
{
if (!this->try_emplace_back(std::forward<Args>(args)...)) [[unlikely]] {
BEMAN_IV_THROW_OR_ABORT(std::bad_alloc());
}
return this->back();
}
constexpr T &push_back(const T &x)
requires(std::constructible_from<T, const T &>)
{
emplace_back(x);
return this->back();
}
constexpr T &push_back(T &&x)
requires(std::constructible_from<T, T &&>)
{
emplace_back(std::forward<T &&>(x));
return this->back();
}
template <details::container_compatible_range<T> R>
constexpr void append_range(R &&rg)
requires(std::constructible_from<T, std::ranges::range_reference_t<R>>)
{
if constexpr (std::ranges::sized_range<R>) {
if (this->size() + std::ranges::size(rg) > this->capacity())
[[unlikely]] {
BEMAN_IV_THROW_OR_ABORT(std::bad_alloc());
}
}
for (auto &&e : rg) {
if (this->size() == this->capacity()) [[unlikely]] {
BEMAN_IV_THROW_OR_ABORT(std::bad_alloc());
}
emplace_back(std::forward<decltype(e)>(e));
}
}
template <class... Args>
constexpr iterator emplace(const_iterator position, Args &&...args)
requires(std::constructible_from<T, Args...> && std::movable<T>)
{
this->assert_iterator_in_range(position);
auto b = this->end();
emplace_back(std::forward<Args>(args)...);
auto pos = this->begin() + (position - this->begin());
std::rotate(pos, b, this->end());
return pos;
}
template <class InputIterator>
constexpr iterator insert(const_iterator position, InputIterator first,
InputIterator last)
requires(std::constructible_from<T, std::iter_reference_t<InputIterator>> &&
std::movable<T>)
{
this->assert_iterator_in_range(position);
if constexpr (std::random_access_iterator<InputIterator>) {
if (this->size() + static_cast<size_type>(std::distance(first, last)) >
this->capacity()) [[unlikely]] {
BEMAN_IV_THROW_OR_ABORT(std::bad_alloc());
}
}
auto b = this->end();
for (; first != last; ++first)
emplace_back(*first);
auto pos = this->begin() + (position - this->begin());
std::rotate(pos, b, this->end());
return pos;
}
template <details::container_compatible_range<T> R>
constexpr iterator insert_range(const_iterator position, R &&rg)
requires(std::constructible_from<T, std::ranges::range_reference_t<R>> &&
std::movable<T>)
{
return insert(position, std::begin(rg), std::end(rg));
}
constexpr iterator insert(const_iterator position,
std::initializer_list<T> il)
requires(std::constructible_from<
T, std::ranges::range_reference_t<std::initializer_list<T>>> &&
std::movable<T>)
{
return insert_range(position, il);
}
constexpr iterator insert(const_iterator position, size_type n, const T &x)
requires(std::constructible_from<T, const T &> && std::copyable<T>)
{
this->assert_iterator_in_range(position);
auto b = this->end();
for (size_type i = 0; i < n; ++i)
emplace_back(x);
auto pos = this->begin() + (position - this->begin());
std::rotate(pos, b, this->end());
return pos;
}
constexpr iterator insert(const_iterator position, const T &x)
requires(std::constructible_from<T, const T &> && std::copyable<T>)
{
return insert(position, 1, x);
}
constexpr iterator insert(const_iterator position, T &&x)
requires(std::constructible_from<T, T &&> && std::movable<T>)
{
return emplace(position, std::move(x));
}
constexpr inplace_vector &operator=(std::initializer_list<T> il)
requires(std::constructible_from<
T, std::ranges::range_reference_t<std::initializer_list<T>>> &&
std::movable<T>)
{
assign_range(il);
return *this;
}
template <class InputIterator>
constexpr void assign(InputIterator first, InputIterator last)
requires(std::constructible_from<T, std::iter_reference_t<InputIterator>> &&
std::movable<T>)
{
this->clear();
insert(this->begin(), first, last);
}
template <details::container_compatible_range<T> R>
constexpr void assign_range(R &&rg)
requires(std::constructible_from<T, std::ranges::range_reference_t<R>> &&
std::movable<T>)
{
assign(std::begin(rg), std::end(rg));
}
constexpr void assign(size_type n, const T &u)
requires(std::constructible_from<T, const T &> && std::movable<T>)
{
this->clear();
insert(this->begin(), n, u);
}
constexpr void assign(std::initializer_list<T> il)
requires(std::constructible_from<
T, std::ranges::range_reference_t<std::initializer_list<T>>> &&
std::movable<T>)
{
this->clear();
insert_range(this->begin(), il);
}
// [inplace.vector.capacity], size/capacity
constexpr void reserve(size_type n) {
if (n > N) [[unlikely]] {
BEMAN_IV_THROW_OR_ABORT(std::bad_alloc());
}
}
constexpr void resize(size_type sz, const T &c)
requires(std::constructible_from<T, const T &> && std::copyable<T>)
{
if (sz == this->size())
return;
else if (sz > N) [[unlikely]] {
BEMAN_IV_THROW_OR_ABORT(std::bad_alloc());
} else if (sz > this->size())
insert(this->end(), sz - this->size(), c);
else {
this->unsafe_destroy(this->begin() + sz, this->end());
this->unsafe_set_size(sz);
}
}
constexpr void resize(size_type sz)
requires(std::constructible_from<T, T &&> && std::default_initializable<T>)
{
if (sz == this->size())
return;
else if (sz > N) [[unlikely]] {
BEMAN_IV_THROW_OR_ABORT(std::bad_alloc());
} else if (sz > this->size()) {
while (this->size() != sz)
emplace_back(T{});
} else {
this->unsafe_destroy(this->begin() + sz, this->end());
this->unsafe_set_size(sz);
}
}
// element access
constexpr reference at(size_type pos) {
if (pos >= this->size()) [[unlikely]] {
BEMAN_IV_THROW_OR_ABORT(std::out_of_range("inplace_vector::at"));
}
return details::index(*this, pos);
}
constexpr const_reference at(size_type pos) const {
if (pos >= this->size()) [[unlikely]] {
BEMAN_IV_THROW_OR_ABORT(std::out_of_range("inplace_vector::at"));
}
return details::index(*this, pos);
}
// [containers.sequences.inplace_vector.cons], construct/copy/destroy
constexpr inplace_vector() noexcept = default;
constexpr inplace_vector(std::initializer_list<T> il)
requires(std::constructible_from<
T, std::ranges::range_reference_t<std::initializer_list<T>>> &&
std::movable<T>)
{
insert(this->begin(), il);
}
constexpr inplace_vector(size_type n, const T &value)
requires(std::constructible_from<T, const T &> && std::copyable<T>)
{
insert(this->begin(), n, value);
}
constexpr explicit inplace_vector(size_type n)
requires(std::constructible_from<T, T &&> && std::default_initializable<T>)
{
for (size_type i = 0; i < n; ++i)
emplace_back(T{});
}
template <class InputIterator> // BUGBUG: why not std::ranges::input_iterator?
constexpr inplace_vector(InputIterator first, InputIterator last)
requires(std::constructible_from<T, std::iter_reference_t<InputIterator>> &&
std::movable<T>)
{
insert(this->begin(), first, last);
}
template <details::container_compatible_range<T> R>
constexpr inplace_vector(details::from_range_t, R &&rg)
requires(std::constructible_from<T, std::ranges::range_reference_t<R>> &&
std::movable<T>)
{
insert_range(this->begin(), std::forward<R &&>(rg));
}
};
namespace freestanding {
template <class T, size_t N>
struct inplace_vector : public details::inplace_vector_base<T, N> {
using value_type = T;
using pointer = T *;
using const_pointer = const T *;
using reference = value_type &;
using const_reference = const value_type &;
using size_type = size_t;
using difference_type = std::ptrdiff_t;
using iterator = pointer;
using const_iterator = const_pointer;
using reverse_iterator = std::reverse_iterator<iterator>;
using const_reverse_iterator = std::reverse_iterator<const_iterator>;
// [containers.sequences.inplace_vector.modifiers], modifiers
template <class... Args>
constexpr T &emplace_back(Args &&...args)
requires(std::constructible_from<T, Args...>)
= delete;
constexpr T &push_back(const T &x)
requires(std::constructible_from<T, const T &>)
= delete;
constexpr T &push_back(T &&x)
requires(std::constructible_from<T, T &&>)
= delete;
template <details::container_compatible_range<T> R>
constexpr void append_range(R &&rg)
requires(std::constructible_from<T, std::ranges::range_reference_t<R>>)
= delete;
template <class... Args>
constexpr iterator emplace(const_iterator position, Args &&...args)
requires(std::constructible_from<T, Args...> && std::movable<T>)
= delete;
template <class InputIterator>
constexpr iterator insert(const_iterator position, InputIterator first,
InputIterator last)
requires(std::constructible_from<T, std::iter_reference_t<InputIterator>> &&
std::movable<T>)
= delete;
template <details::container_compatible_range<T> R>
constexpr iterator insert_range(const_iterator position, R &&rg)
requires(std::constructible_from<T, std::ranges::range_reference_t<R>> &&
std::movable<T>)
= delete;
constexpr iterator insert(const_iterator position,
std::initializer_list<T> il)
requires(std::constructible_from<
T, std::ranges::range_reference_t<std::initializer_list<T>>> &&
std::movable<T>)
= delete;
constexpr iterator insert(const_iterator position, size_type n, const T &x)
requires(std::constructible_from<T, const T &> && std::copyable<T>)
= delete;
constexpr iterator insert(const_iterator position, const T &x)
requires(std::constructible_from<T, const T &> && std::copyable<T>)
= delete;
constexpr iterator insert(const_iterator position, T &&x)
requires(std::constructible_from<T, T &&> && std::movable<T>)
= delete;
constexpr inplace_vector &operator=(std::initializer_list<T> il)
requires(std::constructible_from<
T, std::ranges::range_reference_t<std::initializer_list<T>>> &&
std::movable<T>)
= delete;
template <class InputIterator>
constexpr void assign(InputIterator first, InputIterator last)
requires(std::constructible_from<T, std::iter_reference_t<InputIterator>> &&
std::movable<T>)
= delete;
template <details::container_compatible_range<T> R>
constexpr void assign_range(R &&rg)
requires(std::constructible_from<T, std::ranges::range_reference_t<R>> &&
std::movable<T>)
= delete;
constexpr void assign(size_type n, const T &u)
requires(std::constructible_from<T, const T &> && std::movable<T>)
= delete;
constexpr void assign(std::initializer_list<T> il)
requires(std::constructible_from<
T, std::ranges::range_reference_t<std::initializer_list<T>>> &&
std::movable<T>)
= delete;
// [inplace.vector.capacity], size/capacity
constexpr void reserve(size_type n) = delete;
constexpr void resize(size_type sz, const T &c)
requires(std::constructible_from<T, const T &> && std::copyable<T>)
= delete;
constexpr void resize(size_type sz)
requires(std::constructible_from<T, T &&> && std::default_initializable<T>)
= delete;
// element access
constexpr reference at(size_type pos) = delete;
constexpr const_reference at(size_type pos) const = delete;
// [containers.sequences.inplace_vector.cons], construct/copy/destroy
constexpr inplace_vector() noexcept = default;
constexpr inplace_vector(std::initializer_list<T> il)
requires(std::constructible_from<
T, std::ranges::range_reference_t<std::initializer_list<T>>> &&
std::movable<T>)
= delete;
constexpr inplace_vector(size_type n, const T &value)
requires(std::constructible_from<T, const T &> && std::copyable<T>)
= delete;
constexpr explicit inplace_vector(size_type n)
requires(std::constructible_from<T, T &&> && std::default_initializable<T>)
= delete;
template <class InputIterator> // BUGBUG: why not std::ranges::input_iterator?
constexpr inplace_vector(InputIterator first, InputIterator last)
requires(std::constructible_from<T, std::iter_reference_t<InputIterator>> &&
std::movable<T>)
= delete;
template <details::container_compatible_range<T> R>
constexpr inplace_vector(beman::inplace_vector::details::from_range_t, R &&rg)
requires(std::constructible_from<T, std::ranges::range_reference_t<R>> &&
std::movable<T>)
= delete;
};
} // namespace freestanding
template <typename T, std::size_t N, typename U = T>
constexpr std::size_t erase(details::inplace_vector_base<T, N> &c,
const U &value) {
auto it = std::remove(c.begin(), c.end(), value);
auto r = std::distance(it, c.end());
c.erase(it, c.end());
return r;
}
template <typename T, std::size_t N, typename Predicate>
constexpr std::size_t erase_if(details::inplace_vector_base<T, N> &c,
Predicate pred) {
auto it = std::remove_if(c.begin(), c.end(), pred);
auto r = std::distance(it, c.end());
c.erase(it, c.end());
return r;
}
} // namespace beman::inplace_vector
#undef IV_EXPECT
#endif // BEMAN_INPLACE_VECTOR_INPLACE_VECTOR_HPP
+19558 -19530
View File
File diff suppressed because it is too large Load Diff
+1 -5
View File
@@ -58,16 +58,12 @@
# 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-M0SQMu1rgY++a+4r0DK//ralFEO5w7I3UrgLecoLO+A="; hash = "sha256-wGqvTI/X22apc8XCN3GCGQClHfBW5xk73mZnwWvHtyI=";
}; };
}; };
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,7 +376,6 @@ 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
+49 -60
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-26 15:00+0100\n" "POT-Creation-Date: 2026-02-02 14:05+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: Qt Linguist 6.10.2\n" "X-Generator: Lokalize 25.08.3\n"
"X-Language: es_ES\n" "X-Language: es_ES\n"
"X-Source-Language: en_US\n" "X-Source-Language: en_US\n"
@@ -119,8 +119,8 @@ msgstr "Comprobando la última versión..."
msgid "No APK is available for this version" msgid "No APK is available for this version"
msgstr "No hay ningún APK disponible para esta versión" msgstr "No hay ningún APK disponible para esta versión"
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:376 #: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:368
#: dashboard/qml/Main.qml:434 dashboard/qml/WizardPage.qml:211 #: dashboard/qml/Main.qml:426 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"
@@ -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 href=\"https://github.com/WiVRn/WiVRn/blob/" "Follow the instructions in the <a "
"master/docs/building.md#client-headset\">documentation</a> to build your own " "href=\"https://github.com/WiVRn/WiVRn/blob/master/docs/building.md#client-headset\">documentation</a> "
"client." "to build your own client."
msgstr "" msgstr ""
"Sigue las instrucciones en la <a href=\"https://github.com/WiVRn/WiVRn/blob/" "Sigue las instrucciones en la <a "
"master/docs/building.md#client-headset\">documentación</a> para compilar tu " "href=\"https://github.com/WiVRn/WiVRn/blob/master/docs/building.md#client-headset\">documentación</a> "
"propio cliente." "para compilar tu propio cliente."
#: dashboard/qml/ConnectUsbDialog.qml:11 #: dashboard/qml/ConnectUsbDialog.qml:11
#, kde-format #, kde-format
@@ -163,7 +163,7 @@ msgstr "Reinstalar WiVRn"
msgid "Install WiVRn" msgid "Install WiVRn"
msgstr "Instalar WiVRn" msgstr "Instalar WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:439 #: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:431
#, kde-format #, kde-format
msgid "Headsets" msgid "Headsets"
msgstr "Visores" msgstr "Visores"
@@ -290,7 +290,7 @@ msgid "Avahi daemon is not started"
msgstr "El servicio Avahi no está iniciado" msgstr "El servicio Avahi no está iniciado"
#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171 #: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171
#: dashboard/qml/Main.qml:231 #: dashboard/qml/Main.qml:223
#, kde-format #, kde-format
msgid "Fix it" msgid "Fix it"
msgstr "Arreglarlo" msgstr "Arreglarlo"
@@ -315,18 +315,6 @@ msgstr "Más información"
#: 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 ""
"Los drivers Vulkan no se han encontrado, puede ser que necesite ejecutar "
"\"flatpak update\""
#: dashboard/qml/Main.qml:193
#, kde-format
msgid "Vulkan drivers cannot be found"
msgstr "Los drivers Vulkan no se han encontrado"
#: 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"
@@ -334,7 +322,7 @@ msgstr ""
"Usa el controlador Mesa (radv) para las GPU AMD\n" "Usa el controlador Mesa (radv) para las GPU AMD\n"
"La codificación por hardware con vaapi no funciona con AMDVLK y AMDGPU-PRO" "La codificación por hardware con vaapi no funciona con AMDVLK y AMDGPU-PRO"
#: dashboard/qml/Main.qml:209 #: dashboard/qml/Main.qml:201
#, 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"
@@ -344,144 +332,144 @@ msgstr ""
"en VR.\n" "en VR.\n"
"Instala xrizer o OpenComposite." "Instala xrizer o OpenComposite."
#: dashboard/qml/Main.qml:217 #: dashboard/qml/Main.qml:209
#, 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 "" msgstr ""
"Steam está instalado mediante snap. Los Snaps no son compatibles con WiVRn." "Steam está instalado mediante snap. Los Snaps no son compatibles con WiVRn."
#: dashboard/qml/Main.qml:225 #: dashboard/qml/Main.qml:217
#, 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 "" msgstr ""
"Steam está instalado con flatpak, pero no tiene los suficientes permisos." "Steam está instalado con flatpak, pero no tiene los suficientes permisos."
#: dashboard/qml/Main.qml:240 #: dashboard/qml/Main.qml:232
#, 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 "Reinicia el servidor para que los cambios surtan efecto" msgstr "Reinicia el servidor para que los cambios surtan efecto"
#: dashboard/qml/Main.qml:246 #: dashboard/qml/Main.qml:238
#, kde-format #, kde-format
msgctxt "restart the server" msgctxt "restart the server"
msgid "Restart now" msgid "Restart now"
msgstr "Reiniciar ahora" msgstr "Reiniciar ahora"
#: dashboard/qml/Main.qml:271 #: dashboard/qml/Main.qml:263
#, kde-format #, kde-format
msgid "Server failed to start" msgid "Server failed to start"
msgstr "El servidor no pudo iniciar" msgstr "El servidor no pudo iniciar"
#: dashboard/qml/Main.qml:277 dashboard/qml/TroubleshootPage.qml:89 #: dashboard/qml/Main.qml:269 dashboard/qml/TroubleshootPage.qml:89
#, kde-format #, kde-format
msgid "Open server logs" msgid "Open server logs"
msgstr "Abrir registros del servidor" msgstr "Abrir registros del servidor"
#: dashboard/qml/Main.qml:303 #: dashboard/qml/Main.qml:295
#, kde-format #, kde-format
msgid "Server status" msgid "Server status"
msgstr "Estado del servidor" msgstr "Estado del servidor"
#: dashboard/qml/Main.qml:309 #: dashboard/qml/Main.qml:301
#, 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 "En ejecución" msgstr "En ejecución"
#: dashboard/qml/Main.qml:322 #: dashboard/qml/Main.qml:314
#, 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 "Emparejando" msgstr "Emparejando"
#: dashboard/qml/Main.qml:342 #: dashboard/qml/Main.qml:334
#, kde-format #, kde-format
msgid "Headset status" msgid "Headset status"
msgstr "Estado del visor" msgstr "Estado del visor"
#: dashboard/qml/Main.qml:349 #: dashboard/qml/Main.qml:341
#, 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 "Visor" msgstr "Visor"
#: dashboard/qml/Main.qml:352 #: dashboard/qml/Main.qml:344
#, kde-format #, kde-format
msgid "Not connected" msgid "Not connected"
msgstr "No conectado" msgstr "No conectado"
#: dashboard/qml/Main.qml:356 #: dashboard/qml/Main.qml:348
#, kde-format #, kde-format
msgid "Disconnect" msgid "Disconnect"
msgstr "Desconectar" msgstr "Desconectar"
#: dashboard/qml/Main.qml:365 dashboard/qml/Main.qml:373 #: dashboard/qml/Main.qml:357 dashboard/qml/Main.qml:365
#: dashboard/qml/Main.qml:380 #: dashboard/qml/Main.qml:372
#, 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:366 #: dashboard/qml/Main.qml:358
#, kde-format #, kde-format
msgctxt "usb connect button" msgctxt "usb connect button"
msgid "Connect (wired)" msgid "Connect (wired)"
msgstr "Conectar (cableado)" msgstr "Conectar (cableado)"
#: dashboard/qml/Main.qml:383 dashboard/qml/WizardPage.qml:339 #: dashboard/qml/Main.qml:375 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 "No hay ningún visor conectado o tu visor no está en modo desarrollador" msgstr "No hay ningún visor conectado o tu visor no está en modo desarrollador"
#: dashboard/qml/Main.qml:404 #: dashboard/qml/Main.qml:396
#, kde-format #, kde-format
msgid "Steam information" msgid "Steam information"
msgstr "Información de Steam" msgstr "Información de Steam"
#: dashboard/qml/Main.qml:420 #: dashboard/qml/Main.qml:412
#, kde-format #, kde-format
msgid "Wizard" msgid "Wizard"
msgstr "Asistente" msgstr "Asistente"
#: dashboard/qml/Main.qml:426 #: dashboard/qml/Main.qml:418
#, kde-format #, kde-format
msgid "Install the app" msgid "Install the app"
msgstr "Instalar aplicación" msgstr "Instalar aplicación"
#: dashboard/qml/Main.qml:445 dashboard/qml/SettingsPage.qml:14 #: dashboard/qml/Main.qml:437 dashboard/qml/SettingsPage.qml:14
#, kde-format #, kde-format
msgid "Settings" msgid "Settings"
msgstr "Ajustes" msgstr "Ajustes"
#: dashboard/qml/Main.qml:451 #: dashboard/qml/Main.qml:443
#, kde-format #, kde-format
msgid "About" msgid "About"
msgstr "Acerca de" msgstr "Acerca de"
#: dashboard/qml/Main.qml:456 dashboard/qml/TroubleshootPage.qml:10 #: dashboard/qml/Main.qml:448 dashboard/qml/TroubleshootPage.qml:10
#, kde-format #, kde-format
msgid "Troubleshoot" msgid "Troubleshoot"
msgstr "Solucionar problemas" msgstr "Solucionar problemas"
#: dashboard/qml/Main.qml:463 #: dashboard/qml/Main.qml:455
#, kde-format #, kde-format
msgid "Version %1" msgid "Version %1"
msgstr "Versión %1" msgstr "Versión %1"
#: dashboard/qml/SelectGame.qml:12 #: dashboard/qml/SelectGame.qml:14
#, 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:18 #: dashboard/qml/SelectGame.qml:20
#, 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:70 #: dashboard/qml/SelectGame.qml:72
#, 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 +696,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 match." "<p>The version of the headset app and the server on your computer must "
"</p><ul><li>The headset app version is in the \"About\" page</li><li>The " "match.</p><ul><li>The headset app version is in the \"About\" "
"server version is <b>%1</b></li></ul>" "page</li><li>The 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,12 +750,13 @@ 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 href=\"https://db.vronlinux.org/" "For game specific issues, check on <a "
"\">vronlinux DB</a> if there are known bugs or workarounds." "href=\"https://db.vronlinux.org/\">vronlinux DB</a> if there are known bugs "
"or workarounds."
msgstr "" msgstr ""
"Para problemas específicos de un juego, mirar en <a href=\"https://" "Para problemas específicos de un juego, mirar en <a "
"db.vronlinux.org/\">vronlinux DB</a> por si hubiese algún problema conocido " "href=\"https://db.vronlinux.org/\">vronlinux DB</a> por si hubiese algún "
"o por soluciones." "problema conocido o por soluciones."
#: dashboard/qml/TroubleshootPage.qml:79 #: dashboard/qml/TroubleshootPage.qml:79
#, kde-format #, kde-format
+128 -138
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-27 16:03+0100\n" "POT-Creation-Date: 2026-02-06 23:11+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: Qt Linguist 6.10.2\n" "X-Generator: Lokalize 25.08.3\n"
"X-Language: es_ES\n" "X-Language: es_ES\n"
"X-Source-Language: en_US\n" "X-Source-Language: en_US\n"
@@ -93,15 +93,14 @@ msgctxt "openxr_post_processing"
msgid "Disabled" msgid "Disabled"
msgstr "Deshabilitado" msgstr "Deshabilitado"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254 #: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
#: client/scenes/stream_gui.cpp:1026 #: client/scenes/stream_gui.cpp:1010
msgid "Disconnect" msgid "Disconnect"
msgstr "Desconectar" msgstr "Desconectar"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264 #: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
#: 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:1022 #: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1006
msgid "Close" msgid "Close"
msgstr "Cerrar" msgstr "Cerrar"
@@ -122,41 +121,32 @@ 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:327 #: client/scenes/lobby_gui.cpp:295
msgid "Address" msgid "Address"
msgstr "Dirección" msgstr "Dirección"
#: client/scenes/lobby_gui.cpp:336 #: client/scenes/lobby_gui.cpp:304
msgid "Port" msgid "Port"
msgstr "Puerto" msgstr "Puerto"
#: client/scenes/lobby_gui.cpp:344 #: client/scenes/lobby_gui.cpp:312
msgid "TCP only" msgid "TCP only"
msgstr "Solo TCP" msgstr "Solo TCP"
#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655 #: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:978 #: client/scenes/stream_gui.cpp:962
msgid "Cancel" msgid "Cancel"
msgstr "Cancelar" msgstr "Cancelar"
#: client/scenes/lobby_gui.cpp:365 #: client/scenes/lobby_gui.cpp:333
msgid "Save" msgid "Save"
msgstr "Guardar" msgstr "Guardar"
#: client/scenes/lobby_gui.cpp:418 #: client/scenes/lobby_gui.cpp:386
msgid "" msgid ""
"Start a WiVRn server on your\n" "Start a WiVRn server on your\n"
"local network" "local network"
@@ -164,46 +154,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:450 #: client/scenes/lobby_gui.cpp:418
msgid "Autoconnect" msgid "Autoconnect"
msgstr "Conexión automática" msgstr "Conexión automática"
#: client/scenes/lobby_gui.cpp:476 #: client/scenes/lobby_gui.cpp:444
msgid "Connect" msgid "Connect"
msgstr "Conectar" msgstr "Conectar"
#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186 #: client/scenes/lobby_gui.cpp:454 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:488 #: client/scenes/lobby_gui.cpp:456
msgid "Server not available" msgid "Server not available"
msgstr "Servidor no disponible" msgstr "Servidor no disponible"
#: client/scenes/lobby_gui.cpp:581 #: client/scenes/lobby_gui.cpp:538
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:595 #: client/scenes/lobby_gui.cpp:552
msgid "Language" msgid "Language"
msgstr "Idioma" msgstr "Idioma"
#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597 #: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554
msgid "System language" msgid "System language"
msgstr "Idioma del sistema" msgstr "Idioma del sistema"
#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412 #: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:411
msgid "Refresh rate" msgid "Refresh rate"
msgstr "Frecuencia de actualización" msgstr "Frecuencia de actualización"
#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625 #: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414 #: client/scenes/stream_gui.cpp:411 client/scenes/stream_gui.cpp:413
msgctxt "automatic refresh rate" msgctxt "automatic refresh rate"
msgid "Automatic" msgid "Automatic"
msgstr "Automática" msgstr "Automática"
#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421 #: client/scenes/lobby_gui.cpp:589 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."
@@ -212,38 +202,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:649 client/scenes/stream_gui.cpp:439 #: client/scenes/lobby_gui.cpp:606 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:675 #: client/scenes/lobby_gui.cpp:632
msgid "Foveation level" msgid "Foveation level"
msgstr "Nivel de fóvea" msgstr "Nivel de fóvea"
#: client/scenes/lobby_gui.cpp:698 #: client/scenes/lobby_gui.cpp:655
msgid "Render resolution" msgid "Render resolution"
msgstr "Resolución de renderizado" msgstr "Resolución de renderizado"
#: client/scenes/lobby_gui.cpp:702 #: client/scenes/lobby_gui.cpp:659
#, 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:713 #: client/scenes/lobby_gui.cpp:670
#, 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:723 #: client/scenes/lobby_gui.cpp:680
msgid "Foveated encoding" msgid "Foveated encoding"
msgstr "Codificación foveada" msgstr "Codificación foveada"
#: client/scenes/lobby_gui.cpp:727 #: client/scenes/lobby_gui.cpp:684
#, c-format, c++-format #, c-format, c++-format
msgid "{}%%" msgid "{}%%"
msgstr "{}%%" msgstr "{}%%"
#: client/scenes/lobby_gui.cpp:740 #: client/scenes/lobby_gui.cpp:697
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."
@@ -251,7 +241,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:743 #: client/scenes/lobby_gui.cpp:700
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."
@@ -259,90 +249,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:752 #: client/scenes/lobby_gui.cpp:709
msgctxt "Codec" msgctxt "Codec"
msgid "Automatic" msgid "Automatic"
msgstr "Automático" msgstr "Automático"
#: client/scenes/lobby_gui.cpp:756 #: client/scenes/lobby_gui.cpp:713
msgctxt "Codec" msgctxt "Codec"
msgid "H.264" msgid "H.264"
msgstr "H.264" msgstr "H.264"
#: client/scenes/lobby_gui.cpp:758 #: client/scenes/lobby_gui.cpp:715
msgctxt "Codec" msgctxt "Codec"
msgid "H.265" msgid "H.265"
msgstr "H.265" msgstr "H.265"
#: client/scenes/lobby_gui.cpp:760 #: client/scenes/lobby_gui.cpp:717
msgctxt "Codec" msgctxt "Codec"
msgid "AV1" msgid "AV1"
msgstr "AV1" msgstr "AV1"
#: client/scenes/lobby_gui.cpp:768 #: client/scenes/lobby_gui.cpp:725
msgid "Codec" msgid "Codec"
msgstr "Codec" msgstr "Codec"
#: client/scenes/lobby_gui.cpp:796 #: client/scenes/lobby_gui.cpp:753
msgid "10-bit" msgid "10-bit"
msgstr "10-bit" msgstr "10-bit"
#: client/scenes/lobby_gui.cpp:812 #: client/scenes/lobby_gui.cpp:769
msgid "Bitrate" msgid "Bitrate"
msgstr "Bitrate" msgstr "Bitrate"
#: client/scenes/lobby_gui.cpp:816 #: client/scenes/lobby_gui.cpp:773
#, c++-format #, c++-format
msgid "{}Mbit/s" msgid "{}Mbit/s"
msgstr "{}Mbit/s" msgstr "{}Mbit/s"
#: client/scenes/lobby_gui.cpp:827 #: client/scenes/lobby_gui.cpp:784
msgid "High power mode" msgid "High power mode"
msgstr "Modo de alto rendimiento" msgstr "Modo de alto rendimiento"
#: client/scenes/lobby_gui.cpp:830 #: client/scenes/lobby_gui.cpp:787
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:836 #: client/scenes/lobby_gui.cpp:793
msgid "Enable microphone" msgid "Enable microphone"
msgstr "Activar micrófono" msgstr "Activar micrófono"
#: client/scenes/lobby_gui.cpp:845 #: client/scenes/lobby_gui.cpp:802
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:851 #: client/scenes/lobby_gui.cpp:808
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:858 #: client/scenes/lobby_gui.cpp:815
msgid "Enable hand tracking" msgid "Enable hand tracking"
msgstr "Activar seguimiento de manos" msgstr "Activar seguimiento de manos"
#: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875 #: client/scenes/lobby_gui.cpp:821 client/scenes/lobby_gui.cpp:832
#: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900 #: client/scenes/lobby_gui.cpp:842 client/scenes/lobby_gui.cpp:857
#: 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:869 #: client/scenes/lobby_gui.cpp:826
msgid "Enable eye tracking" msgid "Enable eye tracking"
msgstr "Activar seguimiento ocular" msgstr "Activar seguimiento ocular"
#: client/scenes/lobby_gui.cpp:880 #: client/scenes/lobby_gui.cpp:837
msgid "Enable face tracking" msgid "Enable face tracking"
msgstr "Activar seguimiento facial" msgstr "Activar seguimiento facial"
#: client/scenes/lobby_gui.cpp:892 #: client/scenes/lobby_gui.cpp:849
msgid "Enable body tracking" msgid "Enable body tracking"
msgstr "Habilitar seguimiento corporal" msgstr "Habilitar seguimiento corporal"
#: client/scenes/lobby_gui.cpp:905 #: client/scenes/lobby_gui.cpp:862
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"
@@ -353,11 +343,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:915 #: client/scenes/lobby_gui.cpp:872
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:921 #: client/scenes/lobby_gui.cpp:878
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 "
@@ -368,11 +358,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:924 #: client/scenes/lobby_gui.cpp:881
msgid "Enable hip tracking" msgid "Enable hip tracking"
msgstr "Habilitar seguimiento de cintura" msgstr "Habilitar seguimiento de cintura"
#: client/scenes/lobby_gui.cpp:930 #: client/scenes/lobby_gui.cpp:887
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"
@@ -380,11 +370,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:939 #: client/scenes/lobby_gui.cpp:896
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:942 #: client/scenes/lobby_gui.cpp:899
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."
@@ -392,25 +382,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:946 #: client/scenes/lobby_gui.cpp:903
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:949 #: client/scenes/lobby_gui.cpp:906
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:963 client/scenes/stream_gui.cpp:473 #: client/scenes/lobby_gui.cpp:920 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:967 client/scenes/stream_gui.cpp:477 #: client/scenes/lobby_gui.cpp:924 client/scenes/stream_gui.cpp:477
msgid "Supersampling" msgid "Supersampling"
msgstr "Sobremuestreo" msgstr "Sobremuestreo"
#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498 #: client/scenes/lobby_gui.cpp:944 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"
@@ -419,11 +409,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:992 client/scenes/stream_gui.cpp:503 #: client/scenes/lobby_gui.cpp:949 client/scenes/stream_gui.cpp:503
msgid "Sharpening" msgid "Sharpening"
msgstr "Nitidez" msgstr "Nitidez"
#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524 #: client/scenes/lobby_gui.cpp:969 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"
@@ -432,129 +422,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:1196 client/scenes/lobby_gui.cpp:1204 #: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371 #: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:370
msgid "CPU time" msgid "CPU time"
msgstr "Tiempo de CPU" msgstr "Tiempo de CPU"
#: client/scenes/lobby_gui.cpp:1200 #: client/scenes/lobby_gui.cpp:1157
msgid "CPU time [ms]" msgid "CPU time [ms]"
msgstr "Tiempo de CPU [ms]" msgstr "Tiempo de CPU [ms]"
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218 #: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175
#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372 #: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:371
msgid "GPU time" msgid "GPU time"
msgstr "Tiempo de GPU" msgstr "Tiempo de GPU"
#: client/scenes/lobby_gui.cpp:1214 #: client/scenes/lobby_gui.cpp:1171
msgid "GPU time [ms]" msgid "GPU time [ms]"
msgstr "Tiempo de GPU [ms]" msgstr "Tiempo de GPU [ms]"
#: client/scenes/lobby_gui.cpp:1278 #: client/scenes/lobby_gui.cpp:1235
msgid "Enable the microphone?" msgid "Enable the microphone?"
msgstr "¿Habilitar micrófono?" msgstr "¿Habilitar micrófono?"
#: client/scenes/lobby_gui.cpp:1283 #: client/scenes/lobby_gui.cpp:1240
msgid "Enable eye tracking?" msgid "Enable eye tracking?"
msgstr "¿Habilitar seguimiento ocular?" msgstr "¿Habilitar seguimiento ocular?"
#: client/scenes/lobby_gui.cpp:1288 #: client/scenes/lobby_gui.cpp:1245
msgid "Enable face tracking?" msgid "Enable face tracking?"
msgstr "¿Habilitar seguimiento facial?" msgstr "¿Habilitar seguimiento facial?"
#: client/scenes/lobby_gui.cpp:1293 #: client/scenes/lobby_gui.cpp:1250
msgid "Enable body tracking?" msgid "Enable body tracking?"
msgstr "¿Habilitar seguimiento corporal?" msgstr "¿Habilitar seguimiento corporal?"
#: client/scenes/lobby_gui.cpp:1301 #: client/scenes/lobby_gui.cpp:1258
msgid "Welcome to WiVRn" msgid "Welcome to WiVRn"
msgstr "Bienvenido a WiVRn" msgstr "Bienvenido a WiVRn"
#: client/scenes/lobby_gui.cpp:1329 #: client/scenes/lobby_gui.cpp:1286
msgid "Yes" msgid "Yes"
msgstr "Sí" msgstr "Sí"
#: client/scenes/lobby_gui.cpp:1336 #: client/scenes/lobby_gui.cpp:1293
msgid "No" msgid "No"
msgstr "No" msgstr "No"
#: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001 #: client/scenes/lobby_gui.cpp:1312 client/scenes/lobby_gui.cpp:1958
msgid "Licenses" msgid "Licenses"
msgstr "Licencias" msgstr "Licencias"
#: client/scenes/lobby_gui.cpp:1631 #: client/scenes/lobby_gui.cpp:1588
msgid "Microphone is enabled" msgid "Microphone is enabled"
msgstr "Micrófono activado" msgstr "Micrófono activado"
#: client/scenes/lobby_gui.cpp:1632 #: client/scenes/lobby_gui.cpp:1589
msgid "Microphone is disabled" msgid "Microphone is disabled"
msgstr "Micrófono desactivado" msgstr "Micrófono desactivado"
#: client/scenes/lobby_gui.cpp:1641 #: client/scenes/lobby_gui.cpp:1598
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:1642 #: client/scenes/lobby_gui.cpp:1599
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:1651 #: client/scenes/lobby_gui.cpp:1608
msgid "Eye tracking is enabled" msgid "Eye tracking is enabled"
msgstr "Seguimiento ocular activado" msgstr "Seguimiento ocular activado"
#: client/scenes/lobby_gui.cpp:1652 #: client/scenes/lobby_gui.cpp:1609
msgid "Eye tracking is disabled" msgid "Eye tracking is disabled"
msgstr "Seguimiento ocular desactivado" msgstr "Seguimiento ocular desactivado"
#: client/scenes/lobby_gui.cpp:1662 #: client/scenes/lobby_gui.cpp:1619
msgid "Face tracking is enabled" msgid "Face tracking is enabled"
msgstr "Seguimiento facial activado" msgstr "Seguimiento facial activado"
#: client/scenes/lobby_gui.cpp:1663 #: client/scenes/lobby_gui.cpp:1620
msgid "Face tracking is disabled" msgid "Face tracking is disabled"
msgstr "Seguimiento facial desactivado" msgstr "Seguimiento facial desactivado"
#: client/scenes/lobby_gui.cpp:1677 #: client/scenes/lobby_gui.cpp:1634
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:1678 #: client/scenes/lobby_gui.cpp:1635
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:1694 #: client/scenes/lobby_gui.cpp:1651
msgid "Add server" msgid "Add server"
msgstr "Agregar servidor" msgstr "Agregar servidor"
#: client/scenes/lobby_gui.cpp:1980 #: client/scenes/lobby_gui.cpp:1937
msgid "Server list" msgid "Server list"
msgstr "Lista de servidores" msgstr "Lista de servidores"
#: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007 #: client/scenes/lobby_gui.cpp:1940 client/scenes/stream_gui.cpp:991
msgid "Settings" msgid "Settings"
msgstr "Configuración" msgstr "Configuración"
#: client/scenes/lobby_gui.cpp:1986 #: client/scenes/lobby_gui.cpp:1943
msgid "Post-processing" msgid "Post-processing"
msgstr "Post-procesamiento" msgstr "Post-procesamiento"
#: client/scenes/lobby_gui.cpp:1989 #: client/scenes/lobby_gui.cpp:1946
msgid "Customize" msgid "Customize"
msgstr "Personalización" msgstr "Personalización"
#: client/scenes/lobby_gui.cpp:1993 #: client/scenes/lobby_gui.cpp:1950
msgid "Debug" msgid "Debug"
msgstr "Depuración" msgstr "Depuración"
#: client/scenes/lobby_gui.cpp:1998 #: client/scenes/lobby_gui.cpp:1955
msgid "About" msgid "About"
msgstr "Acerca de" msgstr "Acerca de"
#: client/scenes/lobby_gui.cpp:2004 #: client/scenes/lobby_gui.cpp:1961
msgid "Exit" msgid "Exit"
msgstr "Salir" msgstr "Salir"
#: client/scenes/lobby_gui.cpp:2021 #: client/scenes/lobby_gui.cpp:1978
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"
@@ -562,7 +552,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:2023 #: client/scenes/lobby_gui.cpp:1980
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"
@@ -641,73 +631,73 @@ 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:175 #: client/scenes/stream_gui.cpp:174
msgid "Defoveate" msgid "Defoveate"
msgstr "Desfovear" msgstr "Desfovear"
#: client/scenes/stream_gui.cpp:177 #: client/scenes/stream_gui.cpp:176
msgid "Network" msgid "Network"
msgstr "Red" msgstr "Red"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369 #: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:368
msgid "Download" msgid "Download"
msgstr "Descargar" msgstr "Descargar"
#: 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 "Upload" msgid "Upload"
msgstr "Subir" msgstr "Subir"
#: client/scenes/stream_gui.cpp:247 #: client/scenes/stream_gui.cpp:246
#, c++-format #, c++-format
msgid "Decoder {}" msgid "Decoder {}"
msgstr "Decodificador {}" msgstr "Decodificador {}"
#: client/scenes/stream_gui.cpp:259 #: client/scenes/stream_gui.cpp:258
msgid "Timings [ms]" msgid "Timings [ms]"
msgstr "Tiempos [ms]" msgstr "Tiempos [ms]"
#: client/scenes/stream_gui.cpp:319 #: client/scenes/stream_gui.cpp:318
msgid "Encode" msgid "Encode"
msgstr "Codificar" msgstr "Codificar"
#: client/scenes/stream_gui.cpp:320 #: client/scenes/stream_gui.cpp:319
msgid "Send" msgid "Send"
msgstr "Enviar" msgstr "Enviar"
#: client/scenes/stream_gui.cpp:321 #: client/scenes/stream_gui.cpp:320
msgid "Receive" msgid "Receive"
msgstr "Recibir" msgstr "Recibir"
#: client/scenes/stream_gui.cpp:322 #: client/scenes/stream_gui.cpp:321
msgid "Decode" msgid "Decode"
msgstr "Decodificar" msgstr "Decodificar"
#: client/scenes/stream_gui.cpp:323 #: client/scenes/stream_gui.cpp:322
msgid "Blitted" msgid "Blitted"
msgstr "Copiado" msgstr "Copiado"
#: client/scenes/stream_gui.cpp:324 #: client/scenes/stream_gui.cpp:323
msgid "Displayed" msgid "Displayed"
msgstr "Mostrado" msgstr "Mostrado"
#: client/scenes/stream_gui.cpp:325 #: client/scenes/stream_gui.cpp:324
msgid "Predicted" msgid "Predicted"
msgstr "Previsto" msgstr "Previsto"
#: client/scenes/stream_gui.cpp:344 #: client/scenes/stream_gui.cpp:343
#, 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:349 #: client/scenes/stream_gui.cpp:348
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:351 client/scenes/stream_gui.cpp:738 #: client/scenes/stream_gui.cpp:350 client/scenes/stream_gui.cpp:918
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:373 #: client/scenes/stream_gui.cpp:372
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"
@@ -719,29 +709,29 @@ msgstr "Bitrate:"
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:532 #: client/scenes/stream_gui.cpp:531
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:535 #: client/scenes/stream_gui.cpp:534
msgid "Enable" msgid "Enable"
msgstr "Habilitar" msgstr "Habilitar"
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614 #: client/scenes/stream_gui.cpp:542 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:544 client/scenes/stream_gui.cpp:615 #: client/scenes/stream_gui.cpp:543 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:545 #: client/scenes/stream_gui.cpp:544
msgid "Default" msgid "Default"
msgstr "Por defecto" msgstr "Por defecto"
#: client/scenes/stream_gui.cpp:556 #: client/scenes/stream_gui.cpp:555
msgid "Change" msgid "Change"
msgstr "Cambiar" msgstr "Cambiar"
@@ -778,23 +768,23 @@ msgstr "Superposiciones"
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:993 #: client/scenes/stream_gui.cpp:977
msgid "Applications" msgid "Applications"
msgstr "Aplicaciones" msgstr "Aplicaciones"
#: client/scenes/stream_gui.cpp:996 #: client/scenes/stream_gui.cpp:980
msgid "Start" msgid "Start"
msgstr "Iniciar" msgstr "Iniciar"
#: client/scenes/stream_gui.cpp:1010 #: client/scenes/stream_gui.cpp:994
msgid "Stats" msgid "Stats"
msgstr "Estadísticas" msgstr "Estadísticas"
#: client/scenes/stream_gui.cpp:1016 #: client/scenes/stream_gui.cpp:1000
msgid "Statistics overlay" msgid "Statistics overlay"
msgstr "Superponer stats" msgstr "Superponer stats"
#: client/scenes/stream_gui.cpp:1019 #: client/scenes/stream_gui.cpp:1003
msgid "Compact view" msgid "Compact view"
msgstr "Vista compacta" msgstr "Vista compacta"
+31 -43
View File
@@ -6,8 +6,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-16 18:43+0100\n" "POT-Creation-Date: 2026-02-02 10:52+0100\n"
"PO-Revision-Date: 2026-02-16 21:47+0100\n" "PO-Revision-Date: 2026-02-02 10:53+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"
@@ -117,8 +117,8 @@ msgstr "Vérification de la dernière version..."
msgid "No APK is available for this version" msgid "No APK is available for this version"
msgstr "Aucun APK n'est disponible pour cette version" msgstr "Aucun APK n'est disponible pour cette version"
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:376 #: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:368
#: dashboard/qml/Main.qml:434 dashboard/qml/WizardPage.qml:211 #: dashboard/qml/Main.qml:426 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"
@@ -160,7 +160,7 @@ msgstr "Réinstaller WiVRn"
msgid "Install WiVRn" msgid "Install WiVRn"
msgstr "Installer WiVRn" msgstr "Installer WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:439 #: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:431
#, kde-format #, kde-format
msgid "Headsets" msgid "Headsets"
msgstr "Casques" msgstr "Casques"
@@ -287,7 +287,7 @@ msgid "Avahi daemon is not started"
msgstr "Avahi daemon n'est pas démarré" msgstr "Avahi daemon n'est pas démarré"
#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171 #: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171
#: dashboard/qml/Main.qml:231 #: dashboard/qml/Main.qml:223
#, kde-format #, kde-format
msgid "Fix it" msgid "Fix it"
msgstr "Corriger" msgstr "Corriger"
@@ -312,18 +312,6 @@ msgstr "Plus d'infos"
#: 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 ""
"Impossible de trouver les drivers Vulkan, il est peut-être nécessaire "
"d'exécuter \"flatpak update\""
#: dashboard/qml/Main.qml:193
#, kde-format
msgid "Vulkan drivers cannot be found"
msgstr "Impossible de trouver les drivers 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"
@@ -331,7 +319,7 @@ msgstr ""
"Utilisez le driver Mesa (redv) pour les GPUs AMD\n" "Utilisez le driver Mesa (redv) pour les GPUs AMD\n"
"L'encodage matériel avec vaapi ne fonctionne pas avec AMDVLK et AMDGPU-PRO" "L'encodage matériel avec vaapi ne fonctionne pas avec AMDVLK et AMDGPU-PRO"
#: dashboard/qml/Main.qml:209 #: dashboard/qml/Main.qml:201
#, 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"
@@ -341,14 +329,14 @@ msgstr ""
"pourront pas charger le mode VR.\n" "pourront pas charger le mode VR.\n"
"Veuillez installer xrizer ou OpenComposite." "Veuillez installer xrizer ou OpenComposite."
#: dashboard/qml/Main.qml:217 #: dashboard/qml/Main.qml:209
#, 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 "" msgstr ""
"Steam est installé en tant que snap. Les snaps ne sont pas compatibles avec " "Steam est installé en tant que snap. Les snaps ne sont pas compatibles avec "
"WiVRn." "WiVRn."
#: dashboard/qml/Main.qml:225 #: dashboard/qml/Main.qml:217
#, 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."
@@ -356,114 +344,114 @@ msgstr ""
"Steam est installé en tant que flatpak mais n'a pas les autorisations " "Steam est installé en tant que flatpak mais n'a pas les autorisations "
"nécessaires." "nécessaires."
#: dashboard/qml/Main.qml:240 #: dashboard/qml/Main.qml:232
#, 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 "Redémarez le serveur pour appliquer les changements" msgstr "Redémarez le serveur pour appliquer les changements"
#: dashboard/qml/Main.qml:246 #: dashboard/qml/Main.qml:238
#, kde-format #, kde-format
msgctxt "restart the server" msgctxt "restart the server"
msgid "Restart now" msgid "Restart now"
msgstr "Redémarrer" msgstr "Redémarrer"
#: dashboard/qml/Main.qml:271 #: dashboard/qml/Main.qml:263
#, kde-format #, kde-format
msgid "Server failed to start" msgid "Server failed to start"
msgstr "Le serveur n'a pas pu démarrer" msgstr "Le serveur n'a pas pu démarrer"
#: dashboard/qml/Main.qml:277 dashboard/qml/TroubleshootPage.qml:89 #: dashboard/qml/Main.qml:269 dashboard/qml/TroubleshootPage.qml:89
#, kde-format #, kde-format
msgid "Open server logs" msgid "Open server logs"
msgstr "Ouvrir les logs du serveur" msgstr "Ouvrir les logs du serveur"
#: dashboard/qml/Main.qml:303 #: dashboard/qml/Main.qml:295
#, kde-format #, kde-format
msgid "Server status" msgid "Server status"
msgstr "Serveur" msgstr "Serveur"
#: dashboard/qml/Main.qml:309 #: dashboard/qml/Main.qml:301
#, 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 "Démarré" msgstr "Démarré"
#: dashboard/qml/Main.qml:322 #: dashboard/qml/Main.qml:314
#, 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 "Appairage" msgstr "Appairage"
#: dashboard/qml/Main.qml:342 #: dashboard/qml/Main.qml:334
#, kde-format #, kde-format
msgid "Headset status" msgid "Headset status"
msgstr "Casque" msgstr "Casque"
#: dashboard/qml/Main.qml:349 #: dashboard/qml/Main.qml:341
#, 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 "Casque" msgstr "Casque"
#: dashboard/qml/Main.qml:352 #: dashboard/qml/Main.qml:344
#, kde-format #, kde-format
msgid "Not connected" msgid "Not connected"
msgstr "Déconnecté" msgstr "Déconnecté"
#: dashboard/qml/Main.qml:356 #: dashboard/qml/Main.qml:348
#, kde-format #, kde-format
msgid "Disconnect" msgid "Disconnect"
msgstr "Déconnecter" msgstr "Déconnecter"
#: dashboard/qml/Main.qml:365 dashboard/qml/Main.qml:373 #: dashboard/qml/Main.qml:357 dashboard/qml/Main.qml:365
#: dashboard/qml/Main.qml:380 #: dashboard/qml/Main.qml:372
#, 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:366 #: dashboard/qml/Main.qml:358
#, kde-format #, kde-format
msgctxt "usb connect button" msgctxt "usb connect button"
msgid "Connect (wired)" msgid "Connect (wired)"
msgstr "Connecter (filaire)" msgstr "Connecter (filaire)"
#: dashboard/qml/Main.qml:383 dashboard/qml/WizardPage.qml:339 #: dashboard/qml/Main.qml:375 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 "Le casque n'est pas connecté ou n'est pas en mode développeur" msgstr "Le casque n'est pas connecté ou n'est pas en mode développeur"
#: dashboard/qml/Main.qml:404 #: dashboard/qml/Main.qml:396
#, kde-format #, kde-format
msgid "Steam information" msgid "Steam information"
msgstr "Informations pour Steam" msgstr "Informations pour Steam"
#: dashboard/qml/Main.qml:420 #: dashboard/qml/Main.qml:412
#, kde-format #, kde-format
msgid "Wizard" msgid "Wizard"
msgstr "Assistant" msgstr "Assistant"
#: dashboard/qml/Main.qml:426 #: dashboard/qml/Main.qml:418
#, kde-format #, kde-format
msgid "Install the app" msgid "Install the app"
msgstr "Installer l'appli" msgstr "Installer l'appli"
#: dashboard/qml/Main.qml:445 dashboard/qml/SettingsPage.qml:14 #: dashboard/qml/Main.qml:437 dashboard/qml/SettingsPage.qml:14
#, kde-format #, kde-format
msgid "Settings" msgid "Settings"
msgstr "Paramètres" msgstr "Paramètres"
#: dashboard/qml/Main.qml:451 #: dashboard/qml/Main.qml:443
#, kde-format #, kde-format
msgid "About" msgid "About"
msgstr "À propos" msgstr "À propos"
#: dashboard/qml/Main.qml:456 dashboard/qml/TroubleshootPage.qml:10 #: dashboard/qml/Main.qml:448 dashboard/qml/TroubleshootPage.qml:10
#, kde-format #, kde-format
msgid "Troubleshoot" msgid "Troubleshoot"
msgstr "Dépannage" msgstr "Dépannage"
#: dashboard/qml/Main.qml:463 #: dashboard/qml/Main.qml:455
#, kde-format #, kde-format
msgid "Version %1" msgid "Version %1"
msgstr "Version %1" msgstr "Version %1"
+145 -155
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-2026. # Guillaume Meunier <guillaume.meunier@centraliens.net>, 2025.
# #
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: 2026-02-27 16:09+0100\n" "POT-Creation-Date: 2025-12-29 15:36+0100\n"
"PO-Revision-Date: 2026-02-27 16:12+0100\n" "PO-Revision-Date: 2025-12-29 15:40+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:127 #: client/scenes/app_launcher.cpp:128
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:129 #: client/scenes/app_launcher.cpp:130
#, c++-format #, c++-format
msgid "Connected to {}" msgid "Connected to {}"
msgstr "Connecté à {}" msgstr "Connecté à {}"
#: client/scenes/app_launcher.cpp:135 #: client/scenes/app_launcher.cpp:136
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:145 #: client/scenes/app_launcher.cpp:146
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:147 #: client/scenes/app_launcher.cpp:148
#, 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:1316 #: client/scenes/lobby.cpp:1319
msgid "Passthrough" msgid "Passthrough"
msgstr "Vue réelle" msgstr "Vue réelle"
#: client/scenes/lobby.cpp:1328 #: client/scenes/lobby.cpp:1331
msgid "Default environment" msgid "Default environment"
msgstr "Environnement par défaut" msgstr "Environnement par défaut"
@@ -96,15 +96,14 @@ 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:254 #: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
#: client/scenes/stream_gui.cpp:1026 #: client/scenes/stream_gui.cpp:1015
msgid "Disconnect" msgid "Disconnect"
msgstr "Déconnecter" msgstr "Déconnecter"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264 #: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
#: 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:1022 #: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011
msgid "Close" msgid "Close"
msgstr "Fermer" msgstr "Fermer"
@@ -125,41 +124,32 @@ 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:327 #: client/scenes/lobby_gui.cpp:295
msgid "Address" msgid "Address"
msgstr "Adresse" msgstr "Adresse"
#: client/scenes/lobby_gui.cpp:336 #: client/scenes/lobby_gui.cpp:304
msgid "Port" msgid "Port"
msgstr "Port" msgstr "Port"
#: client/scenes/lobby_gui.cpp:344 #: client/scenes/lobby_gui.cpp:312
msgid "TCP only" msgid "TCP only"
msgstr "TCP seulement" msgstr "TCP seulement"
#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655 #: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:978 #: client/scenes/stream_gui.cpp:968
msgid "Cancel" msgid "Cancel"
msgstr "Annuler" msgstr "Annuler"
#: client/scenes/lobby_gui.cpp:365 #: client/scenes/lobby_gui.cpp:333
msgid "Save" msgid "Save"
msgstr "Enregistrer" msgstr "Enregistrer"
#: client/scenes/lobby_gui.cpp:418 #: client/scenes/lobby_gui.cpp:386
msgid "" msgid ""
"Start a WiVRn server on your\n" "Start a WiVRn server on your\n"
"local network" "local network"
@@ -167,46 +157,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:450 #: client/scenes/lobby_gui.cpp:418
msgid "Autoconnect" msgid "Autoconnect"
msgstr "Autoconnexion" msgstr "Autoconnexion"
#: client/scenes/lobby_gui.cpp:476 #: client/scenes/lobby_gui.cpp:444
msgid "Connect" msgid "Connect"
msgstr "Connexion" msgstr "Connexion"
#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186 #: client/scenes/lobby_gui.cpp:454 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:488 #: client/scenes/lobby_gui.cpp:456
msgid "Server not available" msgid "Server not available"
msgstr "Serveur non disponible" msgstr "Serveur non disponible"
#: client/scenes/lobby_gui.cpp:581 #: client/scenes/lobby_gui.cpp:538
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:595 #: client/scenes/lobby_gui.cpp:552
msgid "Language" msgid "Language"
msgstr "Langue" msgstr "Langue"
#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597 #: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554
msgid "System language" msgid "System language"
msgstr "Langue système" msgstr "Langue système"
#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412 #: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417
msgid "Refresh rate" msgid "Refresh rate"
msgstr "Taux de rafraichissement" msgstr "Taux de rafraichissement"
#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625 #: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414 #: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419
msgctxt "automatic refresh rate" msgctxt "automatic refresh rate"
msgid "Automatic" msgid "Automatic"
msgstr "Automatique" msgstr "Automatique"
#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421 #: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427
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."
@@ -215,38 +205,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:649 client/scenes/stream_gui.cpp:439 #: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445
msgid "Minimum refresh rate" msgid "Minimum refresh rate"
msgstr "Taux minimal" msgstr "Taux minimal"
#: client/scenes/lobby_gui.cpp:675 #: client/scenes/lobby_gui.cpp:632
msgid "Foveation level" msgid "Foveation level"
msgstr "Niveau de fovéation" msgstr "Niveau de fovéation"
#: client/scenes/lobby_gui.cpp:698 #: client/scenes/lobby_gui.cpp:655
msgid "Render resolution" msgid "Render resolution"
msgstr "Résolution de rendu" msgstr "Résolution de rendu"
#: client/scenes/lobby_gui.cpp:702 #: client/scenes/lobby_gui.cpp:659
#, 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:713 #: client/scenes/lobby_gui.cpp:670
#, 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:723 #: client/scenes/lobby_gui.cpp:680
msgid "Foveated encoding" msgid "Foveated encoding"
msgstr "Fovéation d'encodage" msgstr "Fovéation d'encodage"
#: client/scenes/lobby_gui.cpp:727 #: client/scenes/lobby_gui.cpp:684
#, c-format, c++-format #, c-format, c++-format
msgid "{}%%" msgid "{}%%"
msgstr "{} %%" msgstr "{} %%"
#: client/scenes/lobby_gui.cpp:740 #: client/scenes/lobby_gui.cpp:697
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."
@@ -255,7 +245,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:743 #: client/scenes/lobby_gui.cpp:700
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."
@@ -264,88 +254,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:752 #: client/scenes/lobby_gui.cpp:709
msgctxt "Codec" msgctxt "Codec"
msgid "Automatic" msgid "Automatic"
msgstr "Automatique" msgstr "Automatique"
#: client/scenes/lobby_gui.cpp:756 #: client/scenes/lobby_gui.cpp:713
msgctxt "Codec" msgctxt "Codec"
msgid "H.264" msgid "H.264"
msgstr "H.264" msgstr "H.264"
#: client/scenes/lobby_gui.cpp:758 #: client/scenes/lobby_gui.cpp:715
msgctxt "Codec" msgctxt "Codec"
msgid "H.265" msgid "H.265"
msgstr "H.265" msgstr "H.265"
#: client/scenes/lobby_gui.cpp:760 #: client/scenes/lobby_gui.cpp:717
msgctxt "Codec" msgctxt "Codec"
msgid "AV1" msgid "AV1"
msgstr "AV1" msgstr "AV1"
#: client/scenes/lobby_gui.cpp:768 #: client/scenes/lobby_gui.cpp:725
msgid "Codec" msgid "Codec"
msgstr "Codec" msgstr "Codec"
#: client/scenes/lobby_gui.cpp:796 #: client/scenes/lobby_gui.cpp:753
msgid "10-bit" msgid "10-bit"
msgstr "10 bits" msgstr "10 bits"
#: client/scenes/lobby_gui.cpp:812 #: client/scenes/lobby_gui.cpp:768
msgid "Bitrate" msgid "Bitrate"
msgstr "Débit" msgstr "Débit"
#: client/scenes/lobby_gui.cpp:816 #: client/scenes/lobby_gui.cpp:772
#, c++-format #, c++-format
msgid "{}Mbit/s" msgid "{}Mbit/s"
msgstr "{} Mbit/s" msgstr "{} Mbit/s"
#: client/scenes/lobby_gui.cpp:827 #: client/scenes/lobby_gui.cpp:783
msgid "High power mode" msgid "High power mode"
msgstr "Mode haute consommation" msgstr "Mode haute consommation"
#: client/scenes/lobby_gui.cpp:830 #: client/scenes/lobby_gui.cpp:786
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:836 #: client/scenes/lobby_gui.cpp:792
msgid "Enable microphone" msgid "Enable microphone"
msgstr "Activer le micro" msgstr "Activer le micro"
#: client/scenes/lobby_gui.cpp:845 #: client/scenes/lobby_gui.cpp:801
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:851 #: client/scenes/lobby_gui.cpp:807
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:858 #: client/scenes/lobby_gui.cpp:814
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:864 client/scenes/lobby_gui.cpp:875 #: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831
#: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900 #: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856
#: 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:869 #: client/scenes/lobby_gui.cpp:825
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:880 #: client/scenes/lobby_gui.cpp:836
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:892 #: client/scenes/lobby_gui.cpp:848
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:905 #: client/scenes/lobby_gui.cpp:861
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"
@@ -356,11 +346,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:915 #: client/scenes/lobby_gui.cpp:871
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:921 #: client/scenes/lobby_gui.cpp:877
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 "
@@ -371,11 +361,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:924 #: client/scenes/lobby_gui.cpp:880
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:930 #: client/scenes/lobby_gui.cpp:886
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"
@@ -383,11 +373,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:939 #: client/scenes/lobby_gui.cpp:895
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:942 #: client/scenes/lobby_gui.cpp:898
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."
@@ -397,25 +387,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:946 #: client/scenes/lobby_gui.cpp:902
msgid "Extended configuration values" msgid "Extended configuration values"
msgstr "Valeurs de configuration étendues" msgstr "Valeurs de configuration étendues"
#: client/scenes/lobby_gui.cpp:949 #: client/scenes/lobby_gui.cpp:905
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:963 client/scenes/stream_gui.cpp:473 #: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479
msgid "OpenXR post-processing" msgid "OpenXR post-processing"
msgstr "Post-traitement OpenXR" msgstr "Post-traitement OpenXR"
#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477 #: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483
msgid "Supersampling" msgid "Supersampling"
msgstr "Suréchantillonnage" msgstr "Suréchantillonnage"
#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498 #: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504
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"
@@ -423,11 +413,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:992 client/scenes/stream_gui.cpp:503 #: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:509
msgid "Sharpening" msgid "Sharpening"
msgstr "Affinage de netteté" msgstr "Affinage de netteté"
#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524 #: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530
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"
@@ -435,129 +425,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:1196 client/scenes/lobby_gui.cpp:1204 #: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371 #: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373
msgid "CPU time" msgid "CPU time"
msgstr "Temps CPU" msgstr "Temps CPU"
#: client/scenes/lobby_gui.cpp:1200 #: client/scenes/lobby_gui.cpp:1156
msgid "CPU time [ms]" msgid "CPU time [ms]"
msgstr "Temps CPU [ms]" msgstr "Temps CPU [ms]"
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218 #: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372 #: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374
msgid "GPU time" msgid "GPU time"
msgstr "Temps GPU" msgstr "Temps GPU"
#: client/scenes/lobby_gui.cpp:1214 #: client/scenes/lobby_gui.cpp:1170
msgid "GPU time [ms]" msgid "GPU time [ms]"
msgstr "Temps GPU [ms]" msgstr "Temps GPU [ms]"
#: client/scenes/lobby_gui.cpp:1278 #: client/scenes/lobby_gui.cpp:1234
msgid "Enable the microphone?" msgid "Enable the microphone?"
msgstr "Activer le micro ?" msgstr "Activer le micro ?"
#: client/scenes/lobby_gui.cpp:1283 #: client/scenes/lobby_gui.cpp:1239
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:1288 #: client/scenes/lobby_gui.cpp:1244
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:1293 #: client/scenes/lobby_gui.cpp:1249
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:1301 #: client/scenes/lobby_gui.cpp:1257
msgid "Welcome to WiVRn" msgid "Welcome to WiVRn"
msgstr "Bienvenue sur WiVRn" msgstr "Bienvenue sur WiVRn"
#: client/scenes/lobby_gui.cpp:1329 #: client/scenes/lobby_gui.cpp:1285
msgid "Yes" msgid "Yes"
msgstr "Oui" msgstr "Oui"
#: client/scenes/lobby_gui.cpp:1336 #: client/scenes/lobby_gui.cpp:1292
msgid "No" msgid "No"
msgstr "Non" msgstr "Non"
#: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001 #: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
msgid "Licenses" msgid "Licenses"
msgstr "Licences" msgstr "Licences"
#: client/scenes/lobby_gui.cpp:1631 #: client/scenes/lobby_gui.cpp:1587
msgid "Microphone is enabled" msgid "Microphone is enabled"
msgstr "Le micro est activé" msgstr "Le micro est activé"
#: client/scenes/lobby_gui.cpp:1632 #: client/scenes/lobby_gui.cpp:1588
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:1641 #: client/scenes/lobby_gui.cpp:1597
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:1642 #: client/scenes/lobby_gui.cpp:1598
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:1651 #: client/scenes/lobby_gui.cpp:1607
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:1652 #: client/scenes/lobby_gui.cpp:1608
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:1662 #: client/scenes/lobby_gui.cpp:1618
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:1663 #: client/scenes/lobby_gui.cpp:1619
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:1677 #: client/scenes/lobby_gui.cpp:1633
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:1678 #: client/scenes/lobby_gui.cpp:1634
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:1694 #: client/scenes/lobby_gui.cpp:1650
msgid "Add server" msgid "Add server"
msgstr "Ajouter un serveur" msgstr "Ajouter un serveur"
#: client/scenes/lobby_gui.cpp:1980 #: client/scenes/lobby_gui.cpp:1936
msgid "Server list" msgid "Server list"
msgstr "Serveurs" msgstr "Serveurs"
#: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007 #: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996
msgid "Settings" msgid "Settings"
msgstr "Paramètres" msgstr "Paramètres"
#: client/scenes/lobby_gui.cpp:1986 #: client/scenes/lobby_gui.cpp:1942
msgid "Post-processing" msgid "Post-processing"
msgstr "Post-traitement" msgstr "Post-traitement"
#: client/scenes/lobby_gui.cpp:1989 #: client/scenes/lobby_gui.cpp:1945
msgid "Customize" msgid "Customize"
msgstr "Personnaliser" msgstr "Personnaliser"
#: client/scenes/lobby_gui.cpp:1993 #: client/scenes/lobby_gui.cpp:1949
msgid "Debug" msgid "Debug"
msgstr "Debug" msgstr "Debug"
#: client/scenes/lobby_gui.cpp:1998 #: client/scenes/lobby_gui.cpp:1954
msgid "About" msgid "About"
msgstr "À propos" msgstr "À propos"
#: client/scenes/lobby_gui.cpp:2004 #: client/scenes/lobby_gui.cpp:1960
msgid "Exit" msgid "Exit"
msgstr "Quitter" msgstr "Quitter"
#: client/scenes/lobby_gui.cpp:2021 #: client/scenes/lobby_gui.cpp:1977
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"
@@ -565,7 +555,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:2023 #: client/scenes/lobby_gui.cpp:1979
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"
@@ -644,56 +634,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:175 #: client/scenes/stream_gui.cpp:174
msgid "Defoveate" msgid "Defoveate"
msgstr "Défovéation" msgstr "Défovéation"
#: client/scenes/stream_gui.cpp:177 #: client/scenes/stream_gui.cpp:176
msgid "Network" msgid "Network"
msgstr "Réseau" msgstr "Réseau"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369 #: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371
msgid "Download" msgid "Download"
msgstr "Téléchargement" msgstr "Téléchargement"
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370 #: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
msgid "Upload" msgid "Upload"
msgstr "Téléversement" msgstr "Téléversement"
#: client/scenes/stream_gui.cpp:247 #: client/scenes/stream_gui.cpp:246
#, c++-format #, c++-format
msgid "Decoder {}" msgid "Decoder {}"
msgstr "Décodeur {}" msgstr "Décodeur {}"
#: client/scenes/stream_gui.cpp:259 #: client/scenes/stream_gui.cpp:258
msgid "Timings [ms]" msgid "Timings [ms]"
msgstr "Durées [ms]" msgstr "Durées [ms]"
#: client/scenes/stream_gui.cpp:319 #: client/scenes/stream_gui.cpp:318
msgid "Encode" msgid "Encode"
msgstr "Encodage" msgstr "Encodage"
#: client/scenes/stream_gui.cpp:320 #: client/scenes/stream_gui.cpp:319
msgid "Send" msgid "Send"
msgstr "Envoi" msgstr "Envoi"
#: client/scenes/stream_gui.cpp:321 #: client/scenes/stream_gui.cpp:320
msgid "Receive" msgid "Receive"
msgstr "Réception" msgstr "Réception"
#: client/scenes/stream_gui.cpp:322 #: client/scenes/stream_gui.cpp:321
msgid "Decode" msgid "Decode"
msgstr "Décodage" msgstr "Décodage"
#: client/scenes/stream_gui.cpp:323 #: client/scenes/stream_gui.cpp:322
msgid "Blitted" msgid "Blitted"
msgstr "Copie" msgstr "Copie"
#: client/scenes/stream_gui.cpp:324 #: client/scenes/stream_gui.cpp:323
msgid "Displayed" msgid "Displayed"
msgstr "Affichage" msgstr "Affichage"
#: client/scenes/stream_gui.cpp:325 #: client/scenes/stream_gui.cpp:324
msgid "Predicted" msgid "Predicted"
msgstr "Prédiction" msgstr "Prédiction"
@@ -702,102 +692,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:349 #: client/scenes/stream_gui.cpp:351
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:351 client/scenes/stream_gui.cpp:738 #: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:924
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:373 #: client/scenes/stream_gui.cpp:375
msgid "Motion to photon latency" msgid "Motion to photon latency"
msgstr "Latence mouvements à photons" msgstr "Latence mouvements à photons"
#: client/scenes/stream_gui.cpp:458 #: client/scenes/stream_gui.cpp:464
msgid "Bitrate:" msgid "Bitrate:"
msgstr "Débit :" msgstr "Débit :"
#: client/scenes/stream_gui.cpp:468 #: client/scenes/stream_gui.cpp:474
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:532 #: client/scenes/stream_gui.cpp:537
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:535 #: client/scenes/stream_gui.cpp:540
msgid "Enable" msgid "Enable"
msgstr "Activer" msgstr "Activer"
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614 #: client/scenes/stream_gui.cpp:548 client/scenes/stream_gui.cpp:620
#, 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:544 client/scenes/stream_gui.cpp:615 #: client/scenes/stream_gui.cpp:549 client/scenes/stream_gui.cpp:621
#, 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:545 #: client/scenes/stream_gui.cpp:550
msgid "Default" msgid "Default"
msgstr "Réinitialiser" msgstr "Réinitialiser"
#: client/scenes/stream_gui.cpp:556 #: client/scenes/stream_gui.cpp:561
msgid "Change" msgid "Change"
msgstr "Ajuster" msgstr "Ajuster"
#: client/scenes/stream_gui.cpp:588 #: client/scenes/stream_gui.cpp:594
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:589 #: client/scenes/stream_gui.cpp:595
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:590 #: client/scenes/stream_gui.cpp:596
#, 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:612 #: client/scenes/stream_gui.cpp:618
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:613 #: client/scenes/stream_gui.cpp:619
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:671 #: client/scenes/stream_gui.cpp:677
msgid "Running XR applications:" msgid "Running XR applications:"
msgstr "Applications XR lancées :" msgstr "Applications XR lancées :"
#: client/scenes/stream_gui.cpp:688 #: client/scenes/stream_gui.cpp:694
msgid "Overlays" msgid "Overlays"
msgstr "Surcouches" msgstr "Surcouches"
#: client/scenes/stream_gui.cpp:727 #: client/scenes/stream_gui.cpp:733
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:993 #: client/scenes/stream_gui.cpp:983
msgid "Applications" msgid "Applications"
msgstr "Applications" msgstr "Applications"
#: client/scenes/stream_gui.cpp:996 #: client/scenes/stream_gui.cpp:986
msgid "Start" msgid "Start"
msgstr "Démarrer" msgstr "Démarrer"
#: client/scenes/stream_gui.cpp:1010 #: client/scenes/stream_gui.cpp:999
msgid "Stats" msgid "Stats"
msgstr "Statistiques" msgstr "Statistiques"
#: client/scenes/stream_gui.cpp:1016 #: client/scenes/stream_gui.cpp:1005
msgid "Statistics overlay" msgid "Statistics overlay"
msgstr "Statistiques seules" msgstr "Statistiques seules"
#: client/scenes/stream_gui.cpp:1019 #: client/scenes/stream_gui.cpp:1008
msgid "Compact view" msgid "Compact view"
msgstr "Vue compacte" msgstr "Vue compacte"
+145 -155
View File
@@ -1,12 +1,12 @@
# #
# Albano Battistella <albanobattistella@gmail.com>, 2025-2026. # Albano Battistella <albanobattistella@gmail.com>, 2025.
# #
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: 2026-02-27 16:09+0100\n" "POT-Creation-Date: 2025-12-29 15:36+0100\n"
"PO-Revision-Date: 2026-02-27 16:11+0100\n" "PO-Revision-Date: 2025-12-29 15:38+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:127 #: client/scenes/app_launcher.cpp:128
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:129 #: client/scenes/app_launcher.cpp:130
#, c++-format #, c++-format
msgid "Connected to {}" msgid "Connected to {}"
msgstr "Connesso a {}" msgstr "Connesso a {}"
#: client/scenes/app_launcher.cpp:135 #: client/scenes/app_launcher.cpp:136
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:145 #: client/scenes/app_launcher.cpp:146
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:147 #: client/scenes/app_launcher.cpp:148
#, 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:1316 #: client/scenes/lobby.cpp:1319
msgid "Passthrough" msgid "Passthrough"
msgstr "Vista reale" msgstr "Vista reale"
#: client/scenes/lobby.cpp:1328 #: client/scenes/lobby.cpp:1331
msgid "Default environment" msgid "Default environment"
msgstr "Ambiente di default" msgstr "Ambiente di default"
@@ -91,15 +91,14 @@ msgctxt "openxr_post_processing"
msgid "Disabled" msgid "Disabled"
msgstr "Disattivato" msgstr "Disattivato"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254 #: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
#: client/scenes/stream_gui.cpp:1026 #: client/scenes/stream_gui.cpp:1015
msgid "Disconnect" msgid "Disconnect"
msgstr "Sconnetti" msgstr "Sconnetti"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264 #: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
#: 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:1022 #: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011
msgid "Close" msgid "Close"
msgstr "Chiudi" msgstr "Chiudi"
@@ -120,41 +119,32 @@ 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:327 #: client/scenes/lobby_gui.cpp:295
msgid "Address" msgid "Address"
msgstr "Indirizzo" msgstr "Indirizzo"
#: client/scenes/lobby_gui.cpp:336 #: client/scenes/lobby_gui.cpp:304
msgid "Port" msgid "Port"
msgstr "Porta" msgstr "Porta"
#: client/scenes/lobby_gui.cpp:344 #: client/scenes/lobby_gui.cpp:312
msgid "TCP only" msgid "TCP only"
msgstr "Solo TCP" msgstr "Solo TCP"
#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655 #: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:978 #: client/scenes/stream_gui.cpp:968
msgid "Cancel" msgid "Cancel"
msgstr "Annulla" msgstr "Annulla"
#: client/scenes/lobby_gui.cpp:365 #: client/scenes/lobby_gui.cpp:333
msgid "Save" msgid "Save"
msgstr "Salva" msgstr "Salva"
#: client/scenes/lobby_gui.cpp:418 #: client/scenes/lobby_gui.cpp:386
msgid "" msgid ""
"Start a WiVRn server on your\n" "Start a WiVRn server on your\n"
"local network" "local network"
@@ -162,46 +152,46 @@ msgstr ""
"Avvia un server WiVRn sulla\n" "Avvia un server WiVRn sulla\n"
"rete locale" "rete locale"
#: client/scenes/lobby_gui.cpp:450 #: client/scenes/lobby_gui.cpp:418
msgid "Autoconnect" msgid "Autoconnect"
msgstr "Connessione automatica" msgstr "Connessione automatica"
#: client/scenes/lobby_gui.cpp:476 #: client/scenes/lobby_gui.cpp:444
msgid "Connect" msgid "Connect"
msgstr "Connetti" msgstr "Connetti"
#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186 #: client/scenes/lobby_gui.cpp:454 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:488 #: client/scenes/lobby_gui.cpp:456
msgid "Server not available" msgid "Server not available"
msgstr "Server non disponibile" msgstr "Server non disponibile"
#: client/scenes/lobby_gui.cpp:581 #: client/scenes/lobby_gui.cpp:538
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:595 #: client/scenes/lobby_gui.cpp:552
msgid "Language" msgid "Language"
msgstr "Lingua" msgstr "Lingua"
#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597 #: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554
msgid "System language" msgid "System language"
msgstr "Lingua del sistema" msgstr "Lingua del sistema"
#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412 #: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417
msgid "Refresh rate" msgid "Refresh rate"
msgstr "Frequenza di aggiornamento" msgstr "Frequenza di aggiornamento"
#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625 #: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414 #: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419
msgctxt "automatic refresh rate" msgctxt "automatic refresh rate"
msgid "Automatic" msgid "Automatic"
msgstr "Automatica" msgstr "Automatica"
#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421 #: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427
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."
@@ -210,39 +200,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:649 client/scenes/stream_gui.cpp:439 #: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445
msgid "Minimum refresh rate" msgid "Minimum refresh rate"
msgstr "Frequenza minima" msgstr "Frequenza minima"
#: client/scenes/lobby_gui.cpp:675 #: client/scenes/lobby_gui.cpp:632
msgid "Foveation level" msgid "Foveation level"
msgstr "Intensità di foveazione" msgstr "Intensità di foveazione"
#: client/scenes/lobby_gui.cpp:698 #: client/scenes/lobby_gui.cpp:655
msgid "Render resolution" msgid "Render resolution"
msgstr "Risoluzione del gioco" msgstr "Risoluzione del gioco"
#: client/scenes/lobby_gui.cpp:702 #: client/scenes/lobby_gui.cpp:659
#, 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:713 #: client/scenes/lobby_gui.cpp:670
#, 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:723 #: client/scenes/lobby_gui.cpp:680
msgid "Foveated encoding" msgid "Foveated encoding"
msgstr "Foveazione della codifica" msgstr "Foveazione della codifica"
#: client/scenes/lobby_gui.cpp:727 #: client/scenes/lobby_gui.cpp:684
#, c-format, c++-format #, c-format, c++-format
msgid "{}%%" msgid "{}%%"
msgstr "{}%%" msgstr "{}%%"
#: client/scenes/lobby_gui.cpp:740 #: client/scenes/lobby_gui.cpp:697
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."
@@ -250,7 +240,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:743 #: client/scenes/lobby_gui.cpp:700
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."
@@ -258,88 +248,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:752 #: client/scenes/lobby_gui.cpp:709
msgctxt "Codec" msgctxt "Codec"
msgid "Automatic" msgid "Automatic"
msgstr "Automatico" msgstr "Automatico"
#: client/scenes/lobby_gui.cpp:756 #: client/scenes/lobby_gui.cpp:713
msgctxt "Codec" msgctxt "Codec"
msgid "H.264" msgid "H.264"
msgstr "H.264" msgstr "H.264"
#: client/scenes/lobby_gui.cpp:758 #: client/scenes/lobby_gui.cpp:715
msgctxt "Codec" msgctxt "Codec"
msgid "H.265" msgid "H.265"
msgstr "H.265" msgstr "H.265"
#: client/scenes/lobby_gui.cpp:760 #: client/scenes/lobby_gui.cpp:717
msgctxt "Codec" msgctxt "Codec"
msgid "AV1" msgid "AV1"
msgstr "AV1" msgstr "AV1"
#: client/scenes/lobby_gui.cpp:768 #: client/scenes/lobby_gui.cpp:725
msgid "Codec" msgid "Codec"
msgstr "Codec" msgstr "Codec"
#: client/scenes/lobby_gui.cpp:796 #: client/scenes/lobby_gui.cpp:753
msgid "10-bit" msgid "10-bit"
msgstr "10 bit" msgstr "10 bit"
#: client/scenes/lobby_gui.cpp:812 #: client/scenes/lobby_gui.cpp:768
msgid "Bitrate" msgid "Bitrate"
msgstr "Velocità di trasmissione" msgstr "Velocità di trasmissione"
#: client/scenes/lobby_gui.cpp:816 #: client/scenes/lobby_gui.cpp:772
#, c++-format #, c++-format
msgid "{}Mbit/s" msgid "{}Mbit/s"
msgstr "{}Mbit/s" msgstr "{}Mbit/s"
#: client/scenes/lobby_gui.cpp:827 #: client/scenes/lobby_gui.cpp:783
msgid "High power mode" msgid "High power mode"
msgstr "Modalità alto consumo" msgstr "Modalità alto consumo"
#: client/scenes/lobby_gui.cpp:830 #: client/scenes/lobby_gui.cpp:786
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:836 #: client/scenes/lobby_gui.cpp:792
msgid "Enable microphone" msgid "Enable microphone"
msgstr "Attiva il microfono" msgstr "Attiva il microfono"
#: client/scenes/lobby_gui.cpp:845 #: client/scenes/lobby_gui.cpp:801
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:851 #: client/scenes/lobby_gui.cpp:807
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:858 #: client/scenes/lobby_gui.cpp:814
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:864 client/scenes/lobby_gui.cpp:875 #: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831
#: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900 #: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856
#: 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:869 #: client/scenes/lobby_gui.cpp:825
msgid "Enable eye tracking" msgid "Enable eye tracking"
msgstr "Abilita il tracciamento oculare" msgstr "Abilita il tracciamento oculare"
#: client/scenes/lobby_gui.cpp:880 #: client/scenes/lobby_gui.cpp:836
msgid "Enable face tracking" msgid "Enable face tracking"
msgstr "Abilita il tracciamento facciale" msgstr "Abilita il tracciamento facciale"
#: client/scenes/lobby_gui.cpp:892 #: client/scenes/lobby_gui.cpp:848
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:905 #: client/scenes/lobby_gui.cpp:861
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"
@@ -352,11 +342,11 @@ msgstr ""
"controller e\n" "controller e\n"
"del visore." "del visore."
#: client/scenes/lobby_gui.cpp:915 #: client/scenes/lobby_gui.cpp:871
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:921 #: client/scenes/lobby_gui.cpp:877
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 "
@@ -367,11 +357,11 @@ msgstr ""
"impostazioni,\n" "impostazioni,\n"
"sezione \"Tracking dei movimenti\"." "sezione \"Tracking dei movimenti\"."
#: client/scenes/lobby_gui.cpp:924 #: client/scenes/lobby_gui.cpp:880
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:930 #: client/scenes/lobby_gui.cpp:886
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"
@@ -380,11 +370,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:939 #: client/scenes/lobby_gui.cpp:895
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:942 #: client/scenes/lobby_gui.cpp:898
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."
@@ -392,23 +382,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:946 #: client/scenes/lobby_gui.cpp:902
msgid "Extended configuration values" msgid "Extended configuration values"
msgstr "Valori di configurazione estesi" msgstr "Valori di configurazione estesi"
#: client/scenes/lobby_gui.cpp:949 #: client/scenes/lobby_gui.cpp:905
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:963 client/scenes/stream_gui.cpp:473 #: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479
msgid "OpenXR post-processing" msgid "OpenXR post-processing"
msgstr "Post-trattamento OpenXR" msgstr "Post-trattamento OpenXR"
#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477 #: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483
msgid "Supersampling" msgid "Supersampling"
msgstr "Supersamping" msgstr "Supersamping"
#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498 #: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504
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"
@@ -416,11 +406,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:992 client/scenes/stream_gui.cpp:503 #: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:509
msgid "Sharpening" msgid "Sharpening"
msgstr "Miglioramento della nitidezza" msgstr "Miglioramento della nitidezza"
#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524 #: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530
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"
@@ -429,129 +419,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:1196 client/scenes/lobby_gui.cpp:1204 #: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371 #: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373
msgid "CPU time" msgid "CPU time"
msgstr "Tempo CPU" msgstr "Tempo CPU"
#: client/scenes/lobby_gui.cpp:1200 #: client/scenes/lobby_gui.cpp:1156
msgid "CPU time [ms]" msgid "CPU time [ms]"
msgstr "Tempo CPU [ms]" msgstr "Tempo CPU [ms]"
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218 #: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372 #: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374
msgid "GPU time" msgid "GPU time"
msgstr "Tempo GPU" msgstr "Tempo GPU"
#: client/scenes/lobby_gui.cpp:1214 #: client/scenes/lobby_gui.cpp:1170
msgid "GPU time [ms]" msgid "GPU time [ms]"
msgstr "Tempo GPU [ms]" msgstr "Tempo GPU [ms]"
#: client/scenes/lobby_gui.cpp:1278 #: client/scenes/lobby_gui.cpp:1234
msgid "Enable the microphone?" msgid "Enable the microphone?"
msgstr "Attivare il microfono?" msgstr "Attivare il microfono?"
#: client/scenes/lobby_gui.cpp:1283 #: client/scenes/lobby_gui.cpp:1239
msgid "Enable eye tracking?" msgid "Enable eye tracking?"
msgstr "Attivare il tracciamento oculare?" msgstr "Attivare il tracciamento oculare?"
#: client/scenes/lobby_gui.cpp:1288 #: client/scenes/lobby_gui.cpp:1244
msgid "Enable face tracking?" msgid "Enable face tracking?"
msgstr "Attivare il tracciamento facciale?" msgstr "Attivare il tracciamento facciale?"
#: client/scenes/lobby_gui.cpp:1293 #: client/scenes/lobby_gui.cpp:1249
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:1301 #: client/scenes/lobby_gui.cpp:1257
msgid "Welcome to WiVRn" msgid "Welcome to WiVRn"
msgstr "Benvenuto su WiVRn" msgstr "Benvenuto su WiVRn"
#: client/scenes/lobby_gui.cpp:1329 #: client/scenes/lobby_gui.cpp:1285
msgid "Yes" msgid "Yes"
msgstr "Sì" msgstr "Sì"
#: client/scenes/lobby_gui.cpp:1336 #: client/scenes/lobby_gui.cpp:1292
msgid "No" msgid "No"
msgstr "No" msgstr "No"
#: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001 #: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
msgid "Licenses" msgid "Licenses"
msgstr "Licenze" msgstr "Licenze"
#: client/scenes/lobby_gui.cpp:1631 #: client/scenes/lobby_gui.cpp:1587
msgid "Microphone is enabled" msgid "Microphone is enabled"
msgstr "Microfono attivo" msgstr "Microfono attivo"
#: client/scenes/lobby_gui.cpp:1632 #: client/scenes/lobby_gui.cpp:1588
msgid "Microphone is disabled" msgid "Microphone is disabled"
msgstr "Microfono disattivato" msgstr "Microfono disattivato"
#: client/scenes/lobby_gui.cpp:1641 #: client/scenes/lobby_gui.cpp:1597
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:1642 #: client/scenes/lobby_gui.cpp:1598
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:1651 #: client/scenes/lobby_gui.cpp:1607
msgid "Eye tracking is enabled" msgid "Eye tracking is enabled"
msgstr "Tracciamento oculare attivo" msgstr "Tracciamento oculare attivo"
#: client/scenes/lobby_gui.cpp:1652 #: client/scenes/lobby_gui.cpp:1608
msgid "Eye tracking is disabled" msgid "Eye tracking is disabled"
msgstr "Tracciamento oculare disattivato" msgstr "Tracciamento oculare disattivato"
#: client/scenes/lobby_gui.cpp:1662 #: client/scenes/lobby_gui.cpp:1618
msgid "Face tracking is enabled" msgid "Face tracking is enabled"
msgstr "Tracciamento facciale attivato" msgstr "Tracciamento facciale attivato"
#: client/scenes/lobby_gui.cpp:1663 #: client/scenes/lobby_gui.cpp:1619
msgid "Face tracking is disabled" msgid "Face tracking is disabled"
msgstr "Tracciamento facciale disattivato" msgstr "Tracciamento facciale disattivato"
#: client/scenes/lobby_gui.cpp:1677 #: client/scenes/lobby_gui.cpp:1633
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:1678 #: client/scenes/lobby_gui.cpp:1634
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:1694 #: client/scenes/lobby_gui.cpp:1650
msgid "Add server" msgid "Add server"
msgstr "Aggiungi server" msgstr "Aggiungi server"
#: client/scenes/lobby_gui.cpp:1980 #: client/scenes/lobby_gui.cpp:1936
msgid "Server list" msgid "Server list"
msgstr "Elenco dei server" msgstr "Elenco dei server"
#: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007 #: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996
msgid "Settings" msgid "Settings"
msgstr "Impostazioni" msgstr "Impostazioni"
#: client/scenes/lobby_gui.cpp:1986 #: client/scenes/lobby_gui.cpp:1942
msgid "Post-processing" msgid "Post-processing"
msgstr "Post-trattamento" msgstr "Post-trattamento"
#: client/scenes/lobby_gui.cpp:1989 #: client/scenes/lobby_gui.cpp:1945
msgid "Customize" msgid "Customize"
msgstr "Personalizzazione" msgstr "Personalizzazione"
#: client/scenes/lobby_gui.cpp:1993 #: client/scenes/lobby_gui.cpp:1949
msgid "Debug" msgid "Debug"
msgstr "Debug" msgstr "Debug"
#: client/scenes/lobby_gui.cpp:1998 #: client/scenes/lobby_gui.cpp:1954
msgid "About" msgid "About"
msgstr "Informazioni" msgstr "Informazioni"
#: client/scenes/lobby_gui.cpp:2004 #: client/scenes/lobby_gui.cpp:1960
msgid "Exit" msgid "Exit"
msgstr "Esci" msgstr "Esci"
#: client/scenes/lobby_gui.cpp:2021 #: client/scenes/lobby_gui.cpp:1977
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"
@@ -559,7 +549,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:2023 #: client/scenes/lobby_gui.cpp:1979
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"
@@ -638,56 +628,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:175 #: client/scenes/stream_gui.cpp:174
msgid "Defoveate" msgid "Defoveate"
msgstr "Defoveazione" msgstr "Defoveazione"
#: client/scenes/stream_gui.cpp:177 #: client/scenes/stream_gui.cpp:176
msgid "Network" msgid "Network"
msgstr "Rete" msgstr "Rete"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369 #: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371
msgid "Download" msgid "Download"
msgstr "Download" msgstr "Download"
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370 #: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
msgid "Upload" msgid "Upload"
msgstr "Upload" msgstr "Upload"
#: client/scenes/stream_gui.cpp:247 #: client/scenes/stream_gui.cpp:246
#, c++-format #, c++-format
msgid "Decoder {}" msgid "Decoder {}"
msgstr "Decoder {}" msgstr "Decoder {}"
#: client/scenes/stream_gui.cpp:259 #: client/scenes/stream_gui.cpp:258
msgid "Timings [ms]" msgid "Timings [ms]"
msgstr "Durata [ms]" msgstr "Durata [ms]"
#: client/scenes/stream_gui.cpp:319 #: client/scenes/stream_gui.cpp:318
msgid "Encode" msgid "Encode"
msgstr "Compressione" msgstr "Compressione"
#: client/scenes/stream_gui.cpp:320 #: client/scenes/stream_gui.cpp:319
msgid "Send" msgid "Send"
msgstr "Invio" msgstr "Invio"
#: client/scenes/stream_gui.cpp:321 #: client/scenes/stream_gui.cpp:320
msgid "Receive" msgid "Receive"
msgstr "Ricezione" msgstr "Ricezione"
#: client/scenes/stream_gui.cpp:322 #: client/scenes/stream_gui.cpp:321
msgid "Decode" msgid "Decode"
msgstr "Decodifica" msgstr "Decodifica"
#: client/scenes/stream_gui.cpp:323 #: client/scenes/stream_gui.cpp:322
msgid "Blitted" msgid "Blitted"
msgstr "Copiato" msgstr "Copiato"
#: client/scenes/stream_gui.cpp:324 #: client/scenes/stream_gui.cpp:323
msgid "Displayed" msgid "Displayed"
msgstr "Visualizzato" msgstr "Visualizzato"
#: client/scenes/stream_gui.cpp:325 #: client/scenes/stream_gui.cpp:324
msgid "Predicted" msgid "Predicted"
msgstr "Previsto" msgstr "Previsto"
@@ -696,102 +686,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:349 #: client/scenes/stream_gui.cpp:351
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:351 client/scenes/stream_gui.cpp:738 #: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:924
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:373 #: client/scenes/stream_gui.cpp:375
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:458 #: client/scenes/stream_gui.cpp:464
msgid "Bitrate:" msgid "Bitrate:"
msgstr "Velocità di trasmissione" msgstr "Velocità di trasmissione"
#: client/scenes/stream_gui.cpp:468 #: client/scenes/stream_gui.cpp:474
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:532 #: client/scenes/stream_gui.cpp:537
msgid "Foveation center override" msgid "Foveation center override"
msgstr "Centro di foveazione manuale" msgstr "Centro di foveazione manuale"
#: client/scenes/stream_gui.cpp:535 #: client/scenes/stream_gui.cpp:540
msgid "Enable" msgid "Enable"
msgstr "Attiva" msgstr "Attiva"
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614 #: client/scenes/stream_gui.cpp:548 client/scenes/stream_gui.cpp:620
#, 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:544 client/scenes/stream_gui.cpp:615 #: client/scenes/stream_gui.cpp:549 client/scenes/stream_gui.cpp:621
#, 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:545 #: client/scenes/stream_gui.cpp:550
msgid "Default" msgid "Default"
msgstr "Reimposta" msgstr "Reimposta"
#: client/scenes/stream_gui.cpp:556 #: client/scenes/stream_gui.cpp:561
msgid "Change" msgid "Change"
msgstr "Cambia" msgstr "Cambia"
#: client/scenes/stream_gui.cpp:588 #: client/scenes/stream_gui.cpp:594
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:589 #: client/scenes/stream_gui.cpp:595
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:590 #: client/scenes/stream_gui.cpp:596
#, 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:612 #: client/scenes/stream_gui.cpp:618
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:613 #: client/scenes/stream_gui.cpp:619
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:671 #: client/scenes/stream_gui.cpp:677
msgid "Running XR applications:" msgid "Running XR applications:"
msgstr "Applicazioni XR avviate:" msgstr "Applicazioni XR avviate:"
#: client/scenes/stream_gui.cpp:688 #: client/scenes/stream_gui.cpp:694
msgid "Overlays" msgid "Overlays"
msgstr "Overlays" msgstr "Overlays"
#: client/scenes/stream_gui.cpp:727 #: client/scenes/stream_gui.cpp:733
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:993 #: client/scenes/stream_gui.cpp:983
msgid "Applications" msgid "Applications"
msgstr "Applicazioni" msgstr "Applicazioni"
#: client/scenes/stream_gui.cpp:996 #: client/scenes/stream_gui.cpp:986
msgid "Start" msgid "Start"
msgstr "Avvio" msgstr "Avvio"
#: client/scenes/stream_gui.cpp:1010 #: client/scenes/stream_gui.cpp:999
msgid "Stats" msgid "Stats"
msgstr "Statistiche" msgstr "Statistiche"
#: client/scenes/stream_gui.cpp:1016 #: client/scenes/stream_gui.cpp:1005
msgid "Statistics overlay" msgid "Statistics overlay"
msgstr "Solo statistiche" msgstr "Solo statistiche"
#: client/scenes/stream_gui.cpp:1019 #: client/scenes/stream_gui.cpp:1008
msgid "Compact view" msgid "Compact view"
msgstr "Modalità compatta" msgstr "Modalità compatta"
+33 -44
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-03-03 13:37+0900\n" "POT-Creation-Date: 2026-02-04 17:02+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"
@@ -112,8 +112,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:376 #: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:368
#: dashboard/qml/Main.qml:434 dashboard/qml/WizardPage.qml:211 #: dashboard/qml/Main.qml:426 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"
@@ -159,7 +159,7 @@ msgstr "WiVRnをインストールする"
msgid "Headset statistics" msgid "Headset statistics"
msgstr "HMDの統計情報" msgstr "HMDの統計情報"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:439 #: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:431
#, kde-format #, kde-format
msgid "Headsets" msgid "Headsets"
msgstr "HMD" msgstr "HMD"
@@ -275,7 +275,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:231 #: dashboard/qml/Main.qml:223
#, kde-format #, kde-format
msgid "Fix it" msgid "Fix it"
msgstr "直す" msgstr "直す"
@@ -300,17 +300,6 @@ 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"
@@ -318,7 +307,7 @@ msgstr ""
"AMD GPUの場合は「Mesa (radv)」ドライバーを使ってください\n" "AMD GPUの場合は「Mesa (radv)」ドライバーを使ってください\n"
"AMDVLKやAMDGPU-PROなどはvaapiエンコーダーに対応していません" "AMDVLKやAMDGPU-PROなどはvaapiエンコーダーに対応していません"
#: dashboard/qml/Main.qml:209 #: dashboard/qml/Main.qml:201
#, 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"
@@ -327,13 +316,13 @@ msgstr ""
"OpenVR実装ライブラリーは見つかりませんでした。SteamVRゲームを実行するには、\n" "OpenVR実装ライブラリーは見つかりませんでした。SteamVRゲームを実行するには、\n"
"xrizerかOpenCompositeをインストールしましょう。" "xrizerかOpenCompositeをインストールしましょう。"
#: dashboard/qml/Main.qml:217 #: dashboard/qml/Main.qml:209
#, 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 "" msgstr ""
"SteamはSnapとしてインストールされていますが、Snapはサポートサれていません。" "SteamはSnapとしてインストールされていますが、Snapはサポートサれていません。"
#: dashboard/qml/Main.qml:225 #: dashboard/qml/Main.qml:217
#, 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."
@@ -341,131 +330,131 @@ msgstr ""
"SteamはFlatpakとしてインストールされていますが、必要な権限が設定されていませ" "SteamはFlatpakとしてインストールされていますが、必要な権限が設定されていませ"
"ん。" "ん。"
#: dashboard/qml/Main.qml:240 #: dashboard/qml/Main.qml:232
#, 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:246 #: dashboard/qml/Main.qml:238
#, kde-format #, kde-format
msgctxt "restart the server" msgctxt "restart the server"
msgid "Restart now" msgid "Restart now"
msgstr "今すぐ再起動する" msgstr "今すぐ再起動する"
#: dashboard/qml/Main.qml:271 #: dashboard/qml/Main.qml:263
#, kde-format #, kde-format
msgid "Server failed to start" msgid "Server failed to start"
msgstr "サーバーは起動できませんでした" msgstr "サーバーは起動できませんでした"
#: dashboard/qml/Main.qml:277 dashboard/qml/TroubleshootPage.qml:89 #: dashboard/qml/Main.qml:269 dashboard/qml/TroubleshootPage.qml:89
#, kde-format #, kde-format
msgid "Open server logs" msgid "Open server logs"
msgstr "ログを見る" msgstr "ログを見る"
#: dashboard/qml/Main.qml:303 #: dashboard/qml/Main.qml:295
#, kde-format #, kde-format
msgid "Server status" msgid "Server status"
msgstr "サーバーステータス" msgstr "サーバーステータス"
#: dashboard/qml/Main.qml:309 #: dashboard/qml/Main.qml:301
#, 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:322 #: dashboard/qml/Main.qml:314
#, 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:342 #: dashboard/qml/Main.qml:334
#, kde-format #, kde-format
msgid "Headset status" msgid "Headset status"
msgstr "HMDステータス" msgstr "HMDステータス"
#: dashboard/qml/Main.qml:349 #: dashboard/qml/Main.qml:341
#, 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 "HMD" msgstr "HMD"
#: dashboard/qml/Main.qml:352 #: dashboard/qml/Main.qml:344
#, kde-format #, kde-format
msgid "Not connected" msgid "Not connected"
msgstr "未接続" msgstr "未接続"
#: dashboard/qml/Main.qml:356 #: dashboard/qml/Main.qml:348
#, kde-format #, kde-format
msgid "Disconnect" msgid "Disconnect"
msgstr "切断する" msgstr "切断する"
#: dashboard/qml/Main.qml:365 dashboard/qml/Main.qml:373 #: dashboard/qml/Main.qml:357 dashboard/qml/Main.qml:365
#: dashboard/qml/Main.qml:380 #: dashboard/qml/Main.qml:372
#, 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:366 #: dashboard/qml/Main.qml:358
#, kde-format #, kde-format
msgctxt "usb connect button" msgctxt "usb connect button"
msgid "Connect (wired)" msgid "Connect (wired)"
msgstr "有線で接続する" msgstr "有線で接続する"
#: dashboard/qml/Main.qml:383 dashboard/qml/WizardPage.qml:339 #: dashboard/qml/Main.qml:375 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 "HMDが接続されていないか、HMDが開発者モードになっていません" msgstr "HMDが接続されていないか、HMDが開発者モードになっていません"
#: dashboard/qml/Main.qml:404 #: dashboard/qml/Main.qml:396
#, kde-format #, kde-format
msgid "Steam information" msgid "Steam information"
msgstr "ストリーム情報" msgstr "ストリーム情報"
#: dashboard/qml/Main.qml:420 #: dashboard/qml/Main.qml:412
#, kde-format #, kde-format
msgid "Wizard" msgid "Wizard"
msgstr "セットアップウィザード" msgstr "セットアップウィザード"
#: dashboard/qml/Main.qml:426 #: dashboard/qml/Main.qml:418
#, kde-format #, kde-format
msgid "Install the app" msgid "Install the app"
msgstr "アプリをインストール" msgstr "アプリをインストール"
#: dashboard/qml/Main.qml:445 dashboard/qml/SettingsPage.qml:14 #: dashboard/qml/Main.qml:437 dashboard/qml/SettingsPage.qml:14
#, kde-format #, kde-format
msgid "Settings" msgid "Settings"
msgstr "設定" msgstr "設定"
#: dashboard/qml/Main.qml:451 #: dashboard/qml/Main.qml:443
#, kde-format #, kde-format
msgid "About" msgid "About"
msgstr "WiVRnについて" msgstr "WiVRnについて"
#: dashboard/qml/Main.qml:456 dashboard/qml/TroubleshootPage.qml:10 #: dashboard/qml/Main.qml:448 dashboard/qml/TroubleshootPage.qml:10
#, kde-format #, kde-format
msgid "Troubleshoot" msgid "Troubleshoot"
msgstr "問題解決" msgstr "問題解決"
#: dashboard/qml/Main.qml:463 #: dashboard/qml/Main.qml:455
#, kde-format #, kde-format
msgid "Version %1" msgid "Version %1"
msgstr "バージョン%1" msgstr "バージョン%1"
#: dashboard/qml/SelectGame.qml:12 #: dashboard/qml/SelectGame.qml:14
#, 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:18 #: dashboard/qml/SelectGame.qml:20
#, 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:70 #: dashboard/qml/SelectGame.qml:72
#, 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"
+159 -165
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-03-03 13:37+0900\n" "POT-Creation-Date: 2026-02-04 17:02+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:119 #: client/scenes/app_launcher.cpp:128
msgid "Connected to WiVRn server" msgid "Connected to WiVRn server"
msgstr "WiVRnサーバーに接続しました。" msgstr "WiVRnサーバーに接続しました。"
#: client/scenes/app_launcher.cpp:121 #: client/scenes/app_launcher.cpp:130
#, c++-format #, c++-format
msgid "Connected to {}" msgid "Connected to {}"
msgstr "{}に接続しました。" msgstr "{}に接続しました。"
#: client/scenes/app_launcher.cpp:127 #: client/scenes/app_launcher.cpp:136
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:137 #: client/scenes/app_launcher.cpp:146
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:139 #: client/scenes/app_launcher.cpp:148
#, 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:221 #: client/scenes/lobby.cpp:230
msgid "Incompatible WiVRn server: no protocol field in TXT" msgid "Incompatible WiVRn server: no protocol field in TXT"
msgstr "互換性のないサーバー(プロトコルのフィールドは欠落)" msgstr "互換性のないサーバー(プロトコルのフィールドは欠落)"
#: client/scenes/lobby.cpp:224 #: client/scenes/lobby.cpp:233
#, c++-format #, c++-format
msgid "Incompatible WiVRn server protocol (client: {}, server: {})" msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
msgstr "互換性のないサーバー(クライエント{}、サーバー{})" msgstr "互換性のないサーバー(クライエント{}、サーバー{})"
#: client/scenes/lobby.cpp:239 #: client/scenes/lobby.cpp:248
#, c++-format #, c++-format
msgid "Cannot resolve hostname: {}" msgid "Cannot resolve hostname: {}"
msgstr "ホスト名解決に失敗:{}" msgstr "ホスト名解決に失敗:{}"
#: client/scenes/lobby.cpp:326 client/scenes/lobby.cpp:332 #: client/scenes/lobby.cpp:335 client/scenes/lobby.cpp:341
#, c++-format #, c++-format
msgid "Cannot connect to {} ({}): {}" msgid "Cannot connect to {} ({}): {}"
msgstr "{}に接続できませんでした:({}) {}" msgstr "{}に接続できませんでした:({}) {}"
#: client/scenes/lobby.cpp:410 #: client/scenes/lobby.cpp:424
msgid "Waiting for connection" msgid "Waiting for connection"
msgstr "接続を待っています" msgstr "接続を待っています"
#: client/scenes/lobby.cpp:1298 #: client/scenes/lobby.cpp:1316
msgid "Passthrough" msgid "Passthrough"
msgstr "パススルー" msgstr "パススルー"
#: client/scenes/lobby.cpp:1310 #: client/scenes/lobby.cpp:1328
msgid "Default environment" msgid "Default environment"
msgstr "デフォルトのホーム環境" msgstr "デフォルトのホーム環境"
@@ -82,15 +82,14 @@ msgctxt "openxr_post_processing"
msgid "Disabled" msgid "Disabled"
msgstr "無効" msgstr "無効"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254 #: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
#: client/scenes/stream_gui.cpp:1026 #: client/scenes/stream_gui.cpp:1009
msgid "Disconnect" msgid "Disconnect"
msgstr "切断する" msgstr "切断する"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264 #: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
#: client/scenes/lobby_gui_customize.cpp:752 #: client/scenes/lobby_gui_customize.cpp:844
#: client/scenes/lobby_gui_customize.cpp:843 #: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1005
#: client/scenes/lobby_gui_customize.cpp:899 client/scenes/stream_gui.cpp:1022
msgid "Close" msgid "Close"
msgstr "閉じる" msgstr "閉じる"
@@ -111,41 +110,32 @@ 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:327 #: client/scenes/lobby_gui.cpp:295
msgid "Address" msgid "Address"
msgstr "アドレス" msgstr "アドレス"
#: client/scenes/lobby_gui.cpp:336 #: client/scenes/lobby_gui.cpp:304
msgid "Port" msgid "Port"
msgstr "ポート番号" msgstr "ポート番号"
#: client/scenes/lobby_gui.cpp:344 #: client/scenes/lobby_gui.cpp:312
msgid "TCP only" msgid "TCP only"
msgstr "TCPのみを使用" msgstr "TCPのみを使用"
#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:654 #: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:978 #: client/scenes/stream_gui.cpp:962
msgid "Cancel" msgid "Cancel"
msgstr "キャンセル" msgstr "キャンセル"
#: client/scenes/lobby_gui.cpp:365 #: client/scenes/lobby_gui.cpp:333
msgid "Save" msgid "Save"
msgstr "保存する" msgstr "保存する"
#: client/scenes/lobby_gui.cpp:418 #: client/scenes/lobby_gui.cpp:386
msgid "" msgid ""
"Start a WiVRn server on your\n" "Start a WiVRn server on your\n"
"local network" "local network"
@@ -153,46 +143,46 @@ msgstr ""
"ローカルネットワークでWiVRnサーバーを\n" "ローカルネットワークでWiVRnサーバーを\n"
"起動してみて下さい" "起動してみて下さい"
#: client/scenes/lobby_gui.cpp:450 #: client/scenes/lobby_gui.cpp:418
msgid "Autoconnect" msgid "Autoconnect"
msgstr "自動接続" msgstr "自動接続"
#: client/scenes/lobby_gui.cpp:476 #: client/scenes/lobby_gui.cpp:444
msgid "Connect" msgid "Connect"
msgstr "接続する" msgstr "接続する"
#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186 #: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186
msgid "Incompatible server version" msgid "Incompatible server version"
msgstr "互換性のないサーバーです" msgstr "互換性のないサーバーです"
#: client/scenes/lobby_gui.cpp:488 #: client/scenes/lobby_gui.cpp:456
msgid "Server not available" msgid "Server not available"
msgstr "サーバーは利用不可です" msgstr "サーバーは利用不可です"
#: client/scenes/lobby_gui.cpp:581 #: client/scenes/lobby_gui.cpp:538
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:595 #: client/scenes/lobby_gui.cpp:552
msgid "Language" msgid "Language"
msgstr "言語" msgstr "言語"
#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597 #: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554
msgid "System language" msgid "System language"
msgstr "デバイス言語" msgstr "デバイス言語"
#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412 #: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:411
msgid "Refresh rate" msgid "Refresh rate"
msgstr "リフレッシュレート" msgstr "リフレッシュレート"
#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625 #: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414 #: client/scenes/stream_gui.cpp:411 client/scenes/stream_gui.cpp:413
msgctxt "automatic refresh rate" msgctxt "automatic refresh rate"
msgid "Automatic" msgid "Automatic"
msgstr "自動" msgstr "自動"
#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421 #: client/scenes/lobby_gui.cpp:589 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,35 +190,39 @@ msgstr ""
"アプリケーションのパフォーマンスを基づいて自動的に設定します。\n" "アプリケーションのパフォーマンスを基づいて自動的に設定します。\n"
"変更時にチラツキが発生する可能性があります。" "変更時にチラツキが発生する可能性があります。"
#: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439 #: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:439
msgid "Minimum refresh rate" msgid "Minimum refresh rate"
msgstr "最低リフレッシュレート" msgstr "最低リフレッシュレート"
#: client/scenes/lobby_gui.cpp:673 #: client/scenes/lobby_gui.cpp:632
msgid "Foveation level"
msgstr "フォビエーション・レベル"
#: client/scenes/lobby_gui.cpp:655
msgid "Render resolution" msgid "Render resolution"
msgstr "レンダー解像度" msgstr "レンダー解像度"
#: client/scenes/lobby_gui.cpp:677 #: client/scenes/lobby_gui.cpp:659
#, 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:688 #: client/scenes/lobby_gui.cpp:670
#, 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:698 #: client/scenes/lobby_gui.cpp:680
msgid "Foveated encoding" msgid "Foveated encoding"
msgstr "エンコード・フォビエーション" msgstr "エンコード・フォビエーション"
#: client/scenes/lobby_gui.cpp:702 #: client/scenes/lobby_gui.cpp:684
#, c-format, c++-format #, c-format, c++-format
msgid "{}%%" msgid "{}%%"
msgstr "{}%%" msgstr "{}%%"
#: client/scenes/lobby_gui.cpp:715 #: client/scenes/lobby_gui.cpp:697
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."
@@ -236,7 +230,7 @@ msgstr ""
"高い方は、視線方向の画質を最適化し、\n" "高い方は、視線方向の画質を最適化し、\n"
"応答速度、電力効率、画質を向上させます。" "応答速度、電力効率、画質を向上させます。"
#: client/scenes/lobby_gui.cpp:718 #: client/scenes/lobby_gui.cpp:700
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."
@@ -244,86 +238,86 @@ msgstr ""
"高い方は、画面の中央の画質を最適化し、\n" "高い方は、画面の中央の画質を最適化し、\n"
"応答速度、電力効率、画質を向上させます。" "応答速度、電力効率、画質を向上させます。"
#: client/scenes/lobby_gui.cpp:727 #: client/scenes/lobby_gui.cpp:709
msgctxt "Codec" msgctxt "Codec"
msgid "Automatic" msgid "Automatic"
msgstr "自動" msgstr "自動"
#: client/scenes/lobby_gui.cpp:731 #: client/scenes/lobby_gui.cpp:713
msgctxt "Codec" msgctxt "Codec"
msgid "H.264" msgid "H.264"
msgstr "H.264" msgstr "H.264"
#: client/scenes/lobby_gui.cpp:733 #: client/scenes/lobby_gui.cpp:715
msgctxt "Codec" msgctxt "Codec"
msgid "H.265" msgid "H.265"
msgstr "H.265" msgstr "H.265"
#: client/scenes/lobby_gui.cpp:735 #: client/scenes/lobby_gui.cpp:717
msgctxt "Codec" msgctxt "Codec"
msgid "AV1" msgid "AV1"
msgstr "AV1" msgstr "AV1"
#: client/scenes/lobby_gui.cpp:743 #: client/scenes/lobby_gui.cpp:725
msgid "Codec" msgid "Codec"
msgstr "コーデック" msgstr "コーデック"
#: client/scenes/lobby_gui.cpp:771 #: client/scenes/lobby_gui.cpp:753
msgid "10-bit" msgid "10-bit"
msgstr "10ビット" msgstr "10ビット"
#: client/scenes/lobby_gui.cpp:787 #: client/scenes/lobby_gui.cpp:768
msgid "Bitrate" msgid "Bitrate"
msgstr "ビットレート" msgstr "ビットレート"
#: client/scenes/lobby_gui.cpp:791 #: client/scenes/lobby_gui.cpp:772
#, c++-format #, c++-format
msgid "{}Mbit/s" msgid "{}Mbit/s"
msgstr "{}Mbps" msgstr "{}Mbps"
#: client/scenes/lobby_gui.cpp:802 #: client/scenes/lobby_gui.cpp:783
msgid "High power mode" msgid "High power mode"
msgstr "高電力モード" msgstr "高電力モード"
#: client/scenes/lobby_gui.cpp:805 #: client/scenes/lobby_gui.cpp:786
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:811 #: client/scenes/lobby_gui.cpp:792
msgid "Enable microphone" msgid "Enable microphone"
msgstr "マイクを有効する" msgstr "マイクを有効する"
#: client/scenes/lobby_gui.cpp:820 #: client/scenes/lobby_gui.cpp:801
msgid "Unprocessed Microphone Audio" msgid "Unprocessed Microphone Audio"
msgstr "未処理のマイク音声" msgstr "未処理のマイク音声"
#: client/scenes/lobby_gui.cpp:826 #: client/scenes/lobby_gui.cpp:807
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:833 #: client/scenes/lobby_gui.cpp:814
msgid "Enable hand tracking" msgid "Enable hand tracking"
msgstr "ハンドトラッキングを有効する" msgstr "ハンドトラッキングを有効する"
#: client/scenes/lobby_gui.cpp:839 client/scenes/lobby_gui.cpp:850 #: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831
#: client/scenes/lobby_gui.cpp:860 client/scenes/lobby_gui.cpp:875 #: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856
#: client/scenes/lobby_gui_customize.cpp:639 #: 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:844 #: client/scenes/lobby_gui.cpp:825
msgid "Enable eye tracking" msgid "Enable eye tracking"
msgstr "アイトラッキングを有効する" msgstr "アイトラッキングを有効する"
#: client/scenes/lobby_gui.cpp:855 #: client/scenes/lobby_gui.cpp:836
msgid "Enable face tracking" msgid "Enable face tracking"
msgstr "顔トラッキングを有効する" msgstr "顔トラッキングを有効する"
#: client/scenes/lobby_gui.cpp:867 #: client/scenes/lobby_gui.cpp:848
msgid "Enable body tracking" msgid "Enable body tracking"
msgstr "ボディラッキングを有効する" msgstr "ボディラッキングを有効する"
#: client/scenes/lobby_gui.cpp:880 #: client/scenes/lobby_gui.cpp:861
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 +328,11 @@ msgstr ""
"そうでなければ、トラッキングデータはHMDとコントローラーの情報から推測されるこ" "そうでなければ、トラッキングデータはHMDとコントローラーの情報から推測されるこ"
"とになる。" "とになる。"
#: client/scenes/lobby_gui.cpp:890 #: client/scenes/lobby_gui.cpp:871
msgid "Enable lower body tracking" msgid "Enable lower body tracking"
msgstr "下半身トラッキングを有効する" msgstr "下半身トラッキングを有効する"
#: client/scenes/lobby_gui.cpp:896 #: client/scenes/lobby_gui.cpp:877
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 "
@@ -348,11 +342,11 @@ msgstr ""
"Quest設定・動きのトラッキング・ジェスチャーコントロールとボディトラッキングを" "Quest設定・動きのトラッキング・ジェスチャーコントロールとボディトラッキングを"
"有効する必要がある。" "有効する必要がある。"
#: client/scenes/lobby_gui.cpp:899 #: client/scenes/lobby_gui.cpp:880
msgid "Enable hip tracking" msgid "Enable hip tracking"
msgstr "腰のトラッキングを有効する" msgstr "腰のトラッキングを有効する"
#: client/scenes/lobby_gui.cpp:905 #: client/scenes/lobby_gui.cpp:886
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"
@@ -360,11 +354,11 @@ msgstr ""
"下半身トラッキングが有効な場合に使用可能。\n" "下半身トラッキングが有効な場合に使用可能。\n"
"腰トラッカーを持ってる方は無効にしましょう。" "腰トラッカーを持ってる方は無効にしましょう。"
#: client/scenes/lobby_gui.cpp:914 #: client/scenes/lobby_gui.cpp:895
msgid "Enable in-stream window" msgid "Enable in-stream window"
msgstr "ストリーミング中の設定パネル" msgstr "ストリーミング中の設定パネル"
#: client/scenes/lobby_gui.cpp:917 #: client/scenes/lobby_gui.cpp:898
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."
@@ -372,23 +366,23 @@ msgstr ""
"ストリーミング中にも設定パネルを表示できるようにします。\n" "ストリーミング中にも設定パネルを表示できるようにします。\n"
"両方のサムスティックを同時に押して切り替えることができます。" "両方のサムスティックを同時に押して切り替えることができます。"
#: client/scenes/lobby_gui.cpp:921 #: client/scenes/lobby_gui.cpp:902
msgid "Extended configuration values" msgid "Extended configuration values"
msgstr "設定に対する制限の緩和" msgstr "設定に対する制限の緩和"
#: client/scenes/lobby_gui.cpp:924 #: client/scenes/lobby_gui.cpp:905
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:938 client/scenes/stream_gui.cpp:473 #: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:473
msgid "OpenXR post-processing" msgid "OpenXR post-processing"
msgstr "OpenXRポストエフェクト" msgstr "OpenXRポストエフェクト"
#: client/scenes/lobby_gui.cpp:942 client/scenes/stream_gui.cpp:477 #: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:477
msgid "Supersampling" msgid "Supersampling"
msgstr "スーパーサンプリング" msgstr "スーパーサンプリング"
#: client/scenes/lobby_gui.cpp:962 client/scenes/stream_gui.cpp:498 #: client/scenes/lobby_gui.cpp:943 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"
@@ -396,11 +390,11 @@ msgstr ""
"コントラストが高い部分のギザギザを低減する。\n" "コントラストが高い部分のギザギザを低減する。\n"
"ストリームの解像度は、HMDの解像度より高い場合は有用です。" "ストリームの解像度は、HMDの解像度より高い場合は有用です。"
#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:503 #: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:503
msgid "Sharpening" msgid "Sharpening"
msgstr "シャープ" msgstr "シャープ"
#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:524 #: client/scenes/lobby_gui.cpp:968 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"
@@ -408,129 +402,129 @@ msgstr ""
"ぼかしを低減し、コントラストが高い部分の鮮明度を向上する。\n" "ぼかしを低減し、コントラストが高い部分の鮮明度を向上する。\n"
"ストリームの解像度は、HMDの解像度より低い場合に有用です。" "ストリームの解像度は、HMDの解像度より低い場合に有用です。"
#: client/scenes/lobby_gui.cpp:1171 client/scenes/lobby_gui.cpp:1179 #: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371 #: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:370
msgid "CPU time" msgid "CPU time"
msgstr "CPU使用時間" msgstr "CPU使用時間"
#: client/scenes/lobby_gui.cpp:1175 #: client/scenes/lobby_gui.cpp:1156
msgid "CPU time [ms]" msgid "CPU time [ms]"
msgstr "CPU使用時間、ミリ秒" msgstr "CPU使用時間、ミリ秒"
#: client/scenes/lobby_gui.cpp:1185 client/scenes/lobby_gui.cpp:1193 #: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372 #: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:371
msgid "GPU time" msgid "GPU time"
msgstr "GPU使用時間" msgstr "GPU使用時間"
#: client/scenes/lobby_gui.cpp:1189 #: client/scenes/lobby_gui.cpp:1170
msgid "GPU time [ms]" msgid "GPU time [ms]"
msgstr "GPU使用時間、ミリ秒" msgstr "GPU使用時間、ミリ秒"
#: client/scenes/lobby_gui.cpp:1253 #: client/scenes/lobby_gui.cpp:1234
msgid "Enable the microphone?" msgid "Enable the microphone?"
msgstr "マイクを有効にしますか?" msgstr "マイクを有効にしますか?"
#: client/scenes/lobby_gui.cpp:1258 #: client/scenes/lobby_gui.cpp:1239
msgid "Enable eye tracking?" msgid "Enable eye tracking?"
msgstr "アイトラッキングを有効にしますか?" msgstr "アイトラッキングを有効にしますか?"
#: client/scenes/lobby_gui.cpp:1263 #: client/scenes/lobby_gui.cpp:1244
msgid "Enable face tracking?" msgid "Enable face tracking?"
msgstr "フェースラッキングを有効にしますか?" msgstr "フェースラッキングを有効にしますか?"
#: client/scenes/lobby_gui.cpp:1268 #: client/scenes/lobby_gui.cpp:1249
msgid "Enable body tracking?" msgid "Enable body tracking?"
msgstr "ボディトラッキングを有効にしますか?" msgstr "ボディトラッキングを有効にしますか?"
#: client/scenes/lobby_gui.cpp:1276 #: client/scenes/lobby_gui.cpp:1257
msgid "Welcome to WiVRn" msgid "Welcome to WiVRn"
msgstr "WiVRnへようこそ!" msgstr "WiVRnへようこそ!"
#: client/scenes/lobby_gui.cpp:1304 #: client/scenes/lobby_gui.cpp:1285
msgid "Yes" msgid "Yes"
msgstr "はい" msgstr "はい"
#: client/scenes/lobby_gui.cpp:1311 #: client/scenes/lobby_gui.cpp:1292
msgid "No" msgid "No"
msgstr "いいえ" msgstr "いいえ"
#: client/scenes/lobby_gui.cpp:1330 client/scenes/lobby_gui.cpp:1976 #: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
msgid "Licenses" msgid "Licenses"
msgstr "ライセンス" msgstr "ライセンス"
#: client/scenes/lobby_gui.cpp:1606 #: client/scenes/lobby_gui.cpp:1587
msgid "Microphone is enabled" msgid "Microphone is enabled"
msgstr "マイクは有効です" msgstr "マイクは有効です"
#: client/scenes/lobby_gui.cpp:1607 #: client/scenes/lobby_gui.cpp:1588
msgid "Microphone is disabled" msgid "Microphone is disabled"
msgstr "マイクは無効です" msgstr "マイクは無効です"
#: client/scenes/lobby_gui.cpp:1616 #: client/scenes/lobby_gui.cpp:1597
msgid "Hand tracking is enabled" msgid "Hand tracking is enabled"
msgstr "ハンドトラッキングは有効です" msgstr "ハンドトラッキングは有効です"
#: client/scenes/lobby_gui.cpp:1617 #: client/scenes/lobby_gui.cpp:1598
msgid "Hand tracking is disabled" msgid "Hand tracking is disabled"
msgstr "ハンドラッキングは無効です" msgstr "ハンドラッキングは無効です"
#: client/scenes/lobby_gui.cpp:1626 #: client/scenes/lobby_gui.cpp:1607
msgid "Eye tracking is enabled" msgid "Eye tracking is enabled"
msgstr "アイトラッキングは有効です" msgstr "アイトラッキングは有効です"
#: client/scenes/lobby_gui.cpp:1627 #: client/scenes/lobby_gui.cpp:1608
msgid "Eye tracking is disabled" msgid "Eye tracking is disabled"
msgstr "アイトラッキングは無効です" msgstr "アイトラッキングは無効です"
#: client/scenes/lobby_gui.cpp:1637 #: client/scenes/lobby_gui.cpp:1618
msgid "Face tracking is enabled" msgid "Face tracking is enabled"
msgstr "フェーストラッキングは有効です" msgstr "フェーストラッキングは有効です"
#: client/scenes/lobby_gui.cpp:1638 #: client/scenes/lobby_gui.cpp:1619
msgid "Face tracking is disabled" msgid "Face tracking is disabled"
msgstr "フェーストラッキングは無効です" msgstr "フェーストラッキングは無効です"
#: client/scenes/lobby_gui.cpp:1652 #: client/scenes/lobby_gui.cpp:1633
msgid "Body tracking is enabled" msgid "Body tracking is enabled"
msgstr "ボディトラッキングは有効です" msgstr "ボディトラッキングは有効です"
#: client/scenes/lobby_gui.cpp:1653 #: client/scenes/lobby_gui.cpp:1634
msgid "Body tracking is disabled" msgid "Body tracking is disabled"
msgstr "ボディトラッキングは無効です" msgstr "ボディトラッキングは無効です"
#: client/scenes/lobby_gui.cpp:1669 #: client/scenes/lobby_gui.cpp:1650
msgid "Add server" msgid "Add server"
msgstr "サーバーを追加する" msgstr "サーバーを追加する"
#: client/scenes/lobby_gui.cpp:1955 #: client/scenes/lobby_gui.cpp:1936
msgid "Server list" msgid "Server list"
msgstr "サーバー" msgstr "サーバー"
#: client/scenes/lobby_gui.cpp:1958 client/scenes/stream_gui.cpp:1007 #: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:990
msgid "Settings" msgid "Settings"
msgstr "設定" msgstr "設定"
#: client/scenes/lobby_gui.cpp:1961 #: client/scenes/lobby_gui.cpp:1942
msgid "Post-processing" msgid "Post-processing"
msgstr "ポストエフェクト" msgstr "ポストエフェクト"
#: client/scenes/lobby_gui.cpp:1964 #: client/scenes/lobby_gui.cpp:1945
msgid "Customize" msgid "Customize"
msgstr "カスタマイズ" msgstr "カスタマイズ"
#: client/scenes/lobby_gui.cpp:1968 #: client/scenes/lobby_gui.cpp:1949
msgid "Debug" msgid "Debug"
msgstr "デバッグ" msgstr "デバッグ"
#: client/scenes/lobby_gui.cpp:1973 #: client/scenes/lobby_gui.cpp:1954
msgid "About" msgid "About"
msgstr "WiVRnについて" msgstr "WiVRnについて"
#: client/scenes/lobby_gui.cpp:1979 #: client/scenes/lobby_gui.cpp:1960
msgid "Exit" msgid "Exit"
msgstr "完了" msgstr "完了"
#: client/scenes/lobby_gui.cpp:1996 #: client/scenes/lobby_gui.cpp:1977
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"
@@ -538,7 +532,7 @@ msgstr ""
"メイン・パネルを動かすには、グリップを握るか、\n" "メイン・パネルを動かすには、グリップを握るか、\n"
"手のひらを上向きにしましょう。" "手のひらを上向きにしましょう。"
#: client/scenes/lobby_gui.cpp:1998 #: client/scenes/lobby_gui.cpp:1979
msgid "Press the grip button to move the main window" msgid "Press the grip button to move the main window"
msgstr "グリップを握ってパネルを動かしましょう。" msgstr "グリップを握ってパネルを動かしましょう。"
@@ -551,38 +545,38 @@ msgstr "ローカル環境"
msgid "Locally loaded environment ({})" msgid "Locally loaded environment ({})"
msgstr "ローカル環境({})" msgstr "ローカル環境({})"
#: client/scenes/lobby_gui_customize.cpp:299 #: client/scenes/lobby_gui_customize.cpp:300
#, c++-format #, c++-format
msgid "Cannot load local environment: {}" msgid "Cannot load local environment: {}"
msgstr "ローカル環境ロードできません:{}" msgstr "ローカル環境ロードできません:{}"
#: client/scenes/lobby_gui_customize.cpp:332 #: client/scenes/lobby_gui_customize.cpp:333
#, c++-format #, c++-format
msgid "Cannot load environment list: {}" msgid "Cannot load environment list: {}"
msgstr "環境リストをロードできませんでした:{}" msgstr "環境リストをロードできませんでした:{}"
#: client/scenes/lobby_gui_customize.cpp:462 #: client/scenes/lobby_gui_customize.cpp:463
#, c++-format #, c++-format
msgid "Author: {}" msgid "Author: {}"
msgstr "作者:{}" msgstr "作者:{}"
#: client/scenes/lobby_gui_customize.cpp:466 #: client/scenes/lobby_gui_customize.cpp:467
#, c++-format #, c++-format
msgid "Size: {:.1f} MB" msgid "Size: {:.1f} MB"
msgstr "サイズ:{:.1f} MB" msgstr "サイズ:{:.1f} MB"
#: client/scenes/lobby_gui_customize.cpp:546 #: client/scenes/lobby_gui_customize.cpp:547
msgid "Delete this model" msgid "Delete this model"
msgstr "モデルを削除しますか?" msgstr "モデルを削除しますか?"
#: client/scenes/lobby_gui_customize.cpp:582 #: client/scenes/lobby_gui_customize.cpp:583
#: client/scenes/lobby_gui_customize.cpp:788 #: client/scenes/lobby_gui_customize.cpp:789
#, c++-format #, c++-format
msgid "HTTP error {} when downloading {}" msgid "HTTP error {} when downloading {}"
msgstr "{}をダウンロード中にHTTP {}が発生しました。" msgstr "{}をダウンロード中にHTTP {}が発生しました。"
#: client/scenes/lobby_gui_customize.cpp:590 #: client/scenes/lobby_gui_customize.cpp:591
#: client/scenes/lobby_gui_customize.cpp:796 #: client/scenes/lobby_gui_customize.cpp:797
#, c++-format #, c++-format
msgid "" msgid ""
"Curl error when downloading {}\n" "Curl error when downloading {}\n"
@@ -591,99 +585,99 @@ msgstr ""
"{}をダウンロード中にCurlエラーが発生しました。\n" "{}をダウンロード中にCurlエラーが発生しました。\n"
"{}: {}" "{}: {}"
#: client/scenes/lobby_gui_customize.cpp:651 #: client/scenes/lobby_gui_customize.cpp:652
#, c++-format #, c++-format
msgid "Really delete {}?" msgid "Really delete {}?"
msgstr "{}を削除しますか?" msgstr "{}を削除しますか?"
#: client/scenes/lobby_gui_customize.cpp:655 #: client/scenes/lobby_gui_customize.cpp:656
msgid "Delete" msgid "Delete"
msgstr "削除" msgstr "削除"
#: client/scenes/lobby_gui_customize.cpp:736 #: client/scenes/lobby_gui_customize.cpp:737
#, c++-format #, c++-format
msgid "Cannot load environment: {}" msgid "Cannot load environment: {}"
msgstr "環境をロードできませんでした:{}" msgstr "環境をロードできませんでした:{}"
#: client/scenes/lobby_gui_customize.cpp:744 #: client/scenes/lobby_gui_customize.cpp:745
msgid "Loading environment" msgid "Loading environment"
msgstr "ホーム環境をロード中" msgstr "ホーム環境をロード中"
#: client/scenes/lobby_gui_customize.cpp:823 #: client/scenes/lobby_gui_customize.cpp:824
msgid "Download more environments" msgid "Download more environments"
msgstr "ホーム環境をダウンロード" msgstr "ホーム環境をダウンロード"
#: client/scenes/lobby_gui_customize.cpp:831 #: client/scenes/lobby_gui_customize.cpp:832
msgid "Open local glTF model" msgid "Open local glTF model"
msgstr "glTFファイルを開く" msgstr "glTFファイルを開く"
#: client/scenes/stream_gui.cpp:175 #: client/scenes/stream_gui.cpp:174
msgid "Defoveate" msgid "Defoveate"
msgstr "フォビエーション解除" msgstr "フォビエーション解除"
#: client/scenes/stream_gui.cpp:177 #: client/scenes/stream_gui.cpp:176
msgid "Network" msgid "Network"
msgstr "ネットワーク" msgstr "ネットワーク"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369 #: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:368
msgid "Download" msgid "Download"
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 "Upload" msgid "Upload"
msgstr "アップロード" msgstr "アップロード"
#: client/scenes/stream_gui.cpp:247 #: client/scenes/stream_gui.cpp:246
#, c++-format #, c++-format
msgid "Decoder {}" msgid "Decoder {}"
msgstr "デコーダー {}" msgstr "デコーダー {}"
#: client/scenes/stream_gui.cpp:259 #: client/scenes/stream_gui.cpp:258
msgid "Timings [ms]" msgid "Timings [ms]"
msgstr "タイミング、ミリ秒" msgstr "タイミング、ミリ秒"
#: client/scenes/stream_gui.cpp:319 #: client/scenes/stream_gui.cpp:318
msgid "Encode" msgid "Encode"
msgstr "動画エンコード" msgstr "動画エンコード"
#: client/scenes/stream_gui.cpp:320 #: client/scenes/stream_gui.cpp:319
msgid "Send" msgid "Send"
msgstr "送信" msgstr "送信"
#: client/scenes/stream_gui.cpp:321 #: client/scenes/stream_gui.cpp:320
msgid "Receive" msgid "Receive"
msgstr "受信" msgstr "受信"
#: client/scenes/stream_gui.cpp:322 #: client/scenes/stream_gui.cpp:321
msgid "Decode" msgid "Decode"
msgstr "デコード" msgstr "デコード"
#: client/scenes/stream_gui.cpp:323 #: client/scenes/stream_gui.cpp:322
msgid "Blitted" msgid "Blitted"
msgstr "描画" msgstr "描画"
#: client/scenes/stream_gui.cpp:324 #: client/scenes/stream_gui.cpp:323
msgid "Displayed" msgid "Displayed"
msgstr "表示" msgstr "表示"
#: client/scenes/stream_gui.cpp:325 #: client/scenes/stream_gui.cpp:324
msgid "Predicted" msgid "Predicted"
msgstr "予測時間" msgstr "予測時間"
#: client/scenes/stream_gui.cpp:344 #: client/scenes/stream_gui.cpp:343
#, 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:349 #: client/scenes/stream_gui.cpp:348
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:351 client/scenes/stream_gui.cpp:738 #: client/scenes/stream_gui.cpp:350 client/scenes/stream_gui.cpp:918
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:373 #: client/scenes/stream_gui.cpp:372
msgid "Motion to photon latency" msgid "Motion to photon latency"
msgstr "「Motion-to-photon」遅延" msgstr "「Motion-to-photon」遅延"
@@ -695,29 +689,29 @@ msgstr "ビットレート:"
msgid "Click to adjust bitrate" msgid "Click to adjust bitrate"
msgstr "クリックしてビットレートを調整" msgstr "クリックしてビットレートを調整"
#: client/scenes/stream_gui.cpp:532 #: client/scenes/stream_gui.cpp:531
msgid "Foveation center override" msgid "Foveation center override"
msgstr "光学中心の調整" msgstr "光学中心の調整"
#: client/scenes/stream_gui.cpp:535 #: client/scenes/stream_gui.cpp:534
msgid "Enable" msgid "Enable"
msgstr "有効" msgstr "有効"
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614 #: client/scenes/stream_gui.cpp:542 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:544 client/scenes/stream_gui.cpp:615 #: client/scenes/stream_gui.cpp:543 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:545 #: client/scenes/stream_gui.cpp:544
msgid "Default" msgid "Default"
msgstr "デフォルト" msgstr "デフォルト"
#: client/scenes/stream_gui.cpp:556 #: client/scenes/stream_gui.cpp:555
msgid "Change" msgid "Change"
msgstr "編集" msgstr "編集"
@@ -754,23 +748,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:993 #: client/scenes/stream_gui.cpp:977
msgid "Applications" msgid "Applications"
msgstr "アプリ" msgstr "アプリ"
#: client/scenes/stream_gui.cpp:996 #: client/scenes/stream_gui.cpp:980
msgid "Start" msgid "Start"
msgstr "実行する" msgstr "実行する"
#: client/scenes/stream_gui.cpp:1010 #: client/scenes/stream_gui.cpp:993
msgid "Stats" msgid "Stats"
msgstr "統計情報" msgstr "統計情報"
#: client/scenes/stream_gui.cpp:1016 #: client/scenes/stream_gui.cpp:999
msgid "Statistics overlay" msgid "Statistics overlay"
msgstr "統計オーバーレイ" msgstr "統計オーバーレイ"
#: client/scenes/stream_gui.cpp:1019 #: client/scenes/stream_gui.cpp:1002
msgid "Compact view" msgid "Compact view"
msgstr "コンパクト・モード" msgstr "コンパクト・モード"
+32 -44
View File
@@ -10,8 +10,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-16 21:54+0100\n" "POT-Creation-Date: 2026-02-02 14:05+0100\n"
"PO-Revision-Date: 2026-02-16 23:23+0100\n" "PO-Revision-Date: 2026-02-02 15:54+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"
@@ -19,7 +19,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.12.2\n" "X-Generator: Lokalize 25.12.1\n"
#: dashboard/apk_installer.cpp:137 #: dashboard/apk_installer.cpp:137
#, kde-format #, kde-format
@@ -121,8 +121,8 @@ msgstr "Verificando a última versão..."
msgid "No APK is available for this version" msgid "No APK is available for this version"
msgstr "Nenhum APK está disponível para esta versão" msgstr "Nenhum APK está disponível para esta versão"
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:376 #: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:368
#: dashboard/qml/Main.qml:434 dashboard/qml/WizardPage.qml:211 #: dashboard/qml/Main.qml:426 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"
@@ -165,7 +165,7 @@ msgstr "Reinstalar WiVRn"
msgid "Install WiVRn" msgid "Install WiVRn"
msgstr "Instalar WiVRn" msgstr "Instalar WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:439 #: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:431
#, kde-format #, kde-format
msgid "Headsets" msgid "Headsets"
msgstr "Headsets" msgstr "Headsets"
@@ -291,7 +291,7 @@ msgid "Avahi daemon is not started"
msgstr "Avahi daemon não foi iniciado" msgstr "Avahi daemon não foi iniciado"
#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171 #: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171
#: dashboard/qml/Main.qml:231 #: dashboard/qml/Main.qml:223
#, kde-format #, kde-format
msgid "Fix it" msgid "Fix it"
msgstr "Conserte" msgstr "Conserte"
@@ -315,18 +315,6 @@ msgstr "Mais informações"
#: 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 ""
"Drivers vulkan não foram encontrados, você pode ter que rodar \"flatpak update"
"\""
#: dashboard/qml/Main.qml:193
#, kde-format
msgid "Vulkan drivers cannot be found"
msgstr "Drivers vulkan não foram encontrados"
#: 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"
@@ -334,7 +322,7 @@ msgstr ""
"Use o driver Mesa (radv) para GPUs AMD\n" "Use o driver Mesa (radv) para GPUs AMD\n"
"Codificação de hardware com a vaapi não funciona com AMDVLK e AMDGPU-PRO" "Codificação de hardware com a vaapi não funciona com AMDVLK e AMDGPU-PRO"
#: dashboard/qml/Main.qml:209 #: dashboard/qml/Main.qml:201
#, 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"
@@ -344,127 +332,127 @@ msgstr ""
"conseguirão carregar em VR.\n" "conseguirão carregar em VR.\n"
"Instale o xrizer ou o OpenComposite." "Instale o xrizer ou o OpenComposite."
#: dashboard/qml/Main.qml:217 #: dashboard/qml/Main.qml:209
#, 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 "A Steam está instalada como snap. Snaps não são compatíveis com WiVRn." msgstr "A Steam está instalada como snap. Snaps não são compatíveis com WiVRn."
#: dashboard/qml/Main.qml:225 #: dashboard/qml/Main.qml:217
#, 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 "A Steam está instalada como flatpak e não tem permissões suficientes." msgstr "A Steam está instalada como flatpak e não tem permissões suficientes."
#: dashboard/qml/Main.qml:240 #: dashboard/qml/Main.qml:232
#, 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 ""
"Reinicie o servidor para que as alterações de configuração tenham efeito" "Reinicie o servidor para que as alterações de configuração tenham efeito"
#: dashboard/qml/Main.qml:246 #: dashboard/qml/Main.qml:238
#, kde-format #, kde-format
msgctxt "restart the server" msgctxt "restart the server"
msgid "Restart now" msgid "Restart now"
msgstr "Reiniciar agora" msgstr "Reiniciar agora"
#: dashboard/qml/Main.qml:271 #: dashboard/qml/Main.qml:263
#, kde-format #, kde-format
msgid "Server failed to start" msgid "Server failed to start"
msgstr "Servidor falhou em iniciar" msgstr "Servidor falhou em iniciar"
#: dashboard/qml/Main.qml:277 dashboard/qml/TroubleshootPage.qml:89 #: dashboard/qml/Main.qml:269 dashboard/qml/TroubleshootPage.qml:89
#, kde-format #, kde-format
msgid "Open server logs" msgid "Open server logs"
msgstr "Abrir logs do servidor" msgstr "Abrir logs do servidor"
#: dashboard/qml/Main.qml:303 #: dashboard/qml/Main.qml:295
#, kde-format #, kde-format
msgid "Server status" msgid "Server status"
msgstr "Status do servidor" msgstr "Status do servidor"
#: dashboard/qml/Main.qml:309 #: dashboard/qml/Main.qml:301
#, 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 "Rodando" msgstr "Rodando"
#: dashboard/qml/Main.qml:322 #: dashboard/qml/Main.qml:314
#, 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 "Pareando" msgstr "Pareando"
#: dashboard/qml/Main.qml:342 #: dashboard/qml/Main.qml:334
#, kde-format #, kde-format
msgid "Headset status" msgid "Headset status"
msgstr "Status do headset" msgstr "Status do headset"
#: dashboard/qml/Main.qml:349 #: dashboard/qml/Main.qml:341
#, 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 "Headset" msgstr "Headset"
#: dashboard/qml/Main.qml:352 #: dashboard/qml/Main.qml:344
#, kde-format #, kde-format
msgid "Not connected" msgid "Not connected"
msgstr "Não conectado" msgstr "Não conectado"
#: dashboard/qml/Main.qml:356 #: dashboard/qml/Main.qml:348
#, kde-format #, kde-format
msgid "Disconnect" msgid "Disconnect"
msgstr "Desconectar" msgstr "Desconectar"
#: dashboard/qml/Main.qml:365 dashboard/qml/Main.qml:373 #: dashboard/qml/Main.qml:357 dashboard/qml/Main.qml:365
#: dashboard/qml/Main.qml:380 #: dashboard/qml/Main.qml:372
#, 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:366 #: dashboard/qml/Main.qml:358
#, kde-format #, kde-format
msgctxt "usb connect button" msgctxt "usb connect button"
msgid "Connect (wired)" msgid "Connect (wired)"
msgstr "Conectar (por cabo)" msgstr "Conectar (por cabo)"
#: dashboard/qml/Main.qml:383 dashboard/qml/WizardPage.qml:339 #: dashboard/qml/Main.qml:375 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 ""
"Nenhum headset está conectado ou seu headset não está em modo desenvolvedor" "Nenhum headset está conectado ou seu headset não está em modo desenvolvedor"
#: dashboard/qml/Main.qml:404 #: dashboard/qml/Main.qml:396
#, kde-format #, kde-format
msgid "Steam information" msgid "Steam information"
msgstr "Informações da Steam" msgstr "Informações da Steam"
#: dashboard/qml/Main.qml:420 #: dashboard/qml/Main.qml:412
#, kde-format #, kde-format
msgid "Wizard" msgid "Wizard"
msgstr "Assistente" msgstr "Assistente"
#: dashboard/qml/Main.qml:426 #: dashboard/qml/Main.qml:418
#, kde-format #, kde-format
msgid "Install the app" msgid "Install the app"
msgstr "Instalar o aplicativo" msgstr "Instalar o aplicativo"
#: dashboard/qml/Main.qml:445 dashboard/qml/SettingsPage.qml:14 #: dashboard/qml/Main.qml:437 dashboard/qml/SettingsPage.qml:14
#, kde-format #, kde-format
msgid "Settings" msgid "Settings"
msgstr "Ajustes" msgstr "Ajustes"
#: dashboard/qml/Main.qml:451 #: dashboard/qml/Main.qml:443
#, kde-format #, kde-format
msgid "About" msgid "About"
msgstr "Sobre" msgstr "Sobre"
#: dashboard/qml/Main.qml:456 dashboard/qml/TroubleshootPage.qml:10 #: dashboard/qml/Main.qml:448 dashboard/qml/TroubleshootPage.qml:10
#, kde-format #, kde-format
msgid "Troubleshoot" msgid "Troubleshoot"
msgstr "Resolver problemas" msgstr "Resolver problemas"
#: dashboard/qml/Main.qml:463 #: dashboard/qml/Main.qml:455
#, kde-format #, kde-format
msgid "Version %1" msgid "Version %1"
msgstr "Versão %1" msgstr "Versão %1"
+136 -146
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-02-27 16:03+0100\n" "POT-Creation-Date: 2026-01-31 21:11+0100\n"
"PO-Revision-Date: 2026-02-28 16:29+0100\n" "PO-Revision-Date: 2026-02-02 15:55+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.2\n" "X-Generator: Lokalize 25.12.1\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:127 #: client/scenes/app_launcher.cpp:128
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:129 #: client/scenes/app_launcher.cpp:130
#, c++-format #, c++-format
msgid "Connected to {}" msgid "Connected to {}"
msgstr "Conectado a {}" msgstr "Conectado a {}"
#: client/scenes/app_launcher.cpp:135 #: client/scenes/app_launcher.cpp:136
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:145 #: client/scenes/app_launcher.cpp:146
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:147 #: client/scenes/app_launcher.cpp:148
#, 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:1316 #: client/scenes/lobby.cpp:1319
msgid "Passthrough" msgid "Passthrough"
msgstr "Passthrough" msgstr "Passthrough"
#: client/scenes/lobby.cpp:1328 #: client/scenes/lobby.cpp:1331
msgid "Default environment" msgid "Default environment"
msgstr "Ambiente default" msgstr "Ambiente default"
@@ -96,15 +96,14 @@ msgctxt "openxr_post_processing"
msgid "Disabled" msgid "Disabled"
msgstr "Desabilitado" msgstr "Desabilitado"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254 #: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
#: client/scenes/stream_gui.cpp:1026 #: client/scenes/stream_gui.cpp:1009
msgid "Disconnect" msgid "Disconnect"
msgstr "Desconectar" msgstr "Desconectar"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264 #: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
#: 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:1022 #: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1005
msgid "Close" msgid "Close"
msgstr "Fechar" msgstr "Fechar"
@@ -125,41 +124,32 @@ 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:327 #: client/scenes/lobby_gui.cpp:295
msgid "Address" msgid "Address"
msgstr "Endereço" msgstr "Endereço"
#: client/scenes/lobby_gui.cpp:336 #: client/scenes/lobby_gui.cpp:304
msgid "Port" msgid "Port"
msgstr "Porta" msgstr "Porta"
#: client/scenes/lobby_gui.cpp:344 #: client/scenes/lobby_gui.cpp:312
msgid "TCP only" msgid "TCP only"
msgstr "TCP somente" msgstr "TCP somente"
#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655 #: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:978 #: client/scenes/stream_gui.cpp:962
msgid "Cancel" msgid "Cancel"
msgstr "Cancelar" msgstr "Cancelar"
#: client/scenes/lobby_gui.cpp:365 #: client/scenes/lobby_gui.cpp:333
msgid "Save" msgid "Save"
msgstr "Salvar" msgstr "Salvar"
#: client/scenes/lobby_gui.cpp:418 #: client/scenes/lobby_gui.cpp:386
msgid "" msgid ""
"Start a WiVRn server on your\n" "Start a WiVRn server on your\n"
"local network" "local network"
@@ -167,46 +157,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:450 #: client/scenes/lobby_gui.cpp:418
msgid "Autoconnect" msgid "Autoconnect"
msgstr "Autoconectar" msgstr "Autoconectar"
#: client/scenes/lobby_gui.cpp:476 #: client/scenes/lobby_gui.cpp:444
msgid "Connect" msgid "Connect"
msgstr "Conectar" msgstr "Conectar"
#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186 #: client/scenes/lobby_gui.cpp:454 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:488 #: client/scenes/lobby_gui.cpp:456
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:581 #: client/scenes/lobby_gui.cpp:538
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:595 #: client/scenes/lobby_gui.cpp:552
msgid "Language" msgid "Language"
msgstr "Linguagem" msgstr "Linguagem"
#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597 #: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554
msgid "System language" msgid "System language"
msgstr "Linguagem do Sistema" msgstr "Linguagem do Sistema"
#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412 #: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:411
msgid "Refresh rate" msgid "Refresh rate"
msgstr "Taxa de atualização" msgstr "Taxa de atualização"
#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625 #: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414 #: client/scenes/stream_gui.cpp:411 client/scenes/stream_gui.cpp:413
msgctxt "automatic refresh rate" msgctxt "automatic refresh rate"
msgid "Automatic" msgid "Automatic"
msgstr "Automático" msgstr "Automático"
#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421 #: client/scenes/lobby_gui.cpp:589 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."
@@ -214,38 +204,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:649 client/scenes/stream_gui.cpp:439 #: client/scenes/lobby_gui.cpp:606 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:675 #: client/scenes/lobby_gui.cpp:632
msgid "Foveation level" msgid "Foveation level"
msgstr "Nível de foveação" msgstr "Nível de foveação"
#: client/scenes/lobby_gui.cpp:698 #: client/scenes/lobby_gui.cpp:655
msgid "Render resolution" msgid "Render resolution"
msgstr "Resolução de renderização" msgstr "Resolução de renderização"
#: client/scenes/lobby_gui.cpp:702 #: client/scenes/lobby_gui.cpp:659
#, 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:713 #: client/scenes/lobby_gui.cpp:670
#, 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:723 #: client/scenes/lobby_gui.cpp:680
msgid "Foveated encoding" msgid "Foveated encoding"
msgstr "Codificação foveada" msgstr "Codificação foveada"
#: client/scenes/lobby_gui.cpp:727 #: client/scenes/lobby_gui.cpp:684
#, c-format, c++-format #, c-format, c++-format
msgid "{}%%" msgid "{}%%"
msgstr "{}%%" msgstr "{}%%"
#: client/scenes/lobby_gui.cpp:740 #: client/scenes/lobby_gui.cpp:697
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."
@@ -253,7 +243,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:743 #: client/scenes/lobby_gui.cpp:700
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."
@@ -261,88 +251,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:752 #: client/scenes/lobby_gui.cpp:709
msgctxt "Codec" msgctxt "Codec"
msgid "Automatic" msgid "Automatic"
msgstr "Automático" msgstr "Automático"
#: client/scenes/lobby_gui.cpp:756 #: client/scenes/lobby_gui.cpp:713
msgctxt "Codec" msgctxt "Codec"
msgid "H.264" msgid "H.264"
msgstr "H.264" msgstr "H.264"
#: client/scenes/lobby_gui.cpp:758 #: client/scenes/lobby_gui.cpp:715
msgctxt "Codec" msgctxt "Codec"
msgid "H.265" msgid "H.265"
msgstr "H.265" msgstr "H.265"
#: client/scenes/lobby_gui.cpp:760 #: client/scenes/lobby_gui.cpp:717
msgctxt "Codec" msgctxt "Codec"
msgid "AV1" msgid "AV1"
msgstr "AV1" msgstr "AV1"
#: client/scenes/lobby_gui.cpp:768 #: client/scenes/lobby_gui.cpp:725
msgid "Codec" msgid "Codec"
msgstr "Codec" msgstr "Codec"
#: client/scenes/lobby_gui.cpp:796 #: client/scenes/lobby_gui.cpp:753
msgid "10-bit" msgid "10-bit"
msgstr "10-bit" msgstr "10-bit"
#: client/scenes/lobby_gui.cpp:812 #: client/scenes/lobby_gui.cpp:768
msgid "Bitrate" msgid "Bitrate"
msgstr "Bitrate" msgstr "Bitrate"
#: client/scenes/lobby_gui.cpp:816 #: client/scenes/lobby_gui.cpp:772
#, c++-format #, c++-format
msgid "{}Mbit/s" msgid "{}Mbit/s"
msgstr "{}Mbit/s" msgstr "{}Mbit/s"
#: client/scenes/lobby_gui.cpp:827 #: client/scenes/lobby_gui.cpp:783
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:830 #: client/scenes/lobby_gui.cpp:786
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:836 #: client/scenes/lobby_gui.cpp:792
msgid "Enable microphone" msgid "Enable microphone"
msgstr "Ativar microfone" msgstr "Ativar microfone"
#: client/scenes/lobby_gui.cpp:845 #: client/scenes/lobby_gui.cpp:801
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:851 #: client/scenes/lobby_gui.cpp:807
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:858 #: client/scenes/lobby_gui.cpp:814
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:864 client/scenes/lobby_gui.cpp:875 #: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831
#: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900 #: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856
#: 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:869 #: client/scenes/lobby_gui.cpp:825
msgid "Enable eye tracking" msgid "Enable eye tracking"
msgstr "Ativar rastreamento ocular" msgstr "Ativar rastreamento ocular"
#: client/scenes/lobby_gui.cpp:880 #: client/scenes/lobby_gui.cpp:836
msgid "Enable face tracking" msgid "Enable face tracking"
msgstr "Ativar rastreamento facial" msgstr "Ativar rastreamento facial"
#: client/scenes/lobby_gui.cpp:892 #: client/scenes/lobby_gui.cpp:848
msgid "Enable body tracking" msgid "Enable body tracking"
msgstr "Ativar rastreamento corporal" msgstr "Ativar rastreamento corporal"
#: client/scenes/lobby_gui.cpp:905 #: client/scenes/lobby_gui.cpp:861
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"
@@ -354,11 +344,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:915 #: client/scenes/lobby_gui.cpp:871
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:921 #: client/scenes/lobby_gui.cpp:877
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 "
@@ -369,11 +359,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:924 #: client/scenes/lobby_gui.cpp:880
msgid "Enable hip tracking" msgid "Enable hip tracking"
msgstr "Ativar rastreamento de quadril" msgstr "Ativar rastreamento de quadril"
#: client/scenes/lobby_gui.cpp:930 #: client/scenes/lobby_gui.cpp:886
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"
@@ -381,11 +371,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:939 #: client/scenes/lobby_gui.cpp:895
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:942 #: client/scenes/lobby_gui.cpp:898
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."
@@ -394,23 +384,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:946 #: client/scenes/lobby_gui.cpp:902
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:949 #: client/scenes/lobby_gui.cpp:905
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:963 client/scenes/stream_gui.cpp:473 #: client/scenes/lobby_gui.cpp:919 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:967 client/scenes/stream_gui.cpp:477 #: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:477
msgid "Supersampling" msgid "Supersampling"
msgstr "Supersampling" msgstr "Supersampling"
#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498 #: client/scenes/lobby_gui.cpp:943 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"
@@ -418,11 +408,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:992 client/scenes/stream_gui.cpp:503 #: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:503
msgid "Sharpening" msgid "Sharpening"
msgstr "Aumento de nitidez" msgstr "Aumento de nitidez"
#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524 #: client/scenes/lobby_gui.cpp:968 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"
@@ -430,129 +420,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:1196 client/scenes/lobby_gui.cpp:1204 #: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371 #: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:370
msgid "CPU time" msgid "CPU time"
msgstr "Tempo de CPU" msgstr "Tempo de CPU"
#: client/scenes/lobby_gui.cpp:1200 #: client/scenes/lobby_gui.cpp:1156
msgid "CPU time [ms]" msgid "CPU time [ms]"
msgstr "Tempo de CPU [ms]" msgstr "Tempo de CPU [ms]"
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218 #: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372 #: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:371
msgid "GPU time" msgid "GPU time"
msgstr "Tempo de GPU" msgstr "Tempo de GPU"
#: client/scenes/lobby_gui.cpp:1214 #: client/scenes/lobby_gui.cpp:1170
msgid "GPU time [ms]" msgid "GPU time [ms]"
msgstr "Tempo de GPU [ms]" msgstr "Tempo de GPU [ms]"
#: client/scenes/lobby_gui.cpp:1278 #: client/scenes/lobby_gui.cpp:1234
msgid "Enable the microphone?" msgid "Enable the microphone?"
msgstr "Habilitar o microfone?" msgstr "Habilitar o microfone?"
#: client/scenes/lobby_gui.cpp:1283 #: client/scenes/lobby_gui.cpp:1239
msgid "Enable eye tracking?" msgid "Enable eye tracking?"
msgstr "Habilitar o rastreamento ocular?" msgstr "Habilitar o rastreamento ocular?"
#: client/scenes/lobby_gui.cpp:1288 #: client/scenes/lobby_gui.cpp:1244
msgid "Enable face tracking?" msgid "Enable face tracking?"
msgstr "Habilitar o rastreamento facial?" msgstr "Habilitar o rastreamento facial?"
#: client/scenes/lobby_gui.cpp:1293 #: client/scenes/lobby_gui.cpp:1249
msgid "Enable body tracking?" msgid "Enable body tracking?"
msgstr "Habilitar o rastreamento corporal?" msgstr "Habilitar o rastreamento corporal?"
#: client/scenes/lobby_gui.cpp:1301 #: client/scenes/lobby_gui.cpp:1257
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:1329 #: client/scenes/lobby_gui.cpp:1285
msgid "Yes" msgid "Yes"
msgstr "Sim" msgstr "Sim"
#: client/scenes/lobby_gui.cpp:1336 #: client/scenes/lobby_gui.cpp:1292
msgid "No" msgid "No"
msgstr "Não" msgstr "Não"
#: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001 #: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
msgid "Licenses" msgid "Licenses"
msgstr "Licenças" msgstr "Licenças"
#: client/scenes/lobby_gui.cpp:1631 #: client/scenes/lobby_gui.cpp:1587
msgid "Microphone is enabled" msgid "Microphone is enabled"
msgstr "O microfone está ativado" msgstr "O microfone está ativado"
#: client/scenes/lobby_gui.cpp:1632 #: client/scenes/lobby_gui.cpp:1588
msgid "Microphone is disabled" msgid "Microphone is disabled"
msgstr "O microfone está desativado" msgstr "O microfone está desativado"
#: client/scenes/lobby_gui.cpp:1641 #: client/scenes/lobby_gui.cpp:1597
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:1642 #: client/scenes/lobby_gui.cpp:1598
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:1651 #: client/scenes/lobby_gui.cpp:1607
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:1652 #: client/scenes/lobby_gui.cpp:1608
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:1662 #: client/scenes/lobby_gui.cpp:1618
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:1663 #: client/scenes/lobby_gui.cpp:1619
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:1677 #: client/scenes/lobby_gui.cpp:1633
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:1678 #: client/scenes/lobby_gui.cpp:1634
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:1694 #: client/scenes/lobby_gui.cpp:1650
msgid "Add server" msgid "Add server"
msgstr "Adicionar servidor" msgstr "Adicionar servidor"
#: client/scenes/lobby_gui.cpp:1980 #: client/scenes/lobby_gui.cpp:1936
msgid "Server list" msgid "Server list"
msgstr "Lista de servidores" msgstr "Lista de servidores"
#: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007 #: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:990
msgid "Settings" msgid "Settings"
msgstr "Ajustes" msgstr "Ajustes"
#: client/scenes/lobby_gui.cpp:1986 #: client/scenes/lobby_gui.cpp:1942
msgid "Post-processing" msgid "Post-processing"
msgstr "Pós-processamento" msgstr "Pós-processamento"
#: client/scenes/lobby_gui.cpp:1989 #: client/scenes/lobby_gui.cpp:1945
msgid "Customize" msgid "Customize"
msgstr "Personalizar" msgstr "Personalizar"
#: client/scenes/lobby_gui.cpp:1993 #: client/scenes/lobby_gui.cpp:1949
msgid "Debug" msgid "Debug"
msgstr "Depurar" msgstr "Depurar"
#: client/scenes/lobby_gui.cpp:1998 #: client/scenes/lobby_gui.cpp:1954
msgid "About" msgid "About"
msgstr "Sobre" msgstr "Sobre"
#: client/scenes/lobby_gui.cpp:2004 #: client/scenes/lobby_gui.cpp:1960
msgid "Exit" msgid "Exit"
msgstr "Sair" msgstr "Sair"
#: client/scenes/lobby_gui.cpp:2021 #: client/scenes/lobby_gui.cpp:1977
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"
@@ -560,7 +550,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:2023 #: client/scenes/lobby_gui.cpp:1979
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"
@@ -639,73 +629,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:175 #: client/scenes/stream_gui.cpp:174
msgid "Defoveate" msgid "Defoveate"
msgstr "Defoveação" msgstr "Defoveação"
#: client/scenes/stream_gui.cpp:177 #: client/scenes/stream_gui.cpp:176
msgid "Network" msgid "Network"
msgstr "Rede" msgstr "Rede"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369 #: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:368
msgid "Download" msgid "Download"
msgstr "Download" msgstr "Download"
#: 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 "Upload" msgid "Upload"
msgstr "Upload" msgstr "Upload"
#: client/scenes/stream_gui.cpp:247 #: client/scenes/stream_gui.cpp:246
#, c++-format #, c++-format
msgid "Decoder {}" msgid "Decoder {}"
msgstr "Decodificador {}" msgstr "Decodificador {}"
#: client/scenes/stream_gui.cpp:259 #: client/scenes/stream_gui.cpp:258
msgid "Timings [ms]" msgid "Timings [ms]"
msgstr "Tempos [ms]" msgstr "Tempos [ms]"
#: client/scenes/stream_gui.cpp:319 #: client/scenes/stream_gui.cpp:318
msgid "Encode" msgid "Encode"
msgstr "Codificação" msgstr "Codificação"
#: client/scenes/stream_gui.cpp:320 #: client/scenes/stream_gui.cpp:319
msgid "Send" msgid "Send"
msgstr "Envio" msgstr "Envio"
#: client/scenes/stream_gui.cpp:321 #: client/scenes/stream_gui.cpp:320
msgid "Receive" msgid "Receive"
msgstr "Recepção" msgstr "Recepção"
#: client/scenes/stream_gui.cpp:322 #: client/scenes/stream_gui.cpp:321
msgid "Decode" msgid "Decode"
msgstr "Decodificação" msgstr "Decodificação"
#: client/scenes/stream_gui.cpp:323 #: client/scenes/stream_gui.cpp:322
msgid "Blitted" msgid "Blitted"
msgstr "Blitagem" msgstr "Blitagem"
#: client/scenes/stream_gui.cpp:324 #: client/scenes/stream_gui.cpp:323
msgid "Displayed" msgid "Displayed"
msgstr "Exibição" msgstr "Exibição"
#: client/scenes/stream_gui.cpp:325 #: client/scenes/stream_gui.cpp:324
msgid "Predicted" msgid "Predicted"
msgstr "Previsão" msgstr "Previsão"
#: client/scenes/stream_gui.cpp:344 #: client/scenes/stream_gui.cpp:343
#, 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:349 #: client/scenes/stream_gui.cpp:348
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:351 client/scenes/stream_gui.cpp:738 #: client/scenes/stream_gui.cpp:350 client/scenes/stream_gui.cpp:918
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:373 #: client/scenes/stream_gui.cpp:372
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)"
@@ -717,29 +707,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:532 #: client/scenes/stream_gui.cpp:531
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:535 #: client/scenes/stream_gui.cpp:534
msgid "Enable" msgid "Enable"
msgstr "Habilitar" msgstr "Habilitar"
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614 #: client/scenes/stream_gui.cpp:542 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:544 client/scenes/stream_gui.cpp:615 #: client/scenes/stream_gui.cpp:543 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:545 #: client/scenes/stream_gui.cpp:544
msgid "Default" msgid "Default"
msgstr "Padrão" msgstr "Padrão"
#: client/scenes/stream_gui.cpp:556 #: client/scenes/stream_gui.cpp:555
msgid "Change" msgid "Change"
msgstr "Modificar" msgstr "Modificar"
@@ -776,23 +766,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:993 #: client/scenes/stream_gui.cpp:977
msgid "Applications" msgid "Applications"
msgstr "Aplicativos" msgstr "Aplicativos"
#: client/scenes/stream_gui.cpp:996 #: client/scenes/stream_gui.cpp:980
msgid "Start" msgid "Start"
msgstr "Iniciar" msgstr "Iniciar"
#: client/scenes/stream_gui.cpp:1010 #: client/scenes/stream_gui.cpp:993
msgid "Stats" msgid "Stats"
msgstr "Estatísticas" msgstr "Estatísticas"
#: client/scenes/stream_gui.cpp:1016 #: client/scenes/stream_gui.cpp:999
msgid "Statistics overlay" msgid "Statistics overlay"
msgstr "Overlay de estatísticas" msgstr "Overlay de estatísticas"
#: client/scenes/stream_gui.cpp:1019 #: client/scenes/stream_gui.cpp:1002
msgid "Compact view" msgid "Compact view"
msgstr "Visualização compacta" msgstr "Visualização compacta"
+34 -44
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-18 16:24+0800\n" "POT-Creation-Date: 2026-02-02 21:05+0800\n"
"PO-Revision-Date: 2026-02-25 21:21+0800\n" "PO-Revision-Date: 2026-02-08 12:43+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:376 #: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:368
#: dashboard/qml/Main.qml:434 dashboard/qml/WizardPage.qml:211 #: dashboard/qml/Main.qml:426 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:439 #: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:431
#, 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:231 #: dashboard/qml/Main.qml:223
#, kde-format #, kde-format
msgid "Fix it" msgid "Fix it"
msgstr "修复" msgstr "修复"
@@ -305,16 +305,6 @@ 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"
@@ -322,7 +312,7 @@ msgstr ""
"AMD 显卡请使用 Mesa (radv) 驱动程序\n" "AMD 显卡请使用 Mesa (radv) 驱动程序\n"
"使用 vaapi 的硬件编码不适用于 AMDVLK 和 AMDGPU-PRO" "使用 vaapi 的硬件编码不适用于 AMDVLK 和 AMDGPU-PRO"
#: dashboard/qml/Main.qml:209 #: dashboard/qml/Main.qml:201
#, 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"
@@ -331,142 +321,142 @@ msgstr ""
"系统未检测到 OpenVR 兼容层,Steam 平台上的 VR 游戏无法正常加载。\n" "系统未检测到 OpenVR 兼容层,Steam 平台上的 VR 游戏无法正常加载。\n"
"请安装 xrizer 或 OpenComposite" "请安装 xrizer 或 OpenComposite"
#: dashboard/qml/Main.qml:217 #: dashboard/qml/Main.qml:209
#, 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:225 #: dashboard/qml/Main.qml:217
#, 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:240 #: dashboard/qml/Main.qml:232
#, 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:246 #: dashboard/qml/Main.qml:238
#, kde-format #, kde-format
msgctxt "restart the server" msgctxt "restart the server"
msgid "Restart now" msgid "Restart now"
msgstr "立即重新启动" msgstr "立即重新启动"
#: dashboard/qml/Main.qml:271 #: dashboard/qml/Main.qml:263
#, kde-format #, kde-format
msgid "Server failed to start" msgid "Server failed to start"
msgstr "服务器启动失败" msgstr "服务器启动失败"
#: dashboard/qml/Main.qml:277 dashboard/qml/TroubleshootPage.qml:89 #: dashboard/qml/Main.qml:269 dashboard/qml/TroubleshootPage.qml:89
#, kde-format #, kde-format
msgid "Open server logs" msgid "Open server logs"
msgstr "开启服务器日志" msgstr "开启服务器日志"
#: dashboard/qml/Main.qml:303 #: dashboard/qml/Main.qml:295
#, kde-format #, kde-format
msgid "Server status" msgid "Server status"
msgstr "服务器状态" msgstr "服务器状态"
#: dashboard/qml/Main.qml:309 #: dashboard/qml/Main.qml:301
#, 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:322 #: dashboard/qml/Main.qml:314
#, 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:342 #: dashboard/qml/Main.qml:334
#, kde-format #, kde-format
msgid "Headset status" msgid "Headset status"
msgstr "头显状态" msgstr "头显状态"
#: dashboard/qml/Main.qml:349 #: dashboard/qml/Main.qml:341
#, 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:352 #: dashboard/qml/Main.qml:344
#, kde-format #, kde-format
msgid "Not connected" msgid "Not connected"
msgstr "未连接" msgstr "未连接"
#: dashboard/qml/Main.qml:356 #: dashboard/qml/Main.qml:348
#, kde-format #, kde-format
msgid "Disconnect" msgid "Disconnect"
msgstr "断开连接" msgstr "断开连接"
#: dashboard/qml/Main.qml:365 dashboard/qml/Main.qml:373 #: dashboard/qml/Main.qml:357 dashboard/qml/Main.qml:365
#: dashboard/qml/Main.qml:380 #: dashboard/qml/Main.qml:372
#, 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:366 #: dashboard/qml/Main.qml:358
#, kde-format #, kde-format
msgctxt "usb connect button" msgctxt "usb connect button"
msgid "Connect (wired)" msgid "Connect (wired)"
msgstr "链接 (有线)" msgstr "链接 (有线)"
#: dashboard/qml/Main.qml:383 dashboard/qml/WizardPage.qml:339 #: dashboard/qml/Main.qml:375 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:404 #: dashboard/qml/Main.qml:396
#, kde-format #, kde-format
msgid "Steam information" msgid "Steam information"
msgstr "Steam 信息" msgstr "Steam 信息"
#: dashboard/qml/Main.qml:420 #: dashboard/qml/Main.qml:412
#, kde-format #, kde-format
msgid "Wizard" msgid "Wizard"
msgstr "向导" msgstr "向导"
#: dashboard/qml/Main.qml:426 #: dashboard/qml/Main.qml:418
#, kde-format #, kde-format
msgid "Install the app" msgid "Install the app"
msgstr "安装应用程序" msgstr "安装应用程序"
#: dashboard/qml/Main.qml:445 dashboard/qml/SettingsPage.qml:14 #: dashboard/qml/Main.qml:437 dashboard/qml/SettingsPage.qml:14
#, kde-format #, kde-format
msgid "Settings" msgid "Settings"
msgstr "设置" msgstr "设置"
#: dashboard/qml/Main.qml:451 #: dashboard/qml/Main.qml:443
#, kde-format #, kde-format
msgid "About" msgid "About"
msgstr "关于" msgstr "关于"
#: dashboard/qml/Main.qml:456 dashboard/qml/TroubleshootPage.qml:10 #: dashboard/qml/Main.qml:448 dashboard/qml/TroubleshootPage.qml:10
#, kde-format #, kde-format
msgid "Troubleshoot" msgid "Troubleshoot"
msgstr "疑难解答" msgstr "疑难解答"
#: dashboard/qml/Main.qml:463 #: dashboard/qml/Main.qml:455
#, kde-format #, kde-format
msgid "Version %1" msgid "Version %1"
msgstr "版本 %1" msgstr "版本 %1"
#: dashboard/qml/SelectGame.qml:12 #: dashboard/qml/SelectGame.qml:14
#, 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:18 #: dashboard/qml/SelectGame.qml:20
#, 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:70 #: dashboard/qml/SelectGame.qml:72
#, 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"
+129 -139
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-2026. # BERADQ <adqber123@outlook.com>, 2025.
# #
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-27 23:03+0800\n" "POT-Creation-Date: 2026-02-07 17:21+0800\n"
"PO-Revision-Date: 2026-02-28 21:35+0800\n" "PO-Revision-Date: 2025-12-31 18:23+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,15 +91,14 @@ msgctxt "openxr_post_processing"
msgid "Disabled" msgid "Disabled"
msgstr "停用" msgstr "停用"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254 #: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
#: client/scenes/stream_gui.cpp:1026 #: client/scenes/stream_gui.cpp:1010
msgid "Disconnect" msgid "Disconnect"
msgstr "终止连接" msgstr "终止连接"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264 #: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
#: 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:1022 #: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1006
msgid "Close" msgid "Close"
msgstr "关闭" msgstr "关闭"
@@ -120,41 +119,32 @@ 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:327 #: client/scenes/lobby_gui.cpp:295
msgid "Address" msgid "Address"
msgstr "服务器地址" msgstr "服务器地址"
#: client/scenes/lobby_gui.cpp:336 #: client/scenes/lobby_gui.cpp:304
msgid "Port" msgid "Port"
msgstr "端口" msgstr "端口"
#: client/scenes/lobby_gui.cpp:344 #: client/scenes/lobby_gui.cpp:312
msgid "TCP only" msgid "TCP only"
msgstr "仅限 TCP" msgstr "仅限 TCP"
#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655 #: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:978 #: client/scenes/stream_gui.cpp:962
msgid "Cancel" msgid "Cancel"
msgstr "取消" msgstr "取消"
#: client/scenes/lobby_gui.cpp:365 #: client/scenes/lobby_gui.cpp:333
msgid "Save" msgid "Save"
msgstr "保存" msgstr "保存"
#: client/scenes/lobby_gui.cpp:418 #: client/scenes/lobby_gui.cpp:386
msgid "" msgid ""
"Start a WiVRn server on your\n" "Start a WiVRn server on your\n"
"local network" "local network"
@@ -162,46 +152,46 @@ msgstr ""
"在您的局域网中启动\n" "在您的局域网中启动\n"
"WiVRn 服务器" "WiVRn 服务器"
#: client/scenes/lobby_gui.cpp:450 #: client/scenes/lobby_gui.cpp:418
msgid "Autoconnect" msgid "Autoconnect"
msgstr "自动连接" msgstr "自动连接"
#: client/scenes/lobby_gui.cpp:476 #: client/scenes/lobby_gui.cpp:444
msgid "Connect" msgid "Connect"
msgstr "连接" msgstr "连接"
#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186 #: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186
msgid "Incompatible server version" msgid "Incompatible server version"
msgstr "服务器版本不兼容" msgstr "服务器版本不兼容"
#: client/scenes/lobby_gui.cpp:488 #: client/scenes/lobby_gui.cpp:456
msgid "Server not available" msgid "Server not available"
msgstr "服务器不可用" msgstr "服务器不可用"
#: client/scenes/lobby_gui.cpp:581 #: client/scenes/lobby_gui.cpp:538
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:595 #: client/scenes/lobby_gui.cpp:552
msgid "Language" msgid "Language"
msgstr "语言" msgstr "语言"
#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597 #: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554
msgid "System language" msgid "System language"
msgstr "系统语言" msgstr "系统语言"
#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412 #: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:411
msgid "Refresh rate" msgid "Refresh rate"
msgstr "刷新率" msgstr "刷新率"
#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625 #: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414 #: client/scenes/stream_gui.cpp:411 client/scenes/stream_gui.cpp:413
msgctxt "automatic refresh rate" msgctxt "automatic refresh rate"
msgid "Automatic" msgid "Automatic"
msgstr "自动" msgstr "自动"
#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421 #: client/scenes/lobby_gui.cpp:589 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."
@@ -209,38 +199,38 @@ msgstr ""
"根据测量的应用程序性能选择刷新率。\n" "根据测量的应用程序性能选择刷新率。\n"
"更改时可能会造成闪烁。" "更改时可能会造成闪烁。"
#: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439 #: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:439
msgid "Minimum refresh rate" msgid "Minimum refresh rate"
msgstr "最低刷新率" msgstr "最低刷新率"
#: client/scenes/lobby_gui.cpp:675 #: client/scenes/lobby_gui.cpp:632
msgid "Foveation level" msgid "Foveation level"
msgstr "注视点渲染等级" msgstr "注视点渲染等级"
#: client/scenes/lobby_gui.cpp:698 #: client/scenes/lobby_gui.cpp:655
msgid "Render resolution" msgid "Render resolution"
msgstr "渲染分辨率" msgstr "渲染分辨率"
#: client/scenes/lobby_gui.cpp:702 #: client/scenes/lobby_gui.cpp:659
#, 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:713 #: client/scenes/lobby_gui.cpp:670
#, 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:723 #: client/scenes/lobby_gui.cpp:680
msgid "Foveated encoding" msgid "Foveated encoding"
msgstr "注视点编码" msgstr "注视点编码"
#: client/scenes/lobby_gui.cpp:727 #: client/scenes/lobby_gui.cpp:684
#, c-format, c++-format #, c-format, c++-format
msgid "{}%%" msgid "{}%%"
msgstr "{}%%" msgstr "{}%%"
#: client/scenes/lobby_gui.cpp:740 #: client/scenes/lobby_gui.cpp:697
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."
@@ -248,7 +238,7 @@ msgstr ""
"更高的数值会降低注视点之外的画面质量,\n" "更高的数值会降低注视点之外的画面质量,\n"
"从而改善延迟、提升能效并优化整体画质。" "从而改善延迟、提升能效并优化整体画质。"
#: client/scenes/lobby_gui.cpp:743 #: client/scenes/lobby_gui.cpp:700
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."
@@ -256,86 +246,86 @@ msgstr ""
"更高的数值会降低画面中心点之外的画面质量,\n" "更高的数值会降低画面中心点之外的画面质量,\n"
"从而改善延迟、提高能效并优化整体画质。" "从而改善延迟、提高能效并优化整体画质。"
#: client/scenes/lobby_gui.cpp:752 #: client/scenes/lobby_gui.cpp:709
msgctxt "Codec" msgctxt "Codec"
msgid "Automatic" msgid "Automatic"
msgstr "自动" msgstr "自动"
#: client/scenes/lobby_gui.cpp:756 #: client/scenes/lobby_gui.cpp:713
msgctxt "Codec" msgctxt "Codec"
msgid "H.264" msgid "H.264"
msgstr "H.264" msgstr "H.264"
#: client/scenes/lobby_gui.cpp:758 #: client/scenes/lobby_gui.cpp:715
msgctxt "Codec" msgctxt "Codec"
msgid "H.265" msgid "H.265"
msgstr "H.265" msgstr "H.265"
#: client/scenes/lobby_gui.cpp:760 #: client/scenes/lobby_gui.cpp:717
msgctxt "Codec" msgctxt "Codec"
msgid "AV1" msgid "AV1"
msgstr "AV1" msgstr "AV1"
#: client/scenes/lobby_gui.cpp:768 #: client/scenes/lobby_gui.cpp:725
msgid "Codec" msgid "Codec"
msgstr "编解码器" msgstr "编解码器"
#: client/scenes/lobby_gui.cpp:796 #: client/scenes/lobby_gui.cpp:753
msgid "10-bit" msgid "10-bit"
msgstr "10-bit" msgstr "10-bit"
#: client/scenes/lobby_gui.cpp:812 #: client/scenes/lobby_gui.cpp:769
msgid "Bitrate" msgid "Bitrate"
msgstr "码率" msgstr "码率"
#: client/scenes/lobby_gui.cpp:816 #: client/scenes/lobby_gui.cpp:773
#, c++-format #, c++-format
msgid "{}Mbit/s" msgid "{}Mbit/s"
msgstr "{}Mbit/s" msgstr "{}Mbit/s"
#: client/scenes/lobby_gui.cpp:827 #: client/scenes/lobby_gui.cpp:784
msgid "High power mode" msgid "High power mode"
msgstr "高耗电模式" msgstr "高耗电模式"
#: client/scenes/lobby_gui.cpp:830 #: client/scenes/lobby_gui.cpp:787
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:836 #: client/scenes/lobby_gui.cpp:793
msgid "Enable microphone" msgid "Enable microphone"
msgstr "启用麦克风" msgstr "启用麦克风"
#: client/scenes/lobby_gui.cpp:845 #: client/scenes/lobby_gui.cpp:802
msgid "Unprocessed Microphone Audio" msgid "Unprocessed Microphone Audio"
msgstr "未处理的麦克风音频" msgstr "未处理的麦克风音频"
#: client/scenes/lobby_gui.cpp:851 #: client/scenes/lobby_gui.cpp:808
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:858 #: client/scenes/lobby_gui.cpp:815
msgid "Enable hand tracking" msgid "Enable hand tracking"
msgstr "启用手部追踪" msgstr "启用手部追踪"
#: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875 #: client/scenes/lobby_gui.cpp:821 client/scenes/lobby_gui.cpp:832
#: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900 #: client/scenes/lobby_gui.cpp:842 client/scenes/lobby_gui.cpp:857
#: 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:869 #: client/scenes/lobby_gui.cpp:826
msgid "Enable eye tracking" msgid "Enable eye tracking"
msgstr "启用眼动追踪" msgstr "启用眼动追踪"
#: client/scenes/lobby_gui.cpp:880 #: client/scenes/lobby_gui.cpp:837
msgid "Enable face tracking" msgid "Enable face tracking"
msgstr "启用面部追踪" msgstr "启用面部追踪"
#: client/scenes/lobby_gui.cpp:892 #: client/scenes/lobby_gui.cpp:849
msgid "Enable body tracking" msgid "Enable body tracking"
msgstr "启用身体追踪" msgstr "启用身体追踪"
#: client/scenes/lobby_gui.cpp:905 #: client/scenes/lobby_gui.cpp:862
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 +334,11 @@ msgstr ""
"需要在 Quest 运动追踪设置中启用「手部和身体追踪」,\n" "需要在 Quest 运动追踪设置中启用「手部和身体追踪」,\n"
"否则身体数据将根据手柄和头显的位置进行猜测" "否则身体数据将根据手柄和头显的位置进行猜测"
#: client/scenes/lobby_gui.cpp:915 #: client/scenes/lobby_gui.cpp:872
msgid "Enable lower body tracking" msgid "Enable lower body tracking"
msgstr "启用下半身追踪" msgstr "启用下半身追踪"
#: client/scenes/lobby_gui.cpp:921 #: client/scenes/lobby_gui.cpp:878
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 +347,11 @@ msgstr ""
"使用 Generative Legs 猜测下半身关节位置\n" "使用 Generative Legs 猜测下半身关节位置\n"
"需要在 Quest 运动追踪设置中启用「手部和身体追踪」" "需要在 Quest 运动追踪设置中启用「手部和身体追踪」"
#: client/scenes/lobby_gui.cpp:924 #: client/scenes/lobby_gui.cpp:881
msgid "Enable hip tracking" msgid "Enable hip tracking"
msgstr "启用臀部(腰部)追踪" msgstr "启用臀部(腰部)追踪"
#: client/scenes/lobby_gui.cpp:930 #: client/scenes/lobby_gui.cpp:887
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"
@@ -369,11 +359,11 @@ msgstr ""
"仅在启用下半身追踪时生效\n" "仅在启用下半身追踪时生效\n"
"在使用其他臀部追踪时可能需要此功能" "在使用其他臀部追踪时可能需要此功能"
#: client/scenes/lobby_gui.cpp:939 #: client/scenes/lobby_gui.cpp:896
msgid "Enable in-stream window" msgid "Enable in-stream window"
msgstr "启用串流中窗口" msgstr "启用串流中窗口"
#: client/scenes/lobby_gui.cpp:942 #: client/scenes/lobby_gui.cpp:899
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."
@@ -381,23 +371,23 @@ msgstr ""
"在游戏串流期间启用配置窗口显示\n" "在游戏串流期间启用配置窗口显示\n"
"若启用此功能,同时按下两只摇杆,将会显示该窗口。" "若启用此功能,同时按下两只摇杆,将会显示该窗口。"
#: client/scenes/lobby_gui.cpp:946 #: client/scenes/lobby_gui.cpp:903
msgid "Extended configuration values" msgid "Extended configuration values"
msgstr "扩大配置值范围" msgstr "扩大配置值范围"
#: client/scenes/lobby_gui.cpp:949 #: client/scenes/lobby_gui.cpp:906
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:963 client/scenes/stream_gui.cpp:473 #: client/scenes/lobby_gui.cpp:920 client/scenes/stream_gui.cpp:473
msgid "OpenXR post-processing" msgid "OpenXR post-processing"
msgstr "OpenXR 后处理" msgstr "OpenXR 后处理"
#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477 #: client/scenes/lobby_gui.cpp:924 client/scenes/stream_gui.cpp:477
msgid "Supersampling" msgid "Supersampling"
msgstr "超采样" msgstr "超采样"
#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498 #: client/scenes/lobby_gui.cpp:944 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"
@@ -405,11 +395,11 @@ msgstr ""
"减少高对比度边缘的闪烁。\n" "减少高对比度边缘的闪烁。\n"
"当串流分辨率高于头显原生分辨率时很有用" "当串流分辨率高于头显原生分辨率时很有用"
#: client/scenes/lobby_gui.cpp:992 client/scenes/stream_gui.cpp:503 #: client/scenes/lobby_gui.cpp:949 client/scenes/stream_gui.cpp:503
msgid "Sharpening" msgid "Sharpening"
msgstr "锐化" msgstr "锐化"
#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524 #: client/scenes/lobby_gui.cpp:969 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"
@@ -417,129 +407,129 @@ msgstr ""
"改善高对比边缘的清晰度并抵消模糊。\n" "改善高对比边缘的清晰度并抵消模糊。\n"
"当串流分辨率低于头显原生分辨率时很有用" "当串流分辨率低于头显原生分辨率时很有用"
#: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204 #: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371 #: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:370
msgid "CPU time" msgid "CPU time"
msgstr "CPU 时间" msgstr "CPU 时间"
#: client/scenes/lobby_gui.cpp:1200 #: client/scenes/lobby_gui.cpp:1157
msgid "CPU time [ms]" msgid "CPU time [ms]"
msgstr "CPU 时间 [ms]" msgstr "CPU 时间 [ms]"
#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218 #: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175
#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372 #: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:371
msgid "GPU time" msgid "GPU time"
msgstr "GPU 时间" msgstr "GPU 时间"
#: client/scenes/lobby_gui.cpp:1214 #: client/scenes/lobby_gui.cpp:1171
msgid "GPU time [ms]" msgid "GPU time [ms]"
msgstr "GPU 时间 [ms]" msgstr "GPU 时间 [ms]"
#: client/scenes/lobby_gui.cpp:1278 #: client/scenes/lobby_gui.cpp:1235
msgid "Enable the microphone?" msgid "Enable the microphone?"
msgstr "是否启用麦克风?" msgstr "是否启用麦克风?"
#: client/scenes/lobby_gui.cpp:1283 #: client/scenes/lobby_gui.cpp:1240
msgid "Enable eye tracking?" msgid "Enable eye tracking?"
msgstr "是否启用眼动追踪?" msgstr "是否启用眼动追踪?"
#: client/scenes/lobby_gui.cpp:1288 #: client/scenes/lobby_gui.cpp:1245
msgid "Enable face tracking?" msgid "Enable face tracking?"
msgstr "是否启用面部追踪?" msgstr "是否启用面部追踪?"
#: client/scenes/lobby_gui.cpp:1293 #: client/scenes/lobby_gui.cpp:1250
msgid "Enable body tracking?" msgid "Enable body tracking?"
msgstr "是否启用身体追踪?" msgstr "是否启用身体追踪?"
#: client/scenes/lobby_gui.cpp:1301 #: client/scenes/lobby_gui.cpp:1258
msgid "Welcome to WiVRn" msgid "Welcome to WiVRn"
msgstr "欢迎使用 WiVRn" msgstr "欢迎使用 WiVRn"
#: client/scenes/lobby_gui.cpp:1329 #: client/scenes/lobby_gui.cpp:1286
msgid "Yes" msgid "Yes"
msgstr "是" msgstr "是"
#: client/scenes/lobby_gui.cpp:1336 #: client/scenes/lobby_gui.cpp:1293
msgid "No" msgid "No"
msgstr "否" msgstr "否"
#: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001 #: client/scenes/lobby_gui.cpp:1312 client/scenes/lobby_gui.cpp:1958
msgid "Licenses" msgid "Licenses"
msgstr "许可证" msgstr "许可证"
#: client/scenes/lobby_gui.cpp:1631 #: client/scenes/lobby_gui.cpp:1588
msgid "Microphone is enabled" msgid "Microphone is enabled"
msgstr "麦克风已启用" msgstr "麦克风已启用"
#: client/scenes/lobby_gui.cpp:1632 #: client/scenes/lobby_gui.cpp:1589
msgid "Microphone is disabled" msgid "Microphone is disabled"
msgstr "麦克风已停用" msgstr "麦克风已停用"
#: client/scenes/lobby_gui.cpp:1641 #: client/scenes/lobby_gui.cpp:1598
msgid "Hand tracking is enabled" msgid "Hand tracking is enabled"
msgstr "手部追踪已启用" msgstr "手部追踪已启用"
#: client/scenes/lobby_gui.cpp:1642 #: client/scenes/lobby_gui.cpp:1599
msgid "Hand tracking is disabled" msgid "Hand tracking is disabled"
msgstr "手部追踪已停用" msgstr "手部追踪已停用"
#: client/scenes/lobby_gui.cpp:1651 #: client/scenes/lobby_gui.cpp:1608
msgid "Eye tracking is enabled" msgid "Eye tracking is enabled"
msgstr "眼动追踪已启用" msgstr "眼动追踪已启用"
#: client/scenes/lobby_gui.cpp:1652 #: client/scenes/lobby_gui.cpp:1609
msgid "Eye tracking is disabled" msgid "Eye tracking is disabled"
msgstr "眼动追踪已停用" msgstr "眼动追踪已停用"
#: client/scenes/lobby_gui.cpp:1662 #: client/scenes/lobby_gui.cpp:1619
msgid "Face tracking is enabled" msgid "Face tracking is enabled"
msgstr "面部追踪已启用" msgstr "面部追踪已启用"
#: client/scenes/lobby_gui.cpp:1663 #: client/scenes/lobby_gui.cpp:1620
msgid "Face tracking is disabled" msgid "Face tracking is disabled"
msgstr "面部追踪已停用" msgstr "面部追踪已停用"
#: client/scenes/lobby_gui.cpp:1677 #: client/scenes/lobby_gui.cpp:1634
msgid "Body tracking is enabled" msgid "Body tracking is enabled"
msgstr "身体追踪已启用" msgstr "身体追踪已启用"
#: client/scenes/lobby_gui.cpp:1678 #: client/scenes/lobby_gui.cpp:1635
msgid "Body tracking is disabled" msgid "Body tracking is disabled"
msgstr "身体追踪已停用" msgstr "身体追踪已停用"
#: client/scenes/lobby_gui.cpp:1694 #: client/scenes/lobby_gui.cpp:1651
msgid "Add server" msgid "Add server"
msgstr "新增服务器" msgstr "新增服务器"
#: client/scenes/lobby_gui.cpp:1980 #: client/scenes/lobby_gui.cpp:1937
msgid "Server list" msgid "Server list"
msgstr "服务器列表" msgstr "服务器列表"
#: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007 #: client/scenes/lobby_gui.cpp:1940 client/scenes/stream_gui.cpp:991
msgid "Settings" msgid "Settings"
msgstr "设置" msgstr "设置"
#: client/scenes/lobby_gui.cpp:1986 #: client/scenes/lobby_gui.cpp:1943
msgid "Post-processing" msgid "Post-processing"
msgstr "后处理" msgstr "后处理"
#: client/scenes/lobby_gui.cpp:1989 #: client/scenes/lobby_gui.cpp:1946
msgid "Customize" msgid "Customize"
msgstr "自定义" msgstr "自定义"
#: client/scenes/lobby_gui.cpp:1993 #: client/scenes/lobby_gui.cpp:1950
msgid "Debug" msgid "Debug"
msgstr "Debug" msgstr "Debug"
#: client/scenes/lobby_gui.cpp:1998 #: client/scenes/lobby_gui.cpp:1955
msgid "About" msgid "About"
msgstr "关于" msgstr "关于"
#: client/scenes/lobby_gui.cpp:2004 #: client/scenes/lobby_gui.cpp:1961
msgid "Exit" msgid "Exit"
msgstr "退出" msgstr "退出"
#: client/scenes/lobby_gui.cpp:2021 #: client/scenes/lobby_gui.cpp:1978
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"
@@ -547,7 +537,7 @@ msgstr ""
"按下抓握键,或手掌向上\n" "按下抓握键,或手掌向上\n"
"以移动主窗口" "以移动主窗口"
#: client/scenes/lobby_gui.cpp:2023 #: client/scenes/lobby_gui.cpp:1980
msgid "Press the grip button to move the main window" msgid "Press the grip button to move the main window"
msgstr "按下抓握键以移动主窗口" msgstr "按下抓握键以移动主窗口"
@@ -626,73 +616,73 @@ msgstr "下载更多环境"
msgid "Open local glTF model" msgid "Open local glTF model"
msgstr "打开本地 glTF 模型" msgstr "打开本地 glTF 模型"
#: client/scenes/stream_gui.cpp:175 #: client/scenes/stream_gui.cpp:174
msgid "Defoveate" msgid "Defoveate"
msgstr "去凹形畸变" msgstr "去凹形畸变"
#: client/scenes/stream_gui.cpp:177 #: client/scenes/stream_gui.cpp:176
msgid "Network" msgid "Network"
msgstr "网络" msgstr "网络"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369 #: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:368
msgid "Download" msgid "Download"
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 "Upload" msgid "Upload"
msgstr "上传" msgstr "上传"
#: client/scenes/stream_gui.cpp:247 #: client/scenes/stream_gui.cpp:246
#, c++-format #, c++-format
msgid "Decoder {}" msgid "Decoder {}"
msgstr "解码器 {}" msgstr "解码器 {}"
#: client/scenes/stream_gui.cpp:259 #: client/scenes/stream_gui.cpp:258
msgid "Timings [ms]" msgid "Timings [ms]"
msgstr "时间信息 [ms]" msgstr "时间信息 [ms]"
#: client/scenes/stream_gui.cpp:319 #: client/scenes/stream_gui.cpp:318
msgid "Encode" msgid "Encode"
msgstr "编码" msgstr "编码"
#: client/scenes/stream_gui.cpp:320 #: client/scenes/stream_gui.cpp:319
msgid "Send" msgid "Send"
msgstr "发送" msgstr "发送"
#: client/scenes/stream_gui.cpp:321 #: client/scenes/stream_gui.cpp:320
msgid "Receive" msgid "Receive"
msgstr "接收" msgstr "接收"
#: client/scenes/stream_gui.cpp:322 #: client/scenes/stream_gui.cpp:321
msgid "Decode" msgid "Decode"
msgstr "解码" msgstr "解码"
#: client/scenes/stream_gui.cpp:323 #: client/scenes/stream_gui.cpp:322
msgid "Blitted" msgid "Blitted"
msgstr "已传输位块" msgstr "已传输位块"
#: client/scenes/stream_gui.cpp:324 #: client/scenes/stream_gui.cpp:323
msgid "Displayed" msgid "Displayed"
msgstr "已显示" msgstr "已显示"
#: client/scenes/stream_gui.cpp:325 #: client/scenes/stream_gui.cpp:324
msgid "Predicted" msgid "Predicted"
msgstr "已预测" msgstr "已预测"
#: client/scenes/stream_gui.cpp:344 #: client/scenes/stream_gui.cpp:343
#, 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:349 #: client/scenes/stream_gui.cpp:348
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:351 client/scenes/stream_gui.cpp:738 #: client/scenes/stream_gui.cpp:350 client/scenes/stream_gui.cpp:918
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:373 #: client/scenes/stream_gui.cpp:372
msgid "Motion to photon latency" msgid "Motion to photon latency"
msgstr "从动作到显示的延迟" msgstr "从动作到显示的延迟"
@@ -704,29 +694,29 @@ msgstr "码率:"
msgid "Click to adjust bitrate" msgid "Click to adjust bitrate"
msgstr "点击以调整码率" msgstr "点击以调整码率"
#: client/scenes/stream_gui.cpp:532 #: client/scenes/stream_gui.cpp:531
msgid "Foveation center override" msgid "Foveation center override"
msgstr "注视点渲染位置覆盖" msgstr "注视点渲染位置覆盖"
#: client/scenes/stream_gui.cpp:535 #: client/scenes/stream_gui.cpp:534
msgid "Enable" msgid "Enable"
msgstr "启用" msgstr "启用"
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614 #: client/scenes/stream_gui.cpp:542 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:544 client/scenes/stream_gui.cpp:615 #: client/scenes/stream_gui.cpp:543 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:545 #: client/scenes/stream_gui.cpp:544
msgid "Default" msgid "Default"
msgstr "默认" msgstr "默认"
#: client/scenes/stream_gui.cpp:556 #: client/scenes/stream_gui.cpp:555
msgid "Change" msgid "Change"
msgstr "变更" msgstr "变更"
@@ -763,23 +753,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:993 #: client/scenes/stream_gui.cpp:977
msgid "Applications" msgid "Applications"
msgstr "应用程序" msgstr "应用程序"
#: client/scenes/stream_gui.cpp:996 #: client/scenes/stream_gui.cpp:980
msgid "Start" msgid "Start"
msgstr "启动" msgstr "启动"
#: client/scenes/stream_gui.cpp:1010 #: client/scenes/stream_gui.cpp:994
msgid "Stats" msgid "Stats"
msgstr "统计" msgstr "统计"
#: client/scenes/stream_gui.cpp:1016 #: client/scenes/stream_gui.cpp:1000
msgid "Statistics overlay" msgid "Statistics overlay"
msgstr "统计数据叠加" msgstr "统计数据叠加"
#: client/scenes/stream_gui.cpp:1019 #: client/scenes/stream_gui.cpp:1003
msgid "Compact view" msgid "Compact view"
msgstr "概览" msgstr "概览"
+1 -1
View File
@@ -1 +1 @@
ef152c973b94a313e1ba9552162818b5151ac671 723652b545a79609f9f04cb89fcbf807d9d6451a
@@ -1,4 +1,4 @@
From 0fe5a8e72f2ba178e155d2ab87e79f34294248dd Mon Sep 17 00:00:00 2001 From 2884795b7d352e3e45348473a17660a568260d6e 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 1fc135ce4..25b64aca8 100644 index 94cea110e..88347a092 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 c0019c2e8822db5efa7d6baf51b9773cc7bdc537 Mon Sep 17 00:00:00 2001 From 8d22720c9574146f7115f5ba7ac39f3c4e4f48ae 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 777a31e96..9235375e6 100644 index 36bf3e31d..e40447bb2 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
@@ -49,6 +49,8 @@ @@ -48,6 +48,8 @@
#endif #endif
@@ -20,7 +20,7 @@ index 777a31e96..9235375e6 100644
/* /*
* *
* Static functions. * Static functions.
@@ -57,6 +59,12 @@ @@ -56,6 +58,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 004623b9038b3043365061e77a0e3cc430fb2dd9 Mon Sep 17 00:00:00 2001 From dc8c6b0fdd002631827528b0cd831e762cf74c31 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

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