Compare commits

...
Author SHA1 Message Date
Vindicus999 5f6dd17149 Merge remote-tracking branch 'upstream/master' 2026-02-23 02:34:49 +00:00
Gabriel ea84391ba3 Unacceptable and deplorable typo fixed 2026-02-22 15:33:33 +01:00
Vindicus999 ed5986e83b Merge remote-tracking branch 'upstream/master' 2026-02-22 02:33:59 +00:00
Sapphire 71ee653312 Update Monado 2026-02-21 17:11:22 +01:00
Sapphire 19ac929be9 Update Monado 2026-02-21 17:11:22 +01:00
Sapphire 4ff91f1e13 Update Monado 2026-02-21 17:11:22 +01:00
Sapphire e837396944 Update Monado 2026-02-21 17:11:22 +01:00
Vindicus999 eed74ee35e Merge remote-tracking branch 'upstream/master' 2026-02-21 02:22:54 +00:00
Patrick Nicolas 51ee0b46ac Be less strict for quaternions norm 2026-02-20 23:38:43 +01:00
Patrick Nicolas eddda44def Don't recreate hand trackers on each frame 2026-02-20 17:34:31 +01:00
Patrick Nicolas f8a6db5834 vk/video: fix crash on iGPU 2026-02-20 15:56:34 +01:00
Vindicus999 45538f0e8d Merge remote-tracking branch 'upstream/master' 2026-02-20 02:28:47 +00:00
Patrick Nicolas 42c64a6569 vk/video: don't copy the whole buffer 2026-02-19 13:43:08 +01:00
Patrick Nicolas b4349767ce vk/video: properly lock queues 2026-02-19 13:43:04 +01:00
Patrick Nicolas b8e9c79180 vk/video: don't query offset, it is always 0 2026-02-19 13:43:04 +01:00
Patrick Nicolas df6667fd0d vk/video: unify encoded image copy code 2026-02-19 13:42:51 +01:00
Vindicus999 16994942e6 Merge remote-tracking branch 'upstream/master' 2026-02-19 02:33:20 +00:00
Patrick Nicolas 7732dc87df Add workaround for garbled image on Intel B580 2026-02-18 14:04:45 +01:00
Patrick Nicolas 1f42c0cfb8 CI: Update clang-format action 2026-02-18 12:17:50 +01:00
BlackCherryCat 01caa4e7c5 Update es locale 2026-02-18 09:52:37 +01:00
Patrick Nicolas e97618e99e Add try/catch when reading Steam VR manifest 2026-02-18 09:26:48 +01:00
Patrick Nicolas a651f1b252 Fix config reset when selecting app 2026-02-18 09:24:03 +01:00
Vindicus999 3ac943ec32 Merge remote-tracking branch 'upstream/master' 2026-02-18 02:34:17 +00:00
mitsuami-megane 31e98fceab update ja locale 2026-02-17 09:41:26 +01:00
Vindicus999 ddf93218b6 Merge remote-tracking branch 'upstream/master' 2026-02-16 22:36:44 +00:00
Cláudio 'Patola' Sampaio 07f50572ea Translated two messages to pt_BR 2026-02-16 23:28:31 +01:00
Patrick Nicolas a94edf52e2 Don't abort if Vulkan is not available 2026-02-16 21:54:48 +01:00
Patrick Nicolas 6b9e1e108c Update FR locale 2026-02-16 21:48:09 +01:00
Patrick Nicolas 749649d868 Add check for llvmpipe in dashboard 2026-02-16 21:47:13 +01:00
Patrick Nicolas 9353646b55 Support icons in ~/.local/share/icons 2026-02-16 20:32:34 +01:00
Patrick Nicolas 219146e763 Minimal fallback hicolor icon theme definition 2026-02-16 20:32:34 +01:00
Vindicus999 7fbd57b0d8 Merge remote-tracking branch 'upstream/master' 2026-02-16 02:34:21 +00:00
Patrick Nicolas 6c202db59e Update derived poses 1s after interaction profile
Also ignore it for hand interaction
2026-02-15 00:02:17 +01:00
Patrick Nicolas df76543fb7 Don't store poses if timesync is not ready 2026-02-14 23:34:14 +01:00
Vindicus999 fe5d70729f Merge remote-tracking branch 'upstream/master' 2026-02-14 17:56:46 +00:00
Patrick Nicolas b09af79edc Don't return valid data if too far from know times 2026-02-14 09:50:28 +01:00
Vindicus999 b16774188e Merge remote-tracking branch 'upstream/master' 2026-02-14 02:25:51 +00:00
Patrick Nicolas 627e87c144 Ensure pose quaternions are normalized 2026-02-13 23:25:45 +01:00
Guillaume Meunier 66a56dac82 Work around HTC bugs 2026-02-13 17:26:53 +01:00
Guillaume Meunier 1158afdad5 Clip the imgui layers to only the useful part 2026-02-13 17:26:53 +01:00
Guillaume Meunier b5d4f67860 Put the tooltips in a different layer 2026-02-13 17:26:53 +01:00
Guillaume Meunier 067d3a7679 Store the name of custom shaders in the glTF file 2026-02-13 17:15:21 +01:00
Guillaume Meunier fc5f0b9c6c Tweak pointer appearance 2026-02-13 17:15:21 +01:00
Guillaume Meunier 17bae9459a Use custom clipping to clip controller rays 2026-02-13 17:15:21 +01:00
Guillaume Meunier b80814adb5 Fix ray brightness in stream scene 2026-02-13 17:15:21 +01:00
Guillaume Meunier bb6280a9c3 Add ray trail 2026-02-13 17:15:21 +01:00
Guillaume Meunier a1dad6962c Allow passing extra data to the vertex/fragment shader 2026-02-13 17:15:21 +01:00
Guillaume Meunier ed433905c0 Add WIVRN_DEBUG_SHADERS option 2026-02-13 17:15:21 +01:00
Patrick Nicolas 2d45d53cc7 Remove check for visualid and glxFBconfig 2026-02-13 16:31:09 +01:00
Patrick Nicolas 4cd6862c1a Remove environment variables for foveation center 2026-02-13 15:42:51 +01:00
Guillaume Meunier b34aa59876 Use inplace_vector in scene.cpp 2026-02-13 15:42:51 +01:00
Patrick Nicolas 2f54a74b05 Use inplace_vectors in stream.cpp 2026-02-13 15:42:51 +01:00
Patrick Nicolas 0b7cf25a93 Use inplace_vector for body trackers 2026-02-13 15:42:51 +01:00
Guillaume Meunier 3bbaf8b8e2 Add inplace_vector from https://github.com/bemanproject/inplace_vector, commit 72e9bab7cca228be63294823a4809723a6580716 2026-02-13 15:42:51 +01:00
Patrick Nicolas fe46fc4545 Replace some unique_ptr with optionals 2026-02-13 15:42:51 +01:00
Patrick Nicolas 5d1ba50e92 Refactor Steam libraries 2026-02-13 14:37:03 +01:00
Patrick Nicolas 74946403f0 Only read shortcuts file for current Steam user 2026-02-13 14:36:47 +01:00
Patrick Nicolas 9af70baa58 Add utility to guess Steam user ID 2026-02-13 14:36:47 +01:00
Patrick Nicolas c0a061b4be Rename wlx-overlay-s -> WayVR in metainfo 2026-02-13 09:51:35 +01:00
Vindicus999 e9af61cdb9 Merge remote-tracking branch 'upstream/master' 2026-02-13 02:38:13 +00:00
Patrick Nicolas c19056498d Switch flatpak/native recommendations, add notes 2026-02-12 12:27:28 +01:00
Patrick Nicolas 6f6ccefbf3 Move foveation config out of "if post processing" 2026-02-12 10:52:05 +01:00
Vindicus999 b4cda7975f Merge remote-tracking branch 'upstream/master' 2026-02-12 02:36:36 +00:00
Patrick Nicolas 06d771b89e Fix flickering screen after disconnect
Deleting the stream object has to be delayed until all Vulkan work is
done.
2026-02-11 23:36:17 +01:00
Patrick Nicolas 50ae773fec Don't log "error: " in mic change for no error 2026-02-11 20:40:01 +01:00
Patrick Nicolas 6cf46a6b73 Initialize view flags to 0 2026-02-11 19:38:11 +01:00
Sapphire f0e3e8d4ad Re-enable microphone on reconnect 2026-02-11 18:33:11 +01:00
Patrick Nicolas 399477edf5 Skip some memory copies in vulkan encode 2026-02-11 14:34:06 +01:00
Patrick Nicolas 0ec0de4509 Update vulkan memory allocator to 3.3.0 2026-02-11 14:34:06 +01:00
Patrick Nicolas a8657f7f91 Fix manual foveation window position 2026-02-11 12:30:56 +01:00
Sapphire 87b11d6817 Don't send empty HEAD pose on failed xrLocateSpace 2026-02-11 09:08:05 +01:00
Vindicus999 9d220d34d5 Merge remote-tracking branch 'upstream/master' 2026-02-11 02:42:18 +00:00
Guillaume Meunier 6ccf6eaf26 Fix fr locale 2026-02-10 21:14:40 +01:00
Sapphire 375d06dee2 Update Monado 2026-02-10 09:07:17 +01:00
Vindicus999 54e12d7fbf Merge remote-tracking branch 'upstream/master' 2026-02-10 02:44:33 +00:00
Patrick Nicolas 6b407a2d1c re-fix eye tracked foveation on Pico 2026-02-09 15:14:48 +01:00
Patrick Nicolas a712eec83a Update xrizer 2026-02-09 09:32:45 +01:00
Vindicus999 277434b6f3 Merge remote-tracking branch 'upstream/master' 2026-02-09 02:35:47 +00:00
Jonathan Steffan be96c4da4f fix(polynominal-interpolator): FTBFS on ppc64le 2026-02-08 19:40:03 +01:00
Jonathan Steffan 8b4b021048 fix(server-driver): add missing mutex includes 2026-02-08 18:26:09 +01:00
Patrick Nicolas a610fef6ac Fix APK not being attached to release 2026-02-08 16:36:35 +01:00
Hüseyin Fahri Uzun d81734f7e2 Updated TR translation (#771) 2026-02-08 15:03:54 +01:00
Patrick Nicolas 7166e06ada Prepare 26.2 release 2026-02-08 10:15:39 +01:00
Patrick Nicolas e1392fef3a Request gaze relative to world on Pico devices 2026-02-08 08:52:02 +01:00
BERADQ 1a3a81201b Update Simplified Chinese localization -> close #599 2026-02-08 08:49:59 +01:00
Vindicus999 71876599df Merge remote-tracking branch 'upstream/master' 2026-02-08 02:51:18 +00:00
Jonathan Steffan 5ac1e06291 fix(encoder_settings): fix FTBFS when only WIVRN_USE_VULKAN 2026-02-07 20:57:00 +01:00
Patrick Nicolas 915aed8df1 Avoid showing both hand and controller in lobby 2026-02-07 10:21:32 +01:00
BlackCherryCat 3acf9f26f2 Update es locale 2026-02-07 09:15:23 +01:00
Vindicus999 b2614fbe0f Merge remote-tracking branch 'upstream/master' 2026-02-07 02:24:32 +00:00
Patrick Nicolas 1398b9ebfd Fix raw encoding 2026-02-06 23:11:51 +01:00
Sapphire 5d87ce04fc Log result on failed calls 2026-02-06 13:56:08 -06:00
Sapphire a9b065df55 Fix assert with eye tracking in debug build 2026-02-06 13:42:00 -06:00
Vindicus999 938c133f4d Merge remote-tracking branch 'upstream/master' 2026-02-06 02:29:03 +00:00
Sapphire 994f67d5fe Update SolarXR patches 2026-02-05 16:06:40 -06:00
Sapphire e1c12b8720 Update Monado 2026-02-05 16:01:07 -06:00
Patrick Nicolas 9e8f231714 Remove virtual property form pipewire devices 2026-02-05 18:41:31 +01:00
Patrick Nicolas 3fc3dfa575 Normalize elements in PATH for launch by systemd 2026-02-05 09:44:34 +01:00
8osm3rka ab7e497735 feat(translations): update ru translation (#762) 2026-02-05 09:33:19 +01:00
Vindicus999 ee9db80b8d Merge remote-tracking branch 'upstream/master' 2026-02-05 02:28:25 +00:00
Sapphire 6d49f409ad Update Monado 2026-02-04 19:06:50 -06:00
Sapphire 2ec78da729 Use 5mbps step size for bitrate slider 2026-02-04 18:26:26 -06:00
Sapphire bb92a5e388 Fix possible client abort on startup 2026-02-04 18:26:25 -06:00
Bluscrn 2fdb21ed68 Improve README
Make the README nicer (in my opinion)
2026-02-04 23:07:44 +01:00
Sapphire e46e8f26b4 Catch exceptions when starting application via client app list 2026-02-04 14:45:30 -06:00
Sapphire a8148378d9 Skip directories we can't read when finding desktop files 2026-02-04 14:15:34 -06:00
Sapphire 48c480e303 Catch exceptions when reading desktop files 2026-02-04 14:15:34 -06:00
Guillaume Meunier edf00c5f35 Keep debug symbols in CI 2026-02-04 20:46:41 +01:00
Sapphire fe64caf273 Update Monado 2026-02-04 12:08:01 -06:00
Patrick Nicolas 363b487d74 Reset spinner when going back to launcher 2026-02-04 10:46:58 +01:00
Patrick Nicolas 3285a485e8 Send hand data even if hand is not visible 2026-02-04 10:25:32 +01:00
Patrick Nicolas dec566f3d2 Don't extrapolate when data become invalid 2026-02-04 10:25:32 +01:00
mitsuami-megane 628a19a3e1 update ja locale 2026-02-04 10:20:12 +01:00
galister e878896595 fix foveation for VIEW-relative gaze 2026-02-04 09:37:26 +01:00
Patrick Nicolas 30fddf7518 Prevent eye gaze extrapolation 2026-02-04 09:37:26 +01:00
Patrick Nicolas 67f4ced505 Store eye gaze relative to view 2026-02-04 09:37:26 +01:00
galister 02b212483c foveated encoding slider steps to 5 2026-02-04 09:05:55 +01:00
Vindicus999 efe30badda Merge remote-tracking branch 'upstream/master' 2026-02-04 02:26:39 +00:00
Patrick Nicolas 25f7a3dddb Better fix for fast-path 2026-02-03 22:11:26 +01:00
Patrick Nicolas 6bb842cc2d Fix layer used for fast-path data 2026-02-03 21:58:02 +01:00
Patrick Nicolas 5837fa3a12 Autoconnect only once 2026-02-03 20:56:58 +01:00
Sapphire bd7fd535fe Update Monado 2026-02-03 09:59:17 -06:00
Patrick Nicolas 829d7c0b7a CI: append timestamp for ccache 2026-02-03 08:02:45 +01:00
Patrick Nicolas 3a1f47285a Clear face tracking data in polling loop 2026-02-03 08:02:45 +01:00
Patrick Nicolas cda9595a27 Don't request extrapolated data for face tracking 2026-02-03 08:02:45 +01:00
Patrick Nicolas ead0150932 More coherent face tracking timestamps 2026-02-03 08:02:45 +01:00
Patrick Nicolas c0b78c1ec4 Don't drop face tracking packets 2026-02-03 08:02:45 +01:00
Vindicus999 ea127d0ad6 Merge remote-tracking branch 'upstream/master' 2026-02-03 02:32:20 +00:00
Patrick Nicolas c693993748 Revert "Remove simple_controller binding for hand interaction"
This reverts commit 1e2823c019.
2026-02-02 19:16:04 +01:00
Cláudio 'Patola' Sampaio 6961485430 2 new strings + formatting fix 2026-02-02 18:24:13 +01:00
Patrick Nicolas 0d5aa4d887 Hide USB text once connected 2026-02-02 14:05:42 +01:00
Patrick Nicolas 542b9822cf FR locale 2026-02-02 10:54:14 +01:00
Patrick Nicolas ef21074d29 Show exit confirmation if connection is active 2026-02-02 10:51:56 +01:00
Patrick Nicolas d5e4e3cfce Add a warning when closing the dashboard 2026-02-02 10:45:45 +01:00
Vindicus999 cc71c32a68 Merge remote-tracking branch 'upstream/master' 2026-02-02 02:35:11 +00:00
Sapphire 18b00fde24 Update Monado 2026-02-01 19:38:40 +01:00
Jonathan Steffan 5aa90f5d0a fix(dashboard): add missing includes
The close() function requires <unistd.h> to be included. This was
not caught on older toolchains which transitively included it through
other headers, but newer GCC/glibc requires explicit includes.
2026-02-01 17:37:51 +01:00
Patrick Nicolas e3b4dfd29a Fix Android build with vulkan validation layers 2026-02-01 15:08:11 +01:00
Vindicus999 423d0254b8 Merge remote-tracking branch 'upstream/master' 2026-02-01 02:45:28 +00:00
Patrick Nicolas 7ae5dd2921 Don't enable validation layers in debug 2026-01-31 21:11:14 +01:00
Patrick Nicolas 7e50e6a38f Fix git desc/commit logic in cmakelists 2026-01-31 13:53:28 +01:00
Vindicus999 cde153a8f2 Merge remote-tracking branch 'upstream/master' 2026-01-31 02:21:24 +00:00
Patrick Nicolas 370b7e87a8 Remove the "release" branch update in CI 2026-01-30 22:57:27 +01:00
Patrick Nicolas 6afa5fc67f Add -ffast-math 2026-01-30 21:10:08 +01:00
Patrick Nicolas bd264e23b6 Limit extrapolation based on production time 2026-01-30 16:43:54 +01:00
Patrick Nicolas 2919f7d820 Fix vulkan error on queue transfer
Queue transfer acquire was performed by each encoder, it needs to be
done only once, for the first one.
2026-01-30 16:29:53 +01:00
Patrick Nicolas f6d151c040 Fix 0 refresh rate used with Auto refresh rate 2026-01-30 15:18:06 +01:00
Patrick Nicolas 0efa540ce0 Use R16_UNORM, fixes 10bit encoding on NVIDIA 2026-01-30 15:00:21 +01:00
Vindicus999 0dbc6b31db Merge remote-tracking branch 'upstream/master' 2026-01-29 23:53:28 +00:00
Patrick Nicolas f3cfa0d747 fix (hackish) for eye-tracked foveation 2026-01-29 22:06:03 +01:00
Patrick Nicolas 2d8c5002ec Add WIVRN_DUMP_* vars for dumping tracking data 2026-01-29 09:51:59 +01:00
Patrick Nicolas 3d24faa47a Remove WIVRN_DUMP_TRACKING 2026-01-29 09:51:59 +01:00
Guillaume Meunier 2d400d9314 Add CSV logger 2026-01-29 09:51:59 +01:00
Patrick Nicolas 30f472bdb4 Fix refresh resh adjusting after quitting an app 2026-01-29 09:51:59 +01:00
Patrick Nicolas f5597a81fd Don't extrapolate hands, interpolate wrist 2026-01-29 09:51:59 +01:00
Patrick Nicolas 47d7322070 Remove bool return from update_tracking 2026-01-29 09:51:59 +01:00
Patrick Nicolas 3f58345cf0 Catch exceptions when updating mic state 2026-01-29 09:51:59 +01:00
Patrick Nicolas fc01002317 Control the tracking loop from server side
On server side, collect each tracking request, create an explicit pattern
describing how the client shall execute them.
2026-01-29 09:51:52 +01:00
Patrick Nicolas 0a71756024 Don't ask for pose in compositor when using fast-path 2026-01-28 07:26:15 +01:00
Patrick Nicolas 4e3eff6505 Split net and worker threads 2026-01-27 17:32:34 +01:00
Patrick Nicolas 25c2449a5e Use polynomial interpolation for poses and views 2026-01-27 17:32:34 +01:00
Vindicus999 59a765c877 Merge remote-tracking branch 'upstream/master' 2026-01-27 02:08:20 +00:00
Jonathan Steffan 97d6a19199 Merge pull request #743 from damaestro/add-debugging-docs
docs(debugging): add debugging documentation
2026-01-26 09:05:33 -07:00
Jonathan Steffan 254f32b262 docs(debugging): add debugging documentation 2026-01-25 18:33:31 -07:00
Patrick Nicolas c846cb1ed2 Don't force 10 bit for H.265 and AV1 2026-01-25 12:26:19 +01:00
Patrick Nicolas 20a81ed004 Add check for VAAPI 10 bit encoding 2026-01-25 12:21:50 +01:00
Vindicus999 a6b8301a73 Merge remote-tracking branch 'upstream/master' 2026-01-25 02:12:03 +00:00
Patrick Nicolas 6fcc19d198 Fix version for debian package in CI 2026-01-24 21:54:13 +01:00
Patrick Nicolas cd614c2361 Fix error for shortcuts with no icon 2026-01-24 15:20:32 +01:00
Patrick Nicolas 4831e8847d case insensitive comparison for vdf files 2026-01-24 15:16:20 +01:00
Vindicus999 94af0f5f55 Merge remote-tracking branch 'upstream/master' 2026-01-24 01:57:41 +00:00
Patrick Nicolas 2ee3306d6a Assign audio channel names for pipewire 2026-01-23 18:43:53 +01:00
Vindicus999 9cacea294c Merge remote-tracking branch 'upstream/master' 2026-01-22 02:05:16 +00:00
Patrick Nicolas 2893ab857d Remove force-quantum for mic as well 2026-01-21 18:22:32 +01:00
Patrick Nicolas 94457a566a Remove incorrect force-quantum value for pipewire 2026-01-21 13:07:00 +01:00
Patrick Nicolas 740b255461 Only read relevant info from appcache 2026-01-20 15:06:18 +01:00
Patrick Nicolas cc773294e3 Read non-Steam games using shortcuts.vdf 2026-01-20 14:05:06 +01:00
Patrick Nicolas 514c44b0a1 Log command launched through systemd units 2026-01-20 12:46:07 +01:00
Vindicus999 75da37bf6c Merge remote-tracking branch 'upstream/master' 2026-01-20 02:01:41 +00:00
Patrick Nicolas 5e4108f1c1 Don't build libnotify in flatpak 2026-01-19 23:23:18 +01:00
Patrick Nicolas 62a626e35e Avoid memory allocation in UDP receive 2026-01-19 21:41:04 +01:00
Patrick Nicolas e06d0d0943 Optimize away a memory allocation 2026-01-19 21:41:04 +01:00
Guillaume Meunier b632502da5 Fix missing starry background in nightly builds published on the Meta store 2026-01-19 21:40:34 +01:00
Patrick Nicolas 25a532bc15 Handle Path= argument in .desktop files 2026-01-19 10:40:37 +01:00
Vindicus999 7f849180f5 Merge remote-tracking branch 'upstream/master' 2026-01-19 02:06:44 +00:00
Patrick Nicolas 70adbafdc9 shared_ptr -> unique_ptr for audio handle 2026-01-18 16:23:17 +01:00
162 changed files with 26955 additions and 24505 deletions
+8 -15
View File
@@ -44,7 +44,6 @@ jobs:
key: linux-${{matrix.config.preset}}
job-summary: ""
restore-keys: linux-
append-timestamp: false
- uses: actions/cache@v4
with:
@@ -279,7 +278,6 @@ jobs:
VERSION_CODE=$(( $VERSION_CODE + 1 ))
fi
CSS=images/wivrn-release.css
APPNAME=WiVRn
else
VERSION_CODE=1
@@ -287,15 +285,20 @@ jobs:
if [ ${{ github.ref_type }} = 'tag' ]
then
SUFFIX=".github"
CSS=images/wivrn-release.css
APPNAME="WiVRn"
else
SUFFIX=".github.testing"
CSS=images/wivrn-nightly.css
APPNAME="WiVRn Testing"
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 Using stylesheet $CSS and name $APPNAME
@@ -336,12 +339,10 @@ jobs:
retention-days: 30
- name: Archive debug symbols
if: ${{ matrix.buildtype != 'Release' && matrix.buildtype != 'Oculus' }}
uses: actions/upload-artifact@v4
with:
name: symbols-${{ matrix.buildtype }}
path: debug/**/*.so
retention-days: 30
- name: Push to Oculus store
if: ${{ matrix.buildtype == 'Oculus' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master') && steps.secret-check.outputs.oculus-token == 'true' }}
@@ -468,9 +469,8 @@ jobs:
- name: Download artifacts (APK)
uses: actions/download-artifact@v4
with:
name: apk-Release
path: apk
pattern: '*-Release'
merge-multiple: true
- name: Download artifacts (flatpak)
uses: actions/download-artifact@v4
@@ -514,13 +514,6 @@ jobs:
git show
- name: Update release branch
run: |
cd wivrn
if git fetch origin release; then
git push origin HEAD:release
fi
sync_fork_downstream:
name: Sync fork downstream
runs-on: ubuntu-24.04
+1 -1
View File
@@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@2c659fea724e981e94741c0e7db663982cd7d3f4
uses: jidicula/clang-format-action@v4.16.0
with:
clang-format-version: '21'
check-path: ${{ matrix.path }}
+9 -5
View File
@@ -39,7 +39,12 @@ option(WIVRN_BUILD_WIVRNCTL "Build wivrnctl" ON)
option(WIVRN_BUILD_DISSECTOR "Build Wireshark dissector" OFF)
option(WIVRN_BUILD_TEST "Build test binaries" OFF)
option(WIVRN_WERROR "Treat warnings as errors" OFF)
option(WIVRN_OPTIMIZE_SHADERS "Run siprv-opt on compiled shaders" ON)
option(WIVRN_OPTIMIZE_SHADERS "Run spirv-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_VAAPI "Enable vaapi (AMD/Intel) hardware encoder" ON)
@@ -97,9 +102,9 @@ include(VulkanVersion)
if (WIVRN_USE_SYSTEM_BOOST AND NEED_COMMON)
if (WIVRN_BUILD_DISSECTOR)
find_package(Boost 1.84.0 REQUIRED COMPONENTS locale url)
find_package(Boost 1.84.0 REQUIRED COMPONENTS locale url iostreams)
else()
find_package(Boost 1.75.0 REQUIRED COMPONENTS locale url)
find_package(Boost 1.75.0 REQUIRED COMPONENTS locale url iostreams)
endif()
endif()
@@ -228,8 +233,6 @@ if (WIVRN_BUILD_WIVRNCTL)
endif()
# Common dependencies
FetchContent_Declare(boostpfr EXCLUDE_FROM_ALL SYSTEM URL https://github.com/boostorg/pfr/archive/refs/tags/2.2.0.tar.gz
URL_HASH SHA256=6f490ec1383de5855dcf801c23f0a967f888eb6e1440b6ca0bf36c12d4ae7ac7)
FetchContent_Declare(boost EXCLUDE_FROM_ALL SYSTEM URL https://github.com/boostorg/boost/releases/download/boost-1.89.0/boost-1.89.0-cmake.tar.xz
URL_HASH SHA256=67acec02d0d118b5de9eb441f5fb707b3a1cdd884be00ca24b9a73c995511f74)
@@ -318,6 +321,7 @@ foreach(TARGET_NAME wivrn wivrn-server wivrn-dashboard wivrn-common wivrn-dissec
if(TARGET ${TARGET_NAME})
target_compile_options(${TARGET_NAME} PRIVATE
-fdiagnostics-color -Wall -Wextra -pedantic
-ffast-math
-Wundef
-Wno-missing-field-initializers
-Wno-unused-parameter
+73 -39
View File
@@ -1,33 +1,68 @@
# WiVRn
<h1 align="center"> WiVRn </h1>
<div align="center">
[![License: GPL v3](images/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) ![CI](https://github.com/WiVRn/WiVRn/workflows/Build/badge.svg) ![Format](https://github.com/WiVRn/WiVRn/workflows/Format/badge.svg)
</div>
<p align="center"><img src="images/wivrn.svg" width="180"></p>
<h3 align="center">Fully FOSS PCVR streamer</h3>
WiVRn wirelessly connects a standalone VR headset to a Linux computer. You can then play PCVR games on the headset while processing is done on the computer.
# About
It supports a wide range of headsets such as Quest 1 / 2 / Pro / 3 / 3S, Pico Neo 3, Pico 4, HTC Vive Focus 3, HTC Vive XR elite and most other Android based headsets.
WiVRn is an application that wirelessly streams a virtual reality game to a standalone VR headset from a <b>Linux</b> computer.
WiVRn support a wide range of VR devices:
| Headset | Supported | Notes |
|:--------:|:--------:|:--------:|
| Quest 1 | ✓ | |
| Quest 2 | ✓ | |
| Quest 3 | ✓ | |
| Quest 3s | ✓ | |
| Quest Pro | ✓ | |
| Pico Neo 3 | ✓ | |
| Pico 4 | ✓ | |
| HTC Vive Focus 3 | ✓ | Laggy |
| HTC Vive XR Elite | ✓ | Laggy |
| Samsung Galaxy XR | ✓ | |
| Other Android VR | ? | Cannot know |
| Play for Dream | ✖ | https://github.com/WiVRn/WiVRn/issues/465 |
| Non-Android VR | ✖ | Not Android |
| Non-VR Android | ✖ | VR required |
<sup>A Linux client does exist, only for debugging. It has no audio or hardware decoding.</sup>
# Getting started
## Server and dashboard
## PC Server/Dashboard
We recommend using the flatpak package from Flathub:
We recommend using native packages if available for your distribution:
- [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)
Alternatively, packages are available:
- [AUR for Arch](https://aur.archlinux.org/packages/wivrn-dashboard)
- [Fedora](https://packages.fedoraproject.org/pkgs/wivrn/wivrn/)
- [Guru for Gentoo](https://gitweb.gentoo.org/repo/proj/guru.git/tree/media-libs/wivrn).
Note that due to flatpak sandboxing some features may not be available such as Lighthouse tracked devices.
## Headset Client/App
## Headset app
Follow the wizard in the PC dashboard to install the client on your VR headset.
Follow the wizard in the dashboard to install the client app on the headset: it will either lead you to the [Meta Store](https://www.meta.com/experiences/7959676140827574/) or download the correct APK.
It should either lead you to the [Meta Store](https://www.meta.com/experiences/7959676140827574/) (for Meta Quest headsets) or to download the correct APK (for other headsets).
⚠️ You will need to have a compatible version: if the headset fails to connect to your computer, see [troubleshooting](#troubleshooting).
> [!WARNING]
> The VR client and PC server need to be on the same version of WiVRn
> [!TIP]
> If the headset fails to connect to the computer, see [troubleshooting](#troubleshooting).
@@ -41,19 +76,19 @@ Avahi must be running:
systemctl enable --now avahi-daemon
```
- If a firewall is installed, open port 5353/UDP for avahi and ports 9757/UDP+TCP for WiVRn itself.
- In the case of ufw, use `ufw allow 5353/udp` and `ufw allow 9757`.
- If a firewall is installed, open port 5353/UDP for Avahi and ports 9757/UDP+TCP for WiVRn.
- For example, if using UFW run `ufw allow 5353/udp` and `ufw allow 9757`.
### Running
- On your computer, run "WiVRn server" application, or `wivrn-dashboard` from the command line, it will show the connection wizard the first time you launch it.
- On your headset, run WiVRn from the App Library. If you are using a Quest and you have installed it from an APK instead of the Meta Store, it will be in the "unknown sources" section.
- You should now see your computer in the list: click connect, the screen will show "Connection ready. Start a VR application on **your computer's name**".
- On your computer, run "WiVRn server" application, or `wivrn-dashboard` from the command line. It will show the setup wizard the first time you launch it.
- On your headset, run WiVRn from the App Library. If you are using a Meta Quest and you have installed it from an APK instead of the Meta Store, it should be in the "unknown sources" section.
- You should now see your computer in the list: click connect, the screen will show "Connection ready. Start a VR application on <i>\[your computer's name\]</i>".
You can now start an OpenXR application on your computer. For Steam games, you may also need to set the launch options to be able to use WiVRn. If nothing related to Steam is displayed in the dashboard or wivrn-server output, then your system does not require it.
You can now stream an OpenXR application from your computer to your headset. For Steam games, you may also need to set the launch options to be able to use WiVRn. The server/dashboard will tell you how to do this if required.
- Right-click on the game you want to play in VR in Steam and click "Properties".
- In the "General" tab, set the launch options to the value given in the dashboard.
- In the "General" tab, enter the launch options that the WiVRn server/dashboard gave you inside the "Launch Options" setting.
You can set an application to be started automatically when you connect your headset in the dashboard settings or [manually](docs/configuration.md#application)
You can set an application to be started automatically when your headset is connected, in the dashboard settings or [manually](docs/configuration.md#application).
### Application list
When the headset is connected and no XR application is running, it will show an application launcher. Applications in that list are sourced from:
@@ -62,14 +97,13 @@ When the headset is connected and no XR application is running, it will show an
### OpenVR and Steam games
The flatpak also includes [OpenComposite](https://gitlab.com/znixian/OpenOVR/) and [xrizer](https://github.com/Supreeeme/xrizer/), used to translate the OpenVR API used by SteamVR to OpenXR used by WiVRn, see [SteamVR](docs/steamvr.md) for details.
The flatpak includes [OpenComposite](https://gitlab.com/znixian/OpenOVR/) and [xrizer](https://github.com/Supreeeme/xrizer/), used to translate the OpenVR API to OpenXR. see [SteamVR](docs/steamvr.md) for details.
If using Wine/Proton, it will probe for OpenVR at startup, so 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 you start the server through flatpak, it will automatically configure the current OpenVR to use xrizer.
When a headset connects, wivrn-server sets the OpenVR runtime to xrizer unless manually configured differently.
### Steam Flatpak
If you're using the Steam Flatpak, you'll need to grant read only access to the following paths:
```bash
@@ -82,12 +116,12 @@ flatpak override \
com.valvesoftware.Steam
```
When using a user installation of flatpak Steam, user `override --user` instead of `override`.
When using a user installation of flatpak Steam, use `override --user` instead of `override`.
### Audio
When the headset is connected, WiVRn will create a virtual output device named WiVRn. It is not selected as default and you should either assign the application to the device when it is running, or mark it as default. To do so you can use `pavucontrol` or your desktop environment's configuration panel. Please note that in `pavucontrol` it will appear as a virtual device.
When the headset is connected, WiVRn will create a virtual output device simply named "WiVRn. You must manually set this audio output to enabled/default. Please note that in `pavucontrol` it will appear as a virtual device.
For microphone, you first have to enable it on the settings tabs on the headset (and give permission when prompted). It will then appear as a virtual input device named WiVRn(microphone) and also needs to be assigned like for output device.
To enable microphone, you first have to enable it on the settings tab on the VR headset (and give permission when prompted). It should appear as a virtual input device named "WiVRn(microphone)", and needs to be assigned as the input device (same way as output device).
# Building
@@ -101,19 +135,19 @@ Configuration can be done from the dashboard.
See [configuration](docs/configuration.md) for editing the configuration manually.
# Troubleshooting
## My computer is not seen by the headset
<details><summary>My computer is not seen by the headset</summary>
If the server list is empty in the headset app:
- Make sure your computer is connected on the same network as your headset
- Check that avahi is running with `systemctl status avahi-daemon`, if it is not, enable it with `systemctl enable --now avahi-daemon`
- If you have a firewall, check that port 5353 (UDP) is open
- If you have a firewall, check that port 5353 (UDP) is open</details>
## My headset does not connect to my computer
<details><summary>My headset does not connect to my computer</summary>
- If you have a firewall, check that port 9757 (UDP and TCP) is open
- The server and client must be compatible.
- The server and client must be the same version.</details>
## How do I use a wired connection?
<details><summary>How do I use a wired connection?</summary>
- Make sure the WiVRn Server is installed and running on your computer
- Make sure you have the WiVRn app installed on your headset
@@ -127,15 +161,15 @@ If the server list is empty in the headset app:
- `org.meumeu.wivrn.github.nighly` for Github nightlies (wirvn-apk [repository](https://github.com/WiVRn/WiVRn-APK/releases))
- `org.meumeu.wivrn.github.testing` for Github CI builds
- `org.meumeu.wivrn.local` for developer builds
- You can now continue the pairing process as documented in the running section.
- You can now continue the pairing process as documented in the running section.</details>
## How do I see server logs when using the dashboard?
<details><summary>How do I see server logs when using the dashboard?</summary>
- Click Troubleshoot > Open server logs, or
- Navigate to `${XDG_STATE_HOME}/wivrn/wivrn-dashboard` (with fallback to `${HOME}/.local/state` for `${XDG_STATE_HOME}`, or
- For flatpak, navigate to `${HOME}/.var/app/io.github.wivrn.wivrn/.local/state/wivrn/wivrn-dashboard`.
- For flatpak, navigate to `${HOME}/.var/app/io.github.wivrn.wivrn/.local/state/wivrn/wivrn-dashboard`.</details>
## I have high motion latency, black borders following my view, hear corrupted audio or see a corrupted, pixelated image
<details><summary>I have high motion latency, black borders following my view, hear corrupted audio or see a corrupted, pixelated image</summary>
- When connecting through USB, make sure the headset isn't connected through WiFi (switch off WiFi)
- Reset the settings using the button at the bottom of the settings tab
@@ -144,7 +178,7 @@ If the server list is empty in the headset app:
- Decrease the resolution in the WiVRn app
- Connect through USB or use a better WiFi router.
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.
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>
# Contributing
Binary file not shown.
BIN
View File
Binary file not shown.
+15 -2
View File
@@ -127,7 +127,6 @@ android {
'-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON',
'-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
'-DCMAKE_ANDROID_ASSETS_DIRECTORIES=' + layout.buildDirectory.dir("assets").get().asFile,
'-DCMAKE_ANDROID_LIB_DIRECTORIES=' + layout.buildDirectory.dir("libs").get().asFile,
'-DWIVRN_USE_SYSTEM_BOOST=OFF',
'-DWIVRN_USE_SYSTEM_FREETYPE=OFF',
'-DWIVRN_USE_ANDROID_BIN_LIBKTX=ON',
@@ -202,12 +201,26 @@ android {
initWith debug
externalNativeBuild {
cmake {
arguments '-DUSE_ANDROID_VALIDATION_LAYER=ON'
arguments '-DWIVRN_USE_ANDROID_VALIDATION_LAYER=ON'
}
}
}
}
buildTypes.all { variant ->
sourceSets {
"${variant.name}" {
jniLibs.srcDirs layout.buildDirectory.dir("libs${variant.name.capitalize()}")
}
}
externalNativeBuild{
cmake {
arguments '-DANDROID_LIB_DIRECTORIES=' + layout.buildDirectory.dir("libs${variant.name.capitalize()}").get().asFile
}
}
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
+3 -3
View File
@@ -194,7 +194,7 @@ khronos_validation.enables = VK_VALIDATION_FEATURE_ENABLE_THREAD_SAFETY_EXT
")
endif()
if(USE_ANDROID_VALIDATION_LAYER)
if(WIVRN_USE_ANDROID_VALIDATION_LAYER)
set(VVL_VERSION "1.4.321.0")
if(NOT EXISTS ${FETCHCONTENT_BASE_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip)
@@ -213,10 +213,10 @@ if(USE_ANDROID_VALIDATION_LAYER)
file(COPY
${FETCHCONTENT_BASE_DIR}/Vulkan-ValidationLayer/android-binaries-${VVL_VERSION}/${CMAKE_ANDROID_ARCH_ABI}
DESTINATION ${CMAKE_ANDROID_LIB_DIRECTORIES})
DESTINATION ${ANDROID_LIB_DIRECTORIES})
else()
# silence "Manually-specified variables were not used by the project" warning
set(_unused ${CMAKE_ANDROID_LIB_DIRECTORIES})
set(_unused ${ANDROID_LIB_DIRECTORIES})
endif()
+2
View File
@@ -722,11 +722,13 @@ void application::initialize_vulkan()
}
}
#ifndef NDEBUG
#ifdef __ANDROID__
if (validation_layer_found)
{
spdlog::info("Using Vulkan validation layer");
layers.push_back("VK_LAYER_KHRONOS_validation");
}
#endif
bool debug_report_found = false;
bool debug_utils_found = false;
#endif
+1 -1
View File
@@ -76,7 +76,7 @@ public:
std::string environment_model = "assets://ground.glb";
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;
bool high_power_mode;
+6 -7
View File
@@ -53,9 +53,8 @@ constexpr float fingertip_distance_stick_thd = -0.02; // Max distance wher
constexpr float scroll_value_thd = 0.01;
// Pointer radius
constexpr float pointer_radius_in = 10;
constexpr float pointer_radius_out = 12;
constexpr float pointer_thickness = 4;
constexpr float pointer_thickness = 2;
constexpr float pointer_radius_in = 6;
// Pointer transparency
constexpr float pointer_alpha = 0.8;
@@ -63,8 +62,7 @@ constexpr float pointer_alpha_disabled = 0.25;
constexpr float pointer_fading_distance = 40;
// Pointer color
constexpr uint32_t pointer_color_pressed = 0xffff3300;
constexpr uint32_t pointer_color_unpressed = 0xffffffff;
constexpr uint32_t pointer_color = 0x40ffffff;
constexpr uint32_t pointer_color_border = 0xff000000;
} // namespace constants::gui
@@ -110,7 +108,8 @@ constexpr int zindex_passthrough = -2;
constexpr int zindex_lobby = -1;
constexpr int zindex_gui = 0;
constexpr int zindex_controllers = 1;
constexpr int zindex_recenter_tip = 2;
constexpr int zindex_tooltip = 2;
constexpr int zindex_recenter_tip = 3;
} // namespace constants::lobby
namespace constants::stream
@@ -131,7 +130,7 @@ constexpr float window_rounding = 10;
constexpr ImVec2 tooltip_padding = {5, 5};
constexpr float tooltip_rounding = 0;
constexpr float tooltip_distance = 10;
constexpr glm::vec3 tooltip_distance = {0, 0.004, 0.005};
constexpr ImVec2 button_size = {220, 80};
constexpr ImVec2 icon_button_size = {80, 80};
+1 -1
View File
@@ -281,7 +281,7 @@ void raw_decoder::frame_completed(
input[0],
item->image,
item->current_layout,
stream_index ? 2 : 1,
stream_index < 2 ? 2 : 1,
regions.data());
vk::ImageMemoryBarrier barrier{
+6 -2
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})};
case xr::spaces::aim_left:
return {{-0.010, 0, 0.025}, {1, 0, 0, 0}};
return {{-0.010, 0, 0.02}, {1, 0, 0, 0}};
case xr::spaces::aim_right:
return {{0.010, 0, 0.025}, {1, 0, 0, 0}};
return {{0.010, 0, 0.02}, {1, 0, 0, 0}};
default:
break;
@@ -392,6 +392,10 @@ std::pair<glm::vec3, glm::quat> controller_offset(std::string_view profile, xr::
case xr::spaces::grip_right:
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:
break;
}
+88 -61
View File
@@ -37,6 +37,7 @@
#include <cmath>
#include <cstddef>
#include <glm/gtc/matrix_access.hpp>
#include <glm/gtc/quaternion.hpp>
#include <imgui.h>
#include <imgui_internal.h>
#include <limits>
@@ -157,7 +158,7 @@ static bool window_intersects_viewport(ImGuiWindow * window, const imgui_context
static float distance_to_window(ImGuiWindow * window, ImVec2 position)
{
if (window->Hidden or not window->Active)
return std::numeric_limits<float>::infinity();
return std::numeric_limits<float>::max();
float dx;
if (position.x < window->Pos.x)
@@ -214,7 +215,7 @@ std::vector<std::pair<ImVec2, float>> imgui_context::ray_plane_intersection(cons
for (const auto & i: layers_)
{
if (i.space != xr::spaces::world)
if (i.space != xr::spaces::world or i.tooltip_viewport)
continue;
auto M = glm::transpose(glm::mat3_cast(i.orientation)); // world-to-plane transform
@@ -564,9 +565,9 @@ std::vector<imgui_context::controller_state> imgui_context::read_controllers_sta
for (const auto & [controller, state, current_aim_interaction]: std::ranges::zip_view(controllers, new_states, aim_interaction))
{
const auto & ctrl = controller.first;
std::pair<std::optional<ImVec2>, float> index_tip_position{{}, std::numeric_limits<float>::infinity()};
std::pair<std::optional<ImVec2>, float> palm_position{{}, std::numeric_limits<float>::infinity()};
std::pair<std::optional<ImVec2>, float> controller_position{{}, std::numeric_limits<float>::infinity()};
std::pair<std::optional<ImVec2>, float> index_tip_position{{}, std::numeric_limits<float>::max()};
std::pair<std::optional<ImVec2>, float> palm_position{{}, std::numeric_limits<float>::max()};
std::pair<std::optional<ImVec2>, float> controller_position{{}, std::numeric_limits<float>::max()};
// First hands, so we can set aim_interaction
current_aim_interaction = 1;
@@ -633,10 +634,6 @@ 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});
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)
state.trigger_clicked = true;
}
@@ -676,7 +673,7 @@ std::pair<std::optional<ImVec2>, float> imgui_context::compute_pointer_position(
auto intersections = ray_plane_intersection(state);
if (intersections.empty())
return {std::nullopt, std::numeric_limits<float>::infinity()};
return {std::nullopt, std::numeric_limits<float>::max()};
if (ImGuiWindow * modal_popup = ImGui::GetTopMostAndVisiblePopupModal())
{
@@ -696,7 +693,7 @@ std::pair<std::optional<ImVec2>, float> imgui_context::compute_pointer_position(
}
}
return {std::nullopt, std::numeric_limits<float>::infinity()};
return {std::nullopt, std::numeric_limits<float>::max()};
}
else
{
@@ -907,7 +904,7 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> imgui_context::end_frame()
}
// Compute the distance to the closest window
float distance = std::numeric_limits<float>::infinity();
float distance = std::numeric_limits<float>::max();
for (ImGuiWindow * window: context->Windows)
{
distance = std::min(distance, distance_to_window(window, *position));
@@ -915,20 +912,18 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> imgui_context::end_frame()
float alpha = std::clamp<float>(1 - distance / constants::gui::pointer_fading_distance, 0, 1);
if (&controller == &controllers[focused_controller])
if (focused_controller != (size_t)-1 and &controller == &controllers[focused_controller])
alpha *= constants::gui::pointer_alpha;
else
alpha *= constants::gui::pointer_alpha_disabled;
ImU32 color_pressed = ImGui::GetColorU32(constants::gui::pointer_color_pressed, alpha);
ImU32 color_unpressed = ImGui::GetColorU32(constants::gui::pointer_color_unpressed, alpha);
bool pressed = controller.second.trigger_clicked || controller.second.fingertip_touching;
float radius_in = constants::gui::pointer_radius_in;
float radius_out = radius_in + constants::gui::pointer_thickness * 0.5;
ImDrawList * draw_list = ImGui::GetForegroundDrawList();
draw_list->PushClipRect(clip_rect_min, clip_rect_max);
draw_list->AddCircleFilled(*position, constants::gui::pointer_radius_in, pressed ? color_pressed : color_unpressed);
draw_list->AddCircle(*position, constants::gui::pointer_radius_out, ImGui::GetColorU32(constants::gui::pointer_color_border, alpha), 0, constants::gui::pointer_thickness);
draw_list->AddCircleFilled(*position, radius_in, ImGui::GetColorU32(constants::gui::pointer_color, alpha));
draw_list->AddCircle(*position, radius_out, ImGui::GetColorU32(constants::gui::pointer_color_border, alpha), 0, constants::gui::pointer_thickness);
draw_list->PopClipRect();
}
}
@@ -983,15 +978,47 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> imgui_context::end_frame()
for (auto & i: layers_)
{
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)
{
if (window->Active and not window->Hidden and window_intersects_viewport(window, i))
ImRect window_rect{
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;
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)
continue;
@@ -1006,12 +1033,12 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> imgui_context::end_frame()
.swapchain = swapchain,
.imageRect = {
.offset = {
.x = i.vp_origin.x,
.y = i.vp_origin.y,
.x = int(all_windows_rect.Min.x),
.y = int(all_windows_rect.Min.y),
},
.extent = {
.width = i.vp_size.x,
.height = i.vp_size.y,
.width = int(all_windows_rect.Max.x - all_windows_rect.Min.x),
.height = int(all_windows_rect.Max.y - all_windows_rect.Min.y),
}},
},
.pose = {
@@ -1022,14 +1049,14 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> imgui_context::end_frame()
.w = i.orientation.w,
},
.position = {
.x = i.position.x,
.y = i.position.y,
.z = i.position.z,
.x = new_position.x,
.y = new_position.y,
.z = new_position.z,
},
},
.size = {
.width = i.size.x,
.height = i.size.y,
.width = new_size.x,
.height = new_size.y,
},
});
}
@@ -1037,11 +1064,9 @@ std::vector<std::pair<int, XrCompositionLayerQuad>> imgui_context::end_frame()
return quads;
}
std::vector<imgui_context::viewport> imgui_context::windows()
std::vector<imgui_context::window_viewport> imgui_context::windows()
{
std::vector<imgui_context::viewport> w;
ImGuiWindow * modal_popup = ImGui::GetTopMostAndVisiblePopupModal();
std::vector<imgui_context::window_viewport> w;
for (const imgui_context::viewport & layer: layers_)
{
@@ -1052,10 +1077,7 @@ std::vector<imgui_context::viewport> imgui_context::windows()
for (ImGuiWindow * window: context->Windows)
{
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)
if (not window->Active or window->Hidden or (window->Flags & ImGuiWindowFlags_ChildWindow))
continue;
if (not window_intersects_viewport(window, layer))
@@ -1066,7 +1088,7 @@ std::vector<imgui_context::viewport> imgui_context::windows()
ImVec2 min = ImMax(v.Min, window->Pos);
ImVec2 center = (min + max) / 2;
w.push_back(viewport{
w.push_back(window_viewport{
.space = layer.space,
.position = layer.position +
glm::mat3_cast(layer.orientation) *
@@ -1079,9 +1101,6 @@ std::vector<imgui_context::viewport> imgui_context::windows()
(max.x - min.x) * layer.size.x / layer.vp_size.x,
(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,
});
}
}
@@ -1241,34 +1260,32 @@ void imgui_context::tooltip(std::string_view text)
// FIXME: this is incorrect if we use the docking branch of imgui
ImGuiViewport * viewport = ImGui::GetMainViewport();
auto & current_layer = layer(ImGui::GetMousePos());
auto pos_backup = viewport->Pos;
auto size_backup = viewport->Size;
viewport->Pos = ImVec2(current_layer.vp_origin.x, current_layer.vp_origin.y);
viewport->Size = ImVec2(current_layer.vp_size.x, current_layer.vp_size.y);
ImVec2 pos{
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 - constants::style::tooltip_distance,
ImGui::GetItemRectMin().y,
};
auto pos_backup = viewport->Pos;
auto size_backup = viewport->Size;
viewport->Pos = ImVec2(tooltip_layer.vp_origin.x, tooltip_layer.vp_origin.y);
viewport->Size = ImVec2(tooltip_layer.vp_size.x, tooltip_layer.vp_size.y);
// 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_WindowRounding, constants::style::tooltip_rounding);
// Clamp position to avoid overflowing on the left or the right
auto & style = ImGui::GetStyle();
const ImVec2 text_size = ImGui::CalcTextSize(text.data(), text.data() + text.size(), true);
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};
const ImVec2 tooltip_size = {text_size.x + style.WindowPadding.x * 2.0f, text_size.y + style.WindowPadding.y * 2.0f};
// Move tooltip below the item if it overflows on the top
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);
ImGui::SetNextWindowPos(viewport->Pos + viewport->Size * 0.5, ImGuiCond_Always, {0.5, 0.5});
ImGui::SetNextWindowSizeConstraints({0, 0}, viewport->Size);
if (ImGui::BeginTooltip())
{
ImGui::PushStyleColor(ImGuiCol_Text, 0xffffffff);
@@ -1276,11 +1293,21 @@ void imgui_context::tooltip(std::string_view text)
ImGui::PopStyleColor();
ImGui::EndTooltip();
}
ImGui::PopStyleVar(2);
viewport->Pos = pos_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
+11 -1
View File
@@ -136,6 +136,7 @@ public:
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 tooltip_viewport = false; // Choose this viewport to display the tooltip, ignore mouse events
int z_index = 0;
@@ -145,6 +146,15 @@ public:
}
};
struct window_viewport
{
// Position of this window in the world
xr::spaces space;
glm::vec3 position;
glm::quat orientation;
glm::vec2 size;
};
private:
uint32_t queue_family_index;
@@ -215,7 +225,7 @@ public:
return layers_;
}
std::vector<viewport> windows();
std::vector<window_viewport> windows();
viewport & layer(ImVec2 position);
+18 -4
View File
@@ -19,6 +19,7 @@
#pragma once
#include <array>
#include <inplace_vector.hpp>
#include <memory>
#include <type_traits>
#include <utility>
@@ -100,7 +101,7 @@ struct material
size_t offset;
std::string name;
std::string fragment_shader_name = "lit.frag";
std::string fragment_shader = "lit.frag";
};
struct primitive
@@ -110,7 +111,7 @@ struct primitive
uint32_t vertex_count;
vk::IndexType index_type;
vk::DeviceSize index_offset;
std::vector<vk::DeviceSize> vertex_offset; // TODO: inplace_vector
beman::inplace_vector::inplace_vector<vk::DeviceSize, 8> vertex_offset; // See VkPhysicalDeviceLimits::maxVertexInputBindings
vertex_layout layout;
glm::vec3 obb_min;
@@ -155,11 +156,24 @@ struct node
bool visible = true;
uint32_t layer_mask = -1;
std::array<glm::vec4, 4> clipping_planes;
// TODO: separate component?
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
glm::mat4 transform_to_root;
bool global_visible;
+40 -12
View File
@@ -45,6 +45,9 @@
#include <limits>
#include <ranges>
#include <simdjson/dom.h>
#include <simdjson/dom/element.h>
#include <simdjson/dom/object.h>
#include <simdjson/error.h>
#include <spdlog/spdlog.h>
#include <string>
#include <vulkan/vulkan_format_traits.hpp>
@@ -513,7 +516,7 @@ struct : std::error_category
} fastgltf_error_category;
// END
fastgltf::Asset load_gltf_asset(fastgltf::GltfDataBuffer & buffer, const std::filesystem::path & directory)
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::Parser parser(
fastgltf::Extensions::KHR_texture_basisu |
@@ -524,6 +527,12 @@ fastgltf::Asset load_gltf_asset(fastgltf::GltfDataBuffer & buffer, const std::fi
fastgltf::Options::AllowDouble |
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);
if (auto error = expected_asset.error(); error != fastgltf::Error::None)
@@ -540,7 +549,8 @@ class loader_context
vk::raii::PhysicalDevice physical_device;
vk::raii::Device & device;
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;
utils::mapped_file & load_from_asset(const std::filesystem::path & path)
@@ -563,14 +573,16 @@ public:
vk::raii::PhysicalDevice physical_device,
vk::raii::Device & device,
thread_safe<vk::raii::Queue> & queue,
image_loader & loader) :
uint32_t queue_family_index,
std::map<std::tuple<fastgltf::Category, size_t, std::string>, std::string> & extras) :
base_directory(std::move(base_directory)),
name(std::move(name)),
gltf(gltf),
physical_device(physical_device),
device(device),
queue(queue),
loader(loader)
loader(device, physical_device, queue, queue_family_index),
extras(extras)
{
}
@@ -793,6 +805,8 @@ public:
materials.reserve(gltf.materials.size());
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
auto & material = *materials.emplace_back(std::make_shared<renderer::material>(default_material));
material.name = gltf_material.name;
@@ -803,21 +817,24 @@ public:
switch (gltf_material.alphaMode)
{
case fastgltf::AlphaMode::Opaque:
material.fragment_shader_name = "lit.frag";
material.fragment_shader = "lit.frag";
material.blend_enable = false;
break;
case fastgltf::AlphaMode::Mask:
material.fragment_shader_name = "lit_mask.frag";
material.fragment_shader = "lit_mask.frag";
material.blend_enable = false;
break;
case fastgltf::AlphaMode::Blend:
material.fragment_shader_name = "lit.frag";
material.fragment_shader = "lit.frag";
material.blend_enable = true;
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;
material_data.base_color_factor = convert(gltf_material.pbrData.baseColorFactor);
@@ -870,6 +887,7 @@ public:
meshes.reserve(gltf.meshes.size());
for (const fastgltf::Mesh & gltf_mesh: gltf.meshes)
{
size_t mesh_id = meshes.size();
std::shared_ptr<renderer::mesh> & mesh_ref = meshes.emplace_back();
mesh_ref = std::make_shared<renderer::mesh>();
@@ -892,7 +910,9 @@ public:
renderer::vertex_layout & layout = primitive_ref.layout;
if (gltf_primitive.findAttribute("JOINTS_0") == gltf_primitive.attributes.cend())
if (auto it = extras.find({fastgltf::Category::Meshes, mesh_id, "vertex_shader"}); it != extras.end())
primitive_ref.vertex_shader = it->second;
else if (gltf_primitive.findAttribute("JOINTS_0") == gltf_primitive.attributes.cend())
primitive_ref.vertex_shader = "lit.vert";
else
primitive_ref.vertex_shader = "lit_skinned.vert";
@@ -1007,7 +1027,6 @@ public:
node.orientation = glm::make_quat(TRS.rotation.data());
node.scale = glm::make_vec3(TRS.scale.data());
node.visible = true;
std::ranges::fill(node.clipping_planes, glm::vec4{0, 0, 0, 1});
}
return entities;
@@ -1148,10 +1167,19 @@ std::shared_ptr<entt::registry> scene_loader::operator()(
if (auto error = data_buffer.error(); error != fastgltf::Error::None)
throw std::system_error((int)error, fastgltf_error_category);
fastgltf::Asset asset = load_gltf_asset(data_buffer.get(), parent_path);
std::map<std::tuple<fastgltf::Category, size_t, std::string>, std::string> gltf_extras;
image_loader loader{device, physical_device, queue, queue_family_index};
loader_context ctx{parent_path, name, asset, physical_device, device, queue, loader};
fastgltf::Asset asset = load_gltf_asset(data_buffer.get(), parent_path, [&](simdjson::dom::object & extras, std::size_t object_index, fastgltf::Category category) {
std::string_view value;
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
if (auto error = fastgltf::validate(asset); error != fastgltf::Error::None)
+12 -7
View File
@@ -29,6 +29,7 @@
#include "vk/pipeline.h"
#include "vk/shader.h"
#include "vk/specialization_constants.h"
#include <algorithm>
#include <boost/pfr/core.hpp>
#include <entt/entity/entity.hpp>
#include <entt/entt.hpp>
@@ -675,8 +676,8 @@ vk::raii::Pipeline scene_renderer::create_pipeline(const pipeline_info & info)
{
spdlog::debug("Creating pipeline");
auto vertex_shader = shader_loader{device}(info.vertex_shader_name);
auto fragment_shader = shader_loader{device}(info.fragment_shader_name);
auto vertex_shader = load_shader(device, info.vertex_shader_name);
auto fragment_shader = load_shader(device, info.fragment_shader_name);
auto specialization = make_specialization_constants(
int32_t(info.nb_texcoords),
@@ -732,7 +733,7 @@ vk::raii::Pipeline scene_renderer::create_pipeline(const pipeline_info & info)
.ColorBlendState = {vk::PipelineColorBlendStateCreateInfo{}},
.ColorBlendAttachments = {vk::PipelineColorBlendAttachmentState{
.blendEnable = info.blend_enable,
.srcColorBlendFactor = vk::BlendFactor::eSrcAlpha,
.srcColorBlendFactor = vk::BlendFactor::eOne,
.dstColorBlendFactor = vk::BlendFactor::eOneMinusSrcAlpha,
.colorBlendOp = vk::BlendOp::eAdd,
.srcAlphaBlendFactor = vk::BlendFactor::eOne,
@@ -1106,8 +1107,12 @@ void scene_renderer::render(
// 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_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);
resources.uniform_buffer_offset += utils::align_up(buffer_alignment, sizeof(instance_gpu_data));
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) + node.extra_shader_data.size());
vk::DeviceSize joints_ubo_offset = 0;
if (!node.joints.empty())
@@ -1130,7 +1135,7 @@ void scene_renderer::render(
object_ubo.modelview[frame_index] = frame.view * transform;
object_ubo.modelviewproj[frame_index] = viewproj[frame_index] * transform;
}
object_ubo.clipping_planes = node.clipping_planes;
std::ranges::copy(node.extra_shader_data, extra_shader_data.begin());
// Get the material
std::shared_ptr<renderer::material> material = primitive.material_ ? primitive.material_ : default_material;
@@ -1139,7 +1144,7 @@ void scene_renderer::render(
pipeline_info info{
.renderpass = rp_info,
.vertex_shader_name = primitive.vertex_shader,
.fragment_shader_name = material->fragment_shader_name,
.fragment_shader_name = material->fragment_shader,
.vertex_layout = primitive.layout,
.cull_mode = primitive.cull_mode,
.front_face = primitive.front_face,
@@ -1187,7 +1192,7 @@ void scene_renderer::render(
vk::DescriptorBufferInfo buffer_info_2{
.buffer = resources.uniform_buffer,
.offset = instance_ubo_offset,
.range = sizeof(instance_gpu_data),
.range = instance_ubo_size,
};
vk::DescriptorBufferInfo buffer_info_3{
.buffer = resources.uniform_buffer,
-1
View File
@@ -199,7 +199,6 @@ class scene_renderer
glm::mat4 model;
std::array<glm::mat4, 2> modelview;
std::array<glm::mat4, 2> modelviewproj;
std::array<glm::vec4, 4> clipping_planes;
};
struct debug_draw_vertex
+12 -17
View File
@@ -158,16 +158,10 @@ void scene::render_world(
const std::optional<xr::foveation_profile> & foveation,
bool render_debug_draws)
{
std::vector<scene_renderer::frame_info> frames;
frames.reserve(views.size());
// TODO inplace vector
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());
assert(views.size() <= layer::max_views);
beman::inplace_vector::inplace_vector<scene_renderer::frame_info, layer::max_views> frames;
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, foveation_image] = [&]() -> std::tuple<XrSwapchain, vk::Image, vk::Image> {
xr::swapchain & color_swapchain = get_swapchain(swapchain_format, width, height, 1, views.size(), foveation);
@@ -228,9 +222,10 @@ void scene::render_world(
},
.minDepth = 0,
.maxDepth = 1,
.nearZ = std::numeric_limits<float>::infinity(),
.nearZ = std::bit_cast<float>(0x7f800000), // infinity
.farZ = constants::lobby::near_plane,
});
static_assert(std::numeric_limits<float>::is_iec559);
}
}
@@ -252,8 +247,8 @@ void scene::render_world(
add_projection_layer(
XR_COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT,
space,
std::move(composition_layer_color),
std::move(composition_layer_depth));
composition_layer_color,
composition_layer_depth);
}
xr::swapchain & scene::get_swapchain(vk::Format format, int32_t width, int32_t height, int sample_count, uint32_t array_size, const std::optional<xr::foveation_profile> & foveation)
@@ -376,8 +371,8 @@ void scene::render_start(bool passthrough, XrTime predicted_display_time_)
void scene::add_projection_layer(
XrCompositionLayerFlags flags,
XrSpace space,
std::vector<XrCompositionLayerProjectionView> && color_views,
std::vector<XrCompositionLayerDepthInfoKHR> && depth_views)
std::span<XrCompositionLayerProjectionView> color_views,
std::span<XrCompositionLayerDepthInfoKHR> depth_views)
{
layers.push_back(layer{
.composition_layer = XrCompositionLayerProjection{
@@ -388,8 +383,8 @@ void scene::add_projection_layer(
.viewCount = (uint32_t)color_views.size(),
.views = nullptr,
},
.color_views = std::move(color_views),
.depth_views = std::move(depth_views),
.color_views{color_views.begin(), color_views.end()},
.depth_views{depth_views.begin(), depth_views.end()},
});
}
+7 -5
View File
@@ -29,6 +29,7 @@
#include "xr/session.h"
#include "xr/swapchain.h"
#include "xr/system.h"
#include <inplace_vector.hpp>
#include <cstdint>
#include <entt/entity/registry.hpp>
@@ -132,11 +133,12 @@ protected:
struct layer
{
static const int max_views = 2;
std::variant<XrCompositionLayerProjection, XrCompositionLayerQuad, XrCompositionLayerBaseHeader *> composition_layer;
// TODO in place vectors
std::vector<XrCompositionLayerProjectionView> color_views; // Used by XrCompositionLayerProjection
std::vector<XrCompositionLayerDepthInfoKHR> depth_views; // Used by XrCompositionLayerProjection
beman::inplace_vector::inplace_vector<XrCompositionLayerProjectionView, max_views> color_views; // Used by XrCompositionLayerProjection
beman::inplace_vector::inplace_vector<XrCompositionLayerDepthInfoKHR, max_views> depth_views; // Used by XrCompositionLayerProjection
std::optional<XrCompositionLayerColorScaleBiasKHR> color_scale_bias;
std::optional<XrCompositionLayerDepthTestFB> depth_test;
@@ -172,8 +174,8 @@ protected:
void add_projection_layer(
XrCompositionLayerFlags flags,
XrSpace space,
std::vector<XrCompositionLayerProjectionView> && color_views,
std::vector<XrCompositionLayerDepthInfoKHR> && depth_views = {});
std::span<XrCompositionLayerProjectionView> color_views,
std::span<XrCompositionLayerDepthInfoKHR> depth_views = {});
void add_quad_layer(
XrCompositionLayerFlags flags,
+1 -2
View File
@@ -116,8 +116,7 @@ app_launcher::clicked app_launcher::draw_gui(imgui_context & imgui_ctx, const st
auto res = clicked::None;
auto t0 = std::chrono::steady_clock::now();
bool app_starting = start_time != std::chrono::steady_clock::time_point{} and
t0 - start_time < 10s and
stream.current_state() != scenes::stream::state::streaming;
t0 - start_time < 10s;
auto cancel_size = ImGui::CalcTextSize(cancel.c_str());
+5
View File
@@ -60,6 +60,11 @@ public:
// cancel: text to display on the quit/disconnect/cancel button
clicked draw_gui(imgui_context &, const std::string & cancel);
void reset()
{
start_time = {};
}
void operator()(wivrn::to_headset::application_list && apps);
void operator()(wivrn::to_headset::application_icon && icon);
};
+86 -54
View File
@@ -23,6 +23,8 @@
#include "render/scene_components.h"
#include "utils/mapped_file.h"
#include "xr/space.h"
#include <array>
#include <entt/entity/fwd.hpp>
#include <entt/entt.hpp>
#include <glm/gtc/matrix_access.hpp>
#include <glm/gtc/quaternion.hpp>
@@ -33,6 +35,7 @@
#include <string>
#include <unordered_map>
#include <variant>
#include <openxr/openxr.h>
namespace components
{
@@ -62,17 +65,27 @@ struct visual_response
details::node_state state;
};
} // namespace components
namespace
{
// Component added to nodes bound to an action space
struct bound_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
const std::unordered_map<std::string, std::string> input_mappings = {
{"xr-standard-squeeze" , "/input/squeeze/value" },
@@ -171,9 +184,21 @@ struct json_visual_response
// OpenXR component path
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
input_profile::input_profile(scene & scene, const std::filesystem::path & json_profile, uint32_t layer_mask_controller, uint32_t layer_mask_ray)
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)
{
utils::mapped_file json{json_profile};
@@ -266,7 +291,7 @@ input_profile::input_profile(scene & scene, const std::filesystem::path & json_p
auto [e, node] = scene.add_gltf(model, layer_mask_controller);
node.name = layout;
entity = e;
scene.world.emplace<bound_space>(e, space);
scene.world.emplace<components::bound_space>(e, space, 0);
spdlog::debug("Created entity {}", layout);
}
@@ -281,16 +306,32 @@ input_profile::input_profile(scene & scene, const std::filesystem::path & json_p
else
continue;
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);
auto && [ray_entity, ray_node] = scene.add_gltf(controller_ray_model_name(), layer_mask_ray);
scene.world.emplace<bound_space>(entity, space);
ray_node.name = (std::string)layout.key + "_ray";
spdlog::debug("Created entity {}", ray_node.name);
if (layout.key == "left")
left_ray = entity;
else if (layout.key == "right")
right_ray = entity;
scene.world.emplace<components::bound_space>(find_node_by_name(scene.world, "Ray", ray_entity), space, 0);
scene.world.emplace<components::clipped_by_gui>(find_node_by_name(scene.world, "Ray", ray_entity));
scene.world.emplace<components::emissive_trigger>(find_node_by_name(scene.world, "Ray", ray_entity), layout.key == "left" ? left_trigger : right_trigger);
setup_ray_shader(scene.world, find_node_by_name(scene.world, "Ray", 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)
@@ -362,41 +403,6 @@ static void apply_visual_response(components::node & node, components::details::
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(
entt::registry & scene,
XrSpace world_space,
@@ -405,9 +411,9 @@ void input_profile::apply(
bool hide_left_ray,
bool hide_right_controller,
bool hide_right_ray,
std::span<glm::vec4> pointer_limits)
std::span<glm::mat4> world_to_window)
{
for (auto && [entity, node, space]: scene.view<components::node, bound_space>().each())
for (auto && [entity, node, space]: scene.view<components::node, components::bound_space>().each())
{
if ((space.space == xr::spaces::grip_left and hide_left_controller) or
(space.space == xr::spaces::aim_left and hide_left_ray) or
@@ -416,7 +422,7 @@ void input_profile::apply(
{
node.visible = false;
}
else if (auto location = application::locate_controller(application::space(space.space), world_space, predicted_display_time); location)
else if (auto location = application::locate_controller(application::space(space.space), world_space, predicted_display_time + space.Δt); location)
{
node.visible = true;
@@ -495,6 +501,32 @@ void input_profile::apply(
}
}
set_clipping_planes(scene, left_ray, pointer_limits);
set_clipping_planes(scene, right_ray, pointer_limits);
for (auto && [entity, node, response]: scene.view<components::node, components::emissive_trigger>().each())
{
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;
input_profile(scene & scene, const std::filesystem::path & json_profile, uint32_t layer_mask_controller, uint32_t layer_mask_ray);
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);
// application::poll_actions() must have been called before
void apply(
@@ -48,5 +48,5 @@ struct input_profile
bool hide_left_ray,
bool hide_right_controller,
bool hide_right_ray,
std::span<glm::vec4> pointer_limits);
std::span<glm::mat4> world_to_window);
};
+25 -35
View File
@@ -626,28 +626,7 @@ std::optional<glm::vec3> scenes::lobby::check_recenter_gui(glm::vec3 head_positi
return std::nullopt;
}
// 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)
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)
{
// 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)
@@ -667,7 +646,7 @@ static void stick_finger_to_gui(std::array<xr::hand_tracker::joint, XR_HAND_JOIN
// 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
for (const imgui_context::viewport & layer: layers)
for (const imgui_context::window_viewport & layer: layers)
{
// Ignore layers that are not absolutely positionned
if (layer.space != xr::spaces::world)
@@ -906,10 +885,7 @@ void scenes::lobby::render(const XrFrameState & frame_state)
if (!next_scene->alive())
next_scene.reset();
else if (next_scene->current_state() == scenes::stream::state::streaming)
{
autoconnect_enabled = true;
application::push_scene(next_scene);
}
}
update_server_list();
@@ -976,14 +952,14 @@ void scenes::lobby::render(const XrFrameState & frame_state)
auto windows = imgui_ctx->windows();
auto left = left_hand->locate(world_space, frame_state.predictedDisplayTime);
if (left and xr::hand_tracker::check_flags(*left, XR_SPACE_LOCATION_POSITION_TRACKED_BIT | XR_SPACE_LOCATION_POSITION_VALID_BIT, 0))
if (left)
{
stick_finger_to_gui(*left, windows);
hide_left_controller = true;
}
auto right = right_hand->locate(world_space, frame_state.predictedDisplayTime);
if (right and xr::hand_tracker::check_flags(*right, XR_SPACE_LOCATION_POSITION_TRACKED_BIT | XR_SPACE_LOCATION_POSITION_VALID_BIT, 0))
if (right)
{
stick_finger_to_gui(*right, windows);
hide_right_controller = true;
@@ -1057,11 +1033,11 @@ void scenes::lobby::render(const XrFrameState & frame_state)
#endif
// Get the planes that limit the ray size from the composition layers
std::vector<glm::vec4> ray_limits;
for (auto & [z_index, layer]: imgui_layers)
std::vector<glm::mat4> world_to_window;
for (auto & window: imgui_ctx->windows())
{
if (z_index != constants::lobby::zindex_recenter_tip)
ray_limits.push_back(compute_ray_limits(layer.pose));
if (window.space == xr::spaces::world)
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))));
}
input->apply(world,
@@ -1071,7 +1047,7 @@ void scenes::lobby::render(const XrFrameState & frame_state)
not imgui_ctx->is_aim_interaction()[0],
hide_right_controller,
not imgui_ctx->is_aim_interaction()[1],
ray_limits);
world_to_window);
renderer::animate(world, frame_state.predictedDisplayPeriod * 1.0e-9);
@@ -1171,7 +1147,9 @@ void scenes::lobby::on_focused()
*this,
"assets://controllers/" + profile + "/profile.json",
layer_controllers,
layer_rays);
layer_rays,
get_action("left_trigger").first,
get_action("right_trigger").first);
spdlog::info("Loaded input profile {}", input->id);
@@ -1267,7 +1245,17 @@ void scenes::lobby::on_focused()
.vp_origin = {0, 1000},
.vp_size = {1500, 300},
.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);
@@ -1385,6 +1373,8 @@ void scenes::lobby::on_xr_event(const xr::event & event)
case XR_TYPE_EVENT_DATA_SESSION_STATE_CHANGED:
if (event.state_changed.state == XR_SESSION_STATE_STOPPING)
discover.reset();
else if (event.state_changed.state == XR_SESSION_STATE_FOCUSED)
autoconnect_enabled = true;
recenter_gui = true;
break;
case XR_TYPE_EVENT_DATA_REFERENCE_SPACE_CHANGE_PENDING:
+8 -7
View File
@@ -257,7 +257,7 @@ void scenes::lobby::gui_connected(XrTime predicted_display_time)
if (next_scene->apps.draw_gui(*imgui_ctx, _("Disconnect")) == app_launcher::Cancel)
{
next_scene.reset();
next_scene->exit();
current_tab = tab::server_list;
}
}
@@ -673,7 +673,7 @@ void scenes::lobby::gui_settings()
// foveation
{
const int step = 10;
const int step = 5;
const auto current = config.get_stream_scale();
int intval = round((1 - current) * 100 / step);
const auto slider = ImGui::SliderInt(
@@ -761,18 +761,19 @@ void scenes::lobby::gui_settings()
// Bitrate
{
const int step = 5;
const int mb = 1'000'000;
const auto current = config.bitrate_bps;
auto val = int(current / mb);
auto val = int(current / mb / step);
const auto slider = ImGui::SliderInt(
_("Bitrate").append("##bitrate").c_str(),
&val,
1,
config.max_bitrate() / mb,
fmt::format(_F("{}Mbit/s"), val).c_str());
config.max_bitrate() / mb / step,
fmt::format(_F("{}Mbit/s"), val * step).c_str());
if (slider)
{
config.bitrate_bps = val * mb;
config.bitrate_bps = val * mb * step;
config.save();
}
imgui_ctx->vibrate_on_hover();
@@ -1033,7 +1034,7 @@ void scenes::lobby::gui_debug_node_hierarchy(entt::entity root)
primitive.vertex_count,
primitive.material_->name,
primitive.vertex_shader,
primitive.material_->fragment_shader_name);
primitive.material_->fragment_shader);
imgui_ctx->tooltip(tooltip);
}
+34 -22
View File
@@ -34,6 +34,7 @@
#include "boost/pfr/core.hpp"
#include "decoder/shard_accumulator.h"
#include "hardware.h"
#include "inplace_vector.hpp"
#include "spdlog/spdlog.h"
#include "utils/contains.h"
#include "utils/named_thread.h"
@@ -51,6 +52,7 @@
#endif
using namespace wivrn;
using namespace beman::inplace_vector;
// clang-format off
static const std::unordered_map<std::string, device_id> device_ids = {
@@ -428,7 +430,9 @@ void scenes::stream::on_focused()
*this,
"assets://controllers/" + profile + "/profile.json",
layer_controllers,
layer_rays);
layer_rays,
get_action("left_trigger").first,
get_action("right_trigger").first);
spdlog::info("Loaded input profile {}", input->id);
@@ -472,14 +476,23 @@ void scenes::stream::on_focused()
device,
swapchain_format,
1800,
1000);
1200);
imgui_context::viewport vp{
.space = xr::spaces::world,
// Position and orientation are set at each frame
.size = {1.2, 0.6666},
.vp_origin = {0, 0},
.vp_size = {1800, 1000},
std::vector<imgui_context::viewport> vps{
{
.space = xr::spaces::world,
// Position and orientation are set at each frame
.size = {1.2, 0.6666},
.vp_origin = {0, 0},
.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,
@@ -488,7 +501,7 @@ void scenes::stream::on_focused()
queue,
imgui_inputs,
std::move(swapchain_imgui),
std::vector{vp},
std::move(vps),
image_cache);
if (application::get_config().enable_stream_gui)
@@ -526,6 +539,7 @@ void scenes::stream::on_unfocused()
clear_swapchains();
left_hand.reset();
right_hand.reset();
apps.reset();
imgui_ctx.reset();
}
@@ -587,8 +601,7 @@ std::array<std::shared_ptr<shard_accumulator::blit_handle>, 3> scenes::stream::c
if (decoders.empty())
return {};
std::unique_lock lock(frames_mutex);
thread_local std::vector<shard_accumulator::blit_handle *> common_frames;
common_frames.clear();
inplace_vector<shard_accumulator::blit_handle *, decoder_count> common_frames;
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)
{
@@ -601,7 +614,7 @@ std::array<std::shared_ptr<shard_accumulator::blit_handle>, 3> scenes::stream::c
else
{
// clang-format off
std::erase_if(common_frames,
erase_if(common_frames,
[this, i](auto & left)
{
return std::ranges::none_of(
@@ -614,7 +627,7 @@ std::array<std::shared_ptr<shard_accumulator::blit_handle>, 3> scenes::stream::c
// clang-format on
}
}
std::array<std::shared_ptr<shard_accumulator::blit_handle>, view_count + 1> result;
std::array<std::shared_ptr<shard_accumulator::blit_handle>, decoder_count> result;
if (not common_frames.empty())
{
auto min = std::ranges::min_element(common_frames,
@@ -768,7 +781,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
last_display_time = frame_state.predictedDisplayTime;
std::shared_lock lock(decoder_mutex);
if (not frame_state.shouldRender or (decoders[0].empty() and decoders[1].empty()))
if (not frame_state.shouldRender or (decoders[0].empty() and decoders[1].empty()) or exiting)
{
// TODO: stop/restart video stream
session.begin_frame();
@@ -957,9 +970,9 @@ void scenes::stream::render(const XrFrameState & frame_state)
vk::SubmitInfo submit_info;
submit_info.setCommandBuffers(*command_buffer);
std::vector<vk::Semaphore> semaphores;
std::vector<uint64_t> semaphore_vals;
std::vector<vk::PipelineStageFlags> wait_stages;
inplace_vector<vk::Semaphore, decoder_count> semaphores;
inplace_vector<uint64_t, decoder_count> semaphore_vals;
inplace_vector<vk::PipelineStageFlags, decoder_count> wait_stages;
for (auto b: current_blit_handles)
{
if (b and b->semaphore)
@@ -984,8 +997,6 @@ void scenes::stream::render(const XrFrameState & frame_state)
#endif
swapchain.release();
std::vector<XrCompositionLayerProjectionView> layer_view(view_count);
if (use_alpha)
session.enable_passthrough(system);
else
@@ -994,6 +1005,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
render_start(use_alpha, frame_state.predictedDisplayTime);
// Add the layer with the streamed content
std::array<XrCompositionLayerProjectionView, view_count> layer_view;
for (uint32_t view = 0; view < view_count; view++)
{
layer_view[view] =
@@ -1015,7 +1027,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
add_projection_layer(
XR_COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT,
application::space(xr::spaces::world),
std::move(layer_view));
layer_view);
if (composition_layer_color_scale_bias_supported)
{
@@ -1068,8 +1080,8 @@ void scenes::stream::render(const XrFrameState & frame_state)
// 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
std::vector<from_headset::feedback> feedbacks;
std::vector<serialization_packet> packets;
inplace_vector<from_headset::feedback, decoder_count> feedbacks;
inplace_vector<serialization_packet, decoder_count> packets;
feedbacks.reserve(current_blit_handles.size());
packets.reserve(current_blit_handles.size());
+9 -5
View File
@@ -53,6 +53,7 @@ public:
private:
static const size_t view_count = 2;
static const size_t decoder_count = view_count + 1;
struct accumulator_images
{
@@ -68,7 +69,7 @@ private:
// for frames inside accumulator images
std::mutex frames_mutex;
std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, view_count + 1> common_frame(XrTime display_time);
std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, decoder_count> common_frame(XrTime display_time);
std::unique_ptr<wivrn_session> network_session;
std::atomic<bool> exiting = false;
@@ -76,6 +77,7 @@ private:
thread_safe<to_headset::tracking_control> tracking_control{};
std::array<std::atomic<interaction_profile>, 2> interaction_profiles; // left and right hand
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> hid_forwarding = false;
std::atomic<XrDuration> display_time_phase = 0;
@@ -86,7 +88,7 @@ private:
std::shared_mutex decoder_mutex;
std::optional<to_headset::video_stream_description> video_stream_description;
std::array<accumulator_images, view_count + 1> decoders; // Locked by decoder_mutex
std::array<accumulator_images, decoder_count> decoders; // Locked by decoder_mutex
std::optional<stream_defoveator> defoveator;
@@ -162,7 +164,7 @@ private:
void update_gui_position(xr::spaces controller);
// Keep a reference to the resources needed to blit the images until vkWaitForFences
std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, view_count + 1> current_blit_handles;
std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, decoder_count> current_blit_handles;
XrTime running_application_req = 0;
thread_safe<to_headset::running_applications> running_applications;
@@ -200,6 +202,7 @@ public:
void operator()(to_headset::haptics &&);
void operator()(to_headset::timesync_query &&);
void operator()(to_headset::tracking_control &&);
void operator()(to_headset::feature_control &&);
void operator()(to_headset::audio_stream_description &&);
void operator()(to_headset::video_stream_description &&);
void operator()(to_headset::refresh_rate_change &&);
@@ -217,6 +220,7 @@ public:
return state_;
}
void exit();
bool alive() const
{
return !exiting;
@@ -232,10 +236,10 @@ private:
void read_actions();
void on_interaction_profile_changed(const XrEventDataInteractionProfileChanged &);
void send_derived_pose();
void setup(const to_headset::video_stream_description &);
void setup_reprojection_swapchain(uint32_t width, uint32_t height);
void exit();
vk::raii::QueryPool query_pool = nullptr;
bool query_pool_filled = false;
@@ -301,7 +305,7 @@ private:
float compact_cpu_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>, view_count + 1> & blit_handles, const gpu_timestamps & timestamps);
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 gui_performance_metrics();
void gui_compact_view();
void gui_settings(float predicted_display_period);
+68 -87
View File
@@ -32,6 +32,8 @@
#include <IconsFontAwesome6.h>
#include <chrono>
#include <cmath>
#include <glm/ext.hpp>
#include <glm/ext/matrix_transform.hpp>
#include <glm/gtc/matrix_access.hpp>
#include <limits>
#include <ranges>
@@ -338,13 +340,10 @@ void scenes::stream::gui_performance_metrics()
ImPlot::PopStyleColor(5);
{
ImGui::Text(
"%s",
ImGui::TextUnformatted(
fmt::format(
_F("Estimated motion to photons latency: {}ms"),
std::chrono::duration_cast<std::chrono::milliseconds>(
tracking_control.lock()->max_offset)
.count())
tracking_control.lock()->motions_to_photons / 1'000'000)
.c_str());
if (is_gui_interactable())
@@ -373,10 +372,7 @@ void scenes::stream::gui_compact_view()
f(_S("CPU time"), compact_cpu_time * 1000, "ms");
f(_S("GPU time"), compact_gpu_time * 1000, "ms");
f(_S("Motion to photon latency"),
std::chrono::duration_cast<std::chrono::microseconds>(
tracking_control.lock()->max_offset)
.count() *
1e-3f,
tracking_control.lock()->motions_to_photons / 1'000'000.f,
"ms");
ImGui::EndTable();
}
@@ -531,58 +527,58 @@ void scenes::stream::gui_settings(float predicted_display_period)
}
}
ImGui::Unindent();
}
bool send_packet = false;
bool save_config = false;
ImGui::Text("%s", _S("Foveation center override"));
ImGui::Indent();
bool send_packet = false;
bool save_config = false;
ImGui::Text("%s", _S("Foveation center override"));
ImGui::Indent();
{
if (ImGui::Checkbox(_S("Enable"), &override_foveation_enable))
{
if (ImGui::Checkbox(_S("Enable"), &override_foveation_enable))
{
send_packet = true;
save_config = true;
}
imgui_ctx->vibrate_on_hover();
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("Distance {:.2f} m"), override_foveation_distance).c_str());
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();
send_packet = true;
save_config = true;
}
ImGui::Unindent();
imgui_ctx->vibrate_on_hover();
if (send_packet)
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("Distance {:.2f} m"), override_foveation_distance).c_str());
if (ImGui::Button(_S("Default")))
{
network_session->send_control(from_headset::override_foveation_center{
.enabled = override_foveation_enable,
.pitch = override_foveation_pitch,
.distance = override_foveation_distance,
});
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();
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::SameLine();
if (ImGui::Button(_S("Change")))
gui_status = gui_status::foveation_settings;
imgui_ctx->vibrate_on_hover();
ImGui::EndDisabled();
}
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();
}
@@ -735,27 +731,6 @@ void scenes::stream::gui_applications()
ImGui::PopStyleVar(3);
}
// 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);
}
void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicted_display_period)
{
if (not(plots_toggle_1 and plots_toggle_2))
@@ -784,8 +759,10 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
{
if (system.hand_tracking_supported())
{
left_hand = session.create_hand_tracker(XR_HAND_LEFT_EXT);
right_hand = session.create_hand_tracker(XR_HAND_RIGHT_EXT);
if (not left_hand)
left_hand = session.create_hand_tracker(XR_HAND_LEFT_EXT);
if (not right_hand)
right_hand = session.create_hand_tracker(XR_HAND_RIGHT_EXT);
}
}
else
@@ -833,7 +810,7 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
case gui_status::bitrate_settings:
case gui_status::foveation_settings:
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;
case gui_status::hidden:
@@ -860,7 +837,8 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
const ImGuiStyle & style = ImGui::GetStyle();
imgui_ctx->new_frame(predicted_display_time);
ImVec2 content_size{ImGui::GetMainViewport()->Size - ImVec2{tab_width, 0} - margin_around_window * 2};
ImVec2 viewport_size(imgui_ctx->layers()[0].vp_size.x, imgui_ctx->layers()[0].vp_size.y);
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};
bool display_tabs, always_auto_resize;
@@ -876,7 +854,7 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
case gui_status::hidden:
case gui_status::bitrate_settings:
case gui_status::foveation_settings:
ImGui::SetNextWindowPos(ImGui::GetMainViewport()->Size / 2, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
ImGui::SetNextWindowPos(viewport_size / 2, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
always_auto_resize = true;
display_tabs = false;
break;
@@ -891,13 +869,13 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
case gui_status::settings:
case gui_status::applications:
ImGui::SetNextWindowPos(margin_around_window);
ImGui::SetNextWindowSize(ImGui::GetMainViewport()->Size - margin_around_window * 2);
ImGui::SetNextWindowSize(viewport_size - margin_around_window * 2);
always_auto_resize = false;
display_tabs = true;
break;
case gui_status::application_launcher:
ImGui::SetNextWindowPos(margin_around_window);
ImGui::SetNextWindowSize(ImGui::GetMainViewport()->Size - margin_around_window * 2);
ImGui::SetNextWindowSize(viewport_size - margin_around_window * 2);
always_auto_resize = false;
display_tabs = false;
break;
@@ -985,6 +963,7 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
if (RadioButtonWithoutCheckBox(ICON_FA_ROCKET " " + _("Start"), gui_status, gui_status::application_launcher, {tab_width, 0}))
{
apps.reset();
network_session->send_control(from_headset::get_application_list{
.language = application::get_messages_info().language,
.country = application::get_messages_info().country,
@@ -1058,10 +1037,12 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
else
recentering_context.reset();
std::vector<glm::vec4> ray_limits;
for (auto [_, layer]: layers)
ray_limits.push_back(compute_ray_limits(layer.pose));
std::vector<glm::mat4> world_to_window;
for (auto & window: imgui_ctx->windows())
{
if (window.space == xr::spaces::world)
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_right_controller = false;
@@ -1085,7 +1066,7 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
hide_left_controller,
hide_right_controller,
hide_right_controller,
ray_limits);
world_to_window);
// Add the layer with the controllers
if (composition_layer_depth_test_supported)
+13
View File
@@ -59,6 +59,19 @@ void scenes::stream::operator()(to_headset::video_stream_data_shard && shard)
decoders[idx].decoder->push_shard(std::move(shard));
}
void scenes::stream::operator()(to_headset::feature_control && control)
{
switch (control.f)
{
case wivrn::to_headset::feature_control::hid_input:
hid_forwarding = control.state;
return;
case wivrn::to_headset::feature_control::microphone:
if (audio_handle)
audio_handle->set_mic_state(control.state);
return;
}
}
void scenes::stream::operator()(to_headset::audio_stream_description && desc)
{
audio_handle.emplace(desc, *network_session, instance);
+255 -278
View File
@@ -26,6 +26,7 @@
#include "xr/fb_body_tracker.h"
#include "xr/to_string.h"
#include <magic_enum.hpp>
#include <magic_enum_containers.hpp>
#include <ranges>
#include <spdlog/spdlog.h>
#include <thread>
@@ -34,11 +35,6 @@
#include "android/battery.h"
#endif
using tid = to_headset::tracking_control::id;
static const XrDuration min_tracking_period = 2'000'000;
static const XrDuration max_tracking_period = 5'000'000;
static uint8_t cast_flags(XrSpaceLocationFlags location, XrSpaceVelocityFlags velocity)
{
uint8_t flags = 0;
@@ -65,19 +61,6 @@ static uint8_t cast_flags(XrSpaceLocationFlags location, XrSpaceVelocityFlags ve
namespace
{
class timer
{
xr::instance & instance;
XrTime start = instance.now();
public:
timer(xr::instance & instance) :
instance(instance) {}
XrDuration count()
{
return instance.now() - start;
}
};
from_headset::tracking::pose locate_space(device_id device, XrSpace space, XrSpace reference, XrTime time)
{
@@ -101,7 +84,7 @@ from_headset::tracking::pose locate_space(device_id device, XrSpace space, XrSpa
.flags = cast_flags(location.locationFlags, velocity.velocityFlags),
};
spdlog::warn("xrLocateSpace failed for {}: {}", magic_enum::enum_name(device), xr::to_string(res));
return {};
return {.device = device};
}
class locate_spaces_functor
@@ -148,6 +131,8 @@ public:
std::vector<from_headset::tracking::pose> & out)
{
assert(devices.size() == spaces.size());
if (devices.empty())
return;
if (locate_spaces)
{
locations.resize(spaces.size());
@@ -293,7 +278,9 @@ void scenes::stream::tracking()
const XrDuration battery_check_interval = 30'000'000'000; // 30s
#endif
std::vector<std::pair<device_id, XrSpace>> spaces;
magic_enum::containers::array<device_id, XrSpace> spaces{};
const auto & config = application::get_config();
{
std::vector ids{
@@ -311,80 +298,27 @@ void scenes::stream::tracking()
ids.insert(ids.end(), {device_id::LEFT_PINCH_POSE, device_id::LEFT_POKE, device_id::RIGHT_PINCH_POSE, device_id::RIGHT_POKE});
}
if (config.check_feature(feature::eye_gaze))
ids.emplace_back(device_id::EYE_GAZE);
for (auto id: ids)
{
if (XrSpace space = application::space(device_to_space(id)))
spaces.emplace_back(id, space);
spaces[id] = space;
else
spdlog::warn("Missing space for device {}", magic_enum::enum_name(id));
}
}
auto enabled = [&](const to_headset::tracking_control & control, device_id id) -> bool {
if (is_gui_interactable())
{
switch (id)
{
case device_id::HEAD:
case device_id::EYE_GAZE:
return true;
default:
return false;
}
}
switch (id)
{
case device_id::HEAD:
case device_id::EYE_GAZE:
return true;
case device_id::LEFT_AIM:
return control.enabled[size_t(tid::left_aim)];
case device_id::LEFT_GRIP:
return control.enabled[size_t(tid::left_grip)];
case device_id::LEFT_PALM:
return control.enabled[size_t(tid::left_palm)];
case device_id::LEFT_PINCH_POSE:
return control.enabled[size_t(tid::left_pinch)];
case device_id::LEFT_POKE:
return control.enabled[size_t(tid::left_poke)];
case device_id::RIGHT_AIM:
return control.enabled[size_t(tid::right_aim)];
case device_id::RIGHT_GRIP:
return control.enabled[size_t(tid::right_grip)];
case device_id::RIGHT_PALM:
return control.enabled[size_t(tid::right_palm)];
case device_id::RIGHT_PINCH_POSE:
return control.enabled[size_t(tid::right_pinch)];
case device_id::RIGHT_POKE:
return control.enabled[size_t(tid::right_poke)];
default:
break;
}
throw std::runtime_error("enabled called on unhandled device " + std::string(magic_enum::enum_name(id)));
};
const auto & config = application::get_config();
if (config.check_feature(feature::eye_gaze))
spaces.push_back({device_id::EYE_GAZE, application::space(xr::spaces::eye_gaze)});
XrSpace view_space = application::space(xr::spaces::view);
XrSpace world_space = application::space(xr::spaces::world);
XrDuration tracking_period = min_tracking_period; // target period for 20% busy time
XrDuration current_tracking_period = tracking_period; // divider of frame period
int period_adjust = 0;
XrTime t0 = instance.now();
XrTime last_hand_sample = t0;
XrTime last_body_sample = t0;
std::vector<from_headset::tracking> tracking;
std::vector<from_headset::tracking> tracking_pool; // pre-allocated objects
from_headset::tracking tracking;
std::vector<from_headset::hand_tracking> hands;
std::vector<from_headset::body_tracking> body;
std::vector<XrView> views;
std::vector<from_headset::trackings> merged_tracking;
std::vector<serialization_packet> packets;
const bool hand_tracking = config.check_feature(feature::hand_tracking);
@@ -401,173 +335,255 @@ void scenes::stream::tracking()
on_interaction_profile_changed({});
decltype(to_headset::tracking_control::pattern) pattern;
size_t pattern_position = 0;
XrDuration frame_duration;
XrTime pattern_begin = instance.now();
while (not exiting)
{
try
{
tracking.clear();
if (pattern_position == pattern.size())
{
// Upper limit to 200FPS
frame_duration = std::max<XrDuration>(5'000'000, display_time_period);
// Wait for next frame
XrTime now = instance.now();
pattern_begin = display_time_phase + (std::max(pattern_begin + frame_duration, now) / frame_duration) * frame_duration;
std::this_thread::sleep_for(std::chrono::nanoseconds(pattern_begin - now));
pattern_position = 0;
// Check if a new pattern has been received
if (auto locked = tracking_control.lock(); pattern.empty() or not locked->pattern.empty())
{
pattern.clear();
std::swap(pattern, locked->pattern);
pattern_position = 0;
// Ensure head tracking is always done
if (not std::ranges::contains(pattern, device_id::HEAD, &to_headset::tracking_control::sample::device))
pattern.push_back({.device = device_id::HEAD});
if (hand_tracking)
{
if (std::ranges::contains(pattern, device_id::LEFT_HAND, &to_headset::tracking_control::sample::device))
{
if (not left_hand)
left_hand = session.create_hand_tracker(XR_HAND_LEFT_EXT);
}
else
left_hand.reset();
if (std::ranges::contains(pattern, device_id::RIGHT_HAND, &to_headset::tracking_control::sample::device))
{
if (not right_hand)
right_hand = session.create_hand_tracker(XR_HAND_RIGHT_EXT);
}
else
right_hand.reset();
}
if (face_tracking)
{
if (std::ranges::contains(pattern, device_id::FACE, &to_headset::tracking_control::sample::device))
{
if (std::holds_alternative<std::monostate>(face_tracker))
face_tracker = xr::make_face_tracker(instance, system, session);
}
else
face_tracker.emplace<std::monostate>();
}
if (body_tracking)
{
if (std::ranges::contains(pattern, device_id::BODY, &to_headset::tracking_control::sample::device))
{
if (std::holds_alternative<std::monostate>(body_tracker))
body_tracker = xr::make_body_tracker(
instance,
system,
session,
application::get_generic_trackers(),
config.fb_lower_body,
config.fb_hip);
}
else
body_tracker.emplace<std::monostate>();
}
std::ranges::sort(pattern, std::less{}, [frame_duration](const auto & i) { return -i.prediction_ns % frame_duration; });
spdlog::info("Tracking pattern ({}µs):", frame_duration / 1'000);
for (const auto & [device, pred]: pattern)
{
spdlog::info("\tt+{}µs {} ({}µs)",
(frame_duration - (pred % frame_duration)) / 1'000,
magic_enum::enum_name(device),
pred / 1'000);
}
}
}
hands.clear();
body.clear();
XrTime now = instance.now();
if (now < t0)
XrTime t0 = pattern_begin + frame_duration - (pattern[pattern_position].prediction_ns % frame_duration);
if (t0 > now + 500)
std::this_thread::sleep_for(std::chrono::nanoseconds(t0 - now));
// If thread can't keep up, skip timestamps
t0 = std::max(t0, now);
timer t(instance);
int samples = 0;
auto control = *tracking_control.lock();
bool interaction_profile_changed = this->interaction_profile_changed.exchange(false);
if (control.enabled[size_t(tid::left_hand)])
{
if (not left_hand and system.hand_tracking_supported())
left_hand = session.create_hand_tracker(XR_HAND_LEFT_EXT);
}
else
left_hand.reset();
if (control.enabled[size_t(tid::right_hand)])
{
if (not right_hand and system.hand_tracking_supported())
right_hand = session.create_hand_tracker(XR_HAND_RIGHT_EXT);
}
else
right_hand.reset();
if (face_tracking and control.enabled[size_t(tid::face)])
{
if (std::holds_alternative<std::monostate>(face_tracker))
face_tracker = xr::make_face_tracker(instance, system, session);
}
else
face_tracker.emplace<std::monostate>();
if (body_tracking and control.enabled[size_t(tid::generic_tracker)])
{
if (std::holds_alternative<std::monostate>(body_tracker))
body_tracker = xr::make_body_tracker(
instance,
system,
session,
application::get_generic_trackers(),
config.fb_lower_body,
config.fb_hip);
}
else
body_tracker.emplace<std::monostate>();
if (interaction_profile_changed)
if (auto htc = std::get_if<xr::htc_body_tracker>(&body_tracker))
htc->update_active();
XrDuration prediction = std::clamp<XrDuration>(control.max_offset.count(), 0, 80'000'000);
auto period = std::max<XrDuration>(display_time_period.load(), 1'000'000);
for (XrDuration Δt = display_time_phase - t0 % period + (control.min_offset.count() / period) * period;
Δt <= prediction + period / 2;
Δt += period, ++samples)
tracking.interaction_profiles = {
interaction_profiles[0].load(),
interaction_profiles[1].load(),
};
tracking.production_timestamp = t0;
tracking.timestamp = t0 + pattern[pattern_position].prediction_ns;
tracking.view_flags = {};
tracking.state_flags = {};
tracking.views = {};
tracking.device_poses.clear();
tracking.face = {};
if (recenter_requested.exchange(false))
tracking.state_flags = wivrn::from_headset::tracking::recentered;
try
{
auto & packet = from_pool(tracking, tracking_pool);
packet.production_timestamp = t0;
packet.timestamp = t0 + Δt;
try
for (; pattern_position < pattern.size(); ++pattern_position)
{
packet.view_flags = session.locate_views(XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO, t0 + Δt, view_space, views);
assert(views.size() == packet.views.size());
const auto & item = pattern[pattern_position];
auto at_time = t0 + item.prediction_ns;
for (auto [i, j]: std::views::zip(views, packet.views))
// Don't merge items that are too far from the current one
if (std::abs(tracking.timestamp - at_time) > 1'000'000)
break;
switch (item.device)
{
j.pose = i.pose;
j.fov = i.fov;
}
packet.state_flags = 0;
if (recenter_requested.exchange(false))
packet.state_flags = wivrn::from_headset::tracking::recentered;
// Hand tracking data are very large, send fewer samples than other items
if (hand_tracking and t0 >= last_hand_sample + period and
(Δt == 0 or Δt >= prediction - 2 * period))
{
last_hand_sample = t0;
if (left_hand)
{
auto joints = locate_hands(*left_hand, world_space, t0 + Δt);
hands.emplace_back(
t0,
t0 + Δt,
from_headset::hand_tracking::left,
joints);
}
if (right_hand)
{
auto joints = locate_hands(*right_hand, world_space, t0 + Δt);
hands.emplace_back(
t0,
t0 + Δt,
from_headset::hand_tracking::right,
joints);
}
}
packet.device_poses.clear();
for (auto [device, space]: spaces)
{
if (enabled(control, device))
locate_spaces.add_space(device, space, t0 + Δt, packet.device_poses);
}
locate_spaces.resolve(session, t0 + Δt, packet.device_poses);
std::visit(utils::overloaded{
[](std::monostate &) {},
[&](auto & b) {
if (t0 >= last_body_sample + period and
(Δt == 0 or Δt >= prediction - 2 * period))
{
last_body_sample = t0;
if (control.enabled[size_t(tid::generic_tracker)])
{
case device_id::HEAD:
tracking.view_flags = session.locate_views(XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO, tracking.timestamp, view_space, views);
assert(views.size() == tracking.views.size());
for (auto [i, j]: std::views::zip(views, tracking.views))
{
j.pose = i.pose;
j.fov = i.fov;
}
locate_spaces.add_space(item.device, view_space, tracking.timestamp, tracking.device_poses);
break;
case wivrn::device_id::LEFT_GRIP:
case wivrn::device_id::LEFT_AIM:
case wivrn::device_id::LEFT_PALM:
case wivrn::device_id::RIGHT_GRIP:
case wivrn::device_id::RIGHT_AIM:
case wivrn::device_id::RIGHT_PALM:
case wivrn::device_id::LEFT_PINCH_POSE:
case wivrn::device_id::LEFT_POKE:
case wivrn::device_id::RIGHT_PINCH_POSE:
case wivrn::device_id::RIGHT_POKE:
locate_spaces.add_space(item.device, spaces[item.device], tracking.timestamp, tracking.device_poses);
break;
case wivrn::device_id::EYE_GAZE:
// Eye gaze uses view pose as the origin
switch (guess_model())
{
case model::pico_4_pro:
case model::pico_4_enterprise: {
// Pico headsets fail to locate gaze relative to view
auto gaze = locate_space(item.device, spaces[item.device], world_space, tracking.timestamp);
auto view_pose = locate_space(item.device, view_space, world_space, tracking.timestamp);
glm::quat gaze_quat(gaze.pose.orientation.w, gaze.pose.orientation.x, gaze.pose.orientation.y, gaze.pose.orientation.z);
glm::quat view_quat(view_pose.pose.orientation.w, view_pose.pose.orientation.x, view_pose.pose.orientation.y, view_pose.pose.orientation.z);
gaze_quat = glm::conjugate(view_quat) * gaze_quat;
using flags = from_headset::tracking::flags;
tracking.device_poses.push_back(
from_headset::tracking::pose{
// Zero position and velocities
.pose = {
.orientation = {
.x = gaze_quat.x,
.y = gaze_quat.y,
.z = gaze_quat.z,
.w = gaze_quat.w,
},
},
.device = item.device,
.flags = uint8_t(gaze.flags & view_pose.flags & ~(flags::linear_velocity_valid | flags::angular_velocity_valid)),
});
}
break;
default:
tracking.device_poses.push_back(locate_space(item.device, spaces[item.device], spaces[wivrn::device_id::HEAD], tracking.timestamp));
break;
}
break;
case wivrn::device_id::FACE:
std::visit(utils::overloaded{
[](std::monostate &) {},
[&](auto & ft) {
ft.get_weights(at_time, tracking.face.emplace<typename std::remove_reference_t<decltype(ft)>::packet_type>());
},
},
face_tracker);
break;
case wivrn::device_id::LEFT_HAND:
if (left_hand)
{
hands.emplace_back(
t0,
at_time,
from_headset::hand_tracking::left,
locate_hands(*left_hand, world_space, tracking.timestamp));
}
break;
case wivrn::device_id::RIGHT_HAND:
if (right_hand)
{
hands.emplace_back(
t0,
at_time,
from_headset::hand_tracking::right,
locate_hands(*right_hand, world_space, tracking.timestamp));
}
break;
case wivrn::device_id::BODY:
std::visit(utils::overloaded{
[](std::monostate &) {},
[&](auto & b) {
body.push_back(from_headset::body_tracking{
.production_timestamp = t0,
.timestamp = t0 + Δt,
.poses = b.locate_spaces(t0 + Δt, world_space),
.production_timestamp = tracking.production_timestamp,
.timestamp = at_time,
.poses = b.locate_spaces(at_time, world_space),
});
}
}
},
},
body_tracker);
std::visit(utils::overloaded{
[](std::monostate &) {},
[&](auto & ft) {
ft.get_weights(t0 + Δt, packet.face.emplace<typename std::remove_reference_t<decltype(ft)>::packet_type>());
},
},
face_tracker);
},
},
body_tracker);
break;
default:
break;
}
}
catch (const std::system_error & e)
{
if (e.code().category() != xr::error_category() or
e.code().value() != XR_ERROR_TIME_INVALID)
throw;
}
} // end prediction loop
XrDuration busy_time = t.count();
// Target: polling between 1 and 5ms, with 20% busy time
tracking_period = std::clamp<XrDuration>(std::lerp(tracking_period, busy_time * 5, 0.1), min_tracking_period, max_tracking_period);
locate_spaces.resolve(session, tracking.timestamp, tracking.device_poses);
}
catch (const std::system_error & e)
{
if (e.code().category() != xr::error_category() or
e.code().value() != XR_ERROR_TIME_INVALID)
throw;
}
#ifdef __ANDROID__
if (next_battery_check < now and control.enabled[size_t(tid::battery)])
// FIXME: switch to event based
if (next_battery_check < now)
{
timer t2(instance);
auto status = get_battery_status();
network_session->send_stream(from_headset::battery{
.charge = status.charge.value_or(-1),
@@ -576,46 +592,25 @@ void scenes::stream::tracking()
});
next_battery_check = now + battery_check_interval;
XrDuration battery_dur = t2.count();
spdlog::info("Battery check took: {}", battery_dur);
}
#endif
merged_tracking.clear();
size_t current_size = 1400;
for (auto & item: tracking)
packets.resize(std::max(packets.size(), 1 + hands.size() + body.size()));
size_t packet_count = 0;
if (not(tracking.device_poses.empty() and std::holds_alternative<std::monostate>(tracking.face)))
{
size_t size = serialized_size(item);
if (size + current_size > 1400)
{
merged_tracking.emplace_back().interaction_profiles = {
interaction_profiles[0].load(),
interaction_profiles[1].load(),
};
current_size = 0;
}
current_size += size;
merged_tracking.back().items.emplace_back(std::move(item));
auto & packet = packets[packet_count++];
packet.clear();
wivrn_session::stream_socket_t::serialize(packet, tracking);
}
packets.resize(std::max(packets.size(), merged_tracking.size() + hands.size() + body.size()));
size_t packet_count = 0;
for (const auto & i: merged_tracking)
for (const auto & i: hands)
{
auto & packet = packets[packet_count++];
packet.clear();
wivrn_session::stream_socket_t::serialize(packet, i);
}
for (const auto & i: hands)
{
if (i.joints)
{
auto & packet = packets[packet_count++];
packet.clear();
wivrn_session::stream_socket_t::serialize(packet, i);
}
}
for (const auto & i: body)
{
if (i.poses)
@@ -628,21 +623,12 @@ void scenes::stream::tracking()
network_session->send_stream(std::span(packets.data(), packet_count));
for (auto & item: merged_tracking)
std::ranges::move(item.items, std::back_inserter(tracking_pool));
if (period_adjust == 0)
XrTime old = scheduled_derived_pose;
if (old and now > old)
{
if (auto p = real_display_period.load())
{
period_adjust = (p / tracking_period);
current_tracking_period = p / period_adjust;
}
send_derived_pose();
scheduled_derived_pose.compare_exchange_strong(old, 0);
}
else
--period_adjust;
t0 += current_tracking_period;
}
catch (std::exception & e)
{
@@ -654,16 +640,7 @@ void scenes::stream::tracking()
void scenes::stream::operator()(to_headset::tracking_control && packet)
{
auto locked = tracking_control.lock();
auto m = size_t(to_headset::tracking_control::id::microphone);
if (audio_handle)
audio_handle->set_mic_state(packet.enabled[m]);
auto n = size_t(wivrn::to_headset::tracking_control::id::hid_input);
hid_forwarding = packet.enabled[n];
*locked = packet;
locked->min_offset = std::min(locked->min_offset, locked->max_offset);
*tracking_control.lock() = std::move(packet);
}
static device_id derived_from(device_id target)
@@ -751,6 +728,12 @@ void scenes::stream::on_interaction_profile_changed(const XrEventDataInteraction
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();
for (device_id target: {
device_id::LEFT_AIM,
@@ -765,14 +748,8 @@ void scenes::stream::on_interaction_profile_changed(const XrEventDataInteraction
{
// 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;
if (interaction_profiles[right].load() == interaction_profile::ext_hand_interaction_ext)
{
network_session->send_control(from_headset::derived_pose{
.source = target,
.target = target,
});
if (interaction_profiles[right] == interaction_profile::ext_hand_interaction_ext)
continue;
}
auto source = derived_from(target);
auto source_space = application::space(device_to_space(source));
-2
View File
@@ -1,7 +1,6 @@
// kate: hl glsl
const int nb_views = 2;
const int nb_clipping = 4;
const int nb_texcoords = 2;
const bool use_pbr = false;
@@ -20,7 +19,6 @@ layout(set = 0, binding = 1) uniform mesh_ubo
mat4 model;
mat4 modelview[nb_views];
mat4 modelviewproj[nb_views];
vec4 clipping_plane[nb_clipping];
} mesh;
layout(set = 0, binding = 2) uniform joints_ubo
-2
View File
@@ -27,7 +27,6 @@ layout (constant_id = 2) const bool alpha_cutout = false;
layout (constant_id = 3) const bool skinning = false;
const int nb_views = 2;
const int nb_clipping = 4;
layout(set = 0, binding = 0) uniform scene_ubo
{
@@ -42,7 +41,6 @@ layout(set = 0, binding = 1) uniform mesh_ubo
mat4 model;
mat4 modelview[nb_views];
mat4 modelviewproj[nb_views];
vec4 clipping_plane[nb_clipping];
} mesh;
layout(set = 0, binding = 2) uniform joints_ubo
-6
View File
@@ -34,7 +34,6 @@ layout(location = 5) in vec4 in_color;
out gl_PerVertex
{
vec4 gl_Position;
float gl_ClipDistance[nb_clipping];
};
void main()
@@ -59,9 +58,4 @@ void main()
frag_pos = mesh.modelview[gl_ViewIndex] * vec4(in_position, 1.0);
light_pos = scene.view[gl_ViewIndex] * scene.light_position;
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));
}
}
+3 -10
View File
@@ -36,7 +36,6 @@ layout(location = 7) in vec4 in_weights;
out gl_PerVertex
{
vec4 gl_Position;
float gl_ClipDistance[nb_clipping];
};
void main()
@@ -53,8 +52,8 @@ void main()
in_weights.z * joints.joint_matrices[int(in_joints.z)] +
in_weights.w * joints.joint_matrices[int(in_joints.w)];
// TODO on CPU?
mat3 mv = inverse(transpose(mat3(mesh.modelview[gl_ViewIndex])));
mat3 mv = inverse(transpose(mat3(mesh.modelview[gl_ViewIndex] * skinMatrix)));
tangent = vec4(normalize(mv * in_tangent.xyz), in_tangent.w);
if (any(isnan(tangent))) // avoid NaNs if no tangent data is provided
@@ -62,15 +61,9 @@ void main()
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);
frag_pos = mesh.modelview[gl_ViewIndex] * vec4(in_position, 1.0);
frag_pos = mesh.modelview[gl_ViewIndex] * skinMatrix * vec4(in_position, 1.0);
light_pos = scene.view[gl_ViewIndex] * scene.light_position;
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
@@ -0,0 +1,23 @@
/*
* 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
@@ -0,0 +1,25 @@
/*
* 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
@@ -0,0 +1,140 @@
// 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
@@ -0,0 +1,25 @@
/*
* 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
@@ -0,0 +1,26 @@
/*
* 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
@@ -0,0 +1,25 @@
/*
* 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
@@ -0,0 +1,26 @@
/*
* 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,7 +18,6 @@
*/
#include "shader.h"
#include "utils/cache.h"
#include "wivrn_shaders.h"
#include <magic_enum.hpp>
#include <spdlog/spdlog.h>
@@ -104,8 +103,3 @@ std::shared_ptr<shader> shader_loader::operator()(const std::string & 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);
}
+4 -1
View File
@@ -64,4 +64,7 @@ struct shader_loader
std::shared_ptr<shader> operator()(const std::string & name);
};
std::shared_ptr<shader> load_shader(vk::raii::Device & device, const std::string & name);
inline std::shared_ptr<shader> load_shader(vk::raii::Device & device, const std::string & name)
{
return shader_loader{device}(name);
}
+2 -2
View File
@@ -74,8 +74,8 @@ std::optional<std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT>> xr::
if (!locations.isActive)
return std::nullopt;
// bail if none of the joints are valid/tracked
if (!std::ranges::any_of(joints_pos, [](const auto & loc) { return loc.locationFlags != 0; }))
// bail if any of the joint is invalid
if (std::ranges::any_of(joints_pos, [](const auto & loc) { return loc.locationFlags == 0; }))
return std::nullopt;
std::array<xr::hand_tracker::joint, XR_HAND_JOINT_COUNT_EXT> joints;
+1
View File
@@ -69,6 +69,7 @@ struct xr::pico_face_tracker::impl
if (face_tracking.time == 0)
return;
out_expressions.time = face_tracking.time;
#define MAP_EXPRESSION(fb, pico) \
out_expressions.weights[fb] = face_tracking.blendShapeWeight[pico];
+8 -1
View File
@@ -13,13 +13,20 @@ 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(
OUTPUT "${SPV_FILE}-nopt"
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"
COMMAND Vulkan::glslangValidator -V --target-env ${target_env} -S ${shader_stage} -D${shader_stage_upper}_SHADER ${in_file} ${SHADER_FLAGS} -o "${SPV_FILE}-nopt" --depfile "${SPV_FILE}.d"
DEPENDS "${glsl_filename}"
DEPFILE "${SPV_FILE}.d"
VERBATIM
)
if (WIVRN_OPTIMIZE_SHADERS)
add_custom_command(
OUTPUT "${SPV_FILE}-opt"
+20 -16
View File
@@ -1,26 +1,30 @@
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --tags --always
OUTPUT_VARIABLE GIT_DESC
ERROR_QUIET
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
execute_process(
COMMAND ${GIT_EXECUTABLE} rev-parse HEAD
OUTPUT_VARIABLE GIT_COMMIT
ERROR_QUIET
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
if (GIT_DESC)
string(STRIP ${GIT_DESC} GIT_DESC)
if (NOT GIT_DESC)
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --tags --always
OUTPUT_VARIABLE GIT_DESC
ERROR_QUIET
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
string(STRIP "${GIT_DESC}" GIT_DESC)
message(STATUS "Setting version to ${GIT_DESC} from git")
else()
message(STATUS "Setting version to ${GIT_DESC} from parameters")
endif()
if (NOT GIT_COMMIT)
execute_process(
COMMAND ${GIT_EXECUTABLE} rev-parse HEAD
OUTPUT_VARIABLE GIT_COMMIT
ERROR_QUIET
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
string(STRIP "${GIT_COMMIT}" GIT_COMMIT)
endif()
if (NOT GIT_DESC)
set(GIT_DESC v${CMAKE_PROJECT_VERSION})
message(STATUS "Setting version to ${GIT_DESC} from CMakeLists")
endif()
if (GIT_COMMIT)
string(STRIP ${GIT_COMMIT} GIT_COMMIT)
message(STATUS "Setting commit to ${GIT_COMMIT}")
else()
set(GIT_COMMIT "")
+25 -22
View File
@@ -1,26 +1,22 @@
if (WIVRN_USE_SYSTEM_BOOST)
add_library(Boost::pfr ALIAS Boost::headers)
elseif (WIVRN_BUILD_CLIENT)
set(BOOST_INCLUDE_LIBRARIES locale url pfr)
FetchContent_MakeAvailable(boost)
else()
FetchContent_MakeAvailable(boostpfr)
set(BOOST_INCLUDE_LIBRARIES locale url pfr iostreams)
FetchContent_MakeAvailable(boost)
endif()
if (GIT_DESC)
configure_file(version.cpp.in version.cpp)
else ()
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}
-P ${CMAKE_SOURCE_DIR}/cmake/GitVersion.cmake
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/version.cpp
SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/version.cpp.in
)
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)
@@ -44,14 +40,17 @@ add_library(wivrn-common STATIC EXCLUDE_FROM_ALL
if (WIVRN_BUILD_DASHBOARD OR WIVRN_BUILD_SERVER)
add_library(wivrn-common-server STATIC EXCLUDE_FROM_ALL
application.cpp
utils/flatpak.cpp
utils/xdg_icon_lookup.cpp
utils/steam_app_info.cpp
utils/load_icon.cpp
utils/ini.cpp
application.cpp
utils/steam_info.cpp
utils/vdf.cpp
utils/xdg_icon_lookup.cpp
)
target_link_libraries(wivrn-common-server PRIVATE nlohmann_json::nlohmann_json PNG::PNG PkgConfig::librsvg-2.0 LibArchive::LibArchive PUBLIC wivrn-common-base)
target_link_libraries(wivrn-common-server
PRIVATE nlohmann_json::nlohmann_json PNG::PNG PkgConfig::librsvg-2.0 LibArchive::LibArchive Boost::iostreams
PUBLIC wivrn-common-base)
if (WIVRN_BUILD_TEST)
add_executable(list-apps
@@ -59,6 +58,10 @@ if (WIVRN_BUILD_DASHBOARD OR WIVRN_BUILD_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()
+35 -171
View File
@@ -20,13 +20,12 @@
#include "application.h"
#include "utils/flatpak.h"
#include "utils/steam_app_info.h"
#include "utils/steam_info.h"
#include "utils/xdg_base_directory.h"
#include "utils/xdg_icon_lookup.h"
#include <filesystem>
#include <fstream>
#include <iostream>
#include <nlohmann/json.hpp>
namespace wivrn
@@ -42,156 +41,6 @@ std::string read_file(const std::filesystem::path & path)
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");
}
steam_app_info read_steam_app_info(const std::filesystem::path & root)
{
try
{
return steam_app_info{root / "appcache/appinfo.vdf"};
}
catch (...)
{}
return {};
}
std::optional<std::filesystem::path> find_steam_icon(const std::filesystem::path & root, int app_id, const steam_app_info & info)
{
const auto & app_info = info.get(app_id);
try
{
std::string icon{std::get<std::string_view>(app_info.at("common.clienticon"))};
auto icon_path = root / "steam/games" / (icon + ".ico");
if (std::filesystem::exists(icon_path))
return icon_path;
}
catch (...)
{
}
try
{
std::string icon{std::get<std::string_view>(app_info.at("common.linuxclienticon"))};
auto icon_path = root / "steam/games" / (icon + ".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 = read_steam_app_info(*root);
if (manifest.empty())
return;
nlohmann::json json = nlohmann::json::parse(manifest);
for (auto & i: json["applications"])
{
try
{
application app;
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;
}
if (i["launch_type"] == "url")
{
app.exec = command + " " + (std::string)i["url"];
}
else if (i["launch_type"] == "binary")
{
const char prefix[] = "steam.app.";
if (app_key.starts_with(prefix))
{
// ¯\_(ツ)_/¯
uint64_t appkey = stoll(app_key.substr(strlen(prefix)));
app.exec = command + " steam://rungameid/" + std::to_string((appkey << 32) + 0x2000000);
}
}
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;
}
}
}
std::string unescape(std::string_view in)
{
std::string out;
@@ -345,28 +194,33 @@ void do_data_dir(std::filesystem::path dir, std::unordered_map<std::string, appl
dir = dir / "applications";
if (not std::filesystem::is_directory(dir))
return;
for (const auto & entry: std::filesystem::recursive_directory_iterator(dir))
try
{
if (entry.is_directory())
continue;
for (const auto & entry: std::filesystem::recursive_directory_iterator(dir, std::filesystem::directory_options::skip_permission_denied))
{
if (entry.is_directory())
continue;
if (entry.path().extension() != ".desktop")
continue;
if (entry.path().extension() != ".desktop")
continue;
// https://specifications.freedesktop.org/desktop-entry-spec/latest/file-naming.html#desktop-file-id
auto file_id = entry.path()
.lexically_relative(dir)
.replace_extension("")
.string();
std::ranges::replace(file_id, '/', '-');
// https://specifications.freedesktop.org/desktop-entry-spec/latest/file-naming.html#desktop-file-id
auto file_id = entry.path()
.lexically_relative(dir)
.replace_extension("")
.string();
std::ranges::replace(file_id, '/', '-');
if (res.contains(file_id))
continue;
if (res.contains(file_id))
continue;
auto app = do_desktop_entry(entry.path());
if (app)
res.emplace(std::move(file_id), std::move(*app));
auto app = do_desktop_entry(entry.path());
if (app)
res.emplace(std::move(file_id), std::move(*app));
}
}
catch (std::exception & ex)
{}
}
} // namespace
@@ -374,9 +228,19 @@ std::unordered_map<std::string, application> list_applications()
{
std::unordered_map<std::string, application> res;
read_steam_vr_apps(res);
do_data_dir(xdg_data_home(), res);
for (auto & steam: steam::find_installations())
{
auto cmd = steam.get_steam_command() + " ";
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())
do_data_dir(std::move(dir), res);
+130
View File
@@ -0,0 +1,130 @@
/*
* 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/>.
*/
#pragma once
#include <boost/pfr.hpp>
#include <concepts>
#include <fstream>
#include <string>
#include <type_traits>
#if __has_include(<boost/pfr/core_name.hpp>)
#define BOOST_HAS_CORE_NAME
#endif
namespace details
{
template <class>
struct is_stdarray : public std::false_type
{};
template <class T, size_t N>
struct is_stdarray<std::array<T, N>> : public std::true_type
{};
template <typename T>
inline constexpr bool is_stdarray_v = is_stdarray<T>::value;
template <typename T, typename Enable = void>
struct csv_logger_traits;
template <typename T>
struct csv_logger_traits<T, std::enable_if_t<std::is_aggregate_v<T> && !is_stdarray_v<T>>>
{
#ifdef BOOST_HAS_CORE_NAME
static void write_header(std::ostream & out, const std::string & name, bool first = true)
{
boost::pfr::for_each_field_with_name(T{}, [&](std::string_view member_name, const auto & value) {
csv_logger_traits<std::remove_cvref_t<decltype(value)>>::write_header(out, name + "." + (std::string)member_name, first);
first = false;
});
}
#endif
static void write_line(std::ostream & out, const T & value, bool first = true)
{
boost::pfr::for_each_field(value, [&](const auto & member) {
csv_logger_traits<std::remove_cvref_t<decltype(member)>>::write_line(out, member, first);
first = false;
});
}
};
template <typename T>
struct csv_logger_traits<T, std::enable_if_t<is_stdarray_v<T>>>
{
static void write_header(std::ostream & out, const std::string & name, bool first = true)
{
for (int i = 0; i < std::tuple_size_v<T>; i++)
{
csv_logger_traits<std::tuple_element_t<0, T>>::write_header(out, name + "[" + std::to_string(i) + "]", first and i == 0);
}
}
static void write_line(std::ostream & out, const T & value, bool first = true)
{
for (int i = 0; i < std::tuple_size_v<T>; i++)
{
csv_logger_traits<std::tuple_element_t<0, T>>::write_line(out, value[i], first and i == 0);
}
}
};
template <typename T>
struct csv_logger_traits<T, std::enable_if_t<!std::is_aggregate_v<T>>>
{
static void write_header(std::ostream & out, std::string_view name, bool first = true)
{
if (not first)
out << ",";
out << name.substr(1);
}
static void write_line(std::ostream & out, const T & value, bool first = true)
{
if (not first)
out << ",";
out << value;
}
};
} // namespace details
template <typename T, typename Stream = std::ofstream>
requires std::derived_from<Stream, std::ostream>
class csv_logger
{
Stream stream;
public:
template <typename... Args>
csv_logger(Args &&... args) : stream(std::forward<Args>(args)...)
{
#ifdef BOOST_HAS_CORE_NAME
details::csv_logger_traits<T>::write_header(stream, "");
stream << std::endl;
#endif
}
void write(const T & data)
{
details::csv_logger_traits<T>::write_line(stream, data);
stream << std::endl;
}
};
-186
View File
@@ -1,186 +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/>.
*/
#include "steam_app_info.h"
#include <bit>
#include <cctype>
#include <cstring>
#include <fstream>
#include <span>
#include <string_view>
namespace
{
template <typename T>
T read(std::span<char> & buffer);
template <typename T>
requires std::is_integral_v<T>
T read(std::span<char> & buffer)
{
if (sizeof(T) > buffer.size())
throw std::runtime_error{"File truncated"};
T value;
memcpy(&value, buffer.data(), sizeof(T));
buffer = buffer.subspan(sizeof(T));
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(value);
else
return value;
}
template <>
std::string_view read<std::string_view>(std::span<char> & buffer)
{
size_t size = strnlen((char *)buffer.data(), buffer.size());
if (size == buffer.size())
throw std::runtime_error{"File truncated"};
char * str = buffer.data();
buffer = buffer.subspan(size + 1);
return {str, size};
}
std::span<char> read(std::span<char> & buffer, size_t size)
{
if (size > buffer.size())
throw std::runtime_error{"File truncated"};
std::span<char> value{buffer.data(), size};
buffer = buffer.subspan(size);
return value;
}
std::vector<std::string_view> read_string_table(std::span<char> buffer)
{
std::vector<std::string_view> string_table;
uint32_t count = read<uint32_t>(buffer);
string_table.reserve(count);
for (size_t i = 0; i < count; i++)
string_table.emplace_back(read<std::string_view>(buffer));
return string_table;
}
void read_vdf(wivrn::steam_app_info::info & info, const std::string & prefix, std::span<char> & bindata, const std::vector<std::string_view> & string_table)
{
int type = read<uint8_t>(bindata);
while (type != 8)
{
std::string name{string_table.at(read<uint32_t>(bindata))};
for (char & c: name)
c = std::tolower(c);
// https://github.com/ValveResourceFormat/ValveKeyValue/blob/master/ValveKeyValue/ValveKeyValue/KeyValues1/KV1BinaryNodeType.cs
switch (type)
{
case 0: // Dictionary
read_vdf(info, prefix + name + ".", bindata, string_table);
break;
case 1: // UTF-8 string
info.emplace(prefix + name, read<std::string_view>(bindata));
break;
case 2: // uint32_t
info.emplace(prefix + name, read<uint32_t>(bindata));
break;
// case 3: // float
// break;
default:
throw std::runtime_error{"Unknown object type " + std::to_string(type)};
}
type = read<uint8_t>(bindata);
}
}
} // namespace
wivrn::steam_app_info::steam_app_info(std::filesystem::path path)
{
std::vector<std::string_view> string_table;
{
std::ifstream f{path};
data = std::vector<char>{std::istreambuf_iterator{f}, {}};
}
std::span<char> buffer = data;
// See https://github.com/SteamDatabase/SteamAppInfo/blob/master/README.md#file-header
uint32_t magic = read<uint32_t>(buffer);
if ((magic & 0xff'ff'ff'00) != 0x07'56'44'00)
throw std::runtime_error{"Wrong magic number"};
int version = magic & 0xff;
if (version < 41)
throw std::runtime_error{"Unsupported version"};
int universe = read<uint32_t>(buffer);
if (version >= 41)
{
size_t string_offset = read<uint64_t>(buffer);
string_table = read_string_table(std::span<char>{data}.subspan(string_offset));
}
else
throw std::runtime_error{"Unsupported version"};
while (true)
{
// See https://github.com/SteamDatabase/SteamAppInfo/blob/master/README.md#app-entry-repeated
auto app_id = read<uint32_t>(buffer);
if (app_id == 0)
break;
auto size_data = read<uint32_t>(buffer);
char * current_offset = buffer.data();
read<uint32_t>(buffer); // info_state
read<uint32_t>(buffer); // last_updated
read<uint64_t>(buffer); // pics_token
read(buffer, 20); // SHA1 of the app info
read<uint32_t>(buffer); // change number
// if (version < 38)
// read<uint8_t>(buffer); // section type
read(buffer, 20); // SHA1 of the bin data
auto bindata = read(buffer, size_data - (buffer.data() - current_offset));
try
{
bindata = bindata.subspan(4 + 1); // Skip the checksum + type (must be 0)
info app_info;
read_vdf(app_info, "", bindata, string_table);
app_data.emplace(app_id, app_info);
}
catch (...)
{
// Ignore errors
}
}
}
+495
View File
@@ -0,0 +1,495 @@
/*
* 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
@@ -0,0 +1,69 @@
/*
* 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
@@ -0,0 +1,191 @@
/*
* 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
@@ -1,6 +1,6 @@
/*
* 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
@@ -18,34 +18,37 @@
#pragma once
#include <any>
#include <filesystem>
#include <unordered_map>
#include <string_view>
#include <variant>
#include <vector>
namespace wivrn
{
class steam_app_info
namespace vdf
{
public:
using info = std::unordered_map<std::string, std::variant<uint32_t, std::string_view>>;
struct string
{
std::string_view data;
bool operator==(const char *) const;
};
struct keyvalue
{
string key;
std::variant<string, std::vector<keyvalue>> value;
};
struct root : public keyvalue
{
root(const std::filesystem::path &);
private:
std::vector<char> data;
std::unordered_map<int, info> app_data;
public:
steam_app_info(std::filesystem::path path);
steam_app_info() = default;
steam_app_info(const steam_app_info &) = delete;
steam_app_info(steam_app_info &&) = default;
steam_app_info & operator=(const steam_app_info &) = delete;
steam_app_info & operator=(steam_app_info &&) = default;
const auto & get(int appid) const
{
return app_data.at(appid);
}
std::any opaque;
};
} // namespace vdf
} // namespace wivrn
+4 -2
View File
@@ -45,7 +45,7 @@ std::filesystem::path xdg_cache_home()
std::filesystem::path xdg_data_home()
{
if (const char * xdg_data_home = std::getenv("XDG_DATA_HOME"))
if (const char * xdg_data_home = std::getenv("XDG_DATA_HOME"); xdg_data_home and *xdg_data_home)
return xdg_data_home;
if (const char * home = std::getenv("HOME"))
@@ -71,9 +71,11 @@ std::vector<std::filesystem::path> xdg_config_dirs()
return paths;
}
std::vector<std::filesystem::path> xdg_data_dirs()
std::vector<std::filesystem::path> xdg_data_dirs(bool include_data_home)
{
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"))
{
+1 -1
View File
@@ -26,4 +26,4 @@ std::filesystem::path xdg_config_home();
std::filesystem::path xdg_cache_home();
std::filesystem::path xdg_data_home();
std::vector<std::filesystem::path> xdg_config_dirs();
std::vector<std::filesystem::path> xdg_data_dirs();
std::vector<std::filesystem::path> xdg_data_dirs(bool include_data_home = true);
+63 -38
View File
@@ -25,6 +25,7 @@
#include <algorithm>
#include <filesystem>
#include <format>
#include <fstream>
#include <limits>
#include <optional>
@@ -107,51 +108,75 @@ void find_icon_theme_dirs_helper(const std::vector<std::filesystem::path> & base
const auto theme_dir = base_dir / "icons" / theme;
const auto index_theme = theme_dir / "index.theme";
if (not std::filesystem::exists(index_theme))
continue;
try
if (std::filesystem::exists(index_theme))
{
std::ifstream file{index_theme};
wivrn::ini index{file};
for (const auto & inherited_theme: utils::split(index.get<std::string>("Icon Theme", "Inherits", ""), ","))
try
{
if (inherited_theme != "" and not std::ranges::contains(themes, inherited_theme))
themes.push_back(inherited_theme);
std::ifstream file{index_theme};
wivrn::ini index{file};
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,
});
}
}
for (auto directory: utils::split(index.get<std::string>("Icon Theme", "Directories", ""), ","))
catch (std::exception & e)
{
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)
else if (theme == "hicolor")
{
// 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,
});
}
}
}
+3
View File
@@ -19,10 +19,13 @@
#pragma once
#include <cstdint>
namespace wivrn
{
// Default port for server to listen, both TCP and UDP
static const int default_port = 9757;
static const int64_t max_extrapolation_ns = 80'000'000;
} // namespace wivrn
#cmakedefine01 WIVRN_USE_NVENC
+27 -33
View File
@@ -39,7 +39,7 @@
namespace wivrn
{
static constexpr int protocol_revision = 0;
static constexpr int protocol_revision = 1;
enum class device_id : uint8_t
{
@@ -129,6 +129,10 @@ enum class device_id : uint8_t
RIGHT_GRASP_VALUE, // /user/hand/right/input/grasp_ext/value
RIGHT_GRASP_READY, // /user/hand/right/input/grasp_ext/ready_ext
EYE_GAZE, // /user/eyes_ext/input/gaze_ext/pose
LEFT_HAND, // identify hand tracking
RIGHT_HAND, // identify hand tracking
BODY, // identify body tracking
FACE, // identify face tracking
};
enum class interaction_profile : uint8_t
@@ -300,6 +304,9 @@ struct tracking
XrFovf fov;
};
// /user/hand/left and /user/hand/right
std::array<interaction_profile, 2> interaction_profiles;
XrTime production_timestamp;
XrTime timestamp;
XrViewStateFlags view_flags;
@@ -321,11 +328,11 @@ struct tracking
struct fb_face2
{
XrTime time;
std::array<float, XR_FACE_EXPRESSION2_COUNT_FB> weights;
std::array<float, XR_FACE_CONFIDENCE2_COUNT_FB> confidences;
bool is_valid;
bool is_eye_following_blendshapes_valid;
XrTime time;
};
struct htc_face
@@ -341,13 +348,6 @@ struct tracking
std::variant<std::monostate, android_face, fb_face2, htc_face> face;
};
struct trackings
{
// /user/hand/left and /user/hand/right
std::array<interaction_profile, 2> interaction_profiles;
std::vector<tracking> items;
};
struct derived_pose
{
device_id source;
@@ -555,7 +555,6 @@ using packets = std::variant<
audio_data,
handshake,
tracking,
trackings,
derived_pose,
hand_tracking,
body_tracking,
@@ -705,31 +704,25 @@ struct timesync_query
struct tracking_control
{
enum class id
struct sample
{
left_aim,
left_grip,
left_palm,
left_pinch,
left_poke,
right_aim,
right_grip,
right_palm,
right_pinch,
right_poke,
left_hand,
right_hand,
face,
generic_tracker,
hid_input,
battery,
microphone,
last = microphone,
device_id device;
XrDuration prediction_ns;
};
std::chrono::nanoseconds min_offset;
std::chrono::nanoseconds max_offset;
std::array<bool, size_t(id::last) + 1> enabled;
std::vector<sample> pattern;
XrDuration motions_to_photons;
};
struct feature_control
{
enum feature
{
hid_input,
microphone,
};
feature f;
bool state;
};
struct refresh_rate_change
@@ -780,6 +773,7 @@ using packets = std::variant<
haptics,
timesync_query,
tracking_control,
feature_control,
refresh_rate_change,
application_list,
application_icon,
+15 -15
View File
@@ -308,29 +308,29 @@ wivrn::deserialization_packet wivrn::UDP::receive_raw()
static const size_t message_size = 2048;
static const size_t num_messages = 20;
if ((not buffer) or buffer.use_count() > 1)
{
#if defined(__cpp_lib_smart_ptr_for_overwrite) && __cpp_lib_smart_ptr_for_overwrite >= 202002L
buffer = std::make_shared_for_overwrite<uint8_t[]>(message_size * num_messages);
buffer = std::make_shared_for_overwrite<uint8_t[]>(message_size * num_messages);
#else
buffer.reset(new uint8_t[message_size * num_messages]);
buffer.reset(new uint8_t[message_size * num_messages]);
#endif
std::vector<iovec> iovecs;
std::vector<mmsghdr> mmsgs;
iovecs.reserve(num_messages);
mmsgs.reserve(num_messages);
}
std::array<iovec, num_messages> iovecs;
std::array<mmsghdr, num_messages> mmsgs;
for (size_t i = 0; i < num_messages; ++i)
{
iovecs.push_back({
iovecs[i] = {
.iov_base = buffer.get() + message_size * i,
.iov_len = message_size,
});
};
mmsgs.push_back(
{
.msg_hdr = {
.msg_iov = &iovecs.back(),
.msg_iovlen = 1,
},
});
mmsgs[i] = {
.msg_hdr = {
.msg_iov = &iovecs[i],
.msg_iovlen = 1,
},
};
}
int received = recvmmsg(fd, mmsgs.data(), num_messages, MSG_DONTWAIT, nullptr);
+11 -1
View File
@@ -28,7 +28,7 @@
<li>Samsung Galaxy XR</li>
</ul>
<p>For desktop streaming, check out wlx-overlay-s.</p>
<p>For desktop streaming, check out WayVR.</p>
</description>
<developer id="io.github.wivrn.wivrn">
<name>Guillaume Meunier, Patrick Nicolas et al</name>
@@ -68,6 +68,16 @@
<content_rating type="oars-1.1" />
<releases>
<release version="26.2" date="2026-02-08">
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v26.2</url>
<description>
<ul>
<li>Added support for SlimeVR trackers</li>
<li>Unsafe configuration values can now be used on headset</li>
<li>Improved head and controller tracking</li>
</ul>
</description>
</release>
<release version="25.12" date="2025-12-19">
<url type="details">https://github.com/WiVRn/WiVRn/releases/tag/v25.12</url>
<description>
+29 -3
View File
@@ -36,7 +36,25 @@ Kirigami.ApplicationWindow {
}
}
onClosing: Qt.quit()
onClosing: (close) => {
if (WivrnServer.ownServer && WivrnServer.sessionRunning)
{
close.accepted = false;
confirm_close.open();
} else {
Qt.quit();
}
}
Kirigami.PromptDialog {
id: confirm_close
title: i18n("Quit WiVRn")
subtitle: i18n("The WiVRn server is active.\nClosing the window will terminate it.")
iconName: "dialog-warning"
popupType: Controls.Popup.Native
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
onAccepted: Qt.quit()
}
width: 900
height: 800
@@ -170,6 +188,14 @@ 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 {
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")
@@ -345,14 +371,14 @@ Kirigami.ApplicationWindow {
Controls.Label {
Kirigami.FormData.label: i18nc("label for USB status or connect button", "USB")
visible: !Adb.adbInstalled
visible: !Adb.adbInstalled && !WivrnServer.headsetConnected
enabled: root.server_started
text: i18n("ADB is not installed")
}
Controls.Label {
Kirigami.FormData.label: i18nc("label for USB status or connect button", "USB")
visible: Adb.adbInstalled && select_usb_device.connected_headset_count == 0
visible: Adb.adbInstalled && select_usb_device.connected_headset_count == 0 && !WivrnServer.headsetConnected
enabled: root.server_started
text: i18n("No headset is connected or your headset is not in developer mode");
Layout.fillWidth: true
+3 -20
View File
@@ -7,8 +7,6 @@ import io.github.wivrn.wivrn
ColumnLayout {
id: select_game
property bool json_loaded: false
Component.onCompleted: {
apps.append({
"name": i18nc("don't start an application automatically", "None"),
@@ -75,13 +73,8 @@ ColumnLayout {
}
}
function reload() {
select_game.json_loaded = false;
load();
}
function load() {
if (select_game.json_loaded || WivrnServer.serverStatus != WivrnServer.Started || WivrnServer.jsonConfiguration == "")
if (WivrnServer.jsonConfiguration == "")
return;
Settings.load(WivrnServer);
@@ -103,22 +96,12 @@ ColumnLayout {
app_text.text = Settings.application;
app_combobox.currentIndex = custom_idx;
}
select_game.json_loaded = true;
}
function save() {
var new_application;
if (apps.get(app_combobox.currentIndex).is_custom)
new_application = app_text.text;
Settings.application = app_text.text;
else
new_application = apps.get(app_combobox.currentIndex).command;
Settings.load(WivrnServer);
if (Settings.application != new_application) {
Settings.application = new_application;
Settings.save(WivrnServer);
}
Settings.application = apps.get(app_combobox.currentIndex).command;
}
}
+1
View File
@@ -28,6 +28,7 @@
#include <fcntl.h>
#include <nlohmann/json.hpp>
#include <qqmlintegration.h>
#include <unistd.h>
namespace
{
+34 -6
View File
@@ -24,14 +24,40 @@
vulkan_info::vulkan_info()
{
vk::raii::Context context;
try
{
vk::raii::Context context;
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::raii::Instance vulkan{context, instance_info};
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::raii::Instance vulkan{context, instance_info};
auto devices = vulkan.enumeratePhysicalDevices();
set_info(choose_device(devices));
auto devices = vulkan.enumeratePhysicalDevices();
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)
@@ -70,5 +96,7 @@ void vulkan_info::set_info(vk::raii::PhysicalDevice & device)
break;
}
m_type = cast_type(prop.properties.deviceType);
qDebug() << "Driver" << m_driverId << m_driverVersion;
}
+19 -1
View File
@@ -33,14 +33,27 @@ class vulkan_info : public QObject
Q_OBJECT
QML_NAMED_ELEMENT(VulkanInfo)
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 driverVersion READ driverVersion CONSTANT)
Q_PROPERTY(uint32_t driverVersionCode READ driverVersionCode CONSTANT)
Q_PROPERTY(gpu_type type READ type CONSTANT)
QString m_driverId;
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);
void set_info(vk::raii::PhysicalDevice & device);
@@ -62,4 +75,9 @@ public:
{
return m_driverVersionCode;
}
gpu_type type() const
{
return m_type;
}
};
+2
View File
@@ -137,10 +137,12 @@ void wivrn_server::start_server()
qDebug() << "Server finished before registering on dbus";
serverStatusChanged(m_serverStatus = Status::FailedToStart);
}
ownServerChanged();
}
});
server_process->start(server_path(), QApplication::arguments().mid(1));
ownServerChanged();
}
break;
+7
View File
@@ -172,6 +172,7 @@ public:
// Server information
Q_PROPERTY(Status serverStatus READ serverStatus NOTIFY serverStatusChanged)
Q_PROPERTY(bool ownServer READ ownServer NOTIFY ownServerChanged)
Q_PROPERTY(bool headsetConnected READ isHeadsetConnected NOTIFY headsetConnectedChanged)
Q_PROPERTY(bool sessionRunning READ isSessionRunning NOTIFY sessionRunningChanged)
Q_PROPERTY(QString jsonConfiguration READ jsonConfiguration WRITE setJsonConfiguration NOTIFY jsonConfigurationChanged)
@@ -221,6 +222,11 @@ public:
return m_serverStatus;
}
bool ownServer() const
{
return server_process;
}
bool isHeadsetConnected() const
{
return m_headsetConnected;
@@ -379,6 +385,7 @@ private:
Q_SIGNALS:
void serverStatusChanged(Status);
void ownServerChanged();
void headsetConnectedChanged(bool);
void sessionRunningChanged(bool);
void jsonConfigurationChanged(QString);
+509
View File
@@ -0,0 +1,509 @@
# Debugging WiVRn
This guide covers debugging techniques for WiVRn, including log collection, crash analysis, performance profiling, and common troubleshooting scenarios.
## Table of Contents
- [Prerequisites](#prerequisites)
- [Collecting Logs](#collecting-logs)
- [HMD Client Logs](#hmd-client-logs)
- [Server Logs](#server-logs)
- [Starting Components for Debugging](#starting-components-for-debugging)
- [HMD Client](#hmd-client)
- [Server](#server)
- [XR Applications](#xr-applications)
- [Crash Debugging](#crash-debugging)
- [Server Crashes](#server-crashes)
- [HMD Client Crashes](#hmd-client-crashes)
- [Performance Debugging](#performance-debugging)
- [Timing Analysis](#timing-analysis)
- [Perfetto Profiling](#perfetto-profiling)
- [USB Tunneling](#usb-tunneling)
- [Game Debugging](#game-debugging)
- [Environment Variables Reference](#environment-variables-reference)
- [Configuration Files](#configuration-files)
- [External Resources](#external-resources)
- [Remote Native Debugging (Advanced)](#remote-native-debugging-advanced)
---
## Prerequisites
### ADB Setup
The Android Debug Bridge ([ADB](https://developer.android.com/tools/adb)) is required for debugging the HMD client. Connect your headset to your PC via a USB data cable and authorize the connection when prompted in the HMD.
### Clean Installation
When debugging, ensure the HMD client matches the server version. Perform a clean reinstall:
```bash
# Find and uninstall existing installation
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
adb uninstall ${WIVRN_PKG}
# Install the debug APK
adb install /path/to/wivrn-standard-debug.apk
```
---
## Collecting Logs
### HMD Client Logs
The primary method to collect logs from the HMD is through [ADB logcat](https://developer.android.com/tools/logcat).
Watch for crashes (FATAL priority):
```bash
adb logcat '*:F'
```
Record ERROR and above:
```bash
adb logcat '*:E' | tee -a errors-$(date "+%Y-%m-%d-%H").log
```
WiVRn-only logs (verbose):
```bash
adb logcat '*:S' WiVRn:V
```
Watch WiVRn client logs:
```bash
adb logcat | grep WiVRn
```
Watch Android system logs related to WiVRn:
```bash
adb logcat | grep wivrn
```
### Server Logs
Start the server with debug logging enabled:
```bash
XRT_LOG=debug XRT_COMPOSITOR_LOG=debug wivrn-server
```
To also dump video frames for analysis:
```bash
XRT_LOG=debug XRT_COMPOSITOR_LOG=debug WIVRN_DUMP_VIDEO=/tmp/video-dump wivrn-server
```
The video dump can be played back with `mpv` or other media players to verify what video was being sent to the HMD.
There will be multiple files in the directory, one for each video stream per codec. For example, `/tmp/video-dump-0.h264`.
---
## Starting Components for Debugging
### HMD Client
The package name varies by build variant:
- `org.meumeu.wivrn` - for app store builds
- `org.meumeu.wivrn.github` - for GitHub release builds
- `org.meumeu.wivrn.local` - for locally built APK
- `org.meumeu.wivrn.github.testing` - for CI runs
- `org.meumeu.wivrn.github.nightly` - for APK repo
Find your installed package with:
```bash
adb shell pm list packages | grep wivrn
```
Start via ADB:
```bash
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
adb shell am start ${WIVRN_PKG}/org.meumeu.wivrn.MainActivity
```
Connect to a specific server:
Replace `ADDRESS=localhost` with the address of the server you want to connect to.
```bash
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
ADDRESS=localhost
adb shell am start -a android.intent.action.VIEW -d "wivrn://${ADDRESS}" ${WIVRN_PKG}
```
Stop the client:
```bash
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
adb shell am force-stop ${WIVRN_PKG}
```
### Server
Start the server with debug logging:
```bash
XRT_LOG=debug XRT_COMPOSITOR_LOG=debug wivrn-server
```
The server will publish itself on the network via mDNS/Zeroconf for discovery by the HMD client.
### XR Applications
Basic OpenXR application:
```bash
xrgears
```
To run Steam games via OpenVR, make sure to add the Steam launch options presented by the server output or in the dashboard. This is required to configure the OpenVR runtime correctly.
Some games have options to control window behavior. Try adding `-windowed` or `-window -w 1280 -h 1024` to the game launch options to allow moving/resizing the local render window. Each game may have different options, check the game's documentation.
> Note: Games linked to OpenVR require [OpenComposite](https://gitlab.com/znixian/OpenOVR) or [xrizer](https://github.com/Supreeeme/xrizer) to translate calls to OpenXR.
---
## Crash Debugging
### Server Crashes
#### Systemd
Core dumps are managed by [systemd-coredump](https://www.freedesktop.org/software/systemd/man/latest/coredumpctl.html).
View the most recent crash:
```bash
coredumpctl info
```
Start a debugger on the most recent crash:
```bash
coredumpctl -1 debug
```
Inside GDB/LLDB:
```
# Select frame 2
f 2
# View local variables
info locals
# Print backtrace
bt
```
#### Non-Systemd Systems
On systems without systemd-coredump, core dumps are handled by the kernel directly.
Check where core dumps are written:
```bash
cat /proc/sys/kernel/core_pattern
```
To set a simple core pattern:
```bash
sudo sysctl -w kernel.core_pattern=/tmp/core.%e.%p.%t
```
This writes cores to `/tmp/` with the format `core.<executable>.<pid>.<timestamp>`.
Analyze a core dump with GDB:
```bash
gdb /usr/bin/wivrn-server /tmp/core.wivrn-server.12345.1706234567
```
Inside GDB:
```
# Print backtrace
bt
# View all threads
info threads
# Switch to thread 2
thread 2
# Print backtrace for all threads
thread apply all bt
```
### HMD Client Crashes
Copy the traceback from the HMD logs using logcat:
```bash
adb logcat '*:F' | grep -A 50 wivrn
```
---
## Performance Debugging
### Timing Analysis
WiVRn can record detailed timing information for analysis.
Capture timing data:
```bash
WIVRN_DUMP_TIMINGS=/tmp/wivrn-timings.csv wivrn-server
```
### Perfetto Profiling
[Perfetto](https://perfetto.dev/) provides detailed system-wide profiling.
#### HMD Profiling
Enable persistent tracing on Android:
```bash
adb shell setprop persist.traced.enable 1
```
Open the [Perfetto UI](https://ui.perfetto.dev/), connect to your device, and configure tracing as needed.
See the [Android tracing quickstart](https://perfetto.dev/docs/quickstart/android-tracing) for detailed instructions.
#### Server Profiling
Ensure WiVRn is built with `XRT_FEATURE_TRACING=ON` to enable [Monado tracing with Perfetto](https://monado.pages.freedesktop.org/monado/tracing-perfetto.html).
Start with tracing enabled:
```bash
XRT_TRACING=true wivrn-server
```
---
## USB Tunneling
For debugging network issues or testing with a wired connection, you can tunnel WiVRn over USB.
Set up the tunnel and connect:
```bash
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
adb reverse tcp:9757 tcp:9757
adb shell am start -a android.intent.action.VIEW -d "wivrn+tcp://localhost:9757" ${WIVRN_PKG}
```
You are also able to make this connection through the dashboard.
---
## Game Debugging
### Proton/Wine Games
Enable additional logging for Windows compatibility layers:
```
PROTON_LOG=1 WINEDEBUG=vrclient,openxr,steam %command%
```
### OpenComposite
For games using OpenVR, and you are using [OpenComposite](https://gitlab.com/znixian/OpenOVR) to translate calls to OpenXR.
The OpenComposite log can be found at `$HOME/.local/state/OpenComposite/logs/opencomposite.log`.
### XRizer
To debug [xrizer](https://github.com/Supreeeme/xrizer), you can set the `RUST_LOG` environment variable to control the log level.
| Variable | Description | Default |
|------------|-----------------------------------------------------------------------------|---------|
| `RUST_LOG` | Configures the logging level for Rust applications. Accepts a comma-separated list of directives in the format `module::path=level`, where `level` can be `error`, `warn`, `info`, `debug`, or `trace`. For example, `RUST_LOG=info,my_crate=debug` sets the global level to `info` and the `my_crate` module to `debug`. | `warn` |
In xrizer, `RUST_LOG` follows the standard [`env_logger` semantics](https://docs.rs/env_logger/latest/env_logger/#enabling-logging) described above. In addition, xrizer defines the following useful nonstandard logging targets:
| Logging Target | Description |
|-----------------|-------------|
| `openvr_calls` | Logs the name of each OpenVR function as they are called |
| `tracked_property` | Logs the name and device index of each requested tracked device property |
The log is located at `$XDG_STATE_HOME/xrizer/xrizer.txt`, or `$HOME/.local/state/xrizer/xrizer.txt` if `$XDG_STATE_HOME` is not set.
---
## Environment Variables Reference
### Compositor Settings
| Variable | Description | Default |
|----------|-------------|---------|
| `XRT_LOG` | Log level (`trace`, `debug`, `info`, `warn`, `error`) | `warn` |
| `XRT_COMPOSITOR_LOG` | Compositor log level (`trace`, `debug`, `info`, `warn`, `error`) | `info` |
| `OXR_VIEWPORT_SCALE_PERCENTAGE` | Per-application viewport scale (set on application, not server) | `100` |
### Debugging
| Variable | Description |
|----------|-------------|
| `WIVRN_DUMP_VIDEO` | Path to dump video frames (e.g., `/tmp/video-dump`) |
| `WIVRN_DUMP_TIMINGS` | Path to dump timing CSV (e.g., `/tmp/wivrn-timings.csv`) |
| `WIVRN_LOGLEVEL` | Log level for the native client |
| `WIVRN_AUTOCONNECT` | Auto-connect to the first discovered server |
| `XRT_TRACING` | Enable Perfetto tracing (`true`/`false`) |
### Vulkan
| Variable | Description |
|----------|-------------|
| `VK_INSTANCE_LAYERS` | Vulkan validation layers (e.g., `VK_LAYER_KHRONOS_validation`) |
### OpenXR
| Variable | Description |
|----------|-------------|
| `XR_RUNTIME_JSON` | Path to OpenXR runtime configuration |
See also the [Monado compositor documentation](https://monado.freedesktop.org/getting-started.html#compositor) for additional options.
---
## Configuration Files
### OpenXR Runtime Configuration
Active runtime symlink:
```bash
ls -la $HOME/.config/openxr/1/active_runtime.json
```
Should point to `/usr/share/openxr/1/openxr_wivrn.json` or similar.
Check runtime configuration:
```bash
cat /usr/share/openxr/1/openxr_wivrn.json
```
Example output:
```json
{
"file_format_version": "1.0.0",
"runtime": {
"name": "Monado",
"library_path": "../../../lib64/wivrn/libopenxr_wivrn.so",
"MND_libmonado_path": "../../../lib64/wivrn/libmonado_wivrn.so"
}
}
```
Verify library dependencies:
```bash
pushd /usr/share/openxr/1/
ldd ../../../lib64/wivrn/libopenxr_wivrn.so
popd
```
### WiVRn Server Configuration
See [docs/configuration.md](configuration.md).
---
## External Resources
### Tools and Documentation
- [ADB Documentation](https://developer.android.com/tools/adb) - Android Debug Bridge
- [ADB Logcat](https://developer.android.com/tools/logcat) - Log filtering and analysis
- [coredumpctl](https://www.freedesktop.org/software/systemd/man/latest/coredumpctl.html) - Core dump management
- [Perfetto](https://perfetto.dev/docs/) - System profiling and tracing
- [Perfetto UI](https://ui.perfetto.dev/) - Web-based trace viewer
### Monado/OpenXR
- [Monado Getting Started](https://monado.freedesktop.org/getting-started.html) - Compositor configuration
- [Monado Tracing with Perfetto](https://monado.pages.freedesktop.org/monado/tracing-perfetto.html) - Server-side tracing
- [OpenXR](https://www.khronos.org/openxr/) - Khronos OpenXR standard
- [xrgears](https://github.com/ila-embsys/monado_demo_xrgears) - OpenXR test application
### Gaming
- [OpenComposite](https://gitlab.com/znixian/OpenOVR) - OpenVR to OpenXR translation
- [xrizer](https://github.com/Supreeeme/xrizer) - OpenVR to OpenXR translation layer (Rust)
### Rust
- [env_logger](https://docs.rs/env_logger/latest/env_logger/#enabling-logging) - Rust logging configuration via RUST_LOG
### Android Debugging
- [Android NDK Debugging](https://developer.android.com/ndk/guides/ndk-gdb) - Native debugging with ndk-gdb
- [Android Tracing Quickstart](https://perfetto.dev/docs/quickstart/android-tracing) - Perfetto on Android
---
## Remote Native Debugging (Advanced)
This section covers attaching a native debugger to the HMD client remotely. This requires the Android NDK and familiarity with LLDB/GDB.
Start the client with debugging enabled:
```bash
WIVRN_PKG=$(adb shell pm list packages | grep wivrn | cut -d: -f2)
adb shell am start -D ${WIVRN_PKG}/org.meumeu.wivrn.MainActivity
```
Set up LLDB debugging:
1. Push the LLDB server to the device:
```bash
adb shell "mkdir -p /data/local/tmp/tools"
adb push "$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/*/lib/linux/aarch64/lldb-server" /data/local/tmp/tools/
```
2. Start the LLDB server on the device:
```bash
adb shell /data/local/tmp/tools/lldb-server platform --server --listen '*:5039'
```
3. Forward the port:
```bash
adb forward tcp:5039 tcp:5039
```
4. Connect from your host:
```bash
lldb
(lldb) platform select remote-android
(lldb) platform connect connect://localhost:5039
```
Resume the app (required for `-D` flag):
```bash
adb forward tcp:12345 jdwp:$(adb shell pidof ${WIVRN_PKG})
jdb -attach localhost:12345
```
See the [Android NDK debugging guide](https://developer.android.com/ndk/guides/ndk-gdb) for more details.
+956
View File
@@ -0,0 +1,956 @@
// 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
+19530 -19558
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -58,7 +58,7 @@
# Keep in sync with CMakeLists.txt monado rev
rev = lib.strings.trim (builtins.readFile ./monado-rev);
# Nix will output the correct hash when it doesn't match
hash = "sha256-zU8TLRzd4pb9KzVT/xana6rArcSu31wlCD54p7PJ9UY=";
hash = "sha256-aIHry5C30pZVIkB5fptJ0Ncbmg8EKf0M7evB4IJZEI0=";
};
};
+4 -22
View File
@@ -256,23 +256,6 @@ modules:
cleanup:
- '*'
- name: libnotify
buildsystem: meson
config-opts:
- -Dtests=false
- -Dintrospection=disabled
- -Dman=false
- -Dgtk_doc=false
- -Ddocbook_docs=disabled
sources:
- type: archive
url: https://download.gnome.org/sources/libnotify/0.8/libnotify-0.8.8.tar.xz
sha256: 23420ef619dc2cb5aebad613f4823a2fa41c07e5a1d05628d40f6ec4b35bfddd
x-checker-data:
type: gnome
name: libnotify
stable-only: true
- name: qcoro
buildsystem: cmake-ninja
config-opts:
@@ -336,7 +319,7 @@ modules:
sources:
- type: git
url: https://github.com/Supreeeme/xrizer.git
tag: 01ab72809f2bd5c6494fa77fb08e4229c886da7a
tag: be664bb93eebdd82336d00230154bacc6f8b9765
- xrizer-gen-src.json
- name: wivrn-library
@@ -413,9 +396,9 @@ modules:
WIVRN_SRC2
WIVRN_SRC3
- type: archive
url: BOOSTPFR_URL
dest: deps/boostpfr-src
sha256: BOOSTPFR_SHA256
url: BOOST_URL
dest: deps/boost-src
sha256: BOOST_SHA256
- type: git
url: https://gitlab.freedesktop.org/monado/monado
tag: MONADO_COMMIT
@@ -423,4 +406,3 @@ modules:
- type: shell
commands:
- cd deps/monado-src && ../../patches/apply.sh ../../patches/monado/*
- cd deps/boostpfr-src && ../../patches/apply.sh ../../flatpak/boostpfr-gcc-12-internal-compiler-error.patch
+65 -39
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-01-07 09:11+0100\n"
"POT-Creation-Date: 2026-02-16 21:54+0100\n"
"PO-Revision-Date: 2025-11-19 20:20+0100\n"
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
"Language-Team: Spanish <>\n"
@@ -119,8 +119,8 @@ msgstr "Comprobando la última versión..."
msgid "No APK is available for this version"
msgstr "No hay ningún APK disponible para esta versión"
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:350
#: dashboard/qml/Main.qml:408 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:376
#: dashboard/qml/Main.qml:434 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/WizardPage.qml:337
#, kde-format
msgid "ADB is not installed"
@@ -163,7 +163,7 @@ msgstr "Reinstalar WiVRn"
msgid "Install WiVRn"
msgstr "Instalar WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:413
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:439
#, kde-format
msgid "Headsets"
msgstr "Visores"
@@ -265,28 +265,42 @@ msgstr "Estadísticas del visor"
msgid "WiVRn dashboard"
msgstr "Panel de control de WiVRn"
#: dashboard/qml/Main.qml:124
#: dashboard/qml/Main.qml:51
#, kde-format
msgid "Quit WiVRn"
msgstr "Salir de WiVRn"
#: dashboard/qml/Main.qml:52
#, kde-format
msgid ""
"The WiVRn server is active.\n"
"Closing the window will terminate it."
msgstr ""
"El servidor de WiVRn está activo.\n"
"Cerrar la ventana parará el servidor."
#: dashboard/qml/Main.qml:142
#, kde-format
msgid "Avahi daemon is not installed"
msgstr "El servicio Avahi no está instalado"
#: dashboard/qml/Main.qml:132
#: dashboard/qml/Main.qml:150
#, kde-format
msgid "Avahi daemon is not started"
msgstr "El servicio Avahi no está iniciado"
#: dashboard/qml/Main.qml:139 dashboard/qml/Main.qml:153
#: dashboard/qml/Main.qml:205
#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171
#: dashboard/qml/Main.qml:231
#, kde-format
msgid "Fix it"
msgstr "Arreglarlo"
#: dashboard/qml/Main.qml:147
#: dashboard/qml/Main.qml:165
#, kde-format
msgid "Firewall may not allow port 9757"
msgstr "El firewall podría no permitir el puerto 9757"
#: dashboard/qml/Main.qml:161
#: dashboard/qml/Main.qml:179
#, kde-format
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
@@ -294,12 +308,24 @@ msgstr ""
"Las GPU NVIDIA requieren al menos la versión 565.77 del controlador, la "
"versión actual es %1"
#: dashboard/qml/Main.qml:167
#: dashboard/qml/Main.qml:185
#, kde-format
msgid "More info"
msgstr "Más información"
#: dashboard/qml/Main.qml:175
#: dashboard/qml/Main.qml:193
#, 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 ""
"Use the Mesa (radv) driver for AMD GPUs\n"
@@ -308,7 +334,7 @@ msgstr ""
"Usa el controlador Mesa (radv) para las GPU AMD\n"
"La codificación por hardware con vaapi no funciona con AMDVLK y AMDGPU-PRO"
#: dashboard/qml/Main.qml:183
#: dashboard/qml/Main.qml:209
#, kde-format
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
@@ -318,127 +344,127 @@ msgstr ""
"en VR.\n"
"Instala xrizer o OpenComposite."
#: dashboard/qml/Main.qml:191
#: dashboard/qml/Main.qml:217
#, kde-format
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
msgstr ""
"Steam está instalado mediante snap. Los Snaps no son compatibles con WiVRn."
#: dashboard/qml/Main.qml:199
#: dashboard/qml/Main.qml:225
#, kde-format
msgid ""
"Steam is installed as a flatpak but does not have sufficient permissions."
msgstr ""
"Steam está instalado con flatpak, pero no tiene los suficientes permisos."
#: dashboard/qml/Main.qml:214
#: dashboard/qml/Main.qml:240
#, kde-format
msgid "Restart the server for configuration changes to take effect"
msgstr "Reinicia el servidor para que los cambios surtan efecto"
#: dashboard/qml/Main.qml:220
#: dashboard/qml/Main.qml:246
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "Reiniciar ahora"
#: dashboard/qml/Main.qml:245
#: dashboard/qml/Main.qml:271
#, kde-format
msgid "Server failed to start"
msgstr "El servidor no pudo iniciar"
#: dashboard/qml/Main.qml:251 dashboard/qml/TroubleshootPage.qml:89
#: dashboard/qml/Main.qml:277 dashboard/qml/TroubleshootPage.qml:89
#, kde-format
msgid "Open server logs"
msgstr "Abrir registros del servidor"
#: dashboard/qml/Main.qml:277
#: dashboard/qml/Main.qml:303
#, kde-format
msgid "Server status"
msgstr "Estado del servidor"
#: dashboard/qml/Main.qml:283
#: dashboard/qml/Main.qml:309
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "En ejecución"
#: dashboard/qml/Main.qml:296
#: dashboard/qml/Main.qml:322
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "Emparejando"
#: dashboard/qml/Main.qml:316
#: dashboard/qml/Main.qml:342
#, kde-format
msgid "Headset status"
msgstr "Estado del visor"
#: dashboard/qml/Main.qml:323
#: dashboard/qml/Main.qml:349
#, kde-format
msgctxt "label for headset name/status under server running switch"
msgid "Headset"
msgstr "Visor"
#: dashboard/qml/Main.qml:326
#: dashboard/qml/Main.qml:352
#, kde-format
msgid "Not connected"
msgstr "No conectado"
#: dashboard/qml/Main.qml:330
#: dashboard/qml/Main.qml:356
#, kde-format
msgid "Disconnect"
msgstr "Desconectar"
#: dashboard/qml/Main.qml:339 dashboard/qml/Main.qml:347
#: dashboard/qml/Main.qml:354
#: dashboard/qml/Main.qml:365 dashboard/qml/Main.qml:373
#: dashboard/qml/Main.qml:380
#, kde-format
msgctxt "label for USB status or connect button"
msgid "USB"
msgstr "USB"
#: dashboard/qml/Main.qml:340
#: dashboard/qml/Main.qml:366
#, kde-format
msgctxt "usb connect button"
msgid "Connect (wired)"
msgstr "Conectar (cableado)"
#: dashboard/qml/Main.qml:357 dashboard/qml/WizardPage.qml:339
#: dashboard/qml/Main.qml:383 dashboard/qml/WizardPage.qml:339
#, kde-format
msgid "No headset is connected or your headset is not in developer mode"
msgstr "No hay ningún visor conectado o tu visor no está en modo desarrollador"
#: dashboard/qml/Main.qml:378
#: dashboard/qml/Main.qml:404
#, kde-format
msgid "Steam information"
msgstr "Información de Steam"
#: dashboard/qml/Main.qml:394
#: dashboard/qml/Main.qml:420
#, kde-format
msgid "Wizard"
msgstr "Asistente"
#: dashboard/qml/Main.qml:400
#: dashboard/qml/Main.qml:426
#, kde-format
msgid "Install the app"
msgstr "Instalar aplicación"
#: dashboard/qml/Main.qml:419 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:445 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "Ajustes"
#: dashboard/qml/Main.qml:425
#: dashboard/qml/Main.qml:451
#, kde-format
msgid "About"
msgstr "Acerca de"
#: dashboard/qml/Main.qml:430 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:456 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "Solucionar problemas"
#: dashboard/qml/Main.qml:437
#: dashboard/qml/Main.qml:463
#, kde-format
msgid "Version %1"
msgstr "Versión %1"
@@ -946,12 +972,12 @@ msgstr "Finalizar"
msgid "Finished"
msgstr "Terminado"
#: dashboard/wivrn_server.cpp:538
#: dashboard/wivrn_server.cpp:540
#, kde-format
msgid "xrizer"
msgstr "xrizer"
#: dashboard/wivrn_server.cpp:539
#: dashboard/wivrn_server.cpp:541
#, kde-format
msgid "Open Composite"
msgstr "Open Composite"
+114 -114
View File
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn 0.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-12-29 15:56+0100\n"
"POT-Creation-Date: 2026-02-15 00:02+0100\n"
"PO-Revision-Date: 2025-11-19 20:23+0100\n"
"Last-Translator: Álvaro De Quinta <blackcherry@danwin1210.de>\n"
"Language-Team: Spanish <>\n"
@@ -22,26 +22,26 @@ msgstr ""
msgid "No supported swapchain format"
msgstr "Formato de swapchain no compatible"
#: client/scenes/app_launcher.cpp:128
#: client/scenes/app_launcher.cpp:127
msgid "Connected to WiVRn server"
msgstr "Conectado al servidor WiVRn"
#: client/scenes/app_launcher.cpp:130
#: client/scenes/app_launcher.cpp:129
#, c++-format
msgid "Connected to {}"
msgstr "Connectado a {}"
#: client/scenes/app_launcher.cpp:136
#: client/scenes/app_launcher.cpp:135
msgid "Start an application on the server to start streaming."
msgstr "Inicia una aplicación en el servidor para empezar la retransmisión."
#: client/scenes/app_launcher.cpp:146
#: client/scenes/app_launcher.cpp:145
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Inicia una aplicación en tu ordenador o selecciona una para empezar la "
"retransmisión."
#: client/scenes/app_launcher.cpp:148
#: client/scenes/app_launcher.cpp:147
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr ""
@@ -70,11 +70,11 @@ msgstr "No se puede conectar a {} ({}): {}"
msgid "Waiting for connection"
msgstr "Esperando conexión"
#: client/scenes/lobby.cpp:1319
#: client/scenes/lobby.cpp:1307
msgid "Passthrough"
msgstr "Exterior"
#: client/scenes/lobby.cpp:1331
#: client/scenes/lobby.cpp:1319
msgid "Default environment"
msgstr "Entorno por defecto"
@@ -94,13 +94,13 @@ msgid "Disabled"
msgstr "Deshabilitado"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
#: client/scenes/stream_gui.cpp:1015
#: client/scenes/stream_gui.cpp:992
msgid "Disconnect"
msgstr "Desconectar"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
#: client/scenes/lobby_gui_customize.cpp:844
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:988
msgid "Close"
msgstr "Cerrar"
@@ -138,7 +138,7 @@ msgid "TCP only"
msgstr "Solo TCP"
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:968
#: client/scenes/stream_gui.cpp:944
msgid "Cancel"
msgstr "Cancelar"
@@ -183,17 +183,17 @@ msgstr "Idioma"
msgid "System language"
msgstr "Idioma del sistema"
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:413
msgid "Refresh rate"
msgstr "Frecuencia de actualización"
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419
#: client/scenes/stream_gui.cpp:413 client/scenes/stream_gui.cpp:415
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automática"
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:423
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -202,7 +202,7 @@ msgstr ""
"aplicación.\n"
"Puede causar parpadeos cuando ocurre un cambio."
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:441
msgid "Minimum refresh rate"
msgstr "Tasa mínima de refresco"
@@ -277,62 +277,62 @@ msgstr "Codec"
msgid "10-bit"
msgstr "10-bit"
#: client/scenes/lobby_gui.cpp:768
#: client/scenes/lobby_gui.cpp:769
msgid "Bitrate"
msgstr "Bitrate"
#: client/scenes/lobby_gui.cpp:772
#: client/scenes/lobby_gui.cpp:773
#, c++-format
msgid "{}Mbit/s"
msgstr "{}Mbit/s"
#: client/scenes/lobby_gui.cpp:783
#: client/scenes/lobby_gui.cpp:784
msgid "High power mode"
msgstr "Modo de alto rendimiento"
#: client/scenes/lobby_gui.cpp:786
#: client/scenes/lobby_gui.cpp:787
msgid "Increase power usage to allow higher resolution and refresh rate"
msgstr ""
"Incrementa el uso de energía para permitir una mayor resolución y frecuencia "
"de refresco"
#: client/scenes/lobby_gui.cpp:792
#: client/scenes/lobby_gui.cpp:793
msgid "Enable microphone"
msgstr "Activar micrófono"
#: client/scenes/lobby_gui.cpp:801
#: client/scenes/lobby_gui.cpp:802
msgid "Unprocessed Microphone Audio"
msgstr "Entrada de audio sin procesar"
#: client/scenes/lobby_gui.cpp:807
#: client/scenes/lobby_gui.cpp:808
msgid "Force disable audio filters, such as noise cancellation"
msgstr ""
"Forzar la deshabilitación de filtros de audio, asi como la cancelación de "
"ruido"
#: client/scenes/lobby_gui.cpp:814
#: client/scenes/lobby_gui.cpp:815
msgid "Enable hand tracking"
msgstr "Activar seguimiento de manos"
#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856
#: client/scenes/lobby_gui.cpp:821 client/scenes/lobby_gui.cpp:832
#: client/scenes/lobby_gui.cpp:842 client/scenes/lobby_gui.cpp:857
#: client/scenes/lobby_gui_customize.cpp:640
msgid "This feature is not supported by your headset"
msgstr "Esta función no es compatible con tu visor"
#: client/scenes/lobby_gui.cpp:825
#: client/scenes/lobby_gui.cpp:826
msgid "Enable eye tracking"
msgstr "Activar seguimiento ocular"
#: client/scenes/lobby_gui.cpp:836
#: client/scenes/lobby_gui.cpp:837
msgid "Enable face tracking"
msgstr "Activar seguimiento facial"
#: client/scenes/lobby_gui.cpp:848
#: client/scenes/lobby_gui.cpp:849
msgid "Enable body tracking"
msgstr "Habilitar seguimiento corporal"
#: client/scenes/lobby_gui.cpp:861
#: client/scenes/lobby_gui.cpp:862
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -343,11 +343,11 @@ msgstr ""
"si no el seguimiento corporal será medido por la posición de los controles y "
"el visor"
#: client/scenes/lobby_gui.cpp:871
#: client/scenes/lobby_gui.cpp:872
msgid "Enable lower body tracking"
msgstr "Habilitar seguimiento de cintura para abajo"
#: client/scenes/lobby_gui.cpp:877
#: client/scenes/lobby_gui.cpp:878
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -358,11 +358,11 @@ msgstr ""
"Requiere habilitar 'Seguimiento de manos y del cuerpo' en los ajustes de "
"movimiento de Quest"
#: client/scenes/lobby_gui.cpp:880
#: client/scenes/lobby_gui.cpp:881
msgid "Enable hip tracking"
msgstr "Habilitar seguimiento de cintura"
#: client/scenes/lobby_gui.cpp:886
#: client/scenes/lobby_gui.cpp:887
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -370,11 +370,11 @@ msgstr ""
"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"
#: client/scenes/lobby_gui.cpp:895
#: client/scenes/lobby_gui.cpp:896
msgid "Enable in-stream window"
msgstr "Habilitar ventana mientras se juega"
#: client/scenes/lobby_gui.cpp:898
#: client/scenes/lobby_gui.cpp:899
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
@@ -382,25 +382,25 @@ msgstr ""
"Permite que la ventana de configuración se muestre mientras se juega.\n"
"Si se habilita, la ventana se activará al presionar ambos joysticks."
#: client/scenes/lobby_gui.cpp:902
#: client/scenes/lobby_gui.cpp:903
msgid "Extended configuration values"
msgstr "Extender valores de configuración"
#: client/scenes/lobby_gui.cpp:905
#: client/scenes/lobby_gui.cpp:906
msgid "Allows unsafe configuration values, use at your own risk."
msgstr ""
"Permitir valores de configuración inseguros, usar bajo propia "
"responsabilidad."
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479
#: client/scenes/lobby_gui.cpp:920 client/scenes/stream_gui.cpp:475
msgid "OpenXR post-processing"
msgstr "Post-procesamiento de OpenXR"
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483
#: client/scenes/lobby_gui.cpp:924 client/scenes/stream_gui.cpp:479
msgid "Supersampling"
msgstr "Sobremuestreo"
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504
#: client/scenes/lobby_gui.cpp:944 client/scenes/stream_gui.cpp:500
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -409,11 +409,11 @@ msgstr ""
"Útil cuando la resolución de entrada es alta comparada con la pantalla del "
"visor"
#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:509
#: client/scenes/lobby_gui.cpp:949 client/scenes/stream_gui.cpp:505
msgid "Sharpening"
msgstr "Nitidez"
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530
#: client/scenes/lobby_gui.cpp:969 client/scenes/stream_gui.cpp:526
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -422,129 +422,129 @@ msgstr ""
"Útil cuando la resolución de entrada es baja comparada con la pantalla del "
"visor"
#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373
#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:372
msgid "CPU time"
msgstr "Tiempo de CPU"
#: client/scenes/lobby_gui.cpp:1156
#: client/scenes/lobby_gui.cpp:1157
msgid "CPU time [ms]"
msgstr "Tiempo de CPU [ms]"
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374
#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:373
msgid "GPU time"
msgstr "Tiempo de GPU"
#: client/scenes/lobby_gui.cpp:1170
#: client/scenes/lobby_gui.cpp:1171
msgid "GPU time [ms]"
msgstr "Tiempo de GPU [ms]"
#: client/scenes/lobby_gui.cpp:1234
#: client/scenes/lobby_gui.cpp:1235
msgid "Enable the microphone?"
msgstr "¿Habilitar micrófono?"
#: client/scenes/lobby_gui.cpp:1239
#: client/scenes/lobby_gui.cpp:1240
msgid "Enable eye tracking?"
msgstr "¿Habilitar seguimiento ocular?"
#: client/scenes/lobby_gui.cpp:1244
#: client/scenes/lobby_gui.cpp:1245
msgid "Enable face tracking?"
msgstr "¿Habilitar seguimiento facial?"
#: client/scenes/lobby_gui.cpp:1249
#: client/scenes/lobby_gui.cpp:1250
msgid "Enable body tracking?"
msgstr "¿Habilitar seguimiento corporal?"
#: client/scenes/lobby_gui.cpp:1257
#: client/scenes/lobby_gui.cpp:1258
msgid "Welcome to WiVRn"
msgstr "Bienvenido a WiVRn"
#: client/scenes/lobby_gui.cpp:1285
#: client/scenes/lobby_gui.cpp:1286
msgid "Yes"
msgstr "Sí"
#: client/scenes/lobby_gui.cpp:1292
#: client/scenes/lobby_gui.cpp:1293
msgid "No"
msgstr "No"
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
#: client/scenes/lobby_gui.cpp:1312 client/scenes/lobby_gui.cpp:1958
msgid "Licenses"
msgstr "Licencias"
#: client/scenes/lobby_gui.cpp:1587
#: client/scenes/lobby_gui.cpp:1588
msgid "Microphone is enabled"
msgstr "Micrófono activado"
#: client/scenes/lobby_gui.cpp:1588
#: client/scenes/lobby_gui.cpp:1589
msgid "Microphone is disabled"
msgstr "Micrófono desactivado"
#: client/scenes/lobby_gui.cpp:1597
#: client/scenes/lobby_gui.cpp:1598
msgid "Hand tracking is enabled"
msgstr "Seguimiento de manos activado"
#: client/scenes/lobby_gui.cpp:1598
#: client/scenes/lobby_gui.cpp:1599
msgid "Hand tracking is disabled"
msgstr "Seguimiento de manos desactivado"
#: client/scenes/lobby_gui.cpp:1607
#: client/scenes/lobby_gui.cpp:1608
msgid "Eye tracking is enabled"
msgstr "Seguimiento ocular activado"
#: client/scenes/lobby_gui.cpp:1608
#: client/scenes/lobby_gui.cpp:1609
msgid "Eye tracking is disabled"
msgstr "Seguimiento ocular desactivado"
#: client/scenes/lobby_gui.cpp:1618
#: client/scenes/lobby_gui.cpp:1619
msgid "Face tracking is enabled"
msgstr "Seguimiento facial activado"
#: client/scenes/lobby_gui.cpp:1619
#: client/scenes/lobby_gui.cpp:1620
msgid "Face tracking is disabled"
msgstr "Seguimiento facial desactivado"
#: client/scenes/lobby_gui.cpp:1633
#: client/scenes/lobby_gui.cpp:1634
msgid "Body tracking is enabled"
msgstr "Seguimiento corporal está habilitado"
#: client/scenes/lobby_gui.cpp:1634
#: client/scenes/lobby_gui.cpp:1635
msgid "Body tracking is disabled"
msgstr "Seguimiento corporal está deshabilitado"
#: client/scenes/lobby_gui.cpp:1650
#: client/scenes/lobby_gui.cpp:1651
msgid "Add server"
msgstr "Agregar servidor"
#: client/scenes/lobby_gui.cpp:1936
#: client/scenes/lobby_gui.cpp:1937
msgid "Server list"
msgstr "Lista de servidores"
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996
#: client/scenes/lobby_gui.cpp:1940 client/scenes/stream_gui.cpp:973
msgid "Settings"
msgstr "Configuración"
#: client/scenes/lobby_gui.cpp:1942
#: client/scenes/lobby_gui.cpp:1943
msgid "Post-processing"
msgstr "Post-procesamiento"
#: client/scenes/lobby_gui.cpp:1945
#: client/scenes/lobby_gui.cpp:1946
msgid "Customize"
msgstr "Personalización"
#: client/scenes/lobby_gui.cpp:1949
#: client/scenes/lobby_gui.cpp:1950
msgid "Debug"
msgstr "Depuración"
#: client/scenes/lobby_gui.cpp:1954
#: client/scenes/lobby_gui.cpp:1955
msgid "About"
msgstr "Acerca de"
#: client/scenes/lobby_gui.cpp:1960
#: client/scenes/lobby_gui.cpp:1961
msgid "Exit"
msgstr "Salir"
#: client/scenes/lobby_gui.cpp:1977
#: client/scenes/lobby_gui.cpp:1978
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
@@ -552,7 +552,7 @@ msgstr ""
"Pulsa el botón de agarre o pon tu palma hacia arriba\n"
"para mover la ventana principal"
#: client/scenes/lobby_gui.cpp:1979
#: client/scenes/lobby_gui.cpp:1980
msgid "Press the grip button to move the main window"
msgstr "Pulsa el botón de agarre para mover la ventana principal"
@@ -631,160 +631,160 @@ msgstr "Descargar más entornos"
msgid "Open local glTF model"
msgstr "Abrir modelo glTF local"
#: client/scenes/stream_gui.cpp:174
#: client/scenes/stream_gui.cpp:176
msgid "Defoveate"
msgstr "Desfovear"
#: client/scenes/stream_gui.cpp:176
#: client/scenes/stream_gui.cpp:178
msgid "Network"
msgstr "Red"
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
msgid "Download"
msgstr "Descargar"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
#: client/scenes/stream_gui.cpp:179 client/scenes/stream_gui.cpp:371
msgid "Upload"
msgstr "Subir"
#: client/scenes/stream_gui.cpp:246
#: client/scenes/stream_gui.cpp:248
#, c++-format
msgid "Decoder {}"
msgstr "Decodificador {}"
#: client/scenes/stream_gui.cpp:258
#: client/scenes/stream_gui.cpp:260
msgid "Timings [ms]"
msgstr "Tiempos [ms]"
#: client/scenes/stream_gui.cpp:318
#: client/scenes/stream_gui.cpp:320
msgid "Encode"
msgstr "Codificar"
#: client/scenes/stream_gui.cpp:319
#: client/scenes/stream_gui.cpp:321
msgid "Send"
msgstr "Enviar"
#: client/scenes/stream_gui.cpp:320
#: client/scenes/stream_gui.cpp:322
msgid "Receive"
msgstr "Recibir"
#: client/scenes/stream_gui.cpp:321
#: client/scenes/stream_gui.cpp:323
msgid "Decode"
msgstr "Decodificar"
#: client/scenes/stream_gui.cpp:322
#: client/scenes/stream_gui.cpp:324
msgid "Blitted"
msgstr "Copiado"
#: client/scenes/stream_gui.cpp:323
#: client/scenes/stream_gui.cpp:325
msgid "Displayed"
msgstr "Mostrado"
#: client/scenes/stream_gui.cpp:324
#: client/scenes/stream_gui.cpp:326
msgid "Predicted"
msgstr "Previsto"
#: client/scenes/stream_gui.cpp:344
#: client/scenes/stream_gui.cpp:345
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Latencia estimada de movimiento a fotones: {}ms"
#: client/scenes/stream_gui.cpp:351
#: client/scenes/stream_gui.cpp:350
msgid "Press the grip button to move the window"
msgstr "Pulsa el botón de agarre para mover la ventana"
#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:924
#: client/scenes/stream_gui.cpp:352 client/scenes/stream_gui.cpp:900
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Pulsa ambos joysticks para mostrar la ventana de WiVRn"
#: client/scenes/stream_gui.cpp:375
#: client/scenes/stream_gui.cpp:374
msgid "Motion to photon latency"
msgstr "Latencia entre el movimiento y la imagen mostrada"
#: client/scenes/stream_gui.cpp:464
#: client/scenes/stream_gui.cpp:460
msgid "Bitrate:"
msgstr "Bitrate:"
#: client/scenes/stream_gui.cpp:474
#: client/scenes/stream_gui.cpp:470
msgid "Click to adjust bitrate"
msgstr "Haga click para ajustar el bitrate"
#: client/scenes/stream_gui.cpp:537
#: client/scenes/stream_gui.cpp:534
msgid "Foveation center override"
msgstr "Reajustar el centro de la fóvea"
#: client/scenes/stream_gui.cpp:540
#: client/scenes/stream_gui.cpp:537
msgid "Enable"
msgstr "Habilitar"
#: client/scenes/stream_gui.cpp:548 client/scenes/stream_gui.cpp:620
#: client/scenes/stream_gui.cpp:545 client/scenes/stream_gui.cpp:616
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Altura {:.1f} °"
#: client/scenes/stream_gui.cpp:549 client/scenes/stream_gui.cpp:621
#: client/scenes/stream_gui.cpp:546 client/scenes/stream_gui.cpp:617
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Distancia {:.2f} m"
#: client/scenes/stream_gui.cpp:550
#: client/scenes/stream_gui.cpp:547
msgid "Default"
msgstr "Por defecto"
#: client/scenes/stream_gui.cpp:561
#: client/scenes/stream_gui.cpp:558
msgid "Change"
msgstr "Cambiar"
#: client/scenes/stream_gui.cpp:594
#: client/scenes/stream_gui.cpp:590
msgid "Use the right thumbstick to adjust the bitrate"
msgstr "Use el stick derecho para ajustar el bitrate"
#: client/scenes/stream_gui.cpp:595
#: client/scenes/stream_gui.cpp:591
msgid "Press A to go back"
msgstr "Pulse A para volver"
#: client/scenes/stream_gui.cpp:596
#: client/scenes/stream_gui.cpp:592
#, c++-format
msgid "Bitrate: {}Mbit/s"
msgstr "Bitrate: {}Mbit/s"
#: client/scenes/stream_gui.cpp:618
#: client/scenes/stream_gui.cpp:614
msgid "Use the thumbsticks to move the foveation center"
msgstr "Usa los joysticks para mover el centro de la fóvea"
#: client/scenes/stream_gui.cpp:619
#: client/scenes/stream_gui.cpp:615
msgid "Press A to save or B to cancel"
msgstr "Pulsa A para guardar o B para cancelar"
#: client/scenes/stream_gui.cpp:677
#: client/scenes/stream_gui.cpp:673
msgid "Running XR applications:"
msgstr "Aplicaciones XR ejecutandose:"
#: client/scenes/stream_gui.cpp:694
#: client/scenes/stream_gui.cpp:690
msgid "Overlays"
msgstr "Superposiciones"
#: client/scenes/stream_gui.cpp:733
#: client/scenes/stream_gui.cpp:729
msgid "Request to quit, may be ignored by the application"
msgstr "Pedir salir, puede ser ignorado por la aplicación"
#: client/scenes/stream_gui.cpp:983
#: client/scenes/stream_gui.cpp:959
msgid "Applications"
msgstr "Aplicaciones"
#: client/scenes/stream_gui.cpp:986
#: client/scenes/stream_gui.cpp:962
msgid "Start"
msgstr "Iniciar"
#: client/scenes/stream_gui.cpp:999
#: client/scenes/stream_gui.cpp:976
msgid "Stats"
msgstr "Estadísticas"
#: client/scenes/stream_gui.cpp:1005
#: client/scenes/stream_gui.cpp:982
msgid "Statistics overlay"
msgstr "Superponer stats"
#: client/scenes/stream_gui.cpp:1008
#: client/scenes/stream_gui.cpp:985
msgid "Compact view"
msgstr "Vista compacta"
+76 -50
View File
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-01-06 17:50+0100\n"
"PO-Revision-Date: 2026-01-06 17:52+0100\n"
"POT-Creation-Date: 2026-02-16 18:43+0100\n"
"PO-Revision-Date: 2026-02-16 21:47+0100\n"
"Last-Translator: Guillaume Meunier <guillaume.meunier@centraliens.net>\n"
"Language-Team: French <>\n"
"Language: French\n"
@@ -67,33 +67,28 @@ msgstr "La commande « adb install » a échoué : code de retour %1"
msgid "Installation successful"
msgstr "Installation réussie"
#: dashboard/main.cpp:28 dashboard/qml/Main.qml:12
#, kde-format
msgid "WiVRn dashboard"
msgstr "Tableau de bord de WiVRn"
#: dashboard/main.cpp:32
#: dashboard/main.cpp:26
#, kde-format
msgctxt "@title"
msgid "WiVRn"
msgstr "WiVRn"
#: dashboard/main.cpp:34
#: dashboard/main.cpp:28
#, kde-format
msgid "WiVRn server"
msgstr "Serveur WiVRn"
#: dashboard/main.cpp:36
#: dashboard/main.cpp:30
#, kde-format
msgid "(c) 2022-2026 WiVRn development team"
msgstr "(c) 2022-2026 l'équipe de développement WiVRn"
#: dashboard/main.cpp:43
#: dashboard/main.cpp:40
#, kde-format
msgid "Monado"
msgstr "Monado"
#: dashboard/main.cpp:44
#: dashboard/main.cpp:41
#, kde-format
msgid "OpenXR runtime"
msgstr "Runtime OpenXR"
@@ -122,8 +117,8 @@ msgstr "Vérification de la dernière version..."
msgid "No APK is available for this version"
msgstr "Aucun APK n'est disponible pour cette version"
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:350
#: dashboard/qml/Main.qml:408 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:376
#: dashboard/qml/Main.qml:434 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/WizardPage.qml:337
#, kde-format
msgid "ADB is not installed"
@@ -165,7 +160,7 @@ msgstr "Réinstaller WiVRn"
msgid "Install WiVRn"
msgstr "Installer WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:413
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:439
#, kde-format
msgid "Headsets"
msgstr "Casques"
@@ -262,28 +257,47 @@ msgstr "Appairer un nouveau casque"
msgid "Headset statistics"
msgstr "Statistiques"
#: dashboard/qml/Main.qml:124
#: dashboard/qml/Main.qml:12
#, kde-format
msgid "WiVRn dashboard"
msgstr "Tableau de bord de WiVRn"
#: dashboard/qml/Main.qml:51
#, kde-format
msgid "Quit WiVRn"
msgstr "Quitter WiVRn"
#: dashboard/qml/Main.qml:52
#, kde-format
msgid ""
"The WiVRn server is active.\n"
"Closing the window will terminate it."
msgstr ""
"Le serveur WiVRn est actif.\n"
"Fermer la fenêtre va le quitter."
#: dashboard/qml/Main.qml:142
#, kde-format
msgid "Avahi daemon is not installed"
msgstr "Avahi daemon n'est pas installé"
#: dashboard/qml/Main.qml:132
#: dashboard/qml/Main.qml:150
#, kde-format
msgid "Avahi daemon is not started"
msgstr "Avahi daemon n'est pas démarré"
#: dashboard/qml/Main.qml:139 dashboard/qml/Main.qml:153
#: dashboard/qml/Main.qml:205
#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171
#: dashboard/qml/Main.qml:231
#, kde-format
msgid "Fix it"
msgstr "Corriger"
#: dashboard/qml/Main.qml:147
#: dashboard/qml/Main.qml:165
#, kde-format
msgid "Firewall may not allow port 9757"
msgstr "Le pare-feu pourrait ne pas autoriser le port 9757"
#: dashboard/qml/Main.qml:161
#: dashboard/qml/Main.qml:179
#, kde-format
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
@@ -291,12 +305,24 @@ msgstr ""
"Les GPUs NVIDIA nécessitent au moins le driver 565.77, la version actuelle "
"est %1."
#: dashboard/qml/Main.qml:167
#: dashboard/qml/Main.qml:185
#, kde-format
msgid "More info"
msgstr "Plus d'infos"
#: dashboard/qml/Main.qml:175
#: dashboard/qml/Main.qml:193
#, 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 ""
"Use the Mesa (radv) driver for AMD GPUs\n"
@@ -305,7 +331,7 @@ msgstr ""
"Utilisez le driver Mesa (redv) pour les GPUs AMD\n"
"L'encodage matériel avec vaapi ne fonctionne pas avec AMDVLK et AMDGPU-PRO"
#: dashboard/qml/Main.qml:183
#: dashboard/qml/Main.qml:209
#, kde-format
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
@@ -315,14 +341,14 @@ msgstr ""
"pourront pas charger le mode VR.\n"
"Veuillez installer xrizer ou OpenComposite."
#: dashboard/qml/Main.qml:191
#: dashboard/qml/Main.qml:217
#, kde-format
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
msgstr ""
"Steam est installé en tant que snap. Les snaps ne sont pas compatibles avec "
"WiVRn."
#: dashboard/qml/Main.qml:199
#: dashboard/qml/Main.qml:225
#, kde-format
msgid ""
"Steam is installed as a flatpak but does not have sufficient permissions."
@@ -330,114 +356,114 @@ msgstr ""
"Steam est installé en tant que flatpak mais n'a pas les autorisations "
"nécessaires."
#: dashboard/qml/Main.qml:214
#: dashboard/qml/Main.qml:240
#, kde-format
msgid "Restart the server for configuration changes to take effect"
msgstr "Redémarez le serveur pour appliquer les changements"
#: dashboard/qml/Main.qml:220
#: dashboard/qml/Main.qml:246
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "Redémarrer"
#: dashboard/qml/Main.qml:245
#: dashboard/qml/Main.qml:271
#, kde-format
msgid "Server failed to start"
msgstr "Le serveur n'a pas pu démarrer"
#: dashboard/qml/Main.qml:251 dashboard/qml/TroubleshootPage.qml:89
#: dashboard/qml/Main.qml:277 dashboard/qml/TroubleshootPage.qml:89
#, kde-format
msgid "Open server logs"
msgstr "Ouvrir les logs du serveur"
#: dashboard/qml/Main.qml:277
#: dashboard/qml/Main.qml:303
#, kde-format
msgid "Server status"
msgstr "Serveur"
#: dashboard/qml/Main.qml:283
#: dashboard/qml/Main.qml:309
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "Démarré"
#: dashboard/qml/Main.qml:296
#: dashboard/qml/Main.qml:322
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "Appairage"
#: dashboard/qml/Main.qml:316
#: dashboard/qml/Main.qml:342
#, kde-format
msgid "Headset status"
msgstr "Casque"
#: dashboard/qml/Main.qml:323
#: dashboard/qml/Main.qml:349
#, kde-format
msgctxt "label for headset name/status under server running switch"
msgid "Headset"
msgstr "Casque"
#: dashboard/qml/Main.qml:326
#: dashboard/qml/Main.qml:352
#, kde-format
msgid "Not connected"
msgstr "Déconnecté"
#: dashboard/qml/Main.qml:330
#: dashboard/qml/Main.qml:356
#, kde-format
msgid "Disconnect"
msgstr "Déconnecter"
#: dashboard/qml/Main.qml:339 dashboard/qml/Main.qml:347
#: dashboard/qml/Main.qml:354
#: dashboard/qml/Main.qml:365 dashboard/qml/Main.qml:373
#: dashboard/qml/Main.qml:380
#, kde-format
msgctxt "label for USB status or connect button"
msgid "USB"
msgstr "USB"
#: dashboard/qml/Main.qml:340
#: dashboard/qml/Main.qml:366
#, kde-format
msgctxt "usb connect button"
msgid "Connect (wired)"
msgstr "Connecter (filaire)"
#: dashboard/qml/Main.qml:357 dashboard/qml/WizardPage.qml:339
#: dashboard/qml/Main.qml:383 dashboard/qml/WizardPage.qml:339
#, kde-format
msgid "No headset is connected or your headset is not in developer mode"
msgstr "Le casque n'est pas connecté ou n'est pas en mode développeur"
#: dashboard/qml/Main.qml:378
#: dashboard/qml/Main.qml:404
#, kde-format
msgid "Steam information"
msgstr "Informations pour Steam"
#: dashboard/qml/Main.qml:394
#: dashboard/qml/Main.qml:420
#, kde-format
msgid "Wizard"
msgstr "Assistant"
#: dashboard/qml/Main.qml:400
#: dashboard/qml/Main.qml:426
#, kde-format
msgid "Install the app"
msgstr "Installer l'appli"
#: dashboard/qml/Main.qml:419 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:445 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "Paramètres"
#: dashboard/qml/Main.qml:425
#: dashboard/qml/Main.qml:451
#, kde-format
msgid "About"
msgstr "À propos"
#: dashboard/qml/Main.qml:430 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:456 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "Dépannage"
#: dashboard/qml/Main.qml:437
#: dashboard/qml/Main.qml:463
#, kde-format
msgid "Version %1"
msgstr "Version %1"
@@ -948,12 +974,12 @@ msgstr "Finir"
msgid "Finished"
msgstr "Terminé"
#: dashboard/wivrn_server.cpp:538
#: dashboard/wivrn_server.cpp:540
#, kde-format
msgid "xrizer"
msgstr "xrizer"
#: dashboard/wivrn_server.cpp:539
#: dashboard/wivrn_server.cpp:541
#, kde-format
msgid "Open Composite"
msgstr "Open Composite"
+2 -2
View File
@@ -243,7 +243,7 @@ msgid ""
msgstr ""
"Les valeurs élevées concentrent la qualité là où se\n"
"porte le regard, ce qui diminue la latence, réduit la\n"
"consommation d'énergé et améliore la qualité."
"consommation d'énergie et améliore la qualité."
#: client/scenes/lobby_gui.cpp:700
msgid ""
@@ -252,7 +252,7 @@ msgid ""
msgstr ""
"Les valeurs élevées concentrent la qualité au centre\n"
"de l'image, ce qui diminue la latence, réduit la\n"
"consommation d'énergé et améliore la qualité."
"consommation d'énergie et améliore la qualité."
#: client/scenes/lobby_gui.cpp:709
msgctxt "Codec"
+140 -50
View File
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-12-15 12:22+0900\n"
"POT-Creation-Date: 2026-02-17 12:42+0900\n"
"PO-Revision-Date: 2025-04-10 07:14+0900\n"
"Last-Translator: Mitsuami Megane <hello@mitsua.me>\n"
"Language-Team: Japanese <>\n"
@@ -62,10 +62,39 @@ msgstr "「adb install」コマンドは失敗しました、コード%1"
msgid "Installation successful"
msgstr "インストール成功"
#: dashboard/main.cpp:27 dashboard/qml/Main.qml:12
#: dashboard/main.cpp:26
#, kde-format
msgid "WiVRn dashboard"
msgstr "WiVRnダッシュボード"
msgctxt "@title"
msgid "WiVRn"
msgstr "WiVRn"
#: dashboard/main.cpp:28
#, kde-format
msgid "WiVRn server"
msgstr "WiVRnサーバー"
#: dashboard/main.cpp:30
#, kde-format
msgid "(c) 2022-2026 WiVRn development team"
msgstr "(c) 2022-2026 WiVRn開発チーム"
#: dashboard/main.cpp:40
#, kde-format
msgid "Monado"
msgstr "Monado"
#: dashboard/main.cpp:41
#, kde-format
msgid "OpenXR runtime"
msgstr "OpenXRランタイム"
#: dashboard/qml/About.qml:17 dashboard/qml/ApkInstallPage.qml:65
#: dashboard/qml/HeadsetStatsPage.qml:36 dashboard/qml/HeadsetsPage.qml:183
#: dashboard/qml/TroubleshootPage.qml:71
#, kde-format
msgctxt "go back to the home page"
msgid "Back"
msgstr "戻る"
#: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137
#, kde-format
@@ -83,8 +112,8 @@ msgstr "最新リリースを確認中"
msgid "No APK is available for this version"
msgstr "現在バージョン用の公式APKは提供されていません"
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:321
#: dashboard/qml/Main.qml:386 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:376
#: dashboard/qml/Main.qml:434 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/WizardPage.qml:337
#, kde-format
msgid "ADB is not installed"
@@ -105,13 +134,6 @@ msgstr ""
"自分でクライエントをビルドするには、<a href=\"https://github.com/WiVRn/WiVRn/"
"blob/master/docs/building.md#client-headset\">マニュアル</a>をご覧ください。"
#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetStatsPage.qml:36
#: dashboard/qml/HeadsetsPage.qml:183 dashboard/qml/TroubleshootPage.qml:71
#, kde-format
msgctxt "go back to the home page"
msgid "Back"
msgstr "戻る"
#: dashboard/qml/ConnectUsbDialog.qml:11
#, kde-format
msgid "Select your headset"
@@ -137,7 +159,7 @@ msgstr "WiVRnをインストールする"
msgid "Headset statistics"
msgstr "HMDの統計情報"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:391
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:439
#, kde-format
msgid "Headsets"
msgstr "HMD"
@@ -223,28 +245,47 @@ msgstr "ペアリングを有効化する"
msgid "Pair a new headset"
msgstr "新しいHMDをペアリングする"
#: dashboard/qml/Main.qml:120
#: dashboard/qml/Main.qml:12
#, kde-format
msgid "WiVRn dashboard"
msgstr "WiVRnダッシュボード"
#: dashboard/qml/Main.qml:51
#, kde-format
msgid "Quit WiVRn"
msgstr "WiVRnを終了"
#: dashboard/qml/Main.qml:52
#, kde-format
msgid ""
"The WiVRn server is active.\n"
"Closing the window will terminate it."
msgstr ""
"WiVRnサーバーは作動中です。\n"
"停止して終了しますか?"
#: dashboard/qml/Main.qml:142
#, kde-format
msgid "Avahi daemon is not installed"
msgstr "Avahiデーモンはインストールサれていません"
#: dashboard/qml/Main.qml:128
#: dashboard/qml/Main.qml:150
#, kde-format
msgid "Avahi daemon is not started"
msgstr "Avahiデーモンが起動していません"
#: dashboard/qml/Main.qml:135 dashboard/qml/Main.qml:149
#: dashboard/qml/Main.qml:201
#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171
#: dashboard/qml/Main.qml:231
#, kde-format
msgid "Fix it"
msgstr "直す"
#: dashboard/qml/Main.qml:143
#: dashboard/qml/Main.qml:165
#, kde-format
msgid "Firewall may not allow port 9757"
msgstr "ファイヤーウォールでポート9757が開いていないようです"
#: dashboard/qml/Main.qml:157
#: dashboard/qml/Main.qml:179
#, kde-format
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
@@ -252,12 +293,22 @@ msgstr ""
"NVIDIAの場合は、GPUドライバー・バージョン565.77以上が必要です。現バージョン:"
"%1"
#: dashboard/qml/Main.qml:163
#: dashboard/qml/Main.qml:185
#, kde-format
msgid "More info"
msgstr "詳細情報"
#: dashboard/qml/Main.qml:171
#: dashboard/qml/Main.qml:193
#, kde-format
msgid "Vulkan drivers cannot be found, you may need to run \"flatpak update\""
msgstr "Vulkanドライバーが見つかりません。「flatpak update」を実行してみて下さい。"
#: dashboard/qml/Main.qml:193
#, kde-format
msgid "Vulkan drivers cannot be found"
msgstr "Vulkanドライバーが見つかりません"
#: dashboard/qml/Main.qml:201
#, kde-format
msgid ""
"Use the Mesa (radv) driver for AMD GPUs\n"
@@ -266,7 +317,7 @@ msgstr ""
"AMD GPUの場合は「Mesa (radv)」ドライバーを使ってください\n"
"AMDVLKやAMDGPU-PROなどはvaapiエンコーダーに対応していません"
#: dashboard/qml/Main.qml:179
#: dashboard/qml/Main.qml:209
#, kde-format
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
@@ -275,13 +326,13 @@ msgstr ""
"OpenVR実装ライブラリーは見つかりませんでした。SteamVRゲームを実行するには、\n"
"xrizerかOpenCompositeをインストールしましょう。"
#: dashboard/qml/Main.qml:187
#: dashboard/qml/Main.qml:217
#, kde-format
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
msgstr ""
"SteamはSnapとしてインストールされていますが、Snapはサポートサれていません。"
#: dashboard/qml/Main.qml:195
#: dashboard/qml/Main.qml:225
#, kde-format
msgid ""
"Steam is installed as a flatpak but does not have sufficient permissions."
@@ -289,84 +340,118 @@ msgstr ""
"SteamはFlatpakとしてインストールされていますが、必要な権限が設定されていませ"
"ん。"
#: dashboard/qml/Main.qml:210
#: dashboard/qml/Main.qml:240
#, kde-format
msgid "Restart the server for configuration changes to take effect"
msgstr "設定変更を有効にするにはサーバーを再起動してください。"
#: dashboard/qml/Main.qml:216
#: dashboard/qml/Main.qml:246
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "今すぐ再起動する"
#: dashboard/qml/Main.qml:241
#: dashboard/qml/Main.qml:271
#, kde-format
msgid "Server failed to start"
msgstr "サーバーは起動できませんでした"
#: dashboard/qml/Main.qml:247 dashboard/qml/TroubleshootPage.qml:89
#: dashboard/qml/Main.qml:277 dashboard/qml/TroubleshootPage.qml:89
#, kde-format
msgid "Open server logs"
msgstr "ログを見る"
#: dashboard/qml/Main.qml:276
#: dashboard/qml/Main.qml:303
#, kde-format
msgid "Server status"
msgstr "サーバーステータス"
#: dashboard/qml/Main.qml:309
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "作動中"
#: dashboard/qml/Main.qml:291
#: dashboard/qml/Main.qml:322
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "ペアリング"
#: dashboard/qml/Main.qml:304
#: dashboard/qml/Main.qml:342
#, kde-format
msgid "PIN: %1"
msgstr "暗証番号:%1"
msgid "Headset status"
msgstr "HMDステータス"
#: dashboard/qml/Main.qml:312 dashboard/qml/WizardPage.qml:329
#: dashboard/qml/Main.qml:349
#, kde-format
msgid "Connect by USB"
msgstr "USBで接続する"
msgctxt "label for headset name/status under server running switch"
msgid "Headset"
msgstr "HMD"
#: dashboard/qml/Main.qml:323 dashboard/qml/WizardPage.qml:339
#: dashboard/qml/Main.qml:352
#, kde-format
msgid "No headset is connected or your headset is not in developer mode"
msgstr "HMDが接続されていないか、HMDが開発者モードになっていません"
msgid "Not connected"
msgstr "未接続"
#: dashboard/qml/Main.qml:331
#: dashboard/qml/Main.qml:356
#, kde-format
msgid "Disconnect"
msgstr "切断する"
#: dashboard/qml/Main.qml:349
#: dashboard/qml/Main.qml:365 dashboard/qml/Main.qml:373
#: dashboard/qml/Main.qml:380
#, kde-format
msgctxt "label for USB status or connect button"
msgid "USB"
msgstr "USB"
#: dashboard/qml/Main.qml:366
#, kde-format
msgctxt "usb connect button"
msgid "Connect (wired)"
msgstr "有線で接続する"
#: dashboard/qml/Main.qml:383 dashboard/qml/WizardPage.qml:339
#, kde-format
msgid "No headset is connected or your headset is not in developer mode"
msgstr "HMDが接続されていないか、HMDが開発者モードになっていません"
#: dashboard/qml/Main.qml:404
#, kde-format
msgid "Steam information"
msgstr "ストリーム情報"
#: dashboard/qml/Main.qml:370
#: dashboard/qml/Main.qml:420
#, kde-format
msgid "Wizard"
msgstr "セットアップウィザード"
#: dashboard/qml/Main.qml:377
#: dashboard/qml/Main.qml:426
#, kde-format
msgid "Install the app"
msgstr "アプリをインストール"
#: dashboard/qml/Main.qml:398 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:445 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "設定"
#: dashboard/qml/Main.qml:405 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:451
#, kde-format
msgid "About"
msgstr "WiVRnについて"
#: dashboard/qml/Main.qml:456 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "問題解決"
#: dashboard/qml/Main.qml:463
#, kde-format
msgid "Version %1"
msgstr "バージョン%1"
#: dashboard/qml/SelectGame.qml:14
#, kde-format
msgctxt "don't start an application automatically"
@@ -657,8 +742,8 @@ msgid ""
"For game specific issues, check on <a href=\"https://db.vronlinux.org/"
"\">vronlinux DB</a> if there are known bugs or workarounds."
msgstr ""
"ゲーム固有の問題については、既知のバグや回避策について<a href=\"https://db.vronlinux.org/"
"\">vronlinux DB</a>を確認してください。"
"ゲーム固有の問題については、既知のバグや回避策について<a href=\"https://"
"db.vronlinux.org/\">vronlinux DB</a>を確認してください。"
#: dashboard/qml/TroubleshootPage.qml:79
#, kde-format
@@ -808,6 +893,11 @@ msgstr ""
msgid "To connect over USB, click on \"Connect by USB\"."
msgstr "USBで接続するには、「USBで接続する」ボタンをクリックしましょう。"
#: dashboard/qml/WizardPage.qml:329
#, kde-format
msgid "Connect by USB"
msgstr "USBで接続する"
#: dashboard/qml/WizardPage.qml:349
#, kde-format
msgid "Troubleshooting"
@@ -854,12 +944,12 @@ msgstr "完了"
msgid "Finished"
msgstr "完了しました"
#: dashboard/wivrn_server.cpp:533
#: dashboard/wivrn_server.cpp:540
#, kde-format
msgid "xrizer"
msgstr "xrizer"
#: dashboard/wivrn_server.cpp:534
#: dashboard/wivrn_server.cpp:541
#, kde-format
msgid "Open Composite"
msgstr "OpenComposite"
+172 -148
View File
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn 0.16\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-12-15 12:22+0900\n"
"POT-Creation-Date: 2026-02-17 12:42+0900\n"
"PO-Revision-Date: 2024-06-20 10:33+0900\n"
"Last-Translator: Mitsuami Megane <hello@mitsua.me>\n"
"Language: Japanese\n"
@@ -14,24 +14,24 @@ msgstr ""
msgid "No supported swapchain format"
msgstr "互換性のあるスワップチェーンは見つからなかった"
#: client/scenes/app_launcher.cpp:128
#: client/scenes/app_launcher.cpp:127
msgid "Connected to WiVRn server"
msgstr "WiVRnサーバーに接続しました。"
#: client/scenes/app_launcher.cpp:130
#: client/scenes/app_launcher.cpp:129
#, c++-format
msgid "Connected to {}"
msgstr "{}に接続しました。"
#: client/scenes/app_launcher.cpp:136
#: client/scenes/app_launcher.cpp:135
msgid "Start an application on the server to start streaming."
msgstr "VRアプリを起動してVRに入りましょう!"
#: client/scenes/app_launcher.cpp:146
#: client/scenes/app_launcher.cpp:145
msgid "Start an application on your computer or select one to start streaming."
msgstr "パソコンでVRアプリを起動するか、ここからアプリを選択しましょう。"
#: client/scenes/app_launcher.cpp:148
#: client/scenes/app_launcher.cpp:147
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr "{}でVRアプリを起動するか、ここからアプリを選択しましょう。"
@@ -59,11 +59,11 @@ msgstr "{}に接続できませんでした:({}) {}"
msgid "Waiting for connection"
msgstr "接続を待っています"
#: client/scenes/lobby.cpp:1310
#: client/scenes/lobby.cpp:1307
msgid "Passthrough"
msgstr "パススルー"
#: client/scenes/lobby.cpp:1322
#: client/scenes/lobby.cpp:1319
msgid "Default environment"
msgstr "デフォルトのホーム環境"
@@ -83,13 +83,13 @@ msgid "Disabled"
msgstr "無効"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
#: client/scenes/stream_gui.cpp:1015
#: client/scenes/stream_gui.cpp:992
msgid "Disconnect"
msgstr "切断する"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:749
#: client/scenes/lobby_gui_customize.cpp:840
#: client/scenes/lobby_gui_customize.cpp:896 client/scenes/stream_gui.cpp:1011
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
#: client/scenes/lobby_gui_customize.cpp:844
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:988
msgid "Close"
msgstr "閉じる"
@@ -126,10 +126,10 @@ msgstr "ポート番号"
msgid "TCP only"
msgstr "TCPのみを使用"
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:651
#: client/scenes/stream_gui.cpp:968
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:944
msgid "Cancel"
msgstr "やめる"
msgstr "キャンセル"
#: client/scenes/lobby_gui.cpp:333
msgid "Save"
@@ -172,17 +172,17 @@ msgstr "言語"
msgid "System language"
msgstr "デバイス言語"
#: client/scenes/lobby_gui.cpp:579 client/scenes/stream_gui.cpp:417
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:413
msgid "Refresh rate"
msgstr "リフレッシュレート"
#: client/scenes/lobby_gui.cpp:579 client/scenes/lobby_gui.cpp:581
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
#: client/scenes/stream_gui.cpp:413 client/scenes/stream_gui.cpp:415
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "自動"
#: client/scenes/lobby_gui.cpp:588 client/scenes/stream_gui.cpp:427
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:423
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -190,118 +190,134 @@ msgstr ""
"アプリケーションのパフォーマンスを基づいて自動的に設定します。\n"
"変更時にチラツキが発生する可能性があります。"
#: client/scenes/lobby_gui.cpp:605 client/scenes/stream_gui.cpp:445
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:441
msgid "Minimum refresh rate"
msgstr "最低リフレッシュレート"
#: client/scenes/lobby_gui.cpp:631
#: client/scenes/lobby_gui.cpp:632
msgid "Foveation level"
msgstr "フォビエーション・レベル"
#: client/scenes/lobby_gui.cpp:654
#: client/scenes/lobby_gui.cpp:655
msgid "Render resolution"
msgstr "レンダー解像度"
#: client/scenes/lobby_gui.cpp:658
#: client/scenes/lobby_gui.cpp:659
#, c-format, c++-format
msgid "{}%% - {}x{} per eye"
msgstr "{}%% - 目あたり{}x{}"
#: client/scenes/lobby_gui.cpp:669
#: client/scenes/lobby_gui.cpp:670
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr ""
"{}x{}以上の解像度は、お使いのヘッドセットではサポートされない場合があります。"
#: client/scenes/lobby_gui.cpp:679
msgid "Stream resolution"
msgstr "ストリーミング解像度"
#: client/scenes/lobby_gui.cpp:680
msgid "Foveated encoding"
msgstr "エンコード・フォビエーション"
#: client/scenes/lobby_gui.cpp:683
#: client/scenes/lobby_gui.cpp:684
#, c-format, c++-format
msgid "{}%%"
msgstr "{}%%"
#: client/scenes/lobby_gui.cpp:697
msgid ""
"Higher values focus image quality where you look at,\n"
"improving latency, power efficiency and quality."
msgstr ""
"高い方は、視線方向の画質を最適化し、\n"
"応答速度、電力効率、画質を向上させます。"
#: client/scenes/lobby_gui.cpp:700
msgid ""
"Higher values focus image quality at the center,\n"
"improving latency, power efficiency and quality."
msgstr ""
"高い方は、画面の中央の画質を最適化し、\n"
"応答速度、電力効率、画質を向上させます。"
#: client/scenes/lobby_gui.cpp:709
msgctxt "Codec"
msgid "Automatic"
msgstr "自動"
#: client/scenes/lobby_gui.cpp:701
#: client/scenes/lobby_gui.cpp:713
msgctxt "Codec"
msgid "H.264"
msgstr "H.264"
#: client/scenes/lobby_gui.cpp:703
#: client/scenes/lobby_gui.cpp:715
msgctxt "Codec"
msgid "H.265"
msgstr "H.265"
#: client/scenes/lobby_gui.cpp:705
#: client/scenes/lobby_gui.cpp:717
msgctxt "Codec"
msgid "AV1"
msgstr "AV1"
#: client/scenes/lobby_gui.cpp:713
#: client/scenes/lobby_gui.cpp:725
msgid "Codec"
msgstr "コーデック"
#: client/scenes/lobby_gui.cpp:741
#: client/scenes/lobby_gui.cpp:753
msgid "10-bit"
msgstr "10ビット"
#: client/scenes/lobby_gui.cpp:756
#: client/scenes/lobby_gui.cpp:769
msgid "Bitrate"
msgstr "ビットレート"
#: client/scenes/lobby_gui.cpp:760
#: client/scenes/lobby_gui.cpp:773
#, c++-format
msgid "{}Mbit/s"
msgstr "{}Mbps"
#: client/scenes/lobby_gui.cpp:771
#: client/scenes/lobby_gui.cpp:784
msgid "High power mode"
msgstr "高電力モード"
#: client/scenes/lobby_gui.cpp:774
#: client/scenes/lobby_gui.cpp:787
msgid "Increase power usage to allow higher resolution and refresh rate"
msgstr "HMDの性能問題を緩和するため、電力を増加させます。"
#: client/scenes/lobby_gui.cpp:780
#: client/scenes/lobby_gui.cpp:793
msgid "Enable microphone"
msgstr "マイクを有効する"
#: client/scenes/lobby_gui.cpp:789
#: client/scenes/lobby_gui.cpp:802
msgid "Unprocessed Microphone Audio"
msgstr "未処理のマイク音声"
#: client/scenes/lobby_gui.cpp:795
#: client/scenes/lobby_gui.cpp:808
msgid "Force disable audio filters, such as noise cancellation"
msgstr "ノイズ除去などのフィルターを無効化する"
#: client/scenes/lobby_gui.cpp:802
#: client/scenes/lobby_gui.cpp:815
msgid "Enable hand tracking"
msgstr "ハンドトラッキングを有効する"
#: client/scenes/lobby_gui.cpp:808 client/scenes/lobby_gui.cpp:820
#: client/scenes/lobby_gui.cpp:832 client/scenes/lobby_gui.cpp:849
#: client/scenes/lobby_gui_customize.cpp:636
#: client/scenes/lobby_gui.cpp:821 client/scenes/lobby_gui.cpp:832
#: client/scenes/lobby_gui.cpp:842 client/scenes/lobby_gui.cpp:857
#: client/scenes/lobby_gui_customize.cpp:640
msgid "This feature is not supported by your headset"
msgstr "デバイスはこの機能をサポートしていません"
#: client/scenes/lobby_gui.cpp:814
#: client/scenes/lobby_gui.cpp:826
msgid "Enable eye tracking"
msgstr "アイトラッキングを有効する"
#: client/scenes/lobby_gui.cpp:826
#: client/scenes/lobby_gui.cpp:837
msgid "Enable face tracking"
msgstr "顔トラッキングを有効する"
#: client/scenes/lobby_gui.cpp:840
#: client/scenes/lobby_gui.cpp:849
msgid "Enable body tracking"
msgstr "ボディラッキングを有効する"
#: client/scenes/lobby_gui.cpp:854
#: client/scenes/lobby_gui.cpp:862
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -312,11 +328,11 @@ msgstr ""
"そうでなければ、トラッキングデータはHMDとコントローラーの情報から推測されるこ"
"とになる。"
#: client/scenes/lobby_gui.cpp:864
#: client/scenes/lobby_gui.cpp:872
msgid "Enable lower body tracking"
msgstr "下半身トラッキングを有効する"
#: client/scenes/lobby_gui.cpp:870
#: client/scenes/lobby_gui.cpp:878
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -326,11 +342,11 @@ msgstr ""
"Quest設定・動きのトラッキング・ジェスチャーコントロールとボディトラッキングを"
"有効する必要がある。"
#: client/scenes/lobby_gui.cpp:873
#: client/scenes/lobby_gui.cpp:881
msgid "Enable hip tracking"
msgstr "腰のトラッキングを有効する"
#: client/scenes/lobby_gui.cpp:879
#: client/scenes/lobby_gui.cpp:887
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -338,11 +354,11 @@ msgstr ""
"下半身トラッキングが有効な場合に使用可能。\n"
"腰トラッカーを持ってる方は無効にしましょう。"
#: client/scenes/lobby_gui.cpp:887
#: client/scenes/lobby_gui.cpp:896
msgid "Enable in-stream window"
msgstr "ストリーミング中の設定パネル"
#: client/scenes/lobby_gui.cpp:890
#: client/scenes/lobby_gui.cpp:899
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
@@ -350,15 +366,23 @@ msgstr ""
"ストリーミング中にも設定パネルを表示できるようにします。\n"
"両方のサムスティックを同時に押して切り替えることができます。"
#: client/scenes/lobby_gui.cpp:904 client/scenes/stream_gui.cpp:479
#: client/scenes/lobby_gui.cpp:903
msgid "Extended configuration values"
msgstr "設定に対する制限の緩和"
#: client/scenes/lobby_gui.cpp:906
msgid "Allows unsafe configuration values, use at your own risk."
msgstr "不安定な状態が発生しないよう、十分にご注意ください。"
#: client/scenes/lobby_gui.cpp:920 client/scenes/stream_gui.cpp:475
msgid "OpenXR post-processing"
msgstr "OpenXRポストエフェクト"
#: client/scenes/lobby_gui.cpp:908 client/scenes/stream_gui.cpp:483
#: client/scenes/lobby_gui.cpp:924 client/scenes/stream_gui.cpp:479
msgid "Supersampling"
msgstr "スーパーサンプリング"
#: client/scenes/lobby_gui.cpp:928 client/scenes/stream_gui.cpp:504
#: client/scenes/lobby_gui.cpp:944 client/scenes/stream_gui.cpp:500
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -366,11 +390,11 @@ msgstr ""
"コントラストが高い部分のギザギザを低減する。\n"
"ストリームの解像度は、HMDの解像度より高い場合は有用です。"
#: client/scenes/lobby_gui.cpp:933 client/scenes/stream_gui.cpp:509
#: client/scenes/lobby_gui.cpp:949 client/scenes/stream_gui.cpp:505
msgid "Sharpening"
msgstr "シャープ"
#: client/scenes/lobby_gui.cpp:953 client/scenes/stream_gui.cpp:530
#: client/scenes/lobby_gui.cpp:969 client/scenes/stream_gui.cpp:526
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -378,129 +402,129 @@ msgstr ""
"ぼかしを低減し、コントラストが高い部分の鮮明度を向上する。\n"
"ストリームの解像度は、HMDの解像度より低い場合に有用です。"
#: client/scenes/lobby_gui.cpp:1137 client/scenes/lobby_gui.cpp:1145
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373
#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:372
msgid "CPU time"
msgstr "CPU使用時間"
#: client/scenes/lobby_gui.cpp:1141
#: client/scenes/lobby_gui.cpp:1157
msgid "CPU time [ms]"
msgstr "CPU使用時間、ミリ秒"
#: client/scenes/lobby_gui.cpp:1151 client/scenes/lobby_gui.cpp:1159
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374
#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:373
msgid "GPU time"
msgstr "GPU使用時間"
#: client/scenes/lobby_gui.cpp:1155
#: client/scenes/lobby_gui.cpp:1171
msgid "GPU time [ms]"
msgstr "GPU使用時間、ミリ秒"
#: client/scenes/lobby_gui.cpp:1219
#: client/scenes/lobby_gui.cpp:1235
msgid "Enable the microphone?"
msgstr "マイクを有効にしますか?"
#: client/scenes/lobby_gui.cpp:1224
#: client/scenes/lobby_gui.cpp:1240
msgid "Enable eye tracking?"
msgstr "アイトラッキングを有効にしますか?"
#: client/scenes/lobby_gui.cpp:1229
#: client/scenes/lobby_gui.cpp:1245
msgid "Enable face tracking?"
msgstr "フェースラッキングを有効にしますか?"
#: client/scenes/lobby_gui.cpp:1234
#: client/scenes/lobby_gui.cpp:1250
msgid "Enable body tracking?"
msgstr "ボディトラッキングを有効にしますか?"
#: client/scenes/lobby_gui.cpp:1242
#: client/scenes/lobby_gui.cpp:1258
msgid "Welcome to WiVRn"
msgstr "WiVRnへようこそ!"
#: client/scenes/lobby_gui.cpp:1270
#: client/scenes/lobby_gui.cpp:1286
msgid "Yes"
msgstr "はい"
#: client/scenes/lobby_gui.cpp:1277
#: client/scenes/lobby_gui.cpp:1293
msgid "No"
msgstr "いいえ"
#: client/scenes/lobby_gui.cpp:1296 client/scenes/lobby_gui.cpp:1942
#: client/scenes/lobby_gui.cpp:1312 client/scenes/lobby_gui.cpp:1958
msgid "Licenses"
msgstr "ライセンス"
#: client/scenes/lobby_gui.cpp:1572
#: client/scenes/lobby_gui.cpp:1588
msgid "Microphone is enabled"
msgstr "マイクは有効です"
#: client/scenes/lobby_gui.cpp:1573
#: client/scenes/lobby_gui.cpp:1589
msgid "Microphone is disabled"
msgstr "マイクは無効です"
#: client/scenes/lobby_gui.cpp:1582
#: client/scenes/lobby_gui.cpp:1598
msgid "Hand tracking is enabled"
msgstr "ハンドトラッキングは有効です"
#: client/scenes/lobby_gui.cpp:1583
#: client/scenes/lobby_gui.cpp:1599
msgid "Hand tracking is disabled"
msgstr "ハンドラッキングは無効です"
#: client/scenes/lobby_gui.cpp:1592
#: client/scenes/lobby_gui.cpp:1608
msgid "Eye tracking is enabled"
msgstr "アイトラッキングは有効です"
#: client/scenes/lobby_gui.cpp:1593
#: client/scenes/lobby_gui.cpp:1609
msgid "Eye tracking is disabled"
msgstr "アイトラッキングは無効です"
#: client/scenes/lobby_gui.cpp:1603
#: client/scenes/lobby_gui.cpp:1619
msgid "Face tracking is enabled"
msgstr "フェーストラッキングは有効です"
#: client/scenes/lobby_gui.cpp:1604
#: client/scenes/lobby_gui.cpp:1620
msgid "Face tracking is disabled"
msgstr "フェーストラッキングは無効です"
#: client/scenes/lobby_gui.cpp:1618
#: client/scenes/lobby_gui.cpp:1634
msgid "Body tracking is enabled"
msgstr "ボディトラッキングは有効です"
#: client/scenes/lobby_gui.cpp:1619
#: client/scenes/lobby_gui.cpp:1635
msgid "Body tracking is disabled"
msgstr "ボディトラッキングは無効です"
#: client/scenes/lobby_gui.cpp:1635
#: client/scenes/lobby_gui.cpp:1651
msgid "Add server"
msgstr "サーバーを追加する"
#: client/scenes/lobby_gui.cpp:1921
#: client/scenes/lobby_gui.cpp:1937
msgid "Server list"
msgstr "サーバー"
#: client/scenes/lobby_gui.cpp:1924 client/scenes/stream_gui.cpp:996
#: client/scenes/lobby_gui.cpp:1940 client/scenes/stream_gui.cpp:973
msgid "Settings"
msgstr "設定"
#: client/scenes/lobby_gui.cpp:1927
#: client/scenes/lobby_gui.cpp:1943
msgid "Post-processing"
msgstr "ポストエフェクト"
#: client/scenes/lobby_gui.cpp:1930
#: client/scenes/lobby_gui.cpp:1946
msgid "Customize"
msgstr "カスタマイズ"
#: client/scenes/lobby_gui.cpp:1934
#: client/scenes/lobby_gui.cpp:1950
msgid "Debug"
msgstr "デバッグ"
#: client/scenes/lobby_gui.cpp:1939
#: client/scenes/lobby_gui.cpp:1955
msgid "About"
msgstr "WiVRnについて"
#: client/scenes/lobby_gui.cpp:1945
#: client/scenes/lobby_gui.cpp:1961
msgid "Exit"
msgstr "完了"
#: client/scenes/lobby_gui.cpp:1962
#: client/scenes/lobby_gui.cpp:1978
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
@@ -508,51 +532,51 @@ msgstr ""
"メイン・パネルを動かすには、グリップを握るか、\n"
"手のひらを上向きにしましょう。"
#: client/scenes/lobby_gui.cpp:1964
#: client/scenes/lobby_gui.cpp:1980
msgid "Press the grip button to move the main window"
msgstr "グリップを握ってパネルを動かしましょう。"
#: client/scenes/lobby_gui_customize.cpp:208
#: client/scenes/lobby_gui_customize.cpp:213
msgid "Locally loaded environment"
msgstr "ローカル環境"
#: client/scenes/lobby_gui_customize.cpp:221
#: client/scenes/lobby_gui_customize.cpp:226
#, c++-format
msgid "Locally loaded environment ({})"
msgstr "ローカル環境({})"
#: client/scenes/lobby_gui_customize.cpp:296
#: client/scenes/lobby_gui_customize.cpp:300
#, c++-format
msgid "Cannot load local environment: {}"
msgstr "ローカル環境ロードできません:{}"
#: client/scenes/lobby_gui_customize.cpp:329
#: client/scenes/lobby_gui_customize.cpp:333
#, c++-format
msgid "Cannot load environment list: {}"
msgstr "環境リストをロードできませんでした:{}"
#: client/scenes/lobby_gui_customize.cpp:459
#: client/scenes/lobby_gui_customize.cpp:463
#, c++-format
msgid "Author: {}"
msgstr "作者:{}"
#: client/scenes/lobby_gui_customize.cpp:463
#: client/scenes/lobby_gui_customize.cpp:467
#, c++-format
msgid "Size: {:.1f} MB"
msgstr "サイズ:{:.1f} MB"
#: client/scenes/lobby_gui_customize.cpp:543
#: client/scenes/lobby_gui_customize.cpp:547
msgid "Delete this model"
msgstr "モデルを削除しますか?"
#: client/scenes/lobby_gui_customize.cpp:579
#: client/scenes/lobby_gui_customize.cpp:785
#: client/scenes/lobby_gui_customize.cpp:583
#: client/scenes/lobby_gui_customize.cpp:789
#, c++-format
msgid "HTTP error {} when downloading {}"
msgstr "{}をダウンロード中にHTTP {}が発生しました。"
#: client/scenes/lobby_gui_customize.cpp:587
#: client/scenes/lobby_gui_customize.cpp:793
#: client/scenes/lobby_gui_customize.cpp:591
#: client/scenes/lobby_gui_customize.cpp:797
#, c++-format
msgid ""
"Curl error when downloading {}\n"
@@ -561,186 +585,186 @@ msgstr ""
"{}をダウンロード中にCurlエラーが発生しました。\n"
"{}: {}"
#: client/scenes/lobby_gui_customize.cpp:648
#: client/scenes/lobby_gui_customize.cpp:652
#, c++-format
msgid "Really delete {}?"
msgstr "{}を削除しますか?"
#: client/scenes/lobby_gui_customize.cpp:652
#: client/scenes/lobby_gui_customize.cpp:656
msgid "Delete"
msgstr "削除"
#: client/scenes/lobby_gui_customize.cpp:733
#: client/scenes/lobby_gui_customize.cpp:737
#, c++-format
msgid "Cannot load environment: {}"
msgstr "環境をロードできませんでした:{}"
#: client/scenes/lobby_gui_customize.cpp:741
#: client/scenes/lobby_gui_customize.cpp:745
msgid "Loading environment"
msgstr "ホーム環境をロード中"
#: client/scenes/lobby_gui_customize.cpp:820
#: client/scenes/lobby_gui_customize.cpp:824
msgid "Download more environments"
msgstr "ホーム環境をダウンロード"
#: client/scenes/lobby_gui_customize.cpp:828
#: client/scenes/lobby_gui_customize.cpp:832
msgid "Open local glTF model"
msgstr "glTFファイルを開く"
#: client/scenes/stream_gui.cpp:174
#: client/scenes/stream_gui.cpp:176
msgid "Defoveate"
msgstr "フォビエーション解除"
#: client/scenes/stream_gui.cpp:176
#: client/scenes/stream_gui.cpp:178
msgid "Network"
msgstr "ネットワーク"
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371
#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
msgid "Download"
msgstr "ダウンロード"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
#: client/scenes/stream_gui.cpp:179 client/scenes/stream_gui.cpp:371
msgid "Upload"
msgstr "アップロード"
#: client/scenes/stream_gui.cpp:246
#: client/scenes/stream_gui.cpp:248
#, c++-format
msgid "Decoder {}"
msgstr "デコーダー {}"
#: client/scenes/stream_gui.cpp:258
#: client/scenes/stream_gui.cpp:260
msgid "Timings [ms]"
msgstr "タイミング、ミリ秒"
#: client/scenes/stream_gui.cpp:318
#: client/scenes/stream_gui.cpp:320
msgid "Encode"
msgstr "動画エンコード"
#: client/scenes/stream_gui.cpp:319
#: client/scenes/stream_gui.cpp:321
msgid "Send"
msgstr "送信"
#: client/scenes/stream_gui.cpp:320
#: client/scenes/stream_gui.cpp:322
msgid "Receive"
msgstr "受信"
#: client/scenes/stream_gui.cpp:321
#: client/scenes/stream_gui.cpp:323
msgid "Decode"
msgstr "デコード"
#: client/scenes/stream_gui.cpp:322
#: client/scenes/stream_gui.cpp:324
msgid "Blitted"
msgstr "描画"
#: client/scenes/stream_gui.cpp:323
#: client/scenes/stream_gui.cpp:325
msgid "Displayed"
msgstr "表示"
#: client/scenes/stream_gui.cpp:324
#: client/scenes/stream_gui.cpp:326
msgid "Predicted"
msgstr "予測時間"
#: client/scenes/stream_gui.cpp:344
#: client/scenes/stream_gui.cpp:345
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "「Motion-to-photon」推定遅延 {}ミリ秒"
#: client/scenes/stream_gui.cpp:351
#: client/scenes/stream_gui.cpp:350
msgid "Press the grip button to move the window"
msgstr "グリップを握ってパネルを動かしましょう。"
#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:924
#: client/scenes/stream_gui.cpp:352 client/scenes/stream_gui.cpp:900
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "両方のサムスティックを同時に押すことで設定表示"
#: client/scenes/stream_gui.cpp:375
#: client/scenes/stream_gui.cpp:374
msgid "Motion to photon latency"
msgstr "「Motion-to-photon」遅延"
#: client/scenes/stream_gui.cpp:464
#: client/scenes/stream_gui.cpp:460
msgid "Bitrate:"
msgstr "ビットレート:"
#: client/scenes/stream_gui.cpp:474
#: client/scenes/stream_gui.cpp:470
msgid "Click to adjust bitrate"
msgstr "クリックしてビットレートを調整"
#: client/scenes/stream_gui.cpp:537
#: client/scenes/stream_gui.cpp:534
msgid "Foveation center override"
msgstr "光学中心の調整"
#: client/scenes/stream_gui.cpp:540
#: client/scenes/stream_gui.cpp:537
msgid "Enable"
msgstr "有効"
#: client/scenes/stream_gui.cpp:548 client/scenes/stream_gui.cpp:620
#: client/scenes/stream_gui.cpp:545 client/scenes/stream_gui.cpp:616
#, c++-format
msgid "Height {:.1f} deg"
msgstr "仰角 {:.1f}°"
#: client/scenes/stream_gui.cpp:549 client/scenes/stream_gui.cpp:621
#: client/scenes/stream_gui.cpp:546 client/scenes/stream_gui.cpp:617
#, c++-format
msgid "Distance {:.2f} m"
msgstr "距離 {:.2f}m"
#: client/scenes/stream_gui.cpp:550
#: client/scenes/stream_gui.cpp:547
msgid "Default"
msgstr "デフォルト"
#: client/scenes/stream_gui.cpp:561
#: client/scenes/stream_gui.cpp:558
msgid "Change"
msgstr "編集"
#: client/scenes/stream_gui.cpp:594
#: client/scenes/stream_gui.cpp:590
msgid "Use the right thumbstick to adjust the bitrate"
msgstr "右スティックでビットレートを調整しましょう"
#: client/scenes/stream_gui.cpp:595
#: client/scenes/stream_gui.cpp:591
msgid "Press A to go back"
msgstr "「A」を押して戻る"
#: client/scenes/stream_gui.cpp:596
#: client/scenes/stream_gui.cpp:592
#, c++-format
msgid "Bitrate: {}Mbit/s"
msgstr "ビットレート:{}Mbps"
#: client/scenes/stream_gui.cpp:618
#: client/scenes/stream_gui.cpp:614
msgid "Use the thumbsticks to move the foveation center"
msgstr "ジョイスティックを使って中心点を調整しましょう。"
#: client/scenes/stream_gui.cpp:619
#: client/scenes/stream_gui.cpp:615
msgid "Press A to save or B to cancel"
msgstr "AかBを押してキャンセル。"
#: client/scenes/stream_gui.cpp:677
#: client/scenes/stream_gui.cpp:673
msgid "Running XR applications:"
msgstr "XRアプリの実行"
#: client/scenes/stream_gui.cpp:694
#: client/scenes/stream_gui.cpp:690
msgid "Overlays"
msgstr "オーバーレイ"
#: client/scenes/stream_gui.cpp:733
#: client/scenes/stream_gui.cpp:729
msgid "Request to quit, may be ignored by the application"
msgstr "終了シグナルを送信する"
#: client/scenes/stream_gui.cpp:983
#: client/scenes/stream_gui.cpp:959
msgid "Applications"
msgstr "アプリ"
#: client/scenes/stream_gui.cpp:986
#: client/scenes/stream_gui.cpp:962
msgid "Start"
msgstr "実行する"
#: client/scenes/stream_gui.cpp:999
#: client/scenes/stream_gui.cpp:976
msgid "Stats"
msgstr "統計情報"
#: client/scenes/stream_gui.cpp:1005
#: client/scenes/stream_gui.cpp:982
msgid "Statistics overlay"
msgstr "統計オーバーレイ"
#: client/scenes/stream_gui.cpp:1008
#: client/scenes/stream_gui.cpp:985
msgid "Compact view"
msgstr "コンパクト・モード"
+77 -51
View File
@@ -10,8 +10,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-01-06 17:57+0100\n"
"PO-Revision-Date: 2026-01-06 18:18+0100\n"
"POT-Creation-Date: 2026-02-16 21:54+0100\n"
"PO-Revision-Date: 2026-02-16 23:23+0100\n"
"Last-Translator: Claudio Sampaio (Patola) <patola@gmail.com>\n"
"Language-Team: Portuguese <>\n"
"Language: pt_BR\n"
@@ -19,7 +19,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Lokalize 25.12.0\n"
"X-Generator: Lokalize 25.12.2\n"
#: dashboard/apk_installer.cpp:137
#, kde-format
@@ -71,33 +71,28 @@ msgstr "O comando 'adb install' falhou: código de saída %1"
msgid "Installation successful"
msgstr "Instalação bem-sucedida"
#: dashboard/main.cpp:28 dashboard/qml/Main.qml:12
#, kde-format
msgid "WiVRn dashboard"
msgstr "Painel do WiVRn"
#: dashboard/main.cpp:32
#: dashboard/main.cpp:26
#, kde-format
msgctxt "@title"
msgid "WiVRn"
msgstr "WiVRn"
#: dashboard/main.cpp:34
#: dashboard/main.cpp:28
#, kde-format
msgid "WiVRn server"
msgstr "Servidor WiVRn"
#: dashboard/main.cpp:36
#: dashboard/main.cpp:30
#, kde-format
msgid "(c) 2022-2026 WiVRn development team"
msgstr "(c) 2022-2026 time de desenvolvimento do WiVRn"
#: dashboard/main.cpp:43
#: dashboard/main.cpp:40
#, kde-format
msgid "Monado"
msgstr "Monado"
#: dashboard/main.cpp:44
#: dashboard/main.cpp:41
#, kde-format
msgid "OpenXR runtime"
msgstr "Runtime OpenXR"
@@ -126,8 +121,8 @@ msgstr "Verificando a última versão..."
msgid "No APK is available for this version"
msgstr "Nenhum APK está disponível para esta versão"
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:350
#: dashboard/qml/Main.qml:408 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:376
#: dashboard/qml/Main.qml:434 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/WizardPage.qml:337
#, kde-format
msgid "ADB is not installed"
@@ -170,7 +165,7 @@ msgstr "Reinstalar WiVRn"
msgid "Install WiVRn"
msgstr "Instalar WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:413
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:439
#, kde-format
msgid "Headsets"
msgstr "Headsets"
@@ -266,40 +261,71 @@ msgstr "Parear um novo headset"
msgid "Headset statistics"
msgstr "Estatísticas do headset"
#: dashboard/qml/Main.qml:124
#: dashboard/qml/Main.qml:12
#, kde-format
msgid "WiVRn dashboard"
msgstr "Painel do WiVRn"
#: dashboard/qml/Main.qml:51
#, kde-format
msgid "Quit WiVRn"
msgstr "Sair do WiVRn"
#: dashboard/qml/Main.qml:52
#, kde-format
msgid ""
"The WiVRn server is active.\n"
"Closing the window will terminate it."
msgstr ""
"O Servidor WiVRn está ativo.\n"
"Fechar a janela o encerrará."
#: dashboard/qml/Main.qml:142
#, kde-format
msgid "Avahi daemon is not installed"
msgstr "Avahi daemon não está instalado"
#: dashboard/qml/Main.qml:132
#: dashboard/qml/Main.qml:150
#, kde-format
msgid "Avahi daemon is not started"
msgstr "Avahi daemon não foi iniciado"
#: dashboard/qml/Main.qml:139 dashboard/qml/Main.qml:153
#: dashboard/qml/Main.qml:205
#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171
#: dashboard/qml/Main.qml:231
#, kde-format
msgid "Fix it"
msgstr "Conserte"
#: dashboard/qml/Main.qml:147
#: dashboard/qml/Main.qml:165
#, kde-format
msgid "Firewall may not allow port 9757"
msgstr "O firewall pode não permitir a porta 9757"
#: dashboard/qml/Main.qml:161
#: dashboard/qml/Main.qml:179
#, kde-format
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
msgstr ""
"GPUs NVIDIA requerem pelo menos o driver versão 565.77, a versão atual é %1"
#: dashboard/qml/Main.qml:167
#: dashboard/qml/Main.qml:185
#, kde-format
msgid "More info"
msgstr "Mais informações"
#: dashboard/qml/Main.qml:175
#: dashboard/qml/Main.qml:193
#, 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 ""
"Use the Mesa (radv) driver for AMD GPUs\n"
@@ -308,7 +334,7 @@ msgstr ""
"Use o driver Mesa (radv) para GPUs AMD\n"
"Codificação de hardware com a vaapi não funciona com AMDVLK e AMDGPU-PRO"
#: dashboard/qml/Main.qml:183
#: dashboard/qml/Main.qml:209
#, kde-format
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
@@ -318,127 +344,127 @@ msgstr ""
"conseguirão carregar em VR.\n"
"Instale o xrizer ou o OpenComposite."
#: dashboard/qml/Main.qml:191
#: dashboard/qml/Main.qml:217
#, kde-format
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."
#: dashboard/qml/Main.qml:199
#: dashboard/qml/Main.qml:225
#, kde-format
msgid ""
"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."
#: dashboard/qml/Main.qml:214
#: dashboard/qml/Main.qml:240
#, kde-format
msgid "Restart the server for configuration changes to take effect"
msgstr ""
"Reinicie o servidor para que as alterações de configuração tenham efeito"
#: dashboard/qml/Main.qml:220
#: dashboard/qml/Main.qml:246
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "Reiniciar agora"
#: dashboard/qml/Main.qml:245
#: dashboard/qml/Main.qml:271
#, kde-format
msgid "Server failed to start"
msgstr "Servidor falhou em iniciar"
#: dashboard/qml/Main.qml:251 dashboard/qml/TroubleshootPage.qml:89
#: dashboard/qml/Main.qml:277 dashboard/qml/TroubleshootPage.qml:89
#, kde-format
msgid "Open server logs"
msgstr "Abrir logs do servidor"
#: dashboard/qml/Main.qml:277
#: dashboard/qml/Main.qml:303
#, kde-format
msgid "Server status"
msgstr "Status do servidor"
#: dashboard/qml/Main.qml:283
#: dashboard/qml/Main.qml:309
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "Rodando"
#: dashboard/qml/Main.qml:296
#: dashboard/qml/Main.qml:322
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "Pareando"
#: dashboard/qml/Main.qml:316
#: dashboard/qml/Main.qml:342
#, kde-format
msgid "Headset status"
msgstr "Status do headset"
#: dashboard/qml/Main.qml:323
#: dashboard/qml/Main.qml:349
#, kde-format
msgctxt "label for headset name/status under server running switch"
msgid "Headset"
msgstr "Headset"
#: dashboard/qml/Main.qml:326
#: dashboard/qml/Main.qml:352
#, kde-format
msgid "Not connected"
msgstr "Não conectado"
#: dashboard/qml/Main.qml:330
#: dashboard/qml/Main.qml:356
#, kde-format
msgid "Disconnect"
msgstr "Desconectar"
#: dashboard/qml/Main.qml:339 dashboard/qml/Main.qml:347
#: dashboard/qml/Main.qml:354
#: dashboard/qml/Main.qml:365 dashboard/qml/Main.qml:373
#: dashboard/qml/Main.qml:380
#, kde-format
msgctxt "label for USB status or connect button"
msgid "USB"
msgstr "USB"
#: dashboard/qml/Main.qml:340
#: dashboard/qml/Main.qml:366
#, kde-format
msgctxt "usb connect button"
msgid "Connect (wired)"
msgstr "Conectar (por cabo)"
#: dashboard/qml/Main.qml:357 dashboard/qml/WizardPage.qml:339
#: dashboard/qml/Main.qml:383 dashboard/qml/WizardPage.qml:339
#, kde-format
msgid "No headset is connected or your headset is not in developer mode"
msgstr ""
"Nenhum headset está conectado ou seu headset não está em modo desenvolvedor"
#: dashboard/qml/Main.qml:378
#: dashboard/qml/Main.qml:404
#, kde-format
msgid "Steam information"
msgstr "Informações da Steam"
#: dashboard/qml/Main.qml:394
#: dashboard/qml/Main.qml:420
#, kde-format
msgid "Wizard"
msgstr "Assistente"
#: dashboard/qml/Main.qml:400
#: dashboard/qml/Main.qml:426
#, kde-format
msgid "Install the app"
msgstr "Instalar o aplicativo"
#: dashboard/qml/Main.qml:419 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:445 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "Ajustes"
#: dashboard/qml/Main.qml:425
#: dashboard/qml/Main.qml:451
#, kde-format
msgid "About"
msgstr "Sobre"
#: dashboard/qml/Main.qml:430 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:456 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "Resolver problemas"
#: dashboard/qml/Main.qml:437
#: dashboard/qml/Main.qml:463
#, kde-format
msgid "Version %1"
msgstr "Versão %1"
@@ -946,12 +972,12 @@ msgstr "Terminar"
msgid "Finished"
msgstr "Terminado"
#: dashboard/wivrn_server.cpp:538
#: dashboard/wivrn_server.cpp:540
#, kde-format
msgid "xrizer"
msgstr "xrizer"
#: dashboard/wivrn_server.cpp:539
#: dashboard/wivrn_server.cpp:541
#, kde-format
msgid "Open Composite"
msgstr "Open Composite"
+48 -48
View File
@@ -1,7 +1,7 @@
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the WiVRn package.
#
# SPDX-FileCopyrightText: 2025 Claudio Sampaio (Patola)
# SPDX-FileCopyrightText: 2025, 2026 Claudio Sampaio (Patola)
# LuckShiba <LuckShiba@protonmail.com>, 2025.
#
# SPDX-FileCopyrightText: 2025 myghi63 <myghi63@disroot.org>
@@ -11,15 +11,15 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-12-29 15:56+0100\n"
"PO-Revision-Date: 2025-12-30 02:05+0100\n"
"POT-Creation-Date: 2026-01-31 21:11+0100\n"
"PO-Revision-Date: 2026-02-02 15:55+0100\n"
"Last-Translator: Claudio Sampaio (Patola) <patola@gmail.com>\n"
"Language-Team: Portuguese <>\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Lokalize 25.12.0\n"
"X-Generator: Lokalize 25.12.1\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: client/scene.cpp:73
@@ -97,13 +97,13 @@ msgid "Disabled"
msgstr "Desabilitado"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
#: client/scenes/stream_gui.cpp:1015
#: client/scenes/stream_gui.cpp:1009
msgid "Disconnect"
msgstr "Desconectar"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
#: client/scenes/lobby_gui_customize.cpp:844
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1005
msgid "Close"
msgstr "Fechar"
@@ -141,7 +141,7 @@ msgid "TCP only"
msgstr "TCP somente"
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:968
#: client/scenes/stream_gui.cpp:962
msgid "Cancel"
msgstr "Cancelar"
@@ -186,17 +186,17 @@ msgstr "Linguagem"
msgid "System language"
msgstr "Linguagem do Sistema"
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:411
msgid "Refresh rate"
msgstr "Taxa de atualização"
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419
#: client/scenes/stream_gui.cpp:411 client/scenes/stream_gui.cpp:413
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Automático"
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:421
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -204,7 +204,7 @@ msgstr ""
"Seleciona a taxa de atualização baseada no desempenho medido do aplicativo.\n"
"Pode causar oscilações quando uma alteração ocorrer."
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:439
msgid "Minimum refresh rate"
msgstr "Taxa de atualização mínima"
@@ -392,15 +392,15 @@ msgstr "Valores de configuração estendidos"
msgid "Allows unsafe configuration values, use at your own risk."
msgstr "Permite valores de configuração inseguros, use por sua conta e risco."
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:473
msgid "OpenXR post-processing"
msgstr "Pós-processamento OpenXR"
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:477
msgid "Supersampling"
msgstr "Supersampling"
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:498
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -408,11 +408,11 @@ msgstr ""
"Reduz flicker para arestas de alto contraste.\n"
"Útil quando a resolução de entrada é alta comparada ao display do headset"
#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:509
#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:503
msgid "Sharpening"
msgstr "Aumento de nitidez"
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:524
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -421,7 +421,7 @@ msgstr ""
"Útil quando a resolução de entrada é baixa comparada ao display do headset"
#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:370
msgid "CPU time"
msgstr "Tempo de CPU"
@@ -430,7 +430,7 @@ msgid "CPU time [ms]"
msgstr "Tempo de CPU [ms]"
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:371
msgid "GPU time"
msgstr "Tempo de GPU"
@@ -518,7 +518,7 @@ msgstr "Adicionar servidor"
msgid "Server list"
msgstr "Lista de servidores"
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:990
msgid "Settings"
msgstr "Ajustes"
@@ -547,8 +547,8 @@ msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
msgstr ""
"Pressione o botão de aderência ou coloque a palma da mão para cima\n"
"para mover a janela principal"
"Pressione o botão de aderência ou coloque a palma\n"
"da mão para cima para mover a janela principal"
#: client/scenes/lobby_gui.cpp:1979
msgid "Press the grip button to move the main window"
@@ -637,11 +637,11 @@ msgstr "Defoveação"
msgid "Network"
msgstr "Rede"
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:368
msgid "Download"
msgstr "Download"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
msgid "Upload"
msgstr "Upload"
@@ -682,107 +682,107 @@ msgstr "Exibição"
msgid "Predicted"
msgstr "Previsão"
#: client/scenes/stream_gui.cpp:344
#: client/scenes/stream_gui.cpp:343
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Movimento estimado para a latência de fótons: {}ms"
#: client/scenes/stream_gui.cpp:351
#: client/scenes/stream_gui.cpp:348
msgid "Press the grip button to move the window"
msgstr "Pressione o botão de aderência para mover a janela"
#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:924
#: client/scenes/stream_gui.cpp:350 client/scenes/stream_gui.cpp:918
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Pressione ambos os thumbsticks para mostrar a janela do WiVRn"
#: client/scenes/stream_gui.cpp:375
#: client/scenes/stream_gui.cpp:372
msgid "Motion to photon latency"
msgstr "Latência (de movimento para fótons)"
#: client/scenes/stream_gui.cpp:464
#: client/scenes/stream_gui.cpp:458
msgid "Bitrate:"
msgstr "Bitrate:"
#: client/scenes/stream_gui.cpp:474
#: client/scenes/stream_gui.cpp:468
msgid "Click to adjust bitrate"
msgstr "Clique para ajustar a bitrate"
#: client/scenes/stream_gui.cpp:537
#: client/scenes/stream_gui.cpp:531
msgid "Foveation center override"
msgstr "Ajuste do centro de foveação"
#: client/scenes/stream_gui.cpp:540
#: client/scenes/stream_gui.cpp:534
msgid "Enable"
msgstr "Habilitar"
#: client/scenes/stream_gui.cpp:548 client/scenes/stream_gui.cpp:620
#: client/scenes/stream_gui.cpp:542 client/scenes/stream_gui.cpp:614
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Altura {:.1f} graus"
#: client/scenes/stream_gui.cpp:549 client/scenes/stream_gui.cpp:621
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:615
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Distância {:.2f} m"
#: client/scenes/stream_gui.cpp:550
#: client/scenes/stream_gui.cpp:544
msgid "Default"
msgstr "Padrão"
#: client/scenes/stream_gui.cpp:561
#: client/scenes/stream_gui.cpp:555
msgid "Change"
msgstr "Modificar"
#: client/scenes/stream_gui.cpp:594
#: client/scenes/stream_gui.cpp:588
msgid "Use the right thumbstick to adjust the bitrate"
msgstr "Use o analógico direito para ajustar a bitrate"
#: client/scenes/stream_gui.cpp:595
#: client/scenes/stream_gui.cpp:589
msgid "Press A to go back"
msgstr "Pressione A para voltar"
#: client/scenes/stream_gui.cpp:596
#: client/scenes/stream_gui.cpp:590
#, c++-format
msgid "Bitrate: {}Mbit/s"
msgstr "Bitrate: {}Mbit/s"
#: client/scenes/stream_gui.cpp:618
#: client/scenes/stream_gui.cpp:612
msgid "Use the thumbsticks to move the foveation center"
msgstr "Use os thumbsticks para mover o centro da foveação"
#: client/scenes/stream_gui.cpp:619
#: client/scenes/stream_gui.cpp:613
msgid "Press A to save or B to cancel"
msgstr "Pressione A para salvar ou B para cancelar"
#: client/scenes/stream_gui.cpp:677
#: client/scenes/stream_gui.cpp:671
msgid "Running XR applications:"
msgstr "Aplicativos XR rodando:"
#: client/scenes/stream_gui.cpp:694
#: client/scenes/stream_gui.cpp:688
msgid "Overlays"
msgstr "Overlays"
#: client/scenes/stream_gui.cpp:733
#: client/scenes/stream_gui.cpp:727
msgid "Request to quit, may be ignored by the application"
msgstr "Requisição para sair, pode ser ignorada pelo aplicativo"
#: client/scenes/stream_gui.cpp:983
#: client/scenes/stream_gui.cpp:977
msgid "Applications"
msgstr "Aplicativos"
#: client/scenes/stream_gui.cpp:986
#: client/scenes/stream_gui.cpp:980
msgid "Start"
msgstr "Iniciar"
#: client/scenes/stream_gui.cpp:999
#: client/scenes/stream_gui.cpp:993
msgid "Stats"
msgstr "Estatísticas"
#: client/scenes/stream_gui.cpp:1005
#: client/scenes/stream_gui.cpp:999
msgid "Statistics overlay"
msgstr "Overlay de estatísticas"
#: client/scenes/stream_gui.cpp:1008
#: client/scenes/stream_gui.cpp:1002
msgid "Compact view"
msgstr "Visualização compacta"
+358 -233
View File
@@ -2,22 +2,23 @@
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the WiVRn-dashboard package.
# Alexander Afanasenko <aomiki.iki@gmail.com>, 2025.
# 8osm3rka <admin@osm8.live>, 2026.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-10-30 02:59+0400\n"
"PO-Revision-Date: 2025-10-06 14:57+0400\n"
"Last-Translator: Alexander Afanasenko <aomiki.iki@gmail.com>\n"
"Language-Team: Russian <>\n"
"Language: Russian\n"
"POT-Creation-Date: 2026-02-02 15:05+0200\n"
"PO-Revision-Date: 2026-02-03 23:56+0200\n"
"Last-Translator: 8osm3rka <admin@osm8.live>\n"
"Language-Team: Russian\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Gtranslator 49.0\n"
#: dashboard/apk_installer.cpp:137
#, kde-format
@@ -69,10 +70,39 @@ msgstr "Не удалось выполнить команду 'adb install': к
msgid "Installation successful"
msgstr "Установка прошла успешно"
#: dashboard/main.cpp:27 dashboard/qml/Main.qml:12
#: dashboard/main.cpp:26
#, kde-format
msgid "WiVRn dashboard"
msgstr "Панель управления WiVRn"
msgctxt "@title"
msgid "WiVRn"
msgstr "WiVRn"
#: dashboard/main.cpp:28
#, kde-format
msgid "WiVRn server"
msgstr "Сервер WiVRn"
#: dashboard/main.cpp:30
#, kde-format
msgid "(c) 2022-2026 WiVRn development team"
msgstr "(c) 2022-2026 Команда разработки WiVRn"
#: dashboard/main.cpp:40
#, kde-format
msgid "Monado"
msgstr "Monado"
#: dashboard/main.cpp:41
#, kde-format
msgid "OpenXR runtime"
msgstr "Среда выполнения OpenXR"
#: dashboard/qml/About.qml:17 dashboard/qml/ApkInstallPage.qml:65
#: dashboard/qml/HeadsetsPage.qml:183 dashboard/qml/HeadsetStatsPage.qml:36
#: dashboard/qml/TroubleshootPage.qml:71
#, kde-format
msgctxt "go back to the home page"
msgid "Back"
msgstr "Назад"
#: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137
#, kde-format
@@ -90,8 +120,9 @@ msgstr "Проверяю новейшую версию..."
msgid "No APK is available for this version"
msgstr "APK файл для этой версии отсутствует"
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:311
#: dashboard/qml/Main.qml:396 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:368
#: dashboard/qml/Main.qml:426 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/WizardPage.qml:337
#, kde-format
msgid "ADB is not installed"
msgstr "ADB не установлен"
@@ -112,13 +143,6 @@ msgstr ""
"docs/building.md#client-headset\">документации</a> чтобы собрать свой "
"собственный клиент."
#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetsPage.qml:183
#: dashboard/qml/HeadsetStatsPage.qml:36 dashboard/qml/TroubleshootPage.qml:67
#, kde-format
msgctxt "go back to the home page"
msgid "Back"
msgstr "Назад"
#: dashboard/qml/ConnectUsbDialog.qml:11
#, kde-format
msgid "Select your headset"
@@ -139,7 +163,7 @@ msgstr "Переустановить WiVRn"
msgid "Install WiVRn"
msgstr "Установить WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:401
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:431
#, kde-format
msgid "Headsets"
msgstr "Шлемы"
@@ -188,7 +212,7 @@ msgstr "Переименовать"
#: dashboard/qml/HeadsetsPage.qml:55 dashboard/qml/WizardPage.qml:38
#: dashboard/qml/WizardPage.qml:88 dashboard/qml/WizardPage.qml:263
#: dashboard/qml/WizardPage.qml:327 dashboard/qml/WizardPage.qml:411
#: dashboard/qml/WizardPage.qml:376
#, kde-format
msgid "Cancel"
msgstr "Отменить"
@@ -240,56 +264,58 @@ msgstr "Сопрячь новый шлем"
msgid "Headset statistics"
msgstr "Статистика шлема"
#: dashboard/qml/Main.qml:130
#: dashboard/qml/Main.qml:12
#, kde-format
msgid "WiVRn dashboard"
msgstr "Панель управления WiVRn"
#: dashboard/qml/Main.qml:51
#, kde-format
msgid "Quit WiVRn"
msgstr "Выйти из WiVRn"
#: dashboard/qml/Main.qml:52
#, kde-format
msgid ""
"The WiVRn server is active.\n"
"Closing the window will terminate it."
msgstr ""
"Сервер WiVRn еще активен.\n"
"Закрытие данного окна его остановит."
#: dashboard/qml/Main.qml:142
#, kde-format
msgid "Avahi daemon is not installed"
msgstr "Сервис avahi не установлен"
#: dashboard/qml/Main.qml:138
#: dashboard/qml/Main.qml:150
#, kde-format
msgid "Avahi daemon is not started"
msgstr "Сервис avahi не запущен"
#: dashboard/qml/Main.qml:145 dashboard/qml/Main.qml:160
#: dashboard/qml/Main.qml:174
#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171
#: dashboard/qml/Main.qml:223
#, kde-format
msgid "Fix it"
msgstr "Исправить"
#: dashboard/qml/Main.qml:153
#, kde-format
msgid "The server does not have CAP_SYS_NICE capabilities"
msgstr "Сервер не имеет CAP_SYS_NICE возможностей"
#: dashboard/qml/Main.qml:168
#: dashboard/qml/Main.qml:165
#, kde-format
msgid "Firewall may not allow port 9757"
msgstr "Брандмауэр может не разрешать порт 9757"
#: dashboard/qml/Main.qml:183
#, kde-format
msgid "The CAP_SYS_NICE capability will be used when the server is restarted"
msgstr ""
"CAP_SYS_NICE возможности будут использоваться после перезагрузки сервера"
#: dashboard/qml/Main.qml:189
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "Перезагрузить сейчас"
#: dashboard/qml/Main.qml:200
#: dashboard/qml/Main.qml:179
#, kde-format
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
msgstr "NVIDIA ГПУ требуют драйвер версии не ниже 565.77, текущая версия: %1"
#: dashboard/qml/Main.qml:206
#: dashboard/qml/Main.qml:185
#, kde-format
msgid "More info"
msgstr "Больше информации"
#: dashboard/qml/Main.qml:214
#: dashboard/qml/Main.qml:193
#, kde-format
msgid ""
"Use the Mesa (radv) driver for AMD GPUs\n"
@@ -298,7 +324,7 @@ msgstr ""
"Используйте Mesa (radv) драйвер для AMD ГПУ\n"
"Аппаратная кодировка с vaapi не работает с AMDVLK и AMDGPU-PRO"
#: dashboard/qml/Main.qml:222
#: dashboard/qml/Main.qml:201
#, kde-format
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
@@ -307,79 +333,130 @@ msgstr ""
"OpenVR совместимости не обнаружено, игры из Steam не смогут загрузить VR.\n"
"Установите xrizer или OpenComposite."
#: dashboard/qml/Main.qml:231
#: dashboard/qml/Main.qml:209
#, kde-format
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
msgstr "Steam установлен как snap-пакет. Snap-пакеты не совместимы с WiVRn."
#: dashboard/qml/Main.qml:217
#, kde-format
msgid ""
"Steam is installed as a flatpak but does not have sufficient permissions."
msgstr ""
"Steam установлен как flatpak-пакет но у него нет необходимых разрешений."
#: dashboard/qml/Main.qml:232
#, kde-format
msgid "Restart the server for configuration changes to take effect"
msgstr "Перезапустите сервер для применения изменённых настроек"
#: dashboard/qml/Main.qml:238
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "Перезапустить сейчас"
#: dashboard/qml/Main.qml:263
#, kde-format
msgid "Server failed to start"
msgstr "Не удалось запустить сервер"
#: dashboard/qml/Main.qml:237 dashboard/qml/TroubleshootPage.qml:85
#: dashboard/qml/Main.qml:269 dashboard/qml/TroubleshootPage.qml:89
#, kde-format
msgid "Open server logs"
msgstr "Открыть логи сервера"
#: dashboard/qml/Main.qml:266
#: dashboard/qml/Main.qml:295
#, kde-format
msgid "Server status"
msgstr "Статус сервера"
#: dashboard/qml/Main.qml:301
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "Запущено"
#: dashboard/qml/Main.qml:281
#: dashboard/qml/Main.qml:314
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "Сопряжение"
#: dashboard/qml/Main.qml:294
#: dashboard/qml/Main.qml:334
#, kde-format
msgid "PIN: %1"
msgstr "ПИН: %1"
msgid "Headset status"
msgstr "Статус шлема"
#: dashboard/qml/Main.qml:302 dashboard/qml/WizardPage.qml:374
#: dashboard/qml/Main.qml:341
#, kde-format
msgid "Connect by USB"
msgstr "Подключиться по USB"
msgctxt "label for headset name/status under server running switch"
msgid "Headset"
msgstr "Шлем"
#: dashboard/qml/Main.qml:313
#: dashboard/qml/Main.qml:344
#, kde-format
msgid "No headset is connected or your headset is not in developer mode"
msgstr "Нет подключенного шлема, либо ваш шлем не в режиме разработчика"
msgid "Not connected"
msgstr "Не подключено"
#: dashboard/qml/Main.qml:321
#: dashboard/qml/Main.qml:348
#, kde-format
msgid "Disconnect"
msgstr "Отключиться"
#: dashboard/qml/Main.qml:338
#: dashboard/qml/Main.qml:357 dashboard/qml/Main.qml:365
#: dashboard/qml/Main.qml:372
#, kde-format
msgctxt "automatically started application"
msgid "Application"
msgstr "Приложение"
msgctxt "label for USB status or connect button"
msgid "USB"
msgstr "USB"
#: dashboard/qml/Main.qml:359
#: dashboard/qml/Main.qml:358
#, kde-format
msgctxt "usb connect button"
msgid "Connect (wired)"
msgstr "Подключить (по проводу)"
#: dashboard/qml/Main.qml:375 dashboard/qml/WizardPage.qml:339
#, kde-format
msgid "No headset is connected or your headset is not in developer mode"
msgstr "Нет подключенного шлема, либо ваш шлем не в режиме разработчика"
#: dashboard/qml/Main.qml:396
#, kde-format
msgid "Steam information"
msgstr "Steam информация"
msgstr "Информация для Steam"
#: dashboard/qml/Main.qml:380
#: dashboard/qml/Main.qml:412
#, kde-format
msgid "Wizard"
msgstr "Мастер настройки"
#: dashboard/qml/Main.qml:387
#: dashboard/qml/Main.qml:418
#, kde-format
msgid "Install the app"
msgstr "Установить приложение"
#: dashboard/qml/Main.qml:408 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:437 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "Настройки"
#: dashboard/qml/Main.qml:415 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:443
#, kde-format
msgid "About"
msgstr "О WiVRn"
#: dashboard/qml/Main.qml:448 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "Устранение неполадок"
#: dashboard/qml/Main.qml:455
#, kde-format
msgid "Version %1"
msgstr "Версия %1"
#: dashboard/qml/SelectGame.qml:14
#, kde-format
msgctxt "don't start an application automatically"
@@ -392,176 +469,100 @@ msgctxt "choose a custom application to start"
msgid "Custom"
msgstr "Пользовательское"
#: dashboard/qml/SelectGame.qml:76
#: dashboard/qml/SelectGame.qml:72
#, kde-format
msgctxt "browse a file to choose the application to start"
msgid "Browse"
msgstr "Обзор"
#: dashboard/qml/SettingsPage.qml:41
#, kde-format
msgctxt "automatic foveation setup"
msgid "Manual foveation"
msgstr "Ручная фовеация"
#: dashboard/qml/SettingsPage.qml:47
#, kde-format
msgid "Foveation strength:"
msgstr "Степень фовеации:"
#: dashboard/qml/SettingsPage.qml:63
#, kde-format
msgid "%1 %"
msgstr "%1 %"
#: dashboard/qml/SettingsPage.qml:69
#, kde-format
msgid ""
"A stronger foveation makes the image sharper in the center than in the "
"periphery and makes the decoding faster. This is better for fast paced "
"games.\n"
"\n"
"A weaker foveation gives a uniform sharpness in the whole image.\n"
"\n"
"The recommended values are between 20% and 50% for headsets without eye "
"tracking and between 50% and 70% for headsets with eye tracking."
msgstr ""
"Более сильная фовеация делает изображение четче в центре чем в периферийном "
"зрении и ускоряет декодирование. Это лучше для динамичных игр.\n"
"\n"
"Более слабая фовеации дает равномерную четкость на всем изображении.\n"
"\n"
"Рекомендуемые значения между 20% и 50% для шлемов без отслеживания движения "
"глаз и между 50% и 70% для шлемов с отслеживанием движения глаз."
#: dashboard/qml/SettingsPage.qml:75
#, kde-format
msgctxt "weaker foveation"
msgid "Weaker"
msgstr "Слабее"
#: dashboard/qml/SettingsPage.qml:86
#, kde-format
msgctxt "stronger foveation"
msgid "Stronger"
msgstr "Сильнее"
#: dashboard/qml/SettingsPage.qml:96
#, kde-format
msgid "Bitrate:"
msgstr "Битрейт:"
#: dashboard/qml/SettingsPage.qml:101 dashboard/qml/SettingsPage.qml:103
#, kde-format
msgctxt "bitrate"
msgid "%1 Mbit/s"
msgstr "%1 Мбит/с"
#: dashboard/qml/SettingsPage.qml:115
#: dashboard/qml/SettingsPage.qml:28
#, kde-format
msgid "The current encoder configuration is not supported"
msgstr "Текущая конфигурация кодировщика не поддерживается"
#: dashboard/qml/SettingsPage.qml:120
#: dashboard/qml/SettingsPage.qml:33
#, kde-format
msgid "Reset"
msgstr "Сбросить"
#: dashboard/qml/SettingsPage.qml:127
#: dashboard/qml/SettingsPage.qml:40
#, kde-format
msgid "Encoder:"
msgstr "Кодировщик:"
#: dashboard/qml/SettingsPage.qml:133
#: dashboard/qml/SettingsPage.qml:46
#, kde-format
msgctxt "automatic encoder setup"
msgid "Auto"
msgstr "Авто"
#: dashboard/qml/SettingsPage.qml:137
#: dashboard/qml/SettingsPage.qml:50
#, kde-format
msgid "nvenc (NVIDIA GPUs)"
msgstr "nvenc (NVIDIA ГПУ)"
#: dashboard/qml/SettingsPage.qml:141
#: dashboard/qml/SettingsPage.qml:54
#, kde-format
msgid "vaapi (AMD and Intel GPUs)"
msgstr "vaapi (AMD и Intel ГПУ)"
#: dashboard/qml/SettingsPage.qml:145
#: dashboard/qml/SettingsPage.qml:58
#, kde-format
msgid "Vulkan (Vulkan Video)"
msgstr "Vulkan (Vulkan Video)"
msgid "Vulkan (Any modern GPU)"
msgstr "Vulkan (Любое современное ГПУ)"
#: dashboard/qml/SettingsPage.qml:149
#: dashboard/qml/SettingsPage.qml:62
#, kde-format
msgid "x264 (software encoding)"
msgstr "x264 (программное кодирование)"
#: dashboard/qml/SettingsPage.qml:166
#: dashboard/qml/SettingsPage.qml:79
#, kde-format
msgid "\"Auto\" will use hardware acceleration if it is available"
msgstr "\"Авто\" будет использовать аппаратное ускорение если оно доступно"
msgstr "\"Авто\" будет использовать аппаратное ускорение, если оно доступно"
#: dashboard/qml/SettingsPage.qml:171
#: dashboard/qml/SettingsPage.qml:88
#, kde-format
msgid "Codec:"
msgstr "Кодек:"
msgid "Autostart application:"
msgstr "Приложение для автозапуска:"
#: dashboard/qml/SettingsPage.qml:177
#, kde-format
msgctxt "automatic codec setup"
msgid "Auto"
msgstr "Авто"
#: dashboard/qml/SettingsPage.qml:181
#, kde-format
msgid "H.264"
msgstr "H.264"
#: dashboard/qml/SettingsPage.qml:185
#, kde-format
msgid "H.265"
msgstr "H.265"
#: dashboard/qml/SettingsPage.qml:189
#, kde-format
msgid "AV1"
msgstr "AV1"
#: dashboard/qml/SettingsPage.qml:217
#, kde-format
msgid "10 bits"
msgstr "10-бит"
#: dashboard/qml/SettingsPage.qml:221
#, kde-format
msgid ""
"10-bit encoding improves image quality but is not supported by all codecs "
"and hardware"
msgstr "10-битное кодирование улучшает качество изображения, но поддерживается не всеми кодеками и оборудованием"
#: dashboard/qml/SettingsPage.qml:231
#: dashboard/qml/SettingsPage.qml:96
#, kde-format
msgid "Advanced options"
msgstr "Расширенные настройки"
#: dashboard/qml/SettingsPage.qml:237
#: dashboard/qml/SettingsPage.qml:102
#, kde-format
msgid "Check system configuration on start"
msgstr "Проверить конфигурацию системы при запуске"
#: dashboard/qml/SettingsPage.qml:241
#: dashboard/qml/SettingsPage.qml:108
#, kde-format
msgid "Forward keyboard & mouse from headset"
msgstr "Проброс клавиатуры и мыши со шлема"
#: dashboard/qml/SettingsPage.qml:111
#, kde-format
msgid ""
"Keyboard and mouse connected to the client will act as if connected to the "
"server. Client OS may reserve specific keys and combinations, which cannot "
"be forwarded."
msgstr ""
"Клавиатура и мышь, подключенные к клиенту будут работать так, будто "
"подключены к серверу. ОС клиента может резервировать некоторые клавиши и "
"комбинации, что не позволяет их пробрасывать."
#: dashboard/qml/SettingsPage.qml:116
#, kde-format
msgid "Enable debug window"
msgstr "Включить окно отладки"
#: dashboard/qml/SettingsPage.qml:248
#: dashboard/qml/SettingsPage.qml:123
#, kde-format
msgid "Enable SteamVR tracked devices support"
msgstr "Включить поддержку устройств со SteamVR отслеживанием"
#: dashboard/qml/SettingsPage.qml:251
#: dashboard/qml/SettingsPage.qml:126
#, kde-format
msgid ""
"Allows the use of lighthouse-based controllers and trackers.\n"
@@ -574,44 +575,44 @@ msgstr ""
"Устройства должны быть включены перед подключенем к WiVRn.\n"
"Внешняя утилита, такая как motoc, необходима для калибрации."
#: dashboard/qml/SettingsPage.qml:259
#: dashboard/qml/SettingsPage.qml:134
#, kde-format
msgid "Custom adb location"
msgstr "Пользовательское расположение adb"
#: dashboard/qml/SettingsPage.qml:270
#: dashboard/qml/SettingsPage.qml:145
#, kde-format
msgid "Adb location:"
msgstr "Расположение adb:"
#: dashboard/qml/SettingsPage.qml:279
#: dashboard/qml/SettingsPage.qml:154
#, kde-format
msgctxt "browse a file to choose the adb binary"
msgid "Browse"
msgstr "Обзор"
#: dashboard/qml/SettingsPage.qml:289
#: dashboard/qml/SettingsPage.qml:164
#, kde-format
msgid "Default"
msgstr "По умолчанию"
#: dashboard/qml/SettingsPage.qml:303
#: dashboard/qml/SettingsPage.qml:178
#, kde-format
msgctxt "set a custom OpenVR compatibility library"
msgid "Custom"
msgstr "Пользовательская"
#: dashboard/qml/SettingsPage.qml:308
#: dashboard/qml/SettingsPage.qml:183
#, kde-format
msgid "Disabled"
msgstr "Выключена"
#: dashboard/qml/SettingsPage.qml:316
#: dashboard/qml/SettingsPage.qml:191
#, kde-format
msgid "OpenVR compatibility library:"
msgstr "Библиотека для совместимости со SteamVR"
msgstr "Библиотека для совместимости с OpenVR"
#: dashboard/qml/SettingsPage.qml:342
#: dashboard/qml/SettingsPage.qml:217
#, kde-format
msgid "Library path, excluding bin/linux64/vrclient.so"
msgstr "Путь библиотеки, исключая bin/linux64/vrclient.so"
@@ -622,7 +623,7 @@ msgid ""
"For Steam games, right click on the game in Steam, go in Properties > "
"General and paste this in \"Launch options\":"
msgstr ""
"Для Steam games, нажмите правой кнопкой мыши на игру в Steam, перейдите в "
"Для игр из Steam, нажмите правой кнопкой мыши на игру в Steam, перейдите в "
"Свойства > Общие и вставьте это в \"Параметры запуска\":"
#: dashboard/qml/SteamLaunchOptions.qml:20
@@ -648,7 +649,7 @@ msgstr "Команда запуска Steam скопирована"
msgid "I cannot find the WiVRn app on my headset"
msgstr "Я не могу найти приложение WiVRn на моем шлеме"
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:388
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:353
#, kde-format
msgid ""
"If you installed WiVRn over USB on a Meta headset, the app is in the "
@@ -731,7 +732,7 @@ msgstr "Сопряжение в данный момент выключено."
msgid "I have no sound on my headset"
msgstr "На моем шлеме отсутствует звук"
#: dashboard/qml/TroubleshootPage.qml:58 dashboard/qml/WizardPage.qml:441
#: dashboard/qml/TroubleshootPage.qml:58 dashboard/qml/WizardPage.qml:406
#, kde-format
msgid ""
"When the headset is connected, select \"WiVRn\" as the default audio output "
@@ -740,12 +741,27 @@ msgstr ""
"Когда шлем подключен, выберите \"WiVRn\" как устройство вывода звука по "
"умолчанию, чтобы приложения использовали его."
#: dashboard/qml/TroubleshootPage.qml:75
#: dashboard/qml/TroubleshootPage.qml:61
#, kde-format
msgid "Some games fail to start or have input issues"
msgstr "Некоторые игры не запускаются или имеют проблемы с управлением"
#: dashboard/qml/TroubleshootPage.qml:62
#, kde-format
msgid ""
"For game specific issues, check on <a href=\"https://db.vronlinux.org/"
"\">vronlinux DB</a> if there are known bugs or workarounds."
msgstr ""
"Для проблем с определенными играми, проверьте, есть ли известные баги или "
"обходные решения в <a href=\"https://db.vronlinux.org/\">базе данных "
"vronlinux</a>"
#: dashboard/qml/TroubleshootPage.qml:79
#, kde-format
msgid "Report an issue"
msgstr "Сообщить о проблеме"
#: dashboard/qml/TroubleshootPage.qml:80
#: dashboard/qml/TroubleshootPage.qml:84
#, kde-format
msgid "Ask on Discord"
msgstr "Задать вопрос в Discord"
@@ -756,9 +772,8 @@ msgid "Getting started"
msgstr "Начало работы"
#: dashboard/qml/WizardPage.qml:29 dashboard/qml/WizardPage.qml:78
#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:317
#: dashboard/qml/WizardPage.qml:401 dashboard/qml/WizardPage.qml:448
#: dashboard/qml/WizardPage.qml:485
#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:366
#: dashboard/qml/WizardPage.qml:413 dashboard/qml/WizardPage.qml:450
#, kde-format
msgid "Back"
msgstr "Назад"
@@ -778,8 +793,7 @@ msgstr ""
"подключить его к вашему компьютеру."
#: dashboard/qml/WizardPage.qml:83 dashboard/qml/WizardPage.qml:258
#: dashboard/qml/WizardPage.qml:322 dashboard/qml/WizardPage.qml:453
#: dashboard/qml/WizardPage.qml:490
#: dashboard/qml/WizardPage.qml:418 dashboard/qml/WizardPage.qml:455
#, kde-format
msgid "Next"
msgstr "Дальше"
@@ -858,26 +872,12 @@ msgstr ""
"<ul><li>ADB udev правила установлены</li><li>Шлем находится в <a "
"href=\"#\">режиме разработчика</a></li></ul></p>"
#: dashboard/qml/WizardPage.qml:280
#, kde-format
msgid "Select the application you want to start"
msgstr "Выберите приложение которое вы хотите запустить"
#: dashboard/qml/WizardPage.qml:286
#, kde-format
msgid ""
"The application you choose will be started automatically when you connect "
"your headset."
msgstr ""
"Приложение которое вы выберете будет запущено автоматически когда вы "
"подключитесь к вашему шлему."
#: dashboard/qml/WizardPage.qml:301
#: dashboard/qml/WizardPage.qml:295
#, kde-format
msgid "Important information"
msgstr "Важная информация"
#: dashboard/qml/WizardPage.qml:308
#: dashboard/qml/WizardPage.qml:301
#, kde-format
msgid ""
"WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is "
@@ -886,12 +886,12 @@ msgstr ""
"WiVRn полностью заменяет SteamVR, вы не должны запускать SteamVR пока WiVRn "
"работает."
#: dashboard/qml/WizardPage.qml:359
#: dashboard/qml/WizardPage.qml:313
#, kde-format
msgid "Start the WiVRn app on your headset"
msgstr "Запустите приложение WiVRn на вашем шлеме"
#: dashboard/qml/WizardPage.qml:364
#: dashboard/qml/WizardPage.qml:319
#, kde-format
msgid ""
"To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" "
@@ -900,17 +900,22 @@ msgstr ""
"Чтобы подключиться по WiFi, запустите приложение WiVRn на вашем шлеме, "
"подключитесь к \"%1\" и введите ПИН \"%2\"."
#: dashboard/qml/WizardPage.qml:371
#: dashboard/qml/WizardPage.qml:326
#, kde-format
msgid "To connect over USB, click on \"Connect by USB\"."
msgstr "Чтобы подключиться через USB, нажмите на \"Подключиться по USB\"."
#: dashboard/qml/WizardPage.qml:384
#: dashboard/qml/WizardPage.qml:329
#, kde-format
msgid "Connect by USB"
msgstr "Подключиться по USB"
#: dashboard/qml/WizardPage.qml:349
#, kde-format
msgid "Troubleshooting"
msgstr "Устранение неполадок"
#: dashboard/qml/WizardPage.qml:393
#: dashboard/qml/WizardPage.qml:358
#, kde-format
msgid ""
"If the server is not visible or the connection fails, check that ports 5353 "
@@ -919,22 +924,22 @@ msgstr ""
"Если сервер не виден или не удается установить соединение, проверьте что "
"порты 5353 (UDP) и 9757 (TCP и UDP) открыты в вашем брандмауэре."
#: dashboard/qml/WizardPage.qml:406
#: dashboard/qml/WizardPage.qml:371
#, kde-format
msgid "Skip"
msgstr "Пропустить"
#: dashboard/qml/WizardPage.qml:426
#: dashboard/qml/WizardPage.qml:391
#, kde-format
msgid "Connection established"
msgstr "Соединение установлено"
#: dashboard/qml/WizardPage.qml:431
#: dashboard/qml/WizardPage.qml:396
#, kde-format
msgid "Your headset is now connected."
msgstr "Ваш шлем теперь подключен."
#: dashboard/qml/WizardPage.qml:436 dashboard/qml/WizardPage.qml:478
#: dashboard/qml/WizardPage.qml:401 dashboard/qml/WizardPage.qml:443
#, kde-format
msgid ""
"To connect another headset, make sure pairing is enabled in the dashboard "
@@ -943,26 +948,146 @@ msgstr ""
"Чтобы подключить другой шлем, убедитесь что сопряжение активировано в панеле "
"управления перед соединением."
#: dashboard/qml/WizardPage.qml:458 dashboard/qml/WizardPage.qml:495
#: dashboard/qml/WizardPage.qml:423 dashboard/qml/WizardPage.qml:460
#, kde-format
msgid "Finish"
msgstr "Завершить"
#: dashboard/qml/WizardPage.qml:473
#: dashboard/qml/WizardPage.qml:438
#, kde-format
msgid "Finished"
msgstr "Завершено"
#: dashboard/wivrn_server.cpp:594
#: dashboard/wivrn_server.cpp:540
#, kde-format
msgid "xrizer"
msgstr "xrizer"
#: dashboard/wivrn_server.cpp:595
#: dashboard/wivrn_server.cpp:541
#, kde-format
msgid "Open Composite"
msgstr "Open Composite"
#, kde-format
#~ msgid "The server does not have CAP_SYS_NICE capabilities"
#~ msgstr "Сервер не имеет CAP_SYS_NICE возможностей"
#, kde-format
#~ msgid ""
#~ "The CAP_SYS_NICE capability will be used when the server is restarted"
#~ msgstr ""
#~ "CAP_SYS_NICE возможности будут использоваться после перезагрузки сервера"
#, kde-format
#~ msgid "PIN: %1"
#~ msgstr "ПИН: %1"
#, kde-format
#~ msgctxt "automatically started application"
#~ msgid "Application"
#~ msgstr "Приложение"
#, kde-format
#~ msgctxt "automatic foveation setup"
#~ msgid "Manual foveation"
#~ msgstr "Ручная фовеация"
#, kde-format
#~ msgid "Foveation strength:"
#~ msgstr "Степень фовеации:"
#, kde-format
#~ msgid "%1 %"
#~ msgstr "%1 %"
#, kde-format
#~ msgid ""
#~ "A stronger foveation makes the image sharper in the center than in the "
#~ "periphery and makes the decoding faster. This is better for fast paced "
#~ "games.\n"
#~ "\n"
#~ "A weaker foveation gives a uniform sharpness in the whole image.\n"
#~ "\n"
#~ "The recommended values are between 20% and 50% for headsets without eye "
#~ "tracking and between 50% and 70% for headsets with eye tracking."
#~ msgstr ""
#~ "Более сильная фовеация делает изображение четче в центре чем в "
#~ "периферийном зрении и ускоряет декодирование. Это лучше для динамичных "
#~ "игр.\n"
#~ "\n"
#~ "Более слабая фовеации дает равномерную четкость на всем изображении.\n"
#~ "\n"
#~ "Рекомендуемые значения между 20% и 50% для шлемов без отслеживания "
#~ "движения глаз и между 50% и 70% для шлемов с отслеживанием движения глаз."
#, kde-format
#~ msgctxt "weaker foveation"
#~ msgid "Weaker"
#~ msgstr "Слабее"
#, kde-format
#~ msgctxt "stronger foveation"
#~ msgid "Stronger"
#~ msgstr "Сильнее"
#, kde-format
#~ msgid "Bitrate:"
#~ msgstr "Битрейт:"
#, kde-format
#~ msgctxt "bitrate"
#~ msgid "%1 Mbit/s"
#~ msgstr "%1 Мбит/с"
#, kde-format
#~ msgid "Vulkan (Vulkan Video)"
#~ msgstr "Vulkan (Vulkan Video)"
#, kde-format
#~ msgid "Codec:"
#~ msgstr "Кодек:"
#, kde-format
#~ msgctxt "automatic codec setup"
#~ msgid "Auto"
#~ msgstr "Авто"
#, kde-format
#~ msgid "H.264"
#~ msgstr "H.264"
#, kde-format
#~ msgid "H.265"
#~ msgstr "H.265"
#, kde-format
#~ msgid "AV1"
#~ msgstr "AV1"
#, kde-format
#~ msgid "10 bits"
#~ msgstr "10-бит"
#, kde-format
#~ msgid ""
#~ "10-bit encoding improves image quality but is not supported by all codecs "
#~ "and hardware"
#~ msgstr ""
#~ "10-битное кодирование улучшает качество изображения, но поддерживается не "
#~ "всеми кодеками и оборудованием"
#, kde-format
#~ msgid "Select the application you want to start"
#~ msgstr "Выберите приложение которое вы хотите запустить"
#, kde-format
#~ msgid ""
#~ "The application you choose will be started automatically when you connect "
#~ "your headset."
#~ msgstr ""
#~ "Приложение которое вы выберете будет запущено автоматически когда вы "
#~ "подключитесь к вашему шлему."
#, kde-format
#~ msgid "No precompiled APK is available for this version"
#~ msgstr "Нет прекомпилированного APK-файла для этой версии"
+289 -158
View File
@@ -2,22 +2,25 @@
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the WiVRn package.
# Alexander Afanasenko <aomiki.iki@gmail.com>, 2025.
# 8osm3rka <admin@osm8.live>, 2026.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-10-29 18:30+0400\n"
"PO-Revision-Date: 2025-10-06 14:57+0400\n"
"Last-Translator: Alexander Afanasenko <aomiki.iki@gmail.com>\n"
"Language-Team: Russian <>\n"
"Language: Russian\n"
"POT-Creation-Date: 2026-02-03 21:56+0200\n"
"PO-Revision-Date: 2026-02-04 09:22+0200\n"
"Last-Translator: 8osm3rka <admin@osm8.live>\n"
"Language-Team: Russian\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Gtranslator 49.0\n"
#: client/scene.cpp:72
#: client/scene.cpp:73
msgid "No supported swapchain format"
msgstr "Нет поддерживаемого формата цепочек обмена"
@@ -45,106 +48,106 @@ msgstr ""
msgid "Start an application on {} or select one to start streaming."
msgstr "Запустите приложение на {} или выберите его чтобы начать трансляцию."
#: client/scenes/lobby.cpp:205
#: client/scenes/lobby.cpp:230
msgid "Incompatible WiVRn server: no protocol field in TXT"
msgstr "Несовместимый сервер WiVRn: нет поля протокола в TXT"
#: client/scenes/lobby.cpp:208
#: client/scenes/lobby.cpp:233
#, c++-format
msgid "Incompatible WiVRn server protocol (client: {}, server: {})"
msgstr "Несовместимый протокол сервера WiVRn (клиент: {}, сервер: {})"
#: client/scenes/lobby.cpp:223
#: client/scenes/lobby.cpp:248
#, c++-format
msgid "Cannot resolve hostname: {}"
msgstr "Невозможно разрешить имя хоста: {}"
#: client/scenes/lobby.cpp:310 client/scenes/lobby.cpp:316
#: client/scenes/lobby.cpp:335 client/scenes/lobby.cpp:341
#, c++-format
msgid "Cannot connect to {} ({}): {}"
msgstr "Невозможно подключиться к {} ({}): {}"
#: client/scenes/lobby.cpp:399
#: client/scenes/lobby.cpp:424
msgid "Waiting for connection"
msgstr "Ожидание подключения"
#: client/scenes/lobby.cpp:1000
#: client/scenes/lobby.cpp:1316
msgid "Passthrough"
msgstr "Сквозная передача"
#: client/scenes/lobby.cpp:1012
#: client/scenes/lobby.cpp:1328
msgid "Default environment"
msgstr "Окружение по умолчанию"
#: client/scenes/lobby_gui.cpp:99
#: client/scenes/lobby_gui.cpp:101
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Нормальное"
#: client/scenes/lobby_gui.cpp:102
#: client/scenes/lobby_gui.cpp:104
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Качество"
#: client/scenes/lobby_gui.cpp:104
#: client/scenes/lobby_gui.cpp:106
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Выключено"
#: client/scenes/lobby_gui.cpp:112 client/scenes/lobby_gui.cpp:256
#: client/scenes/stream_gui.cpp:893
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
#: client/scenes/stream_gui.cpp:1009
msgid "Disconnect"
msgstr "Отключиться"
#: client/scenes/lobby_gui.cpp:132 client/scenes/lobby_gui_customize.cpp:653
#: client/scenes/lobby_gui_customize.cpp:744
#: client/scenes/lobby_gui_customize.cpp:800 client/scenes/stream_gui.cpp:889
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
#: client/scenes/lobby_gui_customize.cpp:844
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1005
msgid "Close"
msgstr "Закрыть"
#: client/scenes/lobby_gui.cpp:138
#: client/scenes/lobby_gui.cpp:140
msgid "Connection"
msgstr "Подключение"
#: client/scenes/lobby_gui.cpp:140
#: client/scenes/lobby_gui.cpp:142
#, c++-format
msgid "Connection to {}"
msgstr "Подключение к {}"
#: client/scenes/lobby_gui.cpp:170
#: client/scenes/lobby_gui.cpp:172
msgid "PIN"
msgstr "ПИН"
#: client/scenes/lobby_gui.cpp:192
#: client/scenes/lobby_gui.cpp:194
msgid "Input the PIN displayed on the dashboard"
msgstr "Введите ПИН отображенный в панеле управления"
#: client/scenes/lobby_gui.cpp:282
#: client/scenes/lobby_gui.cpp:284
msgid "Name"
msgstr "Название"
#: client/scenes/lobby_gui.cpp:293
#: client/scenes/lobby_gui.cpp:295
msgid "Address"
msgstr "Адрес"
#: client/scenes/lobby_gui.cpp:302
#: client/scenes/lobby_gui.cpp:304
msgid "Port"
msgstr "Порт"
#: client/scenes/lobby_gui.cpp:310
#: client/scenes/lobby_gui.cpp:312
msgid "TCP only"
msgstr "Только TCP"
#: client/scenes/lobby_gui.cpp:317 client/scenes/lobby_gui_customize.cpp:555
#: client/scenes/stream_gui.cpp:857
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:962
msgid "Cancel"
msgstr "Отменить"
#: client/scenes/lobby_gui.cpp:331
#: client/scenes/lobby_gui.cpp:333
msgid "Save"
msgstr "Сохранить"
#: client/scenes/lobby_gui.cpp:384
#: client/scenes/lobby_gui.cpp:386
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -152,110 +155,183 @@ msgstr ""
"Запустите сервер WiVRn в вашей\n"
"локальной сети"
#: client/scenes/lobby_gui.cpp:416
#: client/scenes/lobby_gui.cpp:418
msgid "Autoconnect"
msgstr "Автоматическое подключение"
#: client/scenes/lobby_gui.cpp:442
#: client/scenes/lobby_gui.cpp:444
msgid "Connect"
msgstr "Подключиться"
#: client/scenes/lobby_gui.cpp:452 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Несовместимая версия сервера"
#: client/scenes/lobby_gui.cpp:454
#: client/scenes/lobby_gui.cpp:456
msgid "Server not available"
msgstr "Сервер недоступен"
#: client/scenes/lobby_gui.cpp:536
#: client/scenes/lobby_gui.cpp:538
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "Русский"
#: client/scenes/lobby_gui.cpp:550
#: client/scenes/lobby_gui.cpp:552
msgid "Language"
msgstr "Язык"
#: client/scenes/lobby_gui.cpp:550 client/scenes/lobby_gui.cpp:552
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554
msgid "System language"
msgstr "Язык системы"
#: client/scenes/lobby_gui.cpp:577
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:411
msgid "Refresh rate"
msgstr "Частота обновления"
#: client/scenes/lobby_gui.cpp:577 client/scenes/lobby_gui.cpp:579
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
#: client/scenes/stream_gui.cpp:411 client/scenes/stream_gui.cpp:413
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Автоматическая"
#: client/scenes/lobby_gui.cpp:586
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:421
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
msgstr ""
"Выберите частоту обновления основанную на измеренной производительности "
"Выбрать частоту обновления, основанную на измеренной производительности "
"приложения.\n"
"Может вызвать мерцание когда изменениет произойдет."
"Может вызывать мерцание когда происходит изменение."
#: client/scenes/lobby_gui.cpp:603
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:439
msgid "Minimum refresh rate"
msgstr "Минимальная частота обновления"
#: client/scenes/lobby_gui.cpp:629
#: client/scenes/lobby_gui.cpp:632
msgid "Foveation level"
msgstr "Уровень фовеации"
#: client/scenes/lobby_gui.cpp:651
msgid "Resolution scale"
msgstr "Масштаб разрешения"
#: client/scenes/lobby_gui.cpp:655
msgid "Render resolution"
msgstr "Разрешение"
#: client/scenes/lobby_gui.cpp:659
#, c-format, c++-format
msgid "{}%% - {}x{} per eye"
msgstr "{}%% - {}x{} на каждый глаз"
#: client/scenes/lobby_gui.cpp:666
#: client/scenes/lobby_gui.cpp:670
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "Разрешение больше чем {}x{} может не поддерживаться шлемом"
#: client/scenes/lobby_gui.cpp:672
#: client/scenes/lobby_gui.cpp:680
msgid "Foveated encoding"
msgstr "Кодировка с фовеацией"
#: client/scenes/lobby_gui.cpp:684
#, c-format, c++-format
msgid "{}%%"
msgstr "{}%%"
#: client/scenes/lobby_gui.cpp:697
msgid ""
"Higher values focus image quality where you look at,\n"
"improving latency, power efficiency and quality."
msgstr ""
"Значения выше концентрируют качество картинки там, где вы смотрите, что "
"улучшает задержку, энергоэффективность и качество."
#: client/scenes/lobby_gui.cpp:700
msgid ""
"Higher values focus image quality at the center,\n"
"improving latency, power efficiency and quality."
msgstr ""
"Значения выше концентрируют качество картинки в центре, что улучшает "
"задержку, энергоэффективность и качество."
#: client/scenes/lobby_gui.cpp:709
msgctxt "Codec"
msgid "Automatic"
msgstr "Автоматически"
#: client/scenes/lobby_gui.cpp:713
msgctxt "Codec"
msgid "H.264"
msgstr "H.264"
#: client/scenes/lobby_gui.cpp:715
msgctxt "Codec"
msgid "H.265"
msgstr "H.265"
#: client/scenes/lobby_gui.cpp:717
msgctxt "Codec"
msgid "AV1"
msgstr "AV1"
#: client/scenes/lobby_gui.cpp:725
msgid "Codec"
msgstr "Кодек"
#: client/scenes/lobby_gui.cpp:753
msgid "10-bit"
msgstr "10-бит"
#: client/scenes/lobby_gui.cpp:768
msgid "Bitrate"
msgstr "Битрейт"
#: client/scenes/lobby_gui.cpp:772
#, c++-format
msgid "{}Mbit/s"
msgstr "{}Мбит/с"
#: client/scenes/lobby_gui.cpp:783
msgid "High power mode"
msgstr "Режим повышенной мощности"
#: client/scenes/lobby_gui.cpp:786
msgid "Increase power usage to allow higher resolution and refresh rate"
msgstr ""
"Увеличивает энергопотребление, что позволяет достичь более высокого "
"разрешения и частоты обновлений"
#: client/scenes/lobby_gui.cpp:792
msgid "Enable microphone"
msgstr "Включить микрофон"
#: client/scenes/lobby_gui.cpp:681
#: client/scenes/lobby_gui.cpp:801
msgid "Unprocessed Microphone Audio"
msgstr "Необработанный звук с микрофона"
#: client/scenes/lobby_gui.cpp:687
#: client/scenes/lobby_gui.cpp:807
msgid "Force disable audio filters, such as noise cancellation"
msgstr "Принудительно отключить звуковые фильтры, такие как шумоподавление"
#: client/scenes/lobby_gui.cpp:694
#: client/scenes/lobby_gui.cpp:814
msgid "Enable hand tracking"
msgstr "Включить отслеживание рук"
#: client/scenes/lobby_gui.cpp:700 client/scenes/lobby_gui.cpp:712
#: client/scenes/lobby_gui.cpp:724 client/scenes/lobby_gui.cpp:741
#: client/scenes/lobby_gui_customize.cpp:540
#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856
#: client/scenes/lobby_gui_customize.cpp:640
msgid "This feature is not supported by your headset"
msgstr "Эта функция не поддерживается вашим шлемом"
#: client/scenes/lobby_gui.cpp:706
#: client/scenes/lobby_gui.cpp:825
msgid "Enable eye tracking"
msgstr "Включить отслеживание глаз"
#: client/scenes/lobby_gui.cpp:718
#: client/scenes/lobby_gui.cpp:836
msgid "Enable face tracking"
msgstr "Включить отслеживание лица"
#: client/scenes/lobby_gui.cpp:732
#: client/scenes/lobby_gui.cpp:848
msgid "Enable body tracking"
msgstr "Включить отслеживание тела"
#: client/scenes/lobby_gui.cpp:746
#: client/scenes/lobby_gui.cpp:861
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -265,11 +341,11 @@ msgstr ""
"отслеживания движений,\n"
"иначе данные тела будут угаданы из положения контроллера и шлема"
#: client/scenes/lobby_gui.cpp:756
#: client/scenes/lobby_gui.cpp:871
msgid "Enable lower body tracking"
msgstr "Включить отслеживание нижней части тела"
#: client/scenes/lobby_gui.cpp:762
#: client/scenes/lobby_gui.cpp:877
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -279,11 +355,11 @@ msgstr ""
"Требуется чтобы в Quest было включено 'Отслеживание рук и тела' в настройках "
"отслеживания движений"
#: client/scenes/lobby_gui.cpp:765
#: client/scenes/lobby_gui.cpp:880
msgid "Enable hip tracking"
msgstr "Включить отслеживание бедер"
#: client/scenes/lobby_gui.cpp:771
#: client/scenes/lobby_gui.cpp:886
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -291,11 +367,11 @@ msgstr ""
"Вступает в силу только с включенным отслеживанием нижней части тела\n"
"Может пригодится когда используется другой источник отслеживания бедер"
#: client/scenes/lobby_gui.cpp:779
#: client/scenes/lobby_gui.cpp:895
msgid "Enable in-stream window"
msgstr "Включить окно во время трансляции"
#: client/scenes/lobby_gui.cpp:782
#: client/scenes/lobby_gui.cpp:898
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
@@ -303,15 +379,25 @@ msgstr ""
"Позволяет отображать окно конфигурации во время трансляции игры.\n"
"Если включено, окно активируется нажатием обоих джойстиков."
#: client/scenes/lobby_gui.cpp:796 client/scenes/stream_gui.cpp:394
#: client/scenes/lobby_gui.cpp:902
msgid "Extended configuration values"
msgstr "Расширенные значения настроек"
#: client/scenes/lobby_gui.cpp:905
msgid "Allows unsafe configuration values, use at your own risk."
msgstr ""
"Позволяет устанавливать небезопасные значения настроек, используйте на свой "
"риск."
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:473
msgid "OpenXR post-processing"
msgstr "OpenXR постобработка"
#: client/scenes/lobby_gui.cpp:800 client/scenes/stream_gui.cpp:398
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:477
msgid "Supersampling"
msgstr "Supersampling"
#: client/scenes/lobby_gui.cpp:820 client/scenes/stream_gui.cpp:419
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:498
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -319,11 +405,11 @@ msgstr ""
"Уменьшает мерцание для высококонтрастных границ.\n"
"Полезно когда входное разрешение высокое по сравнение с экраном шлема"
#: client/scenes/lobby_gui.cpp:825 client/scenes/stream_gui.cpp:424
#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:503
msgid "Sharpening"
msgstr "Увеличение резкости"
#: client/scenes/lobby_gui.cpp:845 client/scenes/stream_gui.cpp:445
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:524
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -331,129 +417,129 @@ msgstr ""
"Улучшить четкость высококонтрастных границ и противодействовать размытию.\n"
"Полезно когда входное разрешение низкое по сравнение с экраном шлема"
#: client/scenes/lobby_gui.cpp:1029 client/scenes/lobby_gui.cpp:1037
#: client/scenes/stream_gui.cpp:171 client/scenes/stream_gui.cpp:373
#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:370
msgid "CPU time"
msgstr "Время ЦПУ"
#: client/scenes/lobby_gui.cpp:1033
#: client/scenes/lobby_gui.cpp:1156
msgid "CPU time [ms]"
msgstr "Время ЦПУ [мс]"
#: client/scenes/lobby_gui.cpp:1043 client/scenes/lobby_gui.cpp:1051
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:374
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:371
msgid "GPU time"
msgstr "Время ГПУ"
#: client/scenes/lobby_gui.cpp:1047
#: client/scenes/lobby_gui.cpp:1170
msgid "GPU time [ms]"
msgstr "Время ГПУ [мс]"
#: client/scenes/lobby_gui.cpp:1111
#: client/scenes/lobby_gui.cpp:1234
msgid "Enable the microphone?"
msgstr "Включить микрофон?"
#: client/scenes/lobby_gui.cpp:1116
#: client/scenes/lobby_gui.cpp:1239
msgid "Enable eye tracking?"
msgstr "Включить отслеживание глаз?"
#: client/scenes/lobby_gui.cpp:1121
#: client/scenes/lobby_gui.cpp:1244
msgid "Enable face tracking?"
msgstr "Включить отслеживание лица?"
#: client/scenes/lobby_gui.cpp:1126
#: client/scenes/lobby_gui.cpp:1249
msgid "Enable body tracking?"
msgstr "Включить отслеживание тела?"
#: client/scenes/lobby_gui.cpp:1134
#: client/scenes/lobby_gui.cpp:1257
msgid "Welcome to WiVRn"
msgstr "Добро пожаловать в WiVRn"
#: client/scenes/lobby_gui.cpp:1158
#: client/scenes/lobby_gui.cpp:1285
msgid "Yes"
msgstr "Да"
#: client/scenes/lobby_gui.cpp:1165
#: client/scenes/lobby_gui.cpp:1292
msgid "No"
msgstr "Нет"
#: client/scenes/lobby_gui.cpp:1184 client/scenes/lobby_gui.cpp:1825
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
msgid "Licenses"
msgstr "Лицензии"
#: client/scenes/lobby_gui.cpp:1459
#: client/scenes/lobby_gui.cpp:1587
msgid "Microphone is enabled"
msgstr "Микрофон включен"
#: client/scenes/lobby_gui.cpp:1460
#: client/scenes/lobby_gui.cpp:1588
msgid "Microphone is disabled"
msgstr "Микрофон выключен"
#: client/scenes/lobby_gui.cpp:1469
#: client/scenes/lobby_gui.cpp:1597
msgid "Hand tracking is enabled"
msgstr "Отслеживание рук включено"
#: client/scenes/lobby_gui.cpp:1470
#: client/scenes/lobby_gui.cpp:1598
msgid "Hand tracking is disabled"
msgstr "Отслеживание рук выключено"
#: client/scenes/lobby_gui.cpp:1479
#: client/scenes/lobby_gui.cpp:1607
msgid "Eye tracking is enabled"
msgstr "Отслеживание глаз включено"
#: client/scenes/lobby_gui.cpp:1480
#: client/scenes/lobby_gui.cpp:1608
msgid "Eye tracking is disabled"
msgstr "Отслеживание глаз выключено"
#: client/scenes/lobby_gui.cpp:1490
#: client/scenes/lobby_gui.cpp:1618
msgid "Face tracking is enabled"
msgstr "Отслеживание лица включено"
#: client/scenes/lobby_gui.cpp:1491
#: client/scenes/lobby_gui.cpp:1619
msgid "Face tracking is disabled"
msgstr "Отслеживание лица выключено"
#: client/scenes/lobby_gui.cpp:1501
#: client/scenes/lobby_gui.cpp:1633
msgid "Body tracking is enabled"
msgstr "Отслеживание тела включено"
#: client/scenes/lobby_gui.cpp:1502
#: client/scenes/lobby_gui.cpp:1634
msgid "Body tracking is disabled"
msgstr "Отслеживание тела выключено"
#: client/scenes/lobby_gui.cpp:1518
#: client/scenes/lobby_gui.cpp:1650
msgid "Add server"
msgstr "Добавить сервер"
#: client/scenes/lobby_gui.cpp:1804
#: client/scenes/lobby_gui.cpp:1936
msgid "Server list"
msgstr "Список серверов"
#: client/scenes/lobby_gui.cpp:1807 client/scenes/stream_gui.cpp:874
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:990
msgid "Settings"
msgstr "Настройки"
#: client/scenes/lobby_gui.cpp:1810
#: client/scenes/lobby_gui.cpp:1942
msgid "Post-processing"
msgstr "Постобработка"
#: client/scenes/lobby_gui.cpp:1813
#: client/scenes/lobby_gui.cpp:1945
msgid "Customize"
msgstr "Настроить"
#: client/scenes/lobby_gui.cpp:1817
#: client/scenes/lobby_gui.cpp:1949
msgid "Debug"
msgstr "Отладка"
#: client/scenes/lobby_gui.cpp:1822
#: client/scenes/lobby_gui.cpp:1954
msgid "About"
msgstr "О приложении"
#: client/scenes/lobby_gui.cpp:1828
#: client/scenes/lobby_gui.cpp:1960
msgid "Exit"
msgstr "Выйти"
#: client/scenes/lobby_gui.cpp:1845
#: client/scenes/lobby_gui.cpp:1977
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
@@ -461,32 +547,51 @@ msgstr ""
"Нажмите кнопку захвата или поднимите ладонь\n"
"чтобы переместить главное окно"
#: client/scenes/lobby_gui.cpp:1847
#: client/scenes/lobby_gui.cpp:1979
msgid "Press the grip button to move the main window"
msgstr "Нажмите кнопку захвата чтобы переместить главное окно"
#: client/scenes/lobby_gui_customize.cpp:363
#: client/scenes/lobby_gui_customize.cpp:213
msgid "Locally loaded environment"
msgstr "Локально загруженное окружение"
#: client/scenes/lobby_gui_customize.cpp:226
#, c++-format
msgid "Locally loaded environment ({})"
msgstr "Локально загруженное окружение ({})"
#: client/scenes/lobby_gui_customize.cpp:300
#, c++-format
msgid "Cannot load local environment: {}"
msgstr "Не удалось загрузить локальное окружение: {}"
#: client/scenes/lobby_gui_customize.cpp:333
#, c++-format
msgid "Cannot load environment list: {}"
msgstr "Не удалось загрузить список окружений: {}"
#: client/scenes/lobby_gui_customize.cpp:463
#, c++-format
msgid "Author: {}"
msgstr "Автор: {}"
#: client/scenes/lobby_gui_customize.cpp:367
#: client/scenes/lobby_gui_customize.cpp:467
#, c++-format
msgid "Size: {:.1f} MB"
msgstr "Размер: {:.1f} Мб"
#: client/scenes/lobby_gui_customize.cpp:447
#: client/scenes/lobby_gui_customize.cpp:547
msgid "Delete this model"
msgstr "Удалить эту модель"
#: client/scenes/lobby_gui_customize.cpp:483
#: client/scenes/lobby_gui_customize.cpp:689
#: client/scenes/lobby_gui_customize.cpp:583
#: client/scenes/lobby_gui_customize.cpp:789
#, c++-format
msgid "HTTP error {} when downloading {}"
msgstr "Ошибка HTTP {} во время загрузки {}"
#: client/scenes/lobby_gui_customize.cpp:491
#: client/scenes/lobby_gui_customize.cpp:697
#: client/scenes/lobby_gui_customize.cpp:591
#: client/scenes/lobby_gui_customize.cpp:797
#, c++-format
msgid ""
"Curl error when downloading {}\n"
@@ -495,49 +600,45 @@ msgstr ""
"Ошибка curl во время загрузки {}\n"
"{}: {}"
#: client/scenes/lobby_gui_customize.cpp:552
#, c-format
#: client/scenes/lobby_gui_customize.cpp:652
#, c++-format
msgid "Really delete {}?"
msgstr "Точно удалить {}?"
#: client/scenes/lobby_gui_customize.cpp:556
#: client/scenes/lobby_gui_customize.cpp:656
msgid "Delete"
msgstr "Удалить"
#: client/scenes/lobby_gui_customize.cpp:637
#: client/scenes/lobby_gui_customize.cpp:737
#, c++-format
msgid "Cannot load environment: {}"
msgstr "Невозможно загрузить окружение: {}"
msgstr "Не удалось загрузить окружение: {}"
#: client/scenes/lobby_gui_customize.cpp:645
#: client/scenes/lobby_gui_customize.cpp:745
msgid "Loading environment"
msgstr "Загрузка окружения"
#: client/scenes/lobby_gui_customize.cpp:724
#: client/scenes/lobby_gui_customize.cpp:824
msgid "Download more environments"
msgstr "Скачать больше окружений"
#: client/scenes/lobby_gui_customize.cpp:732
#: client/scenes/lobby_gui_customize.cpp:832
msgid "Open local glTF model"
msgstr "Открыть локальную glTF модель"
#: client/scenes/stream_gui.cpp:173
msgid "Reproject"
msgstr "Репроектирование"
#: client/scenes/stream_gui.cpp:174
msgid "Blit"
msgstr "Блит"
msgid "Defoveate"
msgstr "Дефовеация"
#: client/scenes/stream_gui.cpp:176
msgid "Network"
msgstr "Сеть"
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:368
msgid "Download"
msgstr "Загрузка"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
msgid "Upload"
msgstr "Выгрузка"
@@ -578,86 +679,107 @@ msgstr "Отображенное"
msgid "Predicted"
msgstr "Прогнозируемое"
#: client/scenes/stream_gui.cpp:344
#: client/scenes/stream_gui.cpp:343
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Расчетная задержка от движения к фотонам: {}мс"
#: client/scenes/stream_gui.cpp:351
#: client/scenes/stream_gui.cpp:348
msgid "Press the grip button to move the window"
msgstr "Нажмите кнопку захвата чтобы передвинуть окно"
#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:817
#: client/scenes/stream_gui.cpp:350 client/scenes/stream_gui.cpp:918
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Нажмите оба джойстика чтобы показать окно WiVRn"
#: client/scenes/stream_gui.cpp:375
#: client/scenes/stream_gui.cpp:372
msgid "Motion to photon latency"
msgstr "Задержка от движения к фотонам"
#: client/scenes/stream_gui.cpp:452
#: client/scenes/stream_gui.cpp:458
msgid "Bitrate:"
msgstr "Битрейт:"
#: client/scenes/stream_gui.cpp:468
msgid "Click to adjust bitrate"
msgstr "Нажмите чтобы настроить битрейт"
#: client/scenes/stream_gui.cpp:531
msgid "Foveation center override"
msgstr "Переопределение центра фовеации"
#: client/scenes/stream_gui.cpp:455
#: client/scenes/stream_gui.cpp:534
msgid "Enable"
msgstr "Включить"
#: client/scenes/stream_gui.cpp:463 client/scenes/stream_gui.cpp:510
#: client/scenes/stream_gui.cpp:542 client/scenes/stream_gui.cpp:614
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Высота {:.1f} градусов"
#: client/scenes/stream_gui.cpp:464 client/scenes/stream_gui.cpp:511
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:615
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Расстояние {:.2f} м"
#: client/scenes/stream_gui.cpp:465
#: client/scenes/stream_gui.cpp:544
msgid "Default"
msgstr "По умолчанию"
#: client/scenes/stream_gui.cpp:476
#: client/scenes/stream_gui.cpp:555
msgid "Change"
msgstr "Изменить"
#: client/scenes/stream_gui.cpp:508
#: client/scenes/stream_gui.cpp:588
msgid "Use the right thumbstick to adjust the bitrate"
msgstr "Используйте правый джойстик для настройки битрейта"
#: client/scenes/stream_gui.cpp:589
msgid "Press A to go back"
msgstr "Нажмите A чтобы вернуться назад"
#: client/scenes/stream_gui.cpp:590
#, c++-format
msgid "Bitrate: {}Mbit/s"
msgstr "Битрейт: {}МБит/с"
#: client/scenes/stream_gui.cpp:612
msgid "Use the thumbsticks to move the foveation center"
msgstr "Используйте джойстики чтобы передвинуть центр фовеации"
#: client/scenes/stream_gui.cpp:509
#: client/scenes/stream_gui.cpp:613
msgid "Press A to save or B to cancel"
msgstr "Нажмите A чтобы сохранить или B чтобы отменить"
#: client/scenes/stream_gui.cpp:567
#: client/scenes/stream_gui.cpp:671
msgid "Running XR applications:"
msgstr "Запущенные XR приложения:"
#: client/scenes/stream_gui.cpp:584
#: client/scenes/stream_gui.cpp:688
msgid "Overlays"
msgstr "Оверлеи"
#: client/scenes/stream_gui.cpp:623
#: client/scenes/stream_gui.cpp:727
msgid "Request to quit, may be ignored by the application"
msgstr "Запрос на выход, может быть проигнорирован приложением"
#: client/scenes/stream_gui.cpp:626
msgid "Start"
msgstr "Запустить"
#: client/scenes/stream_gui.cpp:871
msgid "Stats"
msgstr "Метрики"
#: client/scenes/stream_gui.cpp:877
#: client/scenes/stream_gui.cpp:977
msgid "Applications"
msgstr "Приложения"
#: client/scenes/stream_gui.cpp:883
#: client/scenes/stream_gui.cpp:980
msgid "Start"
msgstr "Запустить"
#: client/scenes/stream_gui.cpp:993
msgid "Stats"
msgstr "Метрики"
#: client/scenes/stream_gui.cpp:999
msgid "Statistics overlay"
msgstr "Оверлей метрик"
#: client/scenes/stream_gui.cpp:886
#: client/scenes/stream_gui.cpp:1002
msgid "Compact view"
msgstr "Компактный вид"
@@ -677,5 +799,14 @@ msgstr "Невозможно проверить ПИН"
msgid "Pairing is disabled on server"
msgstr "Сопряжение выключено на сервере"
#~ msgid "Resolution scale"
#~ msgstr "Масштаб разрешения"
#~ msgid "Reproject"
#~ msgstr "Репроектирование"
#~ msgid "Blit"
#~ msgstr "Блит"
#~ msgid "Enable video passthrough in lobby"
#~ msgstr "Включить сквозную передачу видео в лобби"
+346 -225
View File
@@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-02 23:25+0300\n"
"PO-Revision-Date: 2025-11-03 21:59+0300\n"
"POT-Creation-Date: 2026-02-02 16:05+0300\n"
"PO-Revision-Date: 2026-02-08 16:33+0300\n"
"Last-Translator: Hüseyin Fahri Uzun <mail@fahriuzun.com>\n"
"Language-Team: \n"
"Language: tr\n"
@@ -69,10 +69,39 @@ msgstr "'adb install' komutu başarısız oldu: çıkış kodu %1"
msgid "Installation successful"
msgstr "Yükleme başarılı"
#: dashboard/main.cpp:27 dashboard/qml/Main.qml:12
#: dashboard/main.cpp:26
#, kde-format
msgid "WiVRn dashboard"
msgstr "WiVRn kontrol paneli"
msgctxt "@title"
msgid "WiVRn"
msgstr "WiVRn"
#: dashboard/main.cpp:28
#, kde-format
msgid "WiVRn server"
msgstr "WiVRn sunucusu"
#: dashboard/main.cpp:30
#, kde-format
msgid "(c) 2022-2026 WiVRn development team"
msgstr "(c) 2022-2026 WiVRn geliştirme ekibi"
#: dashboard/main.cpp:40
#, kde-format
msgid "Monado"
msgstr "Monado"
#: dashboard/main.cpp:41
#, kde-format
msgid "OpenXR runtime"
msgstr "OpenXR runtime"
#: dashboard/qml/About.qml:17 dashboard/qml/ApkInstallPage.qml:65
#: dashboard/qml/HeadsetsPage.qml:183 dashboard/qml/HeadsetStatsPage.qml:36
#: dashboard/qml/TroubleshootPage.qml:71
#, kde-format
msgctxt "go back to the home page"
msgid "Back"
msgstr "Geri"
#: dashboard/qml/ApkInstallPage.qml:12 dashboard/qml/WizardPage.qml:137
#, kde-format
@@ -90,8 +119,9 @@ msgstr "En son sürüm kontrol ediliyor..."
msgid "No APK is available for this version"
msgstr "Bu versiyon için APK yok"
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:302
#: dashboard/qml/Main.qml:387 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:368
#: dashboard/qml/Main.qml:426 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/WizardPage.qml:337
#, kde-format
msgid "ADB is not installed"
msgstr "ADB yüklü değil"
@@ -113,13 +143,6 @@ msgstr ""
"blob/master/docs/building.md#client-headset\">belgelerdeki</a> talimatları "
"izleyin."
#: dashboard/qml/ApkInstallPage.qml:65 dashboard/qml/HeadsetsPage.qml:183
#: dashboard/qml/HeadsetStatsPage.qml:36 dashboard/qml/TroubleshootPage.qml:67
#, kde-format
msgctxt "go back to the home page"
msgid "Back"
msgstr "Geri"
#: dashboard/qml/ConnectUsbDialog.qml:11
#, kde-format
msgid "Select your headset"
@@ -140,7 +163,7 @@ msgstr "WiVRn'i yeniden yükle"
msgid "Install WiVRn"
msgstr "WiVRn'i yükle"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:392
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:431
#, kde-format
msgid "Headsets"
msgstr "Gözlükler"
@@ -185,7 +208,7 @@ msgstr "Yeniden Adlandır"
#: dashboard/qml/HeadsetsPage.qml:55 dashboard/qml/WizardPage.qml:38
#: dashboard/qml/WizardPage.qml:88 dashboard/qml/WizardPage.qml:263
#: dashboard/qml/WizardPage.qml:327 dashboard/qml/WizardPage.qml:411
#: dashboard/qml/WizardPage.qml:376
#, kde-format
msgid "Cancel"
msgstr "İptal"
@@ -237,56 +260,59 @@ msgstr "Yeni bir gözlük eşleştir"
msgid "Headset statistics"
msgstr "Gözlük istatistikleri"
#: dashboard/qml/Main.qml:121
#: dashboard/qml/Main.qml:12
#, kde-format
msgid "WiVRn dashboard"
msgstr "WiVRn kontrol paneli"
#: dashboard/qml/Main.qml:51
#, kde-format
msgid "Quit WiVRn"
msgstr "WiVRn'den çık"
#: dashboard/qml/Main.qml:52
#, kde-format
msgid ""
"The WiVRn server is active.\n"
"Closing the window will terminate it."
msgstr ""
"WiVRn sunucusu etkindir.\n"
"Pencere kapatıldığında sunucu sonlandırılır."
#: dashboard/qml/Main.qml:142
#, kde-format
msgid "Avahi daemon is not installed"
msgstr "Avahi daemon yüklenmedi"
#: dashboard/qml/Main.qml:129
#: dashboard/qml/Main.qml:150
#, kde-format
msgid "Avahi daemon is not started"
msgstr "Avahi daemon başlatılmadı"
#: dashboard/qml/Main.qml:136 dashboard/qml/Main.qml:151
#: dashboard/qml/Main.qml:165
#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171
#: dashboard/qml/Main.qml:223
#, kde-format
msgid "Fix it"
msgstr "Onar"
#: dashboard/qml/Main.qml:144
#, kde-format
msgid "The server does not have CAP_SYS_NICE capabilities"
msgstr "Sunucunun CAP_SYS_NICE yetenekleri yok"
#: dashboard/qml/Main.qml:159
#: dashboard/qml/Main.qml:165
#, kde-format
msgid "Firewall may not allow port 9757"
msgstr "Güvenlik duvarı 9757 port'una izin vermiyor olabilir"
#: dashboard/qml/Main.qml:174
#, kde-format
msgid "The CAP_SYS_NICE capability will be used when the server is restarted"
msgstr "Sunucu yeniden başlatıldığında CAP_SYS_NICE yeteneği kullanılacak"
#: dashboard/qml/Main.qml:180
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "Şimdi yeniden başlat"
#: dashboard/qml/Main.qml:191
#: dashboard/qml/Main.qml:179
#, kde-format
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
msgstr ""
"NVIDIA GPU'lar en az 565.77 sürücü sürümünü gerektirir, geçerli sürüm %1"
#: dashboard/qml/Main.qml:197
#: dashboard/qml/Main.qml:185
#, kde-format
msgid "More info"
msgstr "Daha fazla bilgi"
#: dashboard/qml/Main.qml:205
#: dashboard/qml/Main.qml:193
#, kde-format
msgid ""
"Use the Mesa (radv) driver for AMD GPUs\n"
@@ -295,7 +321,7 @@ msgstr ""
"AMD GPU'lar için Mesa (radv) sürücüsünü kullanın\n"
"vaapi ile donanım kodlaması AMDVLK ve AMDGPU-PRO ile çalışmaz"
#: dashboard/qml/Main.qml:213
#: dashboard/qml/Main.qml:201
#, kde-format
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
@@ -304,79 +330,130 @@ msgstr ""
"OpenVR uyumluluğu algılanmadı, Steam oyunları VR'ı yükleyemeyecek.\n"
"xrizer veya OpenComposite kurun."
#: dashboard/qml/Main.qml:222
#: dashboard/qml/Main.qml:209
#, kde-format
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
msgstr "Steam, snap olarak yüklenmiş. Snap'ler WiVRn ile uyumlu değildir."
#: dashboard/qml/Main.qml:217
#, kde-format
msgid ""
"Steam is installed as a flatpak but does not have sufficient permissions."
msgstr "Steam, flatpak olarak yüklenmiş ancak yeterli izinlere sahip değildir."
#: dashboard/qml/Main.qml:232
#, kde-format
msgid "Restart the server for configuration changes to take effect"
msgstr ""
"Yapılandırma değişikliklerinin etkili olması için sunucuyu yeniden başlatın"
#: dashboard/qml/Main.qml:238
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "Şimdi yeniden başlat"
#: dashboard/qml/Main.qml:263
#, kde-format
msgid "Server failed to start"
msgstr "Sunucu başlatılamadı"
#: dashboard/qml/Main.qml:228 dashboard/qml/TroubleshootPage.qml:85
#: dashboard/qml/Main.qml:269 dashboard/qml/TroubleshootPage.qml:89
#, kde-format
msgid "Open server logs"
msgstr "Sunucu günlüklerini aç"
#: dashboard/qml/Main.qml:257
#: dashboard/qml/Main.qml:295
#, kde-format
msgid "Server status"
msgstr "Sunucu durumu"
#: dashboard/qml/Main.qml:301
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "Çalışıyor"
#: dashboard/qml/Main.qml:272
#: dashboard/qml/Main.qml:314
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "Eşleştirme"
#: dashboard/qml/Main.qml:285
#: dashboard/qml/Main.qml:334
#, kde-format
msgid "PIN: %1"
msgstr "PIN: %1"
msgid "Headset status"
msgstr "Gözlük durumu"
#: dashboard/qml/Main.qml:293 dashboard/qml/WizardPage.qml:374
#: dashboard/qml/Main.qml:341
#, kde-format
msgid "Connect by USB"
msgstr "USB ile bağlan"
msgctxt "label for headset name/status under server running switch"
msgid "Headset"
msgstr "Gözlük"
#: dashboard/qml/Main.qml:304
#: dashboard/qml/Main.qml:344
#, kde-format
msgid "No headset is connected or your headset is not in developer mode"
msgstr "Gözlük bağlı değil veya gözlüğünüz geliştirici modunda değil"
msgid "Not connected"
msgstr "Bağlı değil"
#: dashboard/qml/Main.qml:312
#: dashboard/qml/Main.qml:348
#, kde-format
msgid "Disconnect"
msgstr "Bağlantıyı kes"
#: dashboard/qml/Main.qml:329
#: dashboard/qml/Main.qml:357 dashboard/qml/Main.qml:365
#: dashboard/qml/Main.qml:372
#, kde-format
msgctxt "automatically started application"
msgid "Application"
msgstr "Uygulama"
msgctxt "label for USB status or connect button"
msgid "USB"
msgstr "USB"
#: dashboard/qml/Main.qml:350
#: dashboard/qml/Main.qml:358
#, kde-format
msgctxt "usb connect button"
msgid "Connect (wired)"
msgstr "Bağla (kablolu)"
#: dashboard/qml/Main.qml:375 dashboard/qml/WizardPage.qml:339
#, kde-format
msgid "No headset is connected or your headset is not in developer mode"
msgstr "Gözlük bağlı değil veya gözlüğünüz geliştirici modunda değil"
#: dashboard/qml/Main.qml:396
#, kde-format
msgid "Steam information"
msgstr "Steam bilgisi"
#: dashboard/qml/Main.qml:371
#: dashboard/qml/Main.qml:412
#, kde-format
msgid "Wizard"
msgstr "Sihirbaz"
#: dashboard/qml/Main.qml:378
#: dashboard/qml/Main.qml:418
#, kde-format
msgid "Install the app"
msgstr "Uygulamayı yükle"
#: dashboard/qml/Main.qml:399 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:437 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "Ayarlar"
#: dashboard/qml/Main.qml:406 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:443
#, kde-format
msgid "About"
msgstr "Hakkında"
#: dashboard/qml/Main.qml:448 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "Sorun giderme"
#: dashboard/qml/Main.qml:455
#, kde-format
msgid "Version %1"
msgstr "Versiyon %1"
#: dashboard/qml/SelectGame.qml:14
#, kde-format
msgctxt "don't start an application automatically"
@@ -389,179 +466,100 @@ msgctxt "choose a custom application to start"
msgid "Custom"
msgstr "Özel"
#: dashboard/qml/SelectGame.qml:76
#: dashboard/qml/SelectGame.qml:72
#, kde-format
msgctxt "browse a file to choose the application to start"
msgid "Browse"
msgstr "Gözat"
#: dashboard/qml/SettingsPage.qml:35
#, kde-format
msgctxt "automatic foveation setup"
msgid "Manual foveation"
msgstr "El ile foveasyon"
#: dashboard/qml/SettingsPage.qml:41
#, kde-format
msgid "Foveation strength:"
msgstr "Foveasyon gücü:"
#: dashboard/qml/SettingsPage.qml:57
#, kde-format
msgid "%1 %"
msgstr "%%%1"
#: dashboard/qml/SettingsPage.qml:63
#, kde-format
msgid ""
"A stronger foveation makes the image sharper in the center than in the "
"periphery and makes the decoding faster. This is better for fast paced "
"games.\n"
"\n"
"A weaker foveation gives a uniform sharpness in the whole image.\n"
"\n"
"The recommended values are between 20% and 50% for headsets without eye "
"tracking and between 50% and 70% for headsets with eye tracking."
msgstr ""
"Daha güçlü bir foveasyon, görüntüyü merkezde çevreye göre daha keskin hale "
"getirir ve kod çözmeyi hızlandırır. Bu, hızlı tempolu oyunlar için daha "
"iyidir.\n"
"\n"
"Daha zayıf bir foveasyon, tüm görüntüde tek tip bir keskinlik sağlar.\n"
"\n"
"Önerilen değerler, göz izleme olmayan başlıklar için 20% ile 50% arasında, "
"göz izleme olan başlıklar için ise 50% ile 70% arasındadır."
#: dashboard/qml/SettingsPage.qml:69
#, kde-format
msgctxt "weaker foveation"
msgid "Weaker"
msgstr "Daha zayıf"
#: dashboard/qml/SettingsPage.qml:80
#, kde-format
msgctxt "stronger foveation"
msgid "Stronger"
msgstr "Daha güçlü"
#: dashboard/qml/SettingsPage.qml:90
#, kde-format
msgid "Bitrate:"
msgstr "Bit hızı:"
#: dashboard/qml/SettingsPage.qml:94 dashboard/qml/SettingsPage.qml:96
#, kde-format
msgctxt "bitrate"
msgid "%1 Mbit/s"
msgstr "Mbit/s %1"
#: dashboard/qml/SettingsPage.qml:108
#: dashboard/qml/SettingsPage.qml:28
#, kde-format
msgid "The current encoder configuration is not supported"
msgstr "Güncel encoder ayarı desteklenmiyor"
#: dashboard/qml/SettingsPage.qml:113
#: dashboard/qml/SettingsPage.qml:33
#, kde-format
msgid "Reset"
msgstr "Reset"
#: dashboard/qml/SettingsPage.qml:120
#: dashboard/qml/SettingsPage.qml:40
#, kde-format
msgid "Encoder:"
msgstr "Kodlayıcı:"
#: dashboard/qml/SettingsPage.qml:126
#: dashboard/qml/SettingsPage.qml:46
#, kde-format
msgctxt "automatic encoder setup"
msgid "Auto"
msgstr "Otomatik"
#: dashboard/qml/SettingsPage.qml:130
#: dashboard/qml/SettingsPage.qml:50
#, kde-format
msgid "nvenc (NVIDIA GPUs)"
msgstr "nvenc (NVIDIA GPU'ları)"
#: dashboard/qml/SettingsPage.qml:134
#: dashboard/qml/SettingsPage.qml:54
#, kde-format
msgid "vaapi (AMD and Intel GPUs)"
msgstr "vaapi (AMD ve Intel GPU'ları)"
#: dashboard/qml/SettingsPage.qml:138
#: dashboard/qml/SettingsPage.qml:58
#, kde-format
msgid "Vulkan (Vulkan Video)"
msgstr "Vulkan (Vulkan Video)"
msgid "Vulkan (Any modern GPU)"
msgstr "Vulkan (Herhangi modern GPU)"
#: dashboard/qml/SettingsPage.qml:142
#: dashboard/qml/SettingsPage.qml:62
#, kde-format
msgid "x264 (software encoding)"
msgstr "x264 (yazılım kodlaması)"
#: dashboard/qml/SettingsPage.qml:159
#: dashboard/qml/SettingsPage.qml:79
#, kde-format
msgid "\"Auto\" will use hardware acceleration if it is available"
msgstr "\"Otomatik\", mevcutsa donanım hızlandırmayı kullanacaktır"
#: dashboard/qml/SettingsPage.qml:164
#: dashboard/qml/SettingsPage.qml:88
#, kde-format
msgid "Codec:"
msgstr "Codec:"
msgid "Autostart application:"
msgstr "Oto-başlat uygulaması:"
#: dashboard/qml/SettingsPage.qml:170
#, kde-format
msgctxt "automatic codec setup"
msgid "Auto"
msgstr "Otomatik"
#: dashboard/qml/SettingsPage.qml:174
#, kde-format
msgid "H.264"
msgstr "H.264"
#: dashboard/qml/SettingsPage.qml:178
#, kde-format
msgid "H.265"
msgstr "H.265"
#: dashboard/qml/SettingsPage.qml:182
#, kde-format
msgid "AV1"
msgstr "AV1"
#: dashboard/qml/SettingsPage.qml:210
#, kde-format
msgid "10 bits"
msgstr "10-bit"
#: dashboard/qml/SettingsPage.qml:215
#, kde-format
msgid ""
"10-bit encoding improves image quality but is not supported by all codecs "
"and hardware"
msgstr ""
"10-bit encoding resim kalitesini artırır fakat tüm codec ve donanımlarda "
"desteklenmez"
#: dashboard/qml/SettingsPage.qml:225
#: dashboard/qml/SettingsPage.qml:96
#, kde-format
msgid "Advanced options"
msgstr "Gelişmiş seçenekler"
#: dashboard/qml/SettingsPage.qml:231
#: dashboard/qml/SettingsPage.qml:102
#, kde-format
msgid "Check system configuration on start"
msgstr "Başlangıçta sistem ayarlarını kontrol et"
#: dashboard/qml/SettingsPage.qml:235
#: dashboard/qml/SettingsPage.qml:108
#, kde-format
msgid "Forward keyboard & mouse from headset"
msgstr "Gözlükten klavye & mouse ilet"
#: dashboard/qml/SettingsPage.qml:111
#, kde-format
msgid ""
"Keyboard and mouse connected to the client will act as if connected to the "
"server. Client OS may reserve specific keys and combinations, which cannot "
"be forwarded."
msgstr ""
"İstemciye bağlı klavye ve fare, sunucuya bağlıymış gibi çalışacaktır. "
"İstemci işletim sistemi, iletilemeyen belirli tuşları ve tuş "
"kombinasyonlarını ayırma hakkını saklı tutar."
#: dashboard/qml/SettingsPage.qml:116
#, kde-format
msgid "Enable debug window"
msgstr "Hata ayıklama penceresini etkinleştir"
#: dashboard/qml/SettingsPage.qml:242
#: dashboard/qml/SettingsPage.qml:123
#, kde-format
msgid "Enable SteamVR tracked devices support"
msgstr "SteamVR izlenen aygıt desteğini etkinleştir"
#: dashboard/qml/SettingsPage.qml:245
#: dashboard/qml/SettingsPage.qml:126
#, kde-format
msgid ""
"Allows the use of lighthouse-based controllers and trackers.\n"
@@ -575,44 +573,44 @@ msgstr ""
"Aygıtlar WiVRn'e bağlanmadan önce açık olmalıdır.\n"
"Kalibrasyon için motoc gibi harici bir araç gereklidir."
#: dashboard/qml/SettingsPage.qml:253
#: dashboard/qml/SettingsPage.qml:134
#, kde-format
msgid "Custom adb location"
msgstr "Özel adb konumu"
#: dashboard/qml/SettingsPage.qml:264
#: dashboard/qml/SettingsPage.qml:145
#, kde-format
msgid "Adb location:"
msgstr "Adb konumu:"
#: dashboard/qml/SettingsPage.qml:273
#: dashboard/qml/SettingsPage.qml:154
#, kde-format
msgctxt "browse a file to choose the adb binary"
msgid "Browse"
msgstr "Gözat"
#: dashboard/qml/SettingsPage.qml:283
#: dashboard/qml/SettingsPage.qml:164
#, kde-format
msgid "Default"
msgstr "Varsayılan"
#: dashboard/qml/SettingsPage.qml:297
#: dashboard/qml/SettingsPage.qml:178
#, kde-format
msgctxt "set a custom OpenVR compatibility library"
msgid "Custom"
msgstr "Özel"
#: dashboard/qml/SettingsPage.qml:302
#: dashboard/qml/SettingsPage.qml:183
#, kde-format
msgid "Disabled"
msgstr "Devre dışı"
#: dashboard/qml/SettingsPage.qml:310
#: dashboard/qml/SettingsPage.qml:191
#, kde-format
msgid "OpenVR compatibility library:"
msgstr "OpenVR uyumluluk kitaplığı:"
#: dashboard/qml/SettingsPage.qml:336
#: dashboard/qml/SettingsPage.qml:217
#, kde-format
msgid "Library path, excluding bin/linux64/vrclient.so"
msgstr "Yol: bin/linux64/vrclient.so hariç, kitaplık yolu"
@@ -649,7 +647,7 @@ msgstr "Steam başlatma komutu kopyalandı"
msgid "I cannot find the WiVRn app on my headset"
msgstr "Gözlüğümde WiVRn uygulamasını bulamıyorum"
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:388
#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:353
#, kde-format
msgid ""
"If you installed WiVRn over USB on a Meta headset, the app is in the "
@@ -732,7 +730,7 @@ msgstr "Eşleştirme şu anda devre dışı."
msgid "I have no sound on my headset"
msgstr "Gözlüğümde ses yok"
#: dashboard/qml/TroubleshootPage.qml:58 dashboard/qml/WizardPage.qml:441
#: dashboard/qml/TroubleshootPage.qml:58 dashboard/qml/WizardPage.qml:406
#, kde-format
msgid ""
"When the headset is connected, select \"WiVRn\" as the default audio output "
@@ -741,12 +739,27 @@ msgstr ""
"Gözlük bağlıyken, uygulamaların kullanması için varsayılan ses çıkış aygıtı "
"olarak \"WiVRn\" seçin."
#: dashboard/qml/TroubleshootPage.qml:75
#: dashboard/qml/TroubleshootPage.qml:61
#, kde-format
msgid "Some games fail to start or have input issues"
msgstr "Bazı oyunlar başlatılamıyor veya giriş sorunları yaşıyor"
#: dashboard/qml/TroubleshootPage.qml:62
#, kde-format
msgid ""
"For game specific issues, check on <a href=\"https://db.vronlinux.org/"
"\">vronlinux DB</a> if there are known bugs or workarounds."
msgstr ""
"Oyunla ilgili sorunlar için, <a href=\"https://db.vronlinux.org/\">vronlinux "
"DB</a> adresinde bilinen hatalar veya geçici çözümler olup olmadığını "
"kontrol edin."
#: dashboard/qml/TroubleshootPage.qml:79
#, kde-format
msgid "Report an issue"
msgstr "Bir sorun bildir"
#: dashboard/qml/TroubleshootPage.qml:80
#: dashboard/qml/TroubleshootPage.qml:84
#, kde-format
msgid "Ask on Discord"
msgstr "Discord'da sor"
@@ -757,9 +770,8 @@ msgid "Getting started"
msgstr "Başlangıç"
#: dashboard/qml/WizardPage.qml:29 dashboard/qml/WizardPage.qml:78
#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:317
#: dashboard/qml/WizardPage.qml:401 dashboard/qml/WizardPage.qml:448
#: dashboard/qml/WizardPage.qml:485
#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:366
#: dashboard/qml/WizardPage.qml:413 dashboard/qml/WizardPage.qml:450
#, kde-format
msgid "Back"
msgstr "Geri"
@@ -779,8 +791,7 @@ msgstr ""
"yardımcı olacaktır."
#: dashboard/qml/WizardPage.qml:83 dashboard/qml/WizardPage.qml:258
#: dashboard/qml/WizardPage.qml:322 dashboard/qml/WizardPage.qml:453
#: dashboard/qml/WizardPage.qml:490
#: dashboard/qml/WizardPage.qml:418 dashboard/qml/WizardPage.qml:455
#, kde-format
msgid "Next"
msgstr "İleri"
@@ -859,26 +870,12 @@ msgstr ""
"<ul><li>ADB udev kuralları yüklü</li><li>Gözlük <a href=\"#\">geliştirici "
"modunda</a></li></ul></p>"
#: dashboard/qml/WizardPage.qml:280
#, kde-format
msgid "Select the application you want to start"
msgstr "Başlatmak istediğiniz uygulamayı seçin"
#: dashboard/qml/WizardPage.qml:286
#, kde-format
msgid ""
"The application you choose will be started automatically when you connect "
"your headset."
msgstr ""
"Seçtiğiniz uygulama, gözlüğünüzü bağladığınızda otomatik olarak "
"başlayacaktır."
#: dashboard/qml/WizardPage.qml:301
#: dashboard/qml/WizardPage.qml:295
#, kde-format
msgid "Important information"
msgstr "Önemli bilgi"
#: dashboard/qml/WizardPage.qml:308
#: dashboard/qml/WizardPage.qml:301
#, kde-format
msgid ""
"WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is "
@@ -887,12 +884,12 @@ msgstr ""
"WiVRn, SteamVR'nin yerini tamamen alır, WiVRn çalışırken SteamVR'yi "
"başlatmamalısınız."
#: dashboard/qml/WizardPage.qml:359
#: dashboard/qml/WizardPage.qml:313
#, kde-format
msgid "Start the WiVRn app on your headset"
msgstr "Gözlüğünüzde WiVRn uygulamasını başlatın"
#: dashboard/qml/WizardPage.qml:364
#: dashboard/qml/WizardPage.qml:319
#, kde-format
msgid ""
"To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" "
@@ -901,17 +898,22 @@ msgstr ""
"WiFi üzerinden bağlanmak için, gözlüğünüzde WiVRn uygulamasını başlatın, "
"\"%1\"e bağlanın ve \"%2\" PIN'ini girin."
#: dashboard/qml/WizardPage.qml:371
#: dashboard/qml/WizardPage.qml:326
#, kde-format
msgid "To connect over USB, click on \"Connect by USB\"."
msgstr "USB üzerinden bağlanmak için \"USB ile bağlan\"a tıklayın."
#: dashboard/qml/WizardPage.qml:384
#: dashboard/qml/WizardPage.qml:329
#, kde-format
msgid "Connect by USB"
msgstr "USB ile bağlan"
#: dashboard/qml/WizardPage.qml:349
#, kde-format
msgid "Troubleshooting"
msgstr "Sorun giderme"
#: dashboard/qml/WizardPage.qml:393
#: dashboard/qml/WizardPage.qml:358
#, kde-format
msgid ""
"If the server is not visible or the connection fails, check that ports 5353 "
@@ -920,22 +922,22 @@ msgstr ""
"Eğer sunucu gözükmüyor veya bağlantı başarısız oluyor ise, 5353 (UDP) ve "
"9757 (TCP ve UDP) portlarının güvenlik duvarında açık olduğuna emin olun."
#: dashboard/qml/WizardPage.qml:406
#: dashboard/qml/WizardPage.qml:371
#, kde-format
msgid "Skip"
msgstr "Atla"
#: dashboard/qml/WizardPage.qml:426
#: dashboard/qml/WizardPage.qml:391
#, kde-format
msgid "Connection established"
msgstr "Bağlantı kuruldu"
#: dashboard/qml/WizardPage.qml:431
#: dashboard/qml/WizardPage.qml:396
#, kde-format
msgid "Your headset is now connected."
msgstr "Gözlüğünüz şimdi bağlı."
#: dashboard/qml/WizardPage.qml:436 dashboard/qml/WizardPage.qml:478
#: dashboard/qml/WizardPage.qml:401 dashboard/qml/WizardPage.qml:443
#, kde-format
msgid ""
"To connect another headset, make sure pairing is enabled in the dashboard "
@@ -944,26 +946,145 @@ msgstr ""
"Başka bir gözlük bağlamak için, bağlanmadan önce kontrol panelinde "
"eşleştirmenin etkinleştirildiğinden emin olun."
#: dashboard/qml/WizardPage.qml:458 dashboard/qml/WizardPage.qml:495
#: dashboard/qml/WizardPage.qml:423 dashboard/qml/WizardPage.qml:460
#, kde-format
msgid "Finish"
msgstr "Bitir"
#: dashboard/qml/WizardPage.qml:473
#: dashboard/qml/WizardPage.qml:438
#, kde-format
msgid "Finished"
msgstr "Bitti"
#: dashboard/wivrn_server.cpp:594
#: dashboard/wivrn_server.cpp:540
#, kde-format
msgid "xrizer"
msgstr "xrizer"
#: dashboard/wivrn_server.cpp:595
#: dashboard/wivrn_server.cpp:541
#, kde-format
msgid "Open Composite"
msgstr "Open Composite"
#, kde-format
#~ msgid "The server does not have CAP_SYS_NICE capabilities"
#~ msgstr "Sunucunun CAP_SYS_NICE yetenekleri yok"
#, kde-format
#~ msgid ""
#~ "The CAP_SYS_NICE capability will be used when the server is restarted"
#~ msgstr "Sunucu yeniden başlatıldığında CAP_SYS_NICE yeteneği kullanılacak"
#, kde-format
#~ msgid "PIN: %1"
#~ msgstr "PIN: %1"
#, kde-format
#~ msgctxt "automatically started application"
#~ msgid "Application"
#~ msgstr "Uygulama"
#, kde-format
#~ msgctxt "automatic foveation setup"
#~ msgid "Manual foveation"
#~ msgstr "El ile foveasyon"
#, kde-format
#~ msgid "Foveation strength:"
#~ msgstr "Foveasyon gücü:"
#, kde-format
#~ msgid "%1 %"
#~ msgstr "%%%1"
#, kde-format
#~ msgid ""
#~ "A stronger foveation makes the image sharper in the center than in the "
#~ "periphery and makes the decoding faster. This is better for fast paced "
#~ "games.\n"
#~ "\n"
#~ "A weaker foveation gives a uniform sharpness in the whole image.\n"
#~ "\n"
#~ "The recommended values are between 20% and 50% for headsets without eye "
#~ "tracking and between 50% and 70% for headsets with eye tracking."
#~ msgstr ""
#~ "Daha güçlü bir foveasyon, görüntüyü merkezde çevreye göre daha keskin "
#~ "hale getirir ve kod çözmeyi hızlandırır. Bu, hızlı tempolu oyunlar için "
#~ "daha iyidir.\n"
#~ "\n"
#~ "Daha zayıf bir foveasyon, tüm görüntüde tek tip bir keskinlik sağlar.\n"
#~ "\n"
#~ "Önerilen değerler, göz izleme olmayan başlıklar için 20% ile 50% "
#~ "arasında, göz izleme olan başlıklar için ise 50% ile 70% arasındadır."
#, kde-format
#~ msgctxt "weaker foveation"
#~ msgid "Weaker"
#~ msgstr "Daha zayıf"
#, kde-format
#~ msgctxt "stronger foveation"
#~ msgid "Stronger"
#~ msgstr "Daha güçlü"
#, kde-format
#~ msgid "Bitrate:"
#~ msgstr "Bit hızı:"
#, kde-format
#~ msgctxt "bitrate"
#~ msgid "%1 Mbit/s"
#~ msgstr "Mbit/s %1"
#, kde-format
#~ msgid "Vulkan (Vulkan Video)"
#~ msgstr "Vulkan (Vulkan Video)"
#, kde-format
#~ msgid "Codec:"
#~ msgstr "Codec:"
#, kde-format
#~ msgctxt "automatic codec setup"
#~ msgid "Auto"
#~ msgstr "Otomatik"
#, kde-format
#~ msgid "H.264"
#~ msgstr "H.264"
#, kde-format
#~ msgid "H.265"
#~ msgstr "H.265"
#, kde-format
#~ msgid "AV1"
#~ msgstr "AV1"
#, kde-format
#~ msgid "10 bits"
#~ msgstr "10-bit"
#, kde-format
#~ msgid ""
#~ "10-bit encoding improves image quality but is not supported by all codecs "
#~ "and hardware"
#~ msgstr ""
#~ "10-bit encoding resim kalitesini artırır fakat tüm codec ve donanımlarda "
#~ "desteklenmez"
#, kde-format
#~ msgid "Select the application you want to start"
#~ msgstr "Başlatmak istediğiniz uygulamayı seçin"
#, kde-format
#~ msgid ""
#~ "The application you choose will be started automatically when you connect "
#~ "your headset."
#~ msgstr ""
#~ "Seçtiğiniz uygulama, gözlüğünüzü bağladığınızda otomatik olarak "
#~ "başlayacaktır."
#, kde-format
#~ msgid "No precompiled APK is available for this version"
#~ msgstr "Bu sürüm için önceden derlenmiş APK yok"
+277 -151
View File
@@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-02 19:51+0300\n"
"PO-Revision-Date: 2025-11-03 21:55+0300\n"
"POT-Creation-Date: 2026-02-08 10:52+0300\n"
"PO-Revision-Date: 2026-02-08 16:29+0300\n"
"Last-Translator: Hüseyin Fahri Uzun <mail@fahriuzun.com>\n"
"Language-Team: \n"
"Language: tr\n"
@@ -18,30 +18,30 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.8\n"
#: client/scene.cpp:72
#: client/scene.cpp:73
msgid "No supported swapchain format"
msgstr "Desteklenen swapchain formatı yok"
#: client/scenes/app_launcher.cpp:128
#: client/scenes/app_launcher.cpp:127
msgid "Connected to WiVRn server"
msgstr "WiVRn sunucusuna bağlanıldı"
#: client/scenes/app_launcher.cpp:130
#: client/scenes/app_launcher.cpp:129
#, c++-format
msgid "Connected to {}"
msgstr "{} bağlanıldı"
#: client/scenes/app_launcher.cpp:136
#: client/scenes/app_launcher.cpp:135
msgid "Start an application on the server to start streaming."
msgstr "Sunucuda bir uygulama başlatarak akışa başlayın."
#: client/scenes/app_launcher.cpp:146
#: client/scenes/app_launcher.cpp:145
msgid "Start an application on your computer or select one to start streaming."
msgstr ""
"Bilgisayarınızda bir uygulama başlatın veya akış başlatmak için bir uygulama "
"seçin."
#: client/scenes/app_launcher.cpp:148
#: client/scenes/app_launcher.cpp:147
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr ""
@@ -70,83 +70,83 @@ msgstr "Bağlanılamıyor {} ({}): {}"
msgid "Waiting for connection"
msgstr "Bağlantı için bekleniyor"
#: client/scenes/lobby.cpp:1304
#: client/scenes/lobby.cpp:1316
msgid "Passthrough"
msgstr "Geçiş"
#: client/scenes/lobby.cpp:1316
#: client/scenes/lobby.cpp:1328
msgid "Default environment"
msgstr "Varsayılan ortam"
#: client/scenes/lobby_gui.cpp:99
#: client/scenes/lobby_gui.cpp:101
msgctxt "openxr_post_processing"
msgid "Normal"
msgstr "Normal"
#: client/scenes/lobby_gui.cpp:102
#: client/scenes/lobby_gui.cpp:104
msgctxt "openxr_post_processing"
msgid "Quality"
msgstr "Kalite"
#: client/scenes/lobby_gui.cpp:104
#: client/scenes/lobby_gui.cpp:106
msgctxt "openxr_post_processing"
msgid "Disabled"
msgstr "Devre dışı"
#: client/scenes/lobby_gui.cpp:112 client/scenes/lobby_gui.cpp:256
#: client/scenes/stream_gui.cpp:900
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
#: client/scenes/stream_gui.cpp:1010
msgid "Disconnect"
msgstr "Bağlantıyı Kes"
#: client/scenes/lobby_gui.cpp:132 client/scenes/lobby_gui_customize.cpp:653
#: client/scenes/lobby_gui_customize.cpp:744
#: client/scenes/lobby_gui_customize.cpp:800 client/scenes/stream_gui.cpp:896
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
#: client/scenes/lobby_gui_customize.cpp:844
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1006
msgid "Close"
msgstr "Kapat"
#: client/scenes/lobby_gui.cpp:138
#: client/scenes/lobby_gui.cpp:140
msgid "Connection"
msgstr "Bağlantı"
#: client/scenes/lobby_gui.cpp:140
#: client/scenes/lobby_gui.cpp:142
#, c++-format
msgid "Connection to {}"
msgstr "{} Bağlan"
#: client/scenes/lobby_gui.cpp:170
#: client/scenes/lobby_gui.cpp:172
msgid "PIN"
msgstr "PIN"
#: client/scenes/lobby_gui.cpp:192
#: client/scenes/lobby_gui.cpp:194
msgid "Input the PIN displayed on the dashboard"
msgstr "Gösterilen PIN'i gösterge paneline giriniz"
#: client/scenes/lobby_gui.cpp:282
#: client/scenes/lobby_gui.cpp:284
msgid "Name"
msgstr "Ad"
#: client/scenes/lobby_gui.cpp:293
#: client/scenes/lobby_gui.cpp:295
msgid "Address"
msgstr "Adres"
#: client/scenes/lobby_gui.cpp:302
#: client/scenes/lobby_gui.cpp:304
msgid "Port"
msgstr "Port"
#: client/scenes/lobby_gui.cpp:310
#: client/scenes/lobby_gui.cpp:312
msgid "TCP only"
msgstr "Sadece TCP"
#: client/scenes/lobby_gui.cpp:317 client/scenes/lobby_gui_customize.cpp:555
#: client/scenes/stream_gui.cpp:864
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:962
msgid "Cancel"
msgstr "İptal"
#: client/scenes/lobby_gui.cpp:331
#: client/scenes/lobby_gui.cpp:333
msgid "Save"
msgstr "Kaydet"
#: client/scenes/lobby_gui.cpp:384
#: client/scenes/lobby_gui.cpp:386
msgid ""
"Start a WiVRn server on your\n"
"local network"
@@ -154,45 +154,46 @@ msgstr ""
"Yerel ağınızda\n"
"bir WiVRn sunucusu başlatın"
#: client/scenes/lobby_gui.cpp:416
#: client/scenes/lobby_gui.cpp:418
msgid "Autoconnect"
msgstr "Oto Bağlan"
#: client/scenes/lobby_gui.cpp:442
#: client/scenes/lobby_gui.cpp:444
msgid "Connect"
msgstr "Bağlan"
#: client/scenes/lobby_gui.cpp:452 client/wivrn_client.cpp:186
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186
msgid "Incompatible server version"
msgstr "Uyumsuz sunucu versiyonu"
#: client/scenes/lobby_gui.cpp:454
#: client/scenes/lobby_gui.cpp:456
msgid "Server not available"
msgstr "Sunucu mevcut değil"
#: client/scenes/lobby_gui.cpp:536
#: client/scenes/lobby_gui.cpp:538
msgctxt "language selection, replace with the name of the language"
msgid "English"
msgstr "Türkçe"
#: client/scenes/lobby_gui.cpp:550
#: client/scenes/lobby_gui.cpp:552
msgid "Language"
msgstr "Dil"
#: client/scenes/lobby_gui.cpp:550 client/scenes/lobby_gui.cpp:552
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554
msgid "System language"
msgstr "Sistem dili"
#: client/scenes/lobby_gui.cpp:577
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:411
msgid "Refresh rate"
msgstr "Tazeleme oranı"
#: client/scenes/lobby_gui.cpp:577 client/scenes/lobby_gui.cpp:579
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
#: client/scenes/stream_gui.cpp:411 client/scenes/stream_gui.cpp:413
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "Otomatik"
#: client/scenes/lobby_gui.cpp:586
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:421
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -200,64 +201,134 @@ msgstr ""
"Ölçülen uygulama performansına göre yenileme hızını seçin.\n"
"Değişiklik olduğunda titremeye neden olabilir."
#: client/scenes/lobby_gui.cpp:603
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:439
msgid "Minimum refresh rate"
msgstr "Minimum tazeleme oranı"
#: client/scenes/lobby_gui.cpp:629
#: client/scenes/lobby_gui.cpp:632
msgid "Foveation level"
msgstr "Foveasyon seviyesi"
#: client/scenes/lobby_gui.cpp:651
msgid "Resolution scale"
msgstr "Çözünürlük ölçeği"
#: client/scenes/lobby_gui.cpp:655
msgid "Render resolution"
msgstr "Render çözünürlüğü"
#: client/scenes/lobby_gui.cpp:659
#, c-format, c++-format
msgid "{}%% - {}x{} per eye"
msgstr "göz başına {}%% - {}x{}"
#: client/scenes/lobby_gui.cpp:666
#: client/scenes/lobby_gui.cpp:670
#, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr ""
"{}x{} 'den daha büyük çözünürlükler gözlük tarafından desteklenmeyebilir"
#: client/scenes/lobby_gui.cpp:672
#: client/scenes/lobby_gui.cpp:680
msgid "Foveated encoding"
msgstr "Foveated kodlama"
#: client/scenes/lobby_gui.cpp:684
#, c-format, c++-format
msgid "{}%%"
msgstr "{}%%"
#: client/scenes/lobby_gui.cpp:697
msgid ""
"Higher values focus image quality where you look at,\n"
"improving latency, power efficiency and quality."
msgstr ""
"Daha yüksek değerler, baktığınız yerdeki görüntü kalitesine odaklanır,\n"
"gecikme süresini, güç verimliliğini ve kaliteyi iyileştirir."
#: client/scenes/lobby_gui.cpp:700
msgid ""
"Higher values focus image quality at the center,\n"
"improving latency, power efficiency and quality."
msgstr ""
"Daha yüksek değerler görüntü kalitesini merkeze odaklar,\n"
"gecikmeyi, güç verimliliğini ve kaliteyi iyileştirir."
#: client/scenes/lobby_gui.cpp:709
msgctxt "Codec"
msgid "Automatic"
msgstr "Otomatik"
#: client/scenes/lobby_gui.cpp:713
msgctxt "Codec"
msgid "H.264"
msgstr "H.264"
#: client/scenes/lobby_gui.cpp:715
msgctxt "Codec"
msgid "H.265"
msgstr "H.265"
#: client/scenes/lobby_gui.cpp:717
msgctxt "Codec"
msgid "AV1"
msgstr "AV1"
#: client/scenes/lobby_gui.cpp:725
msgid "Codec"
msgstr "Codec"
#: client/scenes/lobby_gui.cpp:753
msgid "10-bit"
msgstr "10-bit"
#: client/scenes/lobby_gui.cpp:769
msgid "Bitrate"
msgstr "Bit hızı"
#: client/scenes/lobby_gui.cpp:773
#, c++-format
msgid "{}Mbit/s"
msgstr "{}Mbit/s"
#: client/scenes/lobby_gui.cpp:784
msgid "High power mode"
msgstr "Yüksek güç modu"
#: client/scenes/lobby_gui.cpp:787
msgid "Increase power usage to allow higher resolution and refresh rate"
msgstr "Daha yüksek çözünürlük ve tazeleme hızı için güç tüketimini artır"
#: client/scenes/lobby_gui.cpp:793
msgid "Enable microphone"
msgstr "Mikrofonu aktif et"
#: client/scenes/lobby_gui.cpp:681
#: client/scenes/lobby_gui.cpp:802
msgid "Unprocessed Microphone Audio"
msgstr "İşlenmemiş Mikrofon Sesi"
#: client/scenes/lobby_gui.cpp:687
#: client/scenes/lobby_gui.cpp:808
msgid "Force disable audio filters, such as noise cancellation"
msgstr "Gürültü engelleme gibi ses filtrelerini zorla devre dışı bırak"
#: client/scenes/lobby_gui.cpp:694
#: client/scenes/lobby_gui.cpp:815
msgid "Enable hand tracking"
msgstr "El izlemeyi etkinleştir"
#: client/scenes/lobby_gui.cpp:700 client/scenes/lobby_gui.cpp:712
#: client/scenes/lobby_gui.cpp:724 client/scenes/lobby_gui.cpp:741
#: client/scenes/lobby_gui_customize.cpp:540
#: client/scenes/lobby_gui.cpp:821 client/scenes/lobby_gui.cpp:832
#: client/scenes/lobby_gui.cpp:842 client/scenes/lobby_gui.cpp:857
#: client/scenes/lobby_gui_customize.cpp:640
msgid "This feature is not supported by your headset"
msgstr "Bu özellik gözlüğünüz tarafından desteklenmemektedir"
#: client/scenes/lobby_gui.cpp:706
#: client/scenes/lobby_gui.cpp:826
msgid "Enable eye tracking"
msgstr "Göz takibi aktif et"
#: client/scenes/lobby_gui.cpp:718
#: client/scenes/lobby_gui.cpp:837
msgid "Enable face tracking"
msgstr "Yüz takibi aktif et"
#: client/scenes/lobby_gui.cpp:732
#: client/scenes/lobby_gui.cpp:849
msgid "Enable body tracking"
msgstr "Vücut takibi aktif et"
#: client/scenes/lobby_gui.cpp:746
#: client/scenes/lobby_gui.cpp:862
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -268,11 +339,11 @@ msgstr ""
"aksi takdirde vücut verileri kontrol cihazı ve başlık konumlarından tahmin "
"edilecektir"
#: client/scenes/lobby_gui.cpp:756
#: client/scenes/lobby_gui.cpp:872
msgid "Enable lower body tracking"
msgstr "Alt vücut izlemeyi etkinleştir"
#: client/scenes/lobby_gui.cpp:762
#: client/scenes/lobby_gui.cpp:878
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -282,11 +353,11 @@ msgstr ""
"Quest hareket izleme ayarlarında 'El ve vücut izleme' özelliğinin "
"etkinleştirilmesi gerekir"
#: client/scenes/lobby_gui.cpp:765
#: client/scenes/lobby_gui.cpp:881
msgid "Enable hip tracking"
msgstr "Kalça izlemeyi etkinleştir"
#: client/scenes/lobby_gui.cpp:771
#: client/scenes/lobby_gui.cpp:887
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -294,11 +365,11 @@ msgstr ""
"Sadece alt vücut izleme etkinleştirildiğinde geçerlidir\n"
"Başka bir kalça izleme kaynağı kullanıldığında tercih edilebilir"
#: client/scenes/lobby_gui.cpp:779
#: client/scenes/lobby_gui.cpp:896
msgid "Enable in-stream window"
msgstr "Akış penceresinde aktif et"
#: client/scenes/lobby_gui.cpp:782
#: client/scenes/lobby_gui.cpp:899
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
@@ -306,15 +377,25 @@ msgstr ""
"Oyun akışı yapılırken ayar penceresini aktif eder.\n"
"Aktif iken, pencere her iki başparmak tuşlarına basılınca açılır."
#: client/scenes/lobby_gui.cpp:796 client/scenes/stream_gui.cpp:394
#: client/scenes/lobby_gui.cpp:903
msgid "Extended configuration values"
msgstr "Genişletilmiş yapılandırma değerleri"
#: client/scenes/lobby_gui.cpp:906
msgid "Allows unsafe configuration values, use at your own risk."
msgstr ""
"Güvenli olmayan yapılandırma değerlerine izin verir, kendi sorumluluğunuzda "
"kullanın."
#: client/scenes/lobby_gui.cpp:920 client/scenes/stream_gui.cpp:473
msgid "OpenXR post-processing"
msgstr "OpenXR işlem sonrası"
#: client/scenes/lobby_gui.cpp:800 client/scenes/stream_gui.cpp:398
#: client/scenes/lobby_gui.cpp:924 client/scenes/stream_gui.cpp:477
msgid "Supersampling"
msgstr "Süper örnekleme"
#: client/scenes/lobby_gui.cpp:820 client/scenes/stream_gui.cpp:419
#: client/scenes/lobby_gui.cpp:944 client/scenes/stream_gui.cpp:498
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -322,11 +403,11 @@ msgstr ""
"Yüksek kontrastlı kenarlarda titremeyi azaltın.\n"
"Giriş çözünürlüğü kulaklık ekranına kıyasla yüksek olduğunda kullanışlıdır"
#: client/scenes/lobby_gui.cpp:825 client/scenes/stream_gui.cpp:424
#: client/scenes/lobby_gui.cpp:949 client/scenes/stream_gui.cpp:503
msgid "Sharpening"
msgstr "Keskinleştirme"
#: client/scenes/lobby_gui.cpp:845 client/scenes/stream_gui.cpp:445
#: client/scenes/lobby_gui.cpp:969 client/scenes/stream_gui.cpp:524
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -334,129 +415,129 @@ msgstr ""
"Yüksek kontrastlı kenarların netliğini artırın ve bulanıklığı giderin.\n"
"Giriş çözünürlüğü kulaklık ekranına kıyasla düşük olduğunda kullanışlıdır"
#: client/scenes/lobby_gui.cpp:1029 client/scenes/lobby_gui.cpp:1037
#: client/scenes/stream_gui.cpp:171 client/scenes/stream_gui.cpp:373
#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:370
msgid "CPU time"
msgstr "CPU zamanı"
#: client/scenes/lobby_gui.cpp:1033
#: client/scenes/lobby_gui.cpp:1157
msgid "CPU time [ms]"
msgstr "CPU zamanı [ms]"
#: client/scenes/lobby_gui.cpp:1043 client/scenes/lobby_gui.cpp:1051
#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:374
#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:371
msgid "GPU time"
msgstr "GPU zamanı"
#: client/scenes/lobby_gui.cpp:1047
#: client/scenes/lobby_gui.cpp:1171
msgid "GPU time [ms]"
msgstr "GPU zamanı [ms]"
#: client/scenes/lobby_gui.cpp:1111
#: client/scenes/lobby_gui.cpp:1235
msgid "Enable the microphone?"
msgstr "Mikrofonu aktif et?"
#: client/scenes/lobby_gui.cpp:1116
#: client/scenes/lobby_gui.cpp:1240
msgid "Enable eye tracking?"
msgstr "Göz takibi aktif et?"
#: client/scenes/lobby_gui.cpp:1121
#: client/scenes/lobby_gui.cpp:1245
msgid "Enable face tracking?"
msgstr "Yüz takibi aktif et?"
#: client/scenes/lobby_gui.cpp:1126
#: client/scenes/lobby_gui.cpp:1250
msgid "Enable body tracking?"
msgstr "Vücut takibi aktif et?"
#: client/scenes/lobby_gui.cpp:1134
#: client/scenes/lobby_gui.cpp:1258
msgid "Welcome to WiVRn"
msgstr "WiVRn'e hoş geldiniz"
#: client/scenes/lobby_gui.cpp:1158
#: client/scenes/lobby_gui.cpp:1286
msgid "Yes"
msgstr "Evet"
#: client/scenes/lobby_gui.cpp:1165
#: client/scenes/lobby_gui.cpp:1293
msgid "No"
msgstr "Hayır"
#: client/scenes/lobby_gui.cpp:1184 client/scenes/lobby_gui.cpp:1825
#: client/scenes/lobby_gui.cpp:1312 client/scenes/lobby_gui.cpp:1958
msgid "Licenses"
msgstr "Lisanslar"
#: client/scenes/lobby_gui.cpp:1459
#: client/scenes/lobby_gui.cpp:1588
msgid "Microphone is enabled"
msgstr "Mikrofon aktif"
#: client/scenes/lobby_gui.cpp:1460
#: client/scenes/lobby_gui.cpp:1589
msgid "Microphone is disabled"
msgstr "Mikrofon devre dışı"
#: client/scenes/lobby_gui.cpp:1469
#: client/scenes/lobby_gui.cpp:1598
msgid "Hand tracking is enabled"
msgstr "El takibi aktif"
#: client/scenes/lobby_gui.cpp:1470
#: client/scenes/lobby_gui.cpp:1599
msgid "Hand tracking is disabled"
msgstr "El takibi devre dışı"
#: client/scenes/lobby_gui.cpp:1479
#: client/scenes/lobby_gui.cpp:1608
msgid "Eye tracking is enabled"
msgstr "Göz takibi aktif"
#: client/scenes/lobby_gui.cpp:1480
#: client/scenes/lobby_gui.cpp:1609
msgid "Eye tracking is disabled"
msgstr "Göz takibi devre dışı"
#: client/scenes/lobby_gui.cpp:1490
#: client/scenes/lobby_gui.cpp:1619
msgid "Face tracking is enabled"
msgstr "Yüz takibi aktif"
#: client/scenes/lobby_gui.cpp:1491
#: client/scenes/lobby_gui.cpp:1620
msgid "Face tracking is disabled"
msgstr "Yüz takibi devre dışı"
#: client/scenes/lobby_gui.cpp:1501
#: client/scenes/lobby_gui.cpp:1634
msgid "Body tracking is enabled"
msgstr "Vücut takibi aktif"
#: client/scenes/lobby_gui.cpp:1502
#: client/scenes/lobby_gui.cpp:1635
msgid "Body tracking is disabled"
msgstr "Vücut takibi devre dışı"
#: client/scenes/lobby_gui.cpp:1518
#: client/scenes/lobby_gui.cpp:1651
msgid "Add server"
msgstr "Sunucu ekle"
#: client/scenes/lobby_gui.cpp:1804
#: client/scenes/lobby_gui.cpp:1937
msgid "Server list"
msgstr "Sunucu listesi"
#: client/scenes/lobby_gui.cpp:1807 client/scenes/stream_gui.cpp:881
#: client/scenes/lobby_gui.cpp:1940 client/scenes/stream_gui.cpp:991
msgid "Settings"
msgstr "Ayarlar"
#: client/scenes/lobby_gui.cpp:1810
#: client/scenes/lobby_gui.cpp:1943
msgid "Post-processing"
msgstr "İşlem sonrası"
#: client/scenes/lobby_gui.cpp:1813
#: client/scenes/lobby_gui.cpp:1946
msgid "Customize"
msgstr "Özelliştir"
#: client/scenes/lobby_gui.cpp:1817
#: client/scenes/lobby_gui.cpp:1950
msgid "Debug"
msgstr "Hata ayıklama"
#: client/scenes/lobby_gui.cpp:1822
#: client/scenes/lobby_gui.cpp:1955
msgid "About"
msgstr "Hakkında"
#: client/scenes/lobby_gui.cpp:1828
#: client/scenes/lobby_gui.cpp:1961
msgid "Exit"
msgstr "Çıkış"
#: client/scenes/lobby_gui.cpp:1845
#: client/scenes/lobby_gui.cpp:1978
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
@@ -464,32 +545,51 @@ msgstr ""
"Ana pencereyi hareket ettirmek için tutma düğmesine basın\n"
"veya avucunuzu yukarı kaldırın"
#: client/scenes/lobby_gui.cpp:1847
#: client/scenes/lobby_gui.cpp:1980
msgid "Press the grip button to move the main window"
msgstr "Ana pencereyi hareket ettirmek için tutma düğmesine basın"
#: client/scenes/lobby_gui_customize.cpp:363
#: client/scenes/lobby_gui_customize.cpp:213
msgid "Locally loaded environment"
msgstr "Yerel olarak yüklenen ortam"
#: client/scenes/lobby_gui_customize.cpp:226
#, c++-format
msgid "Locally loaded environment ({})"
msgstr "Yerel olarak yüklenen ortam ({})"
#: client/scenes/lobby_gui_customize.cpp:300
#, c++-format
msgid "Cannot load local environment: {}"
msgstr "Yerel ortam yüklenemiyor: {}"
#: client/scenes/lobby_gui_customize.cpp:333
#, c++-format
msgid "Cannot load environment list: {}"
msgstr "Ortam listesi yüklenemiyor: {}"
#: client/scenes/lobby_gui_customize.cpp:463
#, c++-format
msgid "Author: {}"
msgstr "Yazar: {}"
#: client/scenes/lobby_gui_customize.cpp:367
#: client/scenes/lobby_gui_customize.cpp:467
#, c++-format
msgid "Size: {:.1f} MB"
msgstr "Boyut: {:.1f} MB"
#: client/scenes/lobby_gui_customize.cpp:447
#: client/scenes/lobby_gui_customize.cpp:547
msgid "Delete this model"
msgstr "Bu modeli sil"
#: client/scenes/lobby_gui_customize.cpp:483
#: client/scenes/lobby_gui_customize.cpp:689
#: client/scenes/lobby_gui_customize.cpp:583
#: client/scenes/lobby_gui_customize.cpp:789
#, c++-format
msgid "HTTP error {} when downloading {}"
msgstr "{} indirilirken HTTP hatası {}"
#: client/scenes/lobby_gui_customize.cpp:491
#: client/scenes/lobby_gui_customize.cpp:697
#: client/scenes/lobby_gui_customize.cpp:591
#: client/scenes/lobby_gui_customize.cpp:797
#, c++-format
msgid ""
"Curl error when downloading {}\n"
@@ -498,49 +598,45 @@ msgstr ""
"{} indirilirken Curl hatası\n"
"{}: {}"
#: client/scenes/lobby_gui_customize.cpp:552
#, c-format
#: client/scenes/lobby_gui_customize.cpp:652
#, c++-format
msgid "Really delete {}?"
msgstr "{} gerçekten silinsin mi?"
#: client/scenes/lobby_gui_customize.cpp:556
#: client/scenes/lobby_gui_customize.cpp:656
msgid "Delete"
msgstr "Sil"
#: client/scenes/lobby_gui_customize.cpp:637
#: client/scenes/lobby_gui_customize.cpp:737
#, c++-format
msgid "Cannot load environment: {}"
msgstr "Ortam değişkeni yüklenemiyor: {}"
#: client/scenes/lobby_gui_customize.cpp:645
#: client/scenes/lobby_gui_customize.cpp:745
msgid "Loading environment"
msgstr "Ortam değişkeni yükleniyor"
#: client/scenes/lobby_gui_customize.cpp:724
#: client/scenes/lobby_gui_customize.cpp:824
msgid "Download more environments"
msgstr "Daha çok ortam değişkeni indir"
#: client/scenes/lobby_gui_customize.cpp:732
#: client/scenes/lobby_gui_customize.cpp:832
msgid "Open local glTF model"
msgstr "Yerel glTF modeli aç"
#: client/scenes/stream_gui.cpp:173
msgid "Reproject"
msgstr "Yeniden yansıt"
#: client/scenes/stream_gui.cpp:174
msgid "Blit"
msgstr "Blit"
msgid "Defoveate"
msgstr "Defoveate"
#: client/scenes/stream_gui.cpp:176
msgid "Network"
msgstr "Ağ"
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:368
msgid "Download"
msgstr "İndir"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
msgid "Upload"
msgstr "Gönder"
@@ -581,87 +677,108 @@ msgstr "Görüntülenen"
msgid "Predicted"
msgstr "Tahmin edilen"
#: client/scenes/stream_gui.cpp:344
#: client/scenes/stream_gui.cpp:343
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "Fotonlara tahmini hareket gecikmesi: {}ms"
#: client/scenes/stream_gui.cpp:351
#: client/scenes/stream_gui.cpp:348
msgid "Press the grip button to move the window"
msgstr "Pencereyi hareket ettirmek için tutma düğmesine basın"
#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:824
#: client/scenes/stream_gui.cpp:350 client/scenes/stream_gui.cpp:918
msgid "Press both thumbsticks to display the WiVRn window"
msgstr ""
"WiVRn penceresini görüntülemek için her iki başparmak çubuklarınıda basın"
#: client/scenes/stream_gui.cpp:375
#: client/scenes/stream_gui.cpp:372
msgid "Motion to photon latency"
msgstr "Hareketin fotona ulaşma gecikmesi"
#: client/scenes/stream_gui.cpp:452
#: client/scenes/stream_gui.cpp:458
msgid "Bitrate:"
msgstr "Bit hızı:"
#: client/scenes/stream_gui.cpp:468
msgid "Click to adjust bitrate"
msgstr "Bit hızını ayarlamak için tıklayın"
#: client/scenes/stream_gui.cpp:531
msgid "Foveation center override"
msgstr "Foveasyon merkezi geçersiz kılma"
#: client/scenes/stream_gui.cpp:455
#: client/scenes/stream_gui.cpp:534
msgid "Enable"
msgstr "Aktif et"
#: client/scenes/stream_gui.cpp:463 client/scenes/stream_gui.cpp:510
#: client/scenes/stream_gui.cpp:542 client/scenes/stream_gui.cpp:614
#, c++-format
msgid "Height {:.1f} deg"
msgstr "Boy {:.1f} deg"
#: client/scenes/stream_gui.cpp:464 client/scenes/stream_gui.cpp:511
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:615
#, c++-format
msgid "Distance {:.2f} m"
msgstr "Uzaklık {:.2f} m"
#: client/scenes/stream_gui.cpp:465
#: client/scenes/stream_gui.cpp:544
msgid "Default"
msgstr "Varsayılan"
#: client/scenes/stream_gui.cpp:476
#: client/scenes/stream_gui.cpp:555
msgid "Change"
msgstr "Değiştir"
#: client/scenes/stream_gui.cpp:508
#: client/scenes/stream_gui.cpp:588
msgid "Use the right thumbstick to adjust the bitrate"
msgstr "Bit hızını ayarlamak için sağ joystick'i kullanın"
#: client/scenes/stream_gui.cpp:589
msgid "Press A to go back"
msgstr "Geri dönmek için A tuşuna basın"
#: client/scenes/stream_gui.cpp:590
#, c++-format
msgid "Bitrate: {}Mbit/s"
msgstr "Bit hızı: {}Mbit/s"
#: client/scenes/stream_gui.cpp:612
msgid "Use the thumbsticks to move the foveation center"
msgstr "Başparmak çubuklarını kullanarak odak merkezini hareket ettirin"
#: client/scenes/stream_gui.cpp:509
#: client/scenes/stream_gui.cpp:613
msgid "Press A to save or B to cancel"
msgstr "Kaydetmek için A tuşuna, iptal etmek için B tuşuna basın"
#: client/scenes/stream_gui.cpp:567
#: client/scenes/stream_gui.cpp:671
msgid "Running XR applications:"
msgstr "XR uygulamaları çalıştırılıyor:"
#: client/scenes/stream_gui.cpp:584
#: client/scenes/stream_gui.cpp:688
msgid "Overlays"
msgstr "Katmanlar"
#: client/scenes/stream_gui.cpp:623
#: client/scenes/stream_gui.cpp:727
msgid "Request to quit, may be ignored by the application"
msgstr "Çıkış talebi gönder, uygulama tarafından göz ardı edilebilinir"
#: client/scenes/stream_gui.cpp:626
msgid "Start"
msgstr "Başlat"
#: client/scenes/stream_gui.cpp:878
msgid "Stats"
msgstr "İstatistikler"
#: client/scenes/stream_gui.cpp:884
#: client/scenes/stream_gui.cpp:977
msgid "Applications"
msgstr "Uygulamalar"
#: client/scenes/stream_gui.cpp:890
#: client/scenes/stream_gui.cpp:980
msgid "Start"
msgstr "Başlat"
#: client/scenes/stream_gui.cpp:994
msgid "Stats"
msgstr "İstatistikler"
#: client/scenes/stream_gui.cpp:1000
msgid "Statistics overlay"
msgstr "İstatistik katmanı"
#: client/scenes/stream_gui.cpp:893
#: client/scenes/stream_gui.cpp:1003
msgid "Compact view"
msgstr "Kompakt görünüm"
@@ -681,6 +798,15 @@ msgstr "PIN kontrol edilemiyor"
msgid "Pairing is disabled on server"
msgstr "Bu sunucuda eşleşme devre dışı"
#~ msgid "Resolution scale"
#~ msgstr "Çözünürlük ölçeği"
#~ msgid "Reproject"
#~ msgstr "Yeniden yansıt"
#~ msgid "Blit"
#~ msgstr "Blit"
#~ msgid "Enable video passthrough in lobby"
#~ msgstr "Lobide video geçişini etkinleştir"
+54 -40
View File
@@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn-dashboard\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-01-07 16:11+0800\n"
"PO-Revision-Date: 2026-01-10 13:46+0800\n"
"POT-Creation-Date: 2026-02-02 21:05+0800\n"
"PO-Revision-Date: 2026-02-08 12:43+0800\n"
"Last-Translator: BERADQ <adqber123@outlook.com>\n"
"Language-Team: Chinese (China)\n"
"Language: zh_CN\n"
@@ -119,8 +119,8 @@ msgstr "正在检查最新版本..."
msgid "No APK is available for this version"
msgstr "此版本无预编译 APK"
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:350
#: dashboard/qml/Main.qml:408 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:368
#: dashboard/qml/Main.qml:426 dashboard/qml/WizardPage.qml:211
#: dashboard/qml/WizardPage.qml:337
#, kde-format
msgid "ADB is not installed"
@@ -161,7 +161,7 @@ msgstr "重新安装 WiVRn"
msgid "Install WiVRn"
msgstr "安装 WiVRn"
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:413
#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:431
#, kde-format
msgid "Headsets"
msgstr "头显"
@@ -257,39 +257,53 @@ msgstr "头显统计信息"
msgid "WiVRn dashboard"
msgstr "WiVRn 控制面板"
#: dashboard/qml/Main.qml:124
#: dashboard/qml/Main.qml:51
#, kde-format
msgid "Quit WiVRn"
msgstr "退出 WiVRn"
#: dashboard/qml/Main.qml:52
#, kde-format
msgid ""
"The WiVRn server is active.\n"
"Closing the window will terminate it."
msgstr ""
"WiVRn 服务正在运行。\n"
"关闭当前窗口将会终止服务。"
#: dashboard/qml/Main.qml:142
#, kde-format
msgid "Avahi daemon is not installed"
msgstr "Avahi 守护进程未安装"
#: dashboard/qml/Main.qml:132
#: dashboard/qml/Main.qml:150
#, kde-format
msgid "Avahi daemon is not started"
msgstr "Avahi 守护进程未启用"
#: dashboard/qml/Main.qml:139 dashboard/qml/Main.qml:153
#: dashboard/qml/Main.qml:205
#: dashboard/qml/Main.qml:157 dashboard/qml/Main.qml:171
#: dashboard/qml/Main.qml:223
#, kde-format
msgid "Fix it"
msgstr "修复"
#: dashboard/qml/Main.qml:147
#: dashboard/qml/Main.qml:165
#, kde-format
msgid "Firewall may not allow port 9757"
msgstr "防火墙可能禁止了端口 9757"
#: dashboard/qml/Main.qml:161
#: dashboard/qml/Main.qml:179
#, kde-format
msgid ""
"NVIDIA GPUs require at least driver version 565.77, current version is %1"
msgstr "NVIDIA 显卡至少需要驱动程序版本 565.77,目前版本为 %1"
#: dashboard/qml/Main.qml:167
#: dashboard/qml/Main.qml:185
#, kde-format
msgid "More info"
msgstr "更多信息"
#: dashboard/qml/Main.qml:175
#: dashboard/qml/Main.qml:193
#, kde-format
msgid ""
"Use the Mesa (radv) driver for AMD GPUs\n"
@@ -298,7 +312,7 @@ msgstr ""
"AMD 显卡请使用 Mesa (radv) 驱动程序\n"
"使用 vaapi 的硬件编码不适用于 AMDVLK 和 AMDGPU-PRO"
#: dashboard/qml/Main.qml:183
#: dashboard/qml/Main.qml:201
#, kde-format
msgid ""
"No OpenVR compatibility detected, Steam games won't be able to load VR.\n"
@@ -307,125 +321,125 @@ msgstr ""
"系统未检测到 OpenVR 兼容层,Steam 平台上的 VR 游戏无法正常加载。\n"
"请安装 xrizer 或 OpenComposite"
#: dashboard/qml/Main.qml:191
#: dashboard/qml/Main.qml:209
#, kde-format
msgid "Steam is installed as a snap. Snaps are not compatible with WiVRn."
msgstr "Steam 是以 snap 方式安装的。Snap 与 WiVRn 不兼容。"
#: dashboard/qml/Main.qml:199
#: dashboard/qml/Main.qml:217
#, kde-format
msgid ""
"Steam is installed as a flatpak but does not have sufficient permissions."
msgstr "Steam 是以 flatpak 方式安装的,但权限不足。"
#: dashboard/qml/Main.qml:214
#: dashboard/qml/Main.qml:232
#, kde-format
msgid "Restart the server for configuration changes to take effect"
msgstr "重新启动服务器以使配置更改生效。"
#: dashboard/qml/Main.qml:220
#: dashboard/qml/Main.qml:238
#, kde-format
msgctxt "restart the server"
msgid "Restart now"
msgstr "立即重新启动"
#: dashboard/qml/Main.qml:245
#: dashboard/qml/Main.qml:263
#, kde-format
msgid "Server failed to start"
msgstr "服务器启动失败"
#: dashboard/qml/Main.qml:251 dashboard/qml/TroubleshootPage.qml:89
#: dashboard/qml/Main.qml:269 dashboard/qml/TroubleshootPage.qml:89
#, kde-format
msgid "Open server logs"
msgstr "开启服务器日志"
#: dashboard/qml/Main.qml:277
#: dashboard/qml/Main.qml:295
#, kde-format
msgid "Server status"
msgstr "服务器状态"
#: dashboard/qml/Main.qml:283
#: dashboard/qml/Main.qml:301
#, kde-format
msgctxt "whether the server is running, displayed in front of a checkbox"
msgid "Running"
msgstr "运行"
#: dashboard/qml/Main.qml:296
#: dashboard/qml/Main.qml:314
#, kde-format
msgctxt "whether pairing is enabled, displayed in front of a checkbox"
msgid "Pairing"
msgstr "配对"
#: dashboard/qml/Main.qml:316
#: dashboard/qml/Main.qml:334
#, kde-format
msgid "Headset status"
msgstr "头显状态"
#: dashboard/qml/Main.qml:323
#: dashboard/qml/Main.qml:341
#, kde-format
msgctxt "label for headset name/status under server running switch"
msgid "Headset"
msgstr "头显"
#: dashboard/qml/Main.qml:326
#: dashboard/qml/Main.qml:344
#, kde-format
msgid "Not connected"
msgstr "未连接"
#: dashboard/qml/Main.qml:330
#: dashboard/qml/Main.qml:348
#, kde-format
msgid "Disconnect"
msgstr "断开连接"
#: dashboard/qml/Main.qml:339 dashboard/qml/Main.qml:347
#: dashboard/qml/Main.qml:354
#: dashboard/qml/Main.qml:357 dashboard/qml/Main.qml:365
#: dashboard/qml/Main.qml:372
#, kde-format
msgctxt "label for USB status or connect button"
msgid "USB"
msgstr "USB"
#: dashboard/qml/Main.qml:340
#: dashboard/qml/Main.qml:358
#, kde-format
msgctxt "usb connect button"
msgid "Connect (wired)"
msgstr "链接 (有线)"
#: dashboard/qml/Main.qml:357 dashboard/qml/WizardPage.qml:339
#: dashboard/qml/Main.qml:375 dashboard/qml/WizardPage.qml:339
#, kde-format
msgid "No headset is connected or your headset is not in developer mode"
msgstr "没有检测到头显,或您的头显未启用开发者模式"
#: dashboard/qml/Main.qml:378
#: dashboard/qml/Main.qml:396
#, kde-format
msgid "Steam information"
msgstr "Steam 信息"
#: dashboard/qml/Main.qml:394
#: dashboard/qml/Main.qml:412
#, kde-format
msgid "Wizard"
msgstr "向导"
#: dashboard/qml/Main.qml:400
#: dashboard/qml/Main.qml:418
#, kde-format
msgid "Install the app"
msgstr "安装应用程序"
#: dashboard/qml/Main.qml:419 dashboard/qml/SettingsPage.qml:14
#: dashboard/qml/Main.qml:437 dashboard/qml/SettingsPage.qml:14
#, kde-format
msgid "Settings"
msgstr "设置"
#: dashboard/qml/Main.qml:425
#: dashboard/qml/Main.qml:443
#, kde-format
msgid "About"
msgstr "关于"
#: dashboard/qml/Main.qml:430 dashboard/qml/TroubleshootPage.qml:10
#: dashboard/qml/Main.qml:448 dashboard/qml/TroubleshootPage.qml:10
#, kde-format
msgid "Troubleshoot"
msgstr "疑难解答"
#: dashboard/qml/Main.qml:437
#: dashboard/qml/Main.qml:455
#, kde-format
msgid "Version %1"
msgstr "版本 %1"
@@ -911,12 +925,12 @@ msgstr "完成"
msgid "Finished"
msgstr "已完成"
#: dashboard/wivrn_server.cpp:538
#: dashboard/wivrn_server.cpp:540
#, kde-format
msgid "xrizer"
msgstr "xrizer"
#: dashboard/wivrn_server.cpp:539
#: dashboard/wivrn_server.cpp:541
#, kde-format
msgid "Open Composite"
msgstr "Open Composite"
+103 -103
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WiVRn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-12-29 22:56+0800\n"
"POT-Creation-Date: 2026-02-07 17:21+0800\n"
"PO-Revision-Date: 2025-12-31 18:23+0800\n"
"Last-Translator: BERADQ <adqber123@outlook.com>\n"
"Language-Team: Chinese (China)\n"
@@ -23,24 +23,24 @@ msgstr ""
msgid "No supported swapchain format"
msgstr "不支持的交换链格式"
#: client/scenes/app_launcher.cpp:128
#: client/scenes/app_launcher.cpp:127
msgid "Connected to WiVRn server"
msgstr "已连接到 WiVRn 服务器"
#: client/scenes/app_launcher.cpp:130
#: client/scenes/app_launcher.cpp:129
#, c++-format
msgid "Connected to {}"
msgstr "已连接到 {}"
#: client/scenes/app_launcher.cpp:136
#: client/scenes/app_launcher.cpp:135
msgid "Start an application on the server to start streaming."
msgstr "在服务器端启动应用程序来开始串流。"
#: client/scenes/app_launcher.cpp:146
#: client/scenes/app_launcher.cpp:145
msgid "Start an application on your computer or select one to start streaming."
msgstr "在您的计算机上启动应用程序,或是选择一个来开始串流。"
#: client/scenes/app_launcher.cpp:148
#: client/scenes/app_launcher.cpp:147
#, c++-format
msgid "Start an application on {} or select one to start streaming."
msgstr "在 {} 上启动应用程序,或是选择一个来开始串流。"
@@ -68,11 +68,11 @@ msgstr "无法连接至 {} ({}): {}"
msgid "Waiting for connection"
msgstr "等待连接"
#: client/scenes/lobby.cpp:1319
#: client/scenes/lobby.cpp:1316
msgid "Passthrough"
msgstr "透视"
#: client/scenes/lobby.cpp:1331
#: client/scenes/lobby.cpp:1328
msgid "Default environment"
msgstr "默认环境"
@@ -92,13 +92,13 @@ msgid "Disabled"
msgstr "停用"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258
#: client/scenes/stream_gui.cpp:1015
#: client/scenes/stream_gui.cpp:1010
msgid "Disconnect"
msgstr "终止连接"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753
#: client/scenes/lobby_gui_customize.cpp:844
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1006
msgid "Close"
msgstr "关闭"
@@ -136,7 +136,7 @@ msgid "TCP only"
msgstr "仅限 TCP"
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:968
#: client/scenes/stream_gui.cpp:962
msgid "Cancel"
msgstr "取消"
@@ -181,17 +181,17 @@ msgstr "语言"
msgid "System language"
msgstr "系统语言"
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:411
msgid "Refresh rate"
msgstr "刷新率"
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419
#: client/scenes/stream_gui.cpp:411 client/scenes/stream_gui.cpp:413
msgctxt "automatic refresh rate"
msgid "Automatic"
msgstr "自动"
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:421
msgid ""
"Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens."
@@ -199,7 +199,7 @@ msgstr ""
"根据测量的应用程序性能选择刷新率。\n"
"更改时可能会造成闪烁。"
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:439
msgid "Minimum refresh rate"
msgstr "最低刷新率"
@@ -274,58 +274,58 @@ msgstr "编解码器"
msgid "10-bit"
msgstr "10-bit"
#: client/scenes/lobby_gui.cpp:768
#: client/scenes/lobby_gui.cpp:769
msgid "Bitrate"
msgstr "码率"
#: client/scenes/lobby_gui.cpp:772
#: client/scenes/lobby_gui.cpp:773
#, c++-format
msgid "{}Mbit/s"
msgstr "{}Mbit/s"
#: client/scenes/lobby_gui.cpp:783
#: client/scenes/lobby_gui.cpp:784
msgid "High power mode"
msgstr "高耗电模式"
#: client/scenes/lobby_gui.cpp:786
#: client/scenes/lobby_gui.cpp:787
msgid "Increase power usage to allow higher resolution and refresh rate"
msgstr "增加功耗以支持更高的分辨率和刷新率"
#: client/scenes/lobby_gui.cpp:792
#: client/scenes/lobby_gui.cpp:793
msgid "Enable microphone"
msgstr "启用麦克风"
#: client/scenes/lobby_gui.cpp:801
#: client/scenes/lobby_gui.cpp:802
msgid "Unprocessed Microphone Audio"
msgstr "未处理的麦克风音频"
#: client/scenes/lobby_gui.cpp:807
#: client/scenes/lobby_gui.cpp:808
msgid "Force disable audio filters, such as noise cancellation"
msgstr "强制停用音频滤波器,如降噪"
#: client/scenes/lobby_gui.cpp:814
#: client/scenes/lobby_gui.cpp:815
msgid "Enable hand tracking"
msgstr "启用手部追踪"
#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856
#: client/scenes/lobby_gui.cpp:821 client/scenes/lobby_gui.cpp:832
#: client/scenes/lobby_gui.cpp:842 client/scenes/lobby_gui.cpp:857
#: client/scenes/lobby_gui_customize.cpp:640
msgid "This feature is not supported by your headset"
msgstr "您的头显不支持此功能"
#: client/scenes/lobby_gui.cpp:825
#: client/scenes/lobby_gui.cpp:826
msgid "Enable eye tracking"
msgstr "启用眼动追踪"
#: client/scenes/lobby_gui.cpp:836
#: client/scenes/lobby_gui.cpp:837
msgid "Enable face tracking"
msgstr "启用面部追踪"
#: client/scenes/lobby_gui.cpp:848
#: client/scenes/lobby_gui.cpp:849
msgid "Enable body tracking"
msgstr "启用身体追踪"
#: client/scenes/lobby_gui.cpp:861
#: client/scenes/lobby_gui.cpp:862
msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n"
@@ -334,11 +334,11 @@ msgstr ""
"需要在 Quest 运动追踪设置中启用「手部和身体追踪」,\n"
"否则身体数据将根据手柄和头显的位置进行猜测"
#: client/scenes/lobby_gui.cpp:871
#: client/scenes/lobby_gui.cpp:872
msgid "Enable lower body tracking"
msgstr "启用下半身追踪"
#: client/scenes/lobby_gui.cpp:877
#: client/scenes/lobby_gui.cpp:878
msgid ""
"Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -347,11 +347,11 @@ msgstr ""
"使用 Generative Legs 猜测下半身关节位置\n"
"需要在 Quest 运动追踪设置中启用「手部和身体追踪」"
#: client/scenes/lobby_gui.cpp:880
#: client/scenes/lobby_gui.cpp:881
msgid "Enable hip tracking"
msgstr "启用臀部(腰部)追踪"
#: client/scenes/lobby_gui.cpp:886
#: client/scenes/lobby_gui.cpp:887
msgid ""
"Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking"
@@ -359,11 +359,11 @@ msgstr ""
"仅在启用下半身追踪时生效\n"
"在使用其他臀部追踪时可能需要此功能"
#: client/scenes/lobby_gui.cpp:895
#: client/scenes/lobby_gui.cpp:896
msgid "Enable in-stream window"
msgstr "启用串流中窗口"
#: client/scenes/lobby_gui.cpp:898
#: client/scenes/lobby_gui.cpp:899
msgid ""
"Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks."
@@ -371,23 +371,23 @@ msgstr ""
"在游戏串流期间启用配置窗口显示\n"
"若启用此功能,同时按下两只摇杆,将会显示该窗口。"
#: client/scenes/lobby_gui.cpp:902
#: client/scenes/lobby_gui.cpp:903
msgid "Extended configuration values"
msgstr "扩大配置值范围"
#: client/scenes/lobby_gui.cpp:905
#: client/scenes/lobby_gui.cpp:906
msgid "Allows unsafe configuration values, use at your own risk."
msgstr "允许使用不安全的配置值,风险自负。"
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479
#: client/scenes/lobby_gui.cpp:920 client/scenes/stream_gui.cpp:473
msgid "OpenXR post-processing"
msgstr "OpenXR 后处理"
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483
#: client/scenes/lobby_gui.cpp:924 client/scenes/stream_gui.cpp:477
msgid "Supersampling"
msgstr "超采样"
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504
#: client/scenes/lobby_gui.cpp:944 client/scenes/stream_gui.cpp:498
msgid ""
"Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display"
@@ -395,11 +395,11 @@ msgstr ""
"减少高对比度边缘的闪烁。\n"
"当串流分辨率高于头显原生分辨率时很有用"
#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:509
#: client/scenes/lobby_gui.cpp:949 client/scenes/stream_gui.cpp:503
msgid "Sharpening"
msgstr "锐化"
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530
#: client/scenes/lobby_gui.cpp:969 client/scenes/stream_gui.cpp:524
msgid ""
"Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display"
@@ -407,129 +407,129 @@ msgstr ""
"改善高对比边缘的清晰度并抵消模糊。\n"
"当串流分辨率低于头显原生分辨率时很有用"
#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373
#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:370
msgid "CPU time"
msgstr "CPU 时间"
#: client/scenes/lobby_gui.cpp:1156
#: client/scenes/lobby_gui.cpp:1157
msgid "CPU time [ms]"
msgstr "CPU 时间 [ms]"
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374
#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:371
msgid "GPU time"
msgstr "GPU 时间"
#: client/scenes/lobby_gui.cpp:1170
#: client/scenes/lobby_gui.cpp:1171
msgid "GPU time [ms]"
msgstr "GPU 时间 [ms]"
#: client/scenes/lobby_gui.cpp:1234
#: client/scenes/lobby_gui.cpp:1235
msgid "Enable the microphone?"
msgstr "是否启用麦克风?"
#: client/scenes/lobby_gui.cpp:1239
#: client/scenes/lobby_gui.cpp:1240
msgid "Enable eye tracking?"
msgstr "是否启用眼动追踪?"
#: client/scenes/lobby_gui.cpp:1244
#: client/scenes/lobby_gui.cpp:1245
msgid "Enable face tracking?"
msgstr "是否启用面部追踪?"
#: client/scenes/lobby_gui.cpp:1249
#: client/scenes/lobby_gui.cpp:1250
msgid "Enable body tracking?"
msgstr "是否启用身体追踪?"
#: client/scenes/lobby_gui.cpp:1257
#: client/scenes/lobby_gui.cpp:1258
msgid "Welcome to WiVRn"
msgstr "欢迎使用 WiVRn"
#: client/scenes/lobby_gui.cpp:1285
#: client/scenes/lobby_gui.cpp:1286
msgid "Yes"
msgstr "是"
#: client/scenes/lobby_gui.cpp:1292
#: client/scenes/lobby_gui.cpp:1293
msgid "No"
msgstr "否"
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957
#: client/scenes/lobby_gui.cpp:1312 client/scenes/lobby_gui.cpp:1958
msgid "Licenses"
msgstr "许可证"
#: client/scenes/lobby_gui.cpp:1587
#: client/scenes/lobby_gui.cpp:1588
msgid "Microphone is enabled"
msgstr "麦克风已启用"
#: client/scenes/lobby_gui.cpp:1588
#: client/scenes/lobby_gui.cpp:1589
msgid "Microphone is disabled"
msgstr "麦克风已停用"
#: client/scenes/lobby_gui.cpp:1597
#: client/scenes/lobby_gui.cpp:1598
msgid "Hand tracking is enabled"
msgstr "手部追踪已启用"
#: client/scenes/lobby_gui.cpp:1598
#: client/scenes/lobby_gui.cpp:1599
msgid "Hand tracking is disabled"
msgstr "手部追踪已停用"
#: client/scenes/lobby_gui.cpp:1607
#: client/scenes/lobby_gui.cpp:1608
msgid "Eye tracking is enabled"
msgstr "眼动追踪已启用"
#: client/scenes/lobby_gui.cpp:1608
#: client/scenes/lobby_gui.cpp:1609
msgid "Eye tracking is disabled"
msgstr "眼动追踪已停用"
#: client/scenes/lobby_gui.cpp:1618
#: client/scenes/lobby_gui.cpp:1619
msgid "Face tracking is enabled"
msgstr "面部追踪已启用"
#: client/scenes/lobby_gui.cpp:1619
#: client/scenes/lobby_gui.cpp:1620
msgid "Face tracking is disabled"
msgstr "面部追踪已停用"
#: client/scenes/lobby_gui.cpp:1633
#: client/scenes/lobby_gui.cpp:1634
msgid "Body tracking is enabled"
msgstr "身体追踪已启用"
#: client/scenes/lobby_gui.cpp:1634
#: client/scenes/lobby_gui.cpp:1635
msgid "Body tracking is disabled"
msgstr "身体追踪已停用"
#: client/scenes/lobby_gui.cpp:1650
#: client/scenes/lobby_gui.cpp:1651
msgid "Add server"
msgstr "新增服务器"
#: client/scenes/lobby_gui.cpp:1936
#: client/scenes/lobby_gui.cpp:1937
msgid "Server list"
msgstr "服务器列表"
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996
#: client/scenes/lobby_gui.cpp:1940 client/scenes/stream_gui.cpp:991
msgid "Settings"
msgstr "设置"
#: client/scenes/lobby_gui.cpp:1942
#: client/scenes/lobby_gui.cpp:1943
msgid "Post-processing"
msgstr "后处理"
#: client/scenes/lobby_gui.cpp:1945
#: client/scenes/lobby_gui.cpp:1946
msgid "Customize"
msgstr "自定义"
#: client/scenes/lobby_gui.cpp:1949
#: client/scenes/lobby_gui.cpp:1950
msgid "Debug"
msgstr "Debug"
#: client/scenes/lobby_gui.cpp:1954
#: client/scenes/lobby_gui.cpp:1955
msgid "About"
msgstr "关于"
#: client/scenes/lobby_gui.cpp:1960
#: client/scenes/lobby_gui.cpp:1961
msgid "Exit"
msgstr "退出"
#: client/scenes/lobby_gui.cpp:1977
#: client/scenes/lobby_gui.cpp:1978
msgid ""
"Press the grip button or put your palm up\n"
"to move the main window"
@@ -537,7 +537,7 @@ msgstr ""
"按下抓握键,或手掌向上\n"
"以移动主窗口"
#: client/scenes/lobby_gui.cpp:1979
#: client/scenes/lobby_gui.cpp:1980
msgid "Press the grip button to move the main window"
msgstr "按下抓握键以移动主窗口"
@@ -624,11 +624,11 @@ msgstr "去凹形畸变"
msgid "Network"
msgstr "网络"
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:368
msgid "Download"
msgstr "下载"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
msgid "Upload"
msgstr "上传"
@@ -669,107 +669,107 @@ msgstr "已显示"
msgid "Predicted"
msgstr "已预测"
#: client/scenes/stream_gui.cpp:344
#: client/scenes/stream_gui.cpp:343
#, c++-format
msgid "Estimated motion to photons latency: {}ms"
msgstr "估计从运动到显示延迟: {}ms"
#: client/scenes/stream_gui.cpp:351
#: client/scenes/stream_gui.cpp:348
msgid "Press the grip button to move the window"
msgstr "按下抓握键来移动窗口"
#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:924
#: client/scenes/stream_gui.cpp:350 client/scenes/stream_gui.cpp:918
msgid "Press both thumbsticks to display the WiVRn window"
msgstr "同时按下两侧摇杆以显示 WiVRn 窗口"
#: client/scenes/stream_gui.cpp:375
#: client/scenes/stream_gui.cpp:372
msgid "Motion to photon latency"
msgstr "从动作到显示的延迟"
#: client/scenes/stream_gui.cpp:464
#: client/scenes/stream_gui.cpp:458
msgid "Bitrate:"
msgstr "码率:"
#: client/scenes/stream_gui.cpp:474
#: client/scenes/stream_gui.cpp:468
msgid "Click to adjust bitrate"
msgstr "点击以调整码率"
#: client/scenes/stream_gui.cpp:537
#: client/scenes/stream_gui.cpp:531
msgid "Foveation center override"
msgstr "注视点渲染位置覆盖"
#: client/scenes/stream_gui.cpp:540
#: client/scenes/stream_gui.cpp:534
msgid "Enable"
msgstr "启用"
#: client/scenes/stream_gui.cpp:548 client/scenes/stream_gui.cpp:620
#: client/scenes/stream_gui.cpp:542 client/scenes/stream_gui.cpp:614
#, c++-format
msgid "Height {:.1f} deg"
msgstr "俯仰 {:.1f}°"
#: client/scenes/stream_gui.cpp:549 client/scenes/stream_gui.cpp:621
#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:615
#, c++-format
msgid "Distance {:.2f} m"
msgstr "距离 {:.2f}m"
#: client/scenes/stream_gui.cpp:550
#: client/scenes/stream_gui.cpp:544
msgid "Default"
msgstr "默认"
#: client/scenes/stream_gui.cpp:561
#: client/scenes/stream_gui.cpp:555
msgid "Change"
msgstr "变更"
#: client/scenes/stream_gui.cpp:594
#: client/scenes/stream_gui.cpp:588
msgid "Use the right thumbstick to adjust the bitrate"
msgstr "使用右摇杆来调节码率"
#: client/scenes/stream_gui.cpp:595
#: client/scenes/stream_gui.cpp:589
msgid "Press A to go back"
msgstr "按下 A 以返回"
#: client/scenes/stream_gui.cpp:596
#: client/scenes/stream_gui.cpp:590
#, c++-format
msgid "Bitrate: {}Mbit/s"
msgstr "码率:{}Mbit/s"
#: client/scenes/stream_gui.cpp:618
#: client/scenes/stream_gui.cpp:612
msgid "Use the thumbsticks to move the foveation center"
msgstr "使用摇杆移动注视点中心"
#: client/scenes/stream_gui.cpp:619
#: client/scenes/stream_gui.cpp:613
msgid "Press A to save or B to cancel"
msgstr "按下 A 保存或 B 取消"
#: client/scenes/stream_gui.cpp:677
#: client/scenes/stream_gui.cpp:671
msgid "Running XR applications:"
msgstr "运行 XR 应用程序中:"
#: client/scenes/stream_gui.cpp:694
#: client/scenes/stream_gui.cpp:688
msgid "Overlays"
msgstr "叠加层"
#: client/scenes/stream_gui.cpp:733
#: client/scenes/stream_gui.cpp:727
msgid "Request to quit, may be ignored by the application"
msgstr "退出请求可能会被应用程序忽略"
#: client/scenes/stream_gui.cpp:983
#: client/scenes/stream_gui.cpp:977
msgid "Applications"
msgstr "应用程序"
#: client/scenes/stream_gui.cpp:986
#: client/scenes/stream_gui.cpp:980
msgid "Start"
msgstr "启动"
#: client/scenes/stream_gui.cpp:999
#: client/scenes/stream_gui.cpp:994
msgid "Stats"
msgstr "统计"
#: client/scenes/stream_gui.cpp:1005
#: client/scenes/stream_gui.cpp:1000
msgid "Statistics overlay"
msgstr "统计数据叠加"
#: client/scenes/stream_gui.cpp:1008
#: client/scenes/stream_gui.cpp:1003
msgid "Compact view"
msgstr "概览"
+1 -1
View File
@@ -1 +1 @@
93d5848d2f5f835fe29291dc7e0f094f3e02de78
ee655a920cb4b50bafa2af2c92333a503e40cae6
@@ -1,7 +1,7 @@
From cdc149ced7ae13d7b8601ab5af532f3e7739df2c Mon Sep 17 00:00:00 2001
From 31c816e45b57fe9c19b35ce6c40624608391f5bd Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 22 Oct 2024 15:23:19 +0200
Subject: [PATCH 01/10] c/multi: early wake of compositor
Subject: [PATCH 1/9] c/multi: early wake of compositor
---
.../compositor/multi/comp_multi_compositor.c | 14 +++++++++
@@ -128,5 +128,5 @@ index 4db923457..80cbbbc26 100644
//! @todo Make the clients not go from IDLE to READY before we have completed a first frame.
// Make sure there is at least some sort of valid frame data here.
--
2.52.0
2.53.0
@@ -1,17 +1,17 @@
From 418da3425889c5577b4099c089de326ef066e655 Mon Sep 17 00:00:00 2001
From 282ac382841ec5208b6a8a98b63b50d007eeb5de Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 8 Oct 2024 22:13:15 +0200
Subject: [PATCH 02/10] Use extern socket fd
Subject: [PATCH 2/9] Use extern socket fd
---
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/xrt/ipc/server/ipc_server_mainloop_linux.c b/src/xrt/ipc/server/ipc_server_mainloop_linux.c
index 36bf3e31d..e40447bb2 100644
index 777a31e96..9235375e6 100644
--- a/src/xrt/ipc/server/ipc_server_mainloop_linux.c
+++ b/src/xrt/ipc/server/ipc_server_mainloop_linux.c
@@ -48,6 +48,8 @@
@@ -49,6 +49,8 @@
#endif
@@ -20,7 +20,7 @@ index 36bf3e31d..e40447bb2 100644
/*
*
* Static functions.
@@ -56,6 +58,12 @@
@@ -57,6 +59,12 @@
static int
get_systemd_socket(struct ipc_server_mainloop *ml, int *out_fd)
{
@@ -34,5 +34,5 @@ index 36bf3e31d..e40447bb2 100644
// We may have been launched with socket activation
int num_fds = sd_listen_fds(0);
--
2.52.0
2.53.0
@@ -1,7 +1,7 @@
From b75d0230a7f2380ed05ec87e24c61dcbbd66c1b5 Mon Sep 17 00:00:00 2001
From b798f1574943241b1ac47feba4f66524a282fc23 Mon Sep 17 00:00:00 2001
From: galister <85970-galister@users.noreply.gitlab.freedesktop.org>
Date: Sat, 23 Nov 2024 02:42:12 +0900
Subject: [PATCH 03/10] change environment blend mode selection logic
Subject: [PATCH 3/9] change environment blend mode selection logic
---
src/xrt/compositor/multi/comp_multi_system.c | 26 +++++++++++++-------
@@ -53,5 +53,5 @@ index 80cbbbc26..4a397d7ec 100644
}
--
2.52.0
2.53.0
@@ -1,7 +1,7 @@
From 1fed94d509b7e0b7c6ef89118e646338d88f5a9c Mon Sep 17 00:00:00 2001
From 085aa329b48a9f43d23c321b6d8badd4f5cc0346 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Sat, 15 Mar 2025 22:19:48 +0100
Subject: [PATCH 04/10] st/oxr: forward 0 refresh rate
Subject: [PATCH 4/9] st/oxr: forward 0 refresh rate
---
src/xrt/compositor/main/comp_compositor.c | 2 +-
@@ -9,10 +9,10 @@ Subject: [PATCH 04/10] st/oxr: forward 0 refresh rate
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c
index 41dfe48bc..e29795e42 100644
index b6c4947bf..0e8ed02b7 100644
--- a/src/xrt/compositor/main/comp_compositor.c
+++ b/src/xrt/compositor/main/comp_compositor.c
@@ -368,7 +368,7 @@ compositor_request_display_refresh_rate(struct xrt_compositor *xc, float display
@@ -372,7 +372,7 @@ compositor_request_display_refresh_rate(struct xrt_compositor *xc, float display
if (c->target && c->target->request_refresh_rate) {
xrt_result_t result = comp_target_request_refresh_rate(c->target, display_refresh_rate_hz);
// Assume refresh rate change is immediate
@@ -22,10 +22,10 @@ index 41dfe48bc..e29795e42 100644
return result;
}
diff --git a/src/xrt/state_trackers/oxr/oxr_api_session.c b/src/xrt/state_trackers/oxr/oxr_api_session.c
index f58bdac52..556e12100 100644
index 09297f885..9f3a7ebc2 100644
--- a/src/xrt/state_trackers/oxr/oxr_api_session.c
+++ b/src/xrt/state_trackers/oxr/oxr_api_session.c
@@ -454,15 +454,11 @@ oxr_xrRequestDisplayRefreshRateFB(XrSession session, float displayRefreshRate)
@@ -455,15 +455,11 @@ oxr_xrRequestDisplayRefreshRateFB(XrSession session, float displayRefreshRate)
OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrRequestDisplayRefreshRateFB");
OXR_VERIFY_SESSION_NOT_LOST(&log, sess);
@@ -43,5 +43,5 @@ index f58bdac52..556e12100 100644
if ((int)(displayRefreshRate * 100.0f) == (int)(sess->sys->xsysc->info.refresh_rates_hz[i] * 100.0f)) {
found = true;
--
2.52.0
2.53.0
@@ -1,14 +1,14 @@
From 405df0e880a8fff52a01992eb96fa634cc795ba6 Mon Sep 17 00:00:00 2001
From 74d980d760e437dccb2c99591d9224e70d8b0065 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Wed, 11 Sep 2024 22:56:29 +0200
Subject: [PATCH 05/10] Replace distortion with foveation
Subject: [PATCH 5/9] Replace distortion with foveation
---
src/xrt/compositor/main/comp_renderer.c | 6 +-
src/xrt/compositor/main/comp_target.h | 3 +-
src/xrt/compositor/render/CMakeLists.txt | 2 +-
src/xrt/compositor/render/render_compute.c | 410 +++++++-----------
src/xrt/compositor/render/render_interface.h | 95 ++--
src/xrt/compositor/render/render_interface.h | 94 ++--
src/xrt/compositor/render/render_resources.c | 106 ++---
src/xrt/compositor/shaders/CMakeLists.txt | 2 +-
src/xrt/compositor/shaders/clear.comp | 4 +-
@@ -17,13 +17,13 @@ Subject: [PATCH 05/10] Replace distortion with foveation
.../compositor/util/comp_high_level_render.h | 9 +-
src/xrt/compositor/util/comp_render.h | 11 +-
src/xrt/compositor/util/comp_render_cs.c | 112 ++---
13 files changed, 356 insertions(+), 592 deletions(-)
13 files changed, 355 insertions(+), 592 deletions(-)
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
index 16c16fd7a..40b219cef 100644
index f6c403015..ff9728a59 100644
--- a/src/xrt/compositor/main/comp_renderer.c
+++ b/src/xrt/compositor/main/comp_renderer.c
@@ -1005,7 +1005,8 @@ dispatch_compute(struct comp_renderer *r,
@@ -983,7 +983,8 @@ dispatch_compute(struct comp_renderer *r,
// Target Vulkan resources..
VkImage target_image = r->c->target->images[r->acquired_buffer].handle;
@@ -33,7 +33,7 @@ index 16c16fd7a..40b219cef 100644
// Target view information.
struct render_viewport_data target_viewport_datas[XRT_MAX_VIEWS];
@@ -1022,7 +1023,8 @@ dispatch_compute(struct comp_renderer *r,
@@ -1000,7 +1001,8 @@ dispatch_compute(struct comp_renderer *r,
eye_poses, //
fovs, //
target_image, //
@@ -44,7 +44,7 @@ index 16c16fd7a..40b219cef 100644
// Everything is ready, submit to the queue.
diff --git a/src/xrt/compositor/main/comp_target.h b/src/xrt/compositor/main/comp_target.h
index 2122f46e7..53dcd631b 100644
index 953052155..68ca15cb9 100644
--- a/src/xrt/compositor/main/comp_target.h
+++ b/src/xrt/compositor/main/comp_target.h
@@ -62,7 +62,8 @@ enum comp_target_display_timing_usage
@@ -647,10 +647,10 @@ index 62d7138b9..44c3f0aee 100644
.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED,
.image = target_image,
diff --git a/src/xrt/compositor/render/render_interface.h b/src/xrt/compositor/render/render_interface.h
index 8ca26704a..b7d1d96a8 100644
index 8a198707f..a4b5c53a2 100644
--- a/src/xrt/compositor/render/render_interface.h
+++ b/src/xrt/compositor/render/render_interface.h
@@ -82,12 +82,8 @@ extern "C" {
@@ -83,12 +83,8 @@ extern "C" {
#define RENDER_MAX_LAYER_RUNS_SIZE (XRT_MAX_VIEWS)
#define RENDER_MAX_LAYER_RUNS_COUNT(RENDER_RESOURCES) (RENDER_RESOURCES->view_count)
@@ -665,7 +665,7 @@ index 8ca26704a..b7d1d96a8 100644
//! The binding that the layer projection and quad shader have their UBO on.
#define RENDER_BINDING_LAYER_SHARED_UBO 0
@@ -120,12 +116,6 @@ extern "C" {
@@ -121,12 +117,6 @@ extern "C" {
uint32_t
render_max_layers_capable(const struct vk_bundle *vk, bool use_compute, uint32_t desired_max_layers);
@@ -678,7 +678,7 @@ index 8ca26704a..b7d1d96a8 100644
/*!
* Calculates a timewarp matrix which takes in NDC coords and gives out results
* in [-1, 1] space that needs a perspective divide.
@@ -465,7 +455,8 @@ struct render_resources
@@ -466,7 +456,8 @@ struct render_resources
uint32_t distortion_binding;
//! Writing the image out too.
@@ -688,7 +688,7 @@ index 8ca26704a..b7d1d96a8 100644
//! Uniform data binding.
uint32_t ubo_binding;
@@ -502,9 +493,6 @@ struct render_resources
@@ -503,9 +494,6 @@ struct render_resources
//! Doesn't depend on target so is static.
VkPipeline pipeline;
@@ -698,7 +698,7 @@ index 8ca26704a..b7d1d96a8 100644
//! Target info.
struct render_buffer ubo;
} distortion;
@@ -526,17 +514,11 @@ struct render_resources
@@ -527,17 +515,11 @@ struct render_resources
//! Transform to go from UV to tangle angles.
struct xrt_normalized_rect uv_to_tanangle[XRT_MAX_VIEWS];
@@ -720,15 +720,7 @@ index 8ca26704a..b7d1d96a8 100644
} distortion;
};
@@ -1254,6 +1236,7 @@ struct render_compute_layer_ubo_data
//! Timewarp matrices
struct xrt_matrix_4x4 transforms_timewarp[RENDER_MAX_LAYERS];
+
/*!
* For quad layers
*/
@@ -1293,6 +1276,14 @@ struct render_compute_distortion_ubo_data
@@ -1315,6 +1297,14 @@ struct render_compute_distortion_ubo_data
struct xrt_matrix_4x4 transform_timewarp_scanout_end[XRT_MAX_VIEWS];
};
@@ -743,7 +735,7 @@ index 8ca26704a..b7d1d96a8 100644
/*!
* Init struct and create resources needed for compute rendering.
*
@@ -1346,7 +1337,8 @@ render_compute_layers(struct render_compute *render,
@@ -1368,7 +1358,8 @@ render_compute_layers(struct render_compute *render,
VkSampler src_samplers[RENDER_MAX_IMAGES_SIZE],
VkImageView src_image_views[RENDER_MAX_IMAGES_SIZE],
uint32_t num_srcs,
@@ -753,7 +745,7 @@ index 8ca26704a..b7d1d96a8 100644
const struct render_viewport_data *view,
bool timewarp);
@@ -1354,44 +1346,14 @@ render_compute_layers(struct render_compute *render,
@@ -1376,44 +1367,14 @@ render_compute_layers(struct render_compute *render,
* @public @memberof render_compute
*/
void
@@ -806,7 +798,7 @@ index 8ca26704a..b7d1d96a8 100644
/*!
* @public @memberof render_compute
@@ -1399,7 +1361,8 @@ render_compute_projection_no_timewarp(struct render_compute *render,
@@ -1421,7 +1382,8 @@ render_compute_projection_no_timewarp(struct render_compute *render,
void
render_compute_clear(struct render_compute *render,
VkImage target_image,
@@ -817,7 +809,7 @@ index 8ca26704a..b7d1d96a8 100644
diff --git a/src/xrt/compositor/render/render_resources.c b/src/xrt/compositor/render/render_resources.c
index d28caaed8..5232a774d 100644
index e1b4f0916..9a993dc81 100644
--- a/src/xrt/compositor/render/render_resources.c
+++ b/src/xrt/compositor/render/render_resources.c
@@ -184,14 +184,15 @@ init_mesh_ubo_buffers(struct vk_bundle *vk, struct render_buffer ubo[XRT_MAX_VIE
@@ -906,7 +898,7 @@ index d28caaed8..5232a774d 100644
};
VkDescriptorSetLayoutCreateInfo set_layout_info = {
@@ -295,12 +309,6 @@ struct compute_layer_params
@@ -294,12 +308,6 @@ struct compute_layer_params
uint32_t image_array_size;
};
@@ -919,7 +911,7 @@ index d28caaed8..5232a774d 100644
XRT_CHECK_RESULT static VkResult
create_compute_layer_pipeline(struct vk_bundle *vk,
VkPipelineCache pipeline_cache,
@@ -345,35 +353,15 @@ create_compute_distortion_pipeline(struct vk_bundle *vk,
@@ -343,35 +351,15 @@ create_compute_distortion_pipeline(struct vk_bundle *vk,
VkPipelineCache pipeline_cache,
VkShaderModule shader,
VkPipelineLayout pipeline_layout,
@@ -956,7 +948,7 @@ index d28caaed8..5232a774d 100644
out_compute_pipeline); // out_compute_pipeline
}
@@ -539,8 +527,9 @@ render_resources_init(struct render_resources *r,
@@ -537,8 +525,9 @@ render_resources_init(struct render_resources *r,
}
r->compute.src_binding = 0;
r->compute.distortion_binding = 1;
@@ -967,7 +959,7 @@ index d28caaed8..5232a774d 100644
r->compute.layer.image_array_size =
MIN(vk->limits.max_per_stage_descriptor_sampled_images, RENDER_MAX_IMAGES_SIZE);
@@ -834,9 +823,9 @@ render_resources_init(struct render_resources *r,
@@ -832,9 +821,9 @@ render_resources_init(struct render_resources *r,
struct vk_descriptor_pool_info compute_pool_info = {
.uniform_per_descriptor_count = 1,
// layer images
@@ -979,7 +971,7 @@ index d28caaed8..5232a774d 100644
.descriptor_count = compute_descriptor_count,
.freeable = false,
};
@@ -856,7 +845,8 @@ render_resources_init(struct render_resources *r,
@@ -854,7 +843,8 @@ render_resources_init(struct render_resources *r,
ret = create_compute_layer_descriptor_set_layout( //
vk, // vk_bundle
r->compute.src_binding, // src_binding,
@@ -989,7 +981,7 @@ index d28caaed8..5232a774d 100644
r->compute.ubo_binding, // ubo_binding,
r->compute.layer.image_array_size, // source_images_count,
&r->compute.layer.descriptor_set_layout); // out_descriptor_set_layout
@@ -937,7 +927,8 @@ render_resources_init(struct render_resources *r,
@@ -933,7 +923,8 @@ render_resources_init(struct render_resources *r,
vk, // vk_bundle
r->compute.src_binding, // src_binding,
r->compute.distortion_binding, // distortion_binding,
@@ -999,7 +991,7 @@ index d28caaed8..5232a774d 100644
r->compute.ubo_binding, // ubo_binding,
&r->compute.distortion.descriptor_set_layout); // out_descriptor_set_layout
VK_CHK_WITH_RET(ret, "create_compute_distortion_descriptor_set_layout", false);
@@ -954,39 +945,16 @@ render_resources_init(struct render_resources *r,
@@ -950,39 +941,16 @@ render_resources_init(struct render_resources *r,
VK_NAME_PIPELINE_LAYOUT(vk, r->compute.distortion.pipeline_layout,
"render_resources compute distortion pipeline layout");
@@ -1039,7 +1031,7 @@ index d28caaed8..5232a774d 100644
size_t distortion_ubo_size = sizeof(struct render_compute_distortion_ubo_data);
ret = render_buffer_init( //
@@ -1039,15 +1007,8 @@ render_resources_init(struct render_resources *r,
@@ -1035,15 +1003,8 @@ render_resources_init(struct render_resources *r,
* Compute distortion textures, not created until later.
*/
@@ -1057,7 +1049,7 @@ index d28caaed8..5232a774d 100644
/*
@@ -1124,7 +1085,6 @@ render_resources_fini(struct render_resources *r)
@@ -1120,7 +1081,6 @@ render_resources_fini(struct render_resources *r)
D(DescriptorSetLayout, r->compute.distortion.descriptor_set_layout);
D(Pipeline, r->compute.distortion.pipeline);
@@ -1066,10 +1058,10 @@ index d28caaed8..5232a774d 100644
D(Pipeline, r->compute.clear.pipeline);
diff --git a/src/xrt/compositor/shaders/CMakeLists.txt b/src/xrt/compositor/shaders/CMakeLists.txt
index d8aca97e2..ffc79ca6e 100644
index c8c3ce3ab..b5d899cc9 100644
--- a/src/xrt/compositor/shaders/CMakeLists.txt
+++ b/src/xrt/compositor/shaders/CMakeLists.txt
@@ -25,7 +25,7 @@ set(SHADERS
@@ -26,7 +26,7 @@ set(SHADERS
spirv_shaders(
SHADER_HEADERS
SPIRV_VERSION
@@ -1415,7 +1407,7 @@ index bd7ab2957..c2b95d68d 100644
bool do_timewarp);
diff --git a/src/xrt/compositor/util/comp_render_cs.c b/src/xrt/compositor/util/comp_render_cs.c
index a0cc735a1..f75efddf4 100644
index a2b6e0d01..0868e515b 100644
--- a/src/xrt/compositor/util/comp_render_cs.c
+++ b/src/xrt/compositor/util/comp_render_cs.c
@@ -370,7 +370,8 @@ crc_clear_output(struct render_compute *render, const struct comp_render_dispatc
@@ -1621,7 +1613,7 @@ index a0cc735a1..f75efddf4 100644
view_index, // view_index
cur_layer, // cur_layer
cur_image, // cur_image
@@ -713,7 +663,8 @@ comp_render_cs_layer(struct render_compute *render,
@@ -716,7 +666,8 @@ comp_render_cs_layer(struct render_compute *render,
src_samplers, //
src_image_views, //
cur_image, //
@@ -1631,7 +1623,7 @@ index a0cc735a1..f75efddf4 100644
target_view, //
do_timewarp); //
}
@@ -750,6 +701,7 @@ comp_render_cs_layers(struct render_compute *render,
@@ -753,6 +704,7 @@ comp_render_cs_layers(struct render_compute *render,
&view->eye_pose, //
view->squash.image, //
view->squash.cs.storage_view, //
@@ -1640,5 +1632,5 @@ index a0cc735a1..f75efddf4 100644
d->do_timewarp); //
}
--
2.52.0
2.53.0
@@ -1,17 +1,17 @@
From e642d6e1ed14dfaed47417043fe40cc9ed46eccc Mon Sep 17 00:00:00 2001
From e4e8c532a6f5e46e91b67641feeb09d3f4b52bc7 Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Sun, 28 Sep 2025 11:33:10 +0200
Subject: [PATCH 06/10] d/steamvr_lh: prevent crash on vive pro2/WiVRn
Subject: [PATCH 6/9] d/steamvr_lh: prevent crash on vive pro2/WiVRn
---
src/xrt/drivers/steamvr_lh/steamvr_lh.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
index 111a4d225..cdc06d0a7 100644
index 0fbe4f563..dc9e3d3a5 100644
--- a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
+++ b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
@@ -895,7 +895,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out
@@ -954,7 +954,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out
// Include the HMD
if (svrs->ctx->hmd) {
@@ -21,5 +21,5 @@ index 111a4d225..cdc06d0a7 100644
}
--
2.52.0
2.53.0
@@ -1,35 +1,40 @@
From ab48560e8e94c11d10ade2543faae3102bb90732 Mon Sep 17 00:00:00 2001
From 78aa739c623f7c797f92f2905b59bc73446f3e32 Mon Sep 17 00:00:00 2001
From: Sapphire <imsapphire0@gmail.com>
Date: Fri, 7 Nov 2025 20:41:16 -0600
Subject: [PATCH 07/10] st/oxr: push XrEventDataInteractionProfileChanged when
Subject: [PATCH 7/9] st/oxr: push XrEventDataInteractionProfileChanged when
profile changes to NULL
---
src/xrt/state_trackers/oxr/oxr_input.c | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
src/xrt/state_trackers/oxr/actions/oxr_input.c | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/src/xrt/state_trackers/oxr/oxr_input.c b/src/xrt/state_trackers/oxr/oxr_input.c
index a319e044d..cd1cd4bd9 100644
--- a/src/xrt/state_trackers/oxr/oxr_input.c
+++ b/src/xrt/state_trackers/oxr/oxr_input.c
@@ -1882,15 +1882,22 @@ oxr_session_update_action_bindings(struct oxr_logger *log, struct oxr_session *s
diff --git a/src/xrt/state_trackers/oxr/actions/oxr_input.c b/src/xrt/state_trackers/oxr/actions/oxr_input.c
index 95eef613a..c76dfcb0c 100644
--- a/src/xrt/state_trackers/oxr/actions/oxr_input.c
+++ b/src/xrt/state_trackers/oxr/actions/oxr_input.c
@@ -1885,26 +1885,21 @@ oxr_session_update_action_bindings(struct oxr_logger *log, struct oxr_session *s
}
}
- /*
- * This code will only send events (and update the bindings) if there
- * is a profile mapped to the subaction path. Meaning it won't update
- * the cache or generate events when a controller goes away, basically
- * latching the interaction profile to the last active device.
- */
+ bool any_profile_changed = false;
+
#define POPULATE_PROFILE(X) \
- sess->X = XR_NULL_PATH; \
- if (profiles.X != NULL) { \
- sess->X = profiles.X->path; \
- oxr_event_push_XrEventDataInteractionProfileChanged(log, sess); \
+ { \
+ const XrPath new_path = profiles.X ? profiles.X->path : XR_NULL_PATH; \
+ if (sess->X != new_path) { \
+ sess->X = new_path; \
do { \
XrPath path = profiles.X != NULL ? profiles.X->path : XR_NULL_PATH; \
- if (path == XR_NULL_PATH) { \
- break; /* Only update on "active" interaction profiles per sub-action path. */ \
- } \
if (sess->X != path) { \
sess->X = path; \
- oxr_event_push_XrEventDataInteractionProfileChanged(log, sess); \
+ any_profile_changed = true; \
+ } \
}
} \
} while (false);
OXR_FOR_EACH_VALID_SUBACTION_PATH(POPULATE_PROFILE)
#undef POPULATE_PROFILE
@@ -40,5 +45,5 @@ index a319e044d..cd1cd4bd9 100644
}
--
2.52.0
2.53.0
@@ -0,0 +1,40 @@
From 8f62c1a61729d0550280d0e4e02ffa7cc3f7fdae Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Thu, 15 Jan 2026 12:13:06 +0100
Subject: [PATCH 8/9] Don't get pose data for fast path
---
src/xrt/compositor/main/comp_renderer.c | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
index ff9728a59..08cdef540 100644
--- a/src/xrt/compositor/main/comp_renderer.c
+++ b/src/xrt/compositor/main/comp_renderer.c
@@ -972,14 +972,15 @@ dispatch_compute(struct comp_renderer *r,
struct xrt_pose world_poses_scanout_begin[XRT_MAX_VIEWS];
struct xrt_pose world_poses_scanout_end[XRT_MAX_VIEWS];
struct xrt_pose eye_poses[XRT_MAX_VIEWS];
- calc_pose_data( //
- r, //
- fov_source, //
- fovs, //
- world_poses_scanout_begin, //
- world_poses_scanout_end, //
- eye_poses, //
- render->r->view_count); //
+ if (!c->base.frame_params.one_projection_layer_fast_path)
+ calc_pose_data( //
+ r, //
+ fov_source, //
+ fovs, //
+ world_poses_scanout_begin, //
+ world_poses_scanout_end, //
+ eye_poses, //
+ render->r->view_count); //
// Target Vulkan resources..
VkImage target_image = r->c->target->images[r->acquired_buffer].handle;
--
2.53.0
@@ -1,25 +0,0 @@
From 8c1184b92396ea927f639b9a068307c81123fbf6 Mon Sep 17 00:00:00 2001
From: rcelyte <rcelyte@battletrains.org>
Date: Mon, 8 Dec 2025 19:29:28 +0000
Subject: [PATCH 08/10] d/solarxr: Fix flatpak socket path
---
src/xrt/drivers/solarxr/solarxr_ipc_socket.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xrt/drivers/solarxr/solarxr_ipc_socket.c b/src/xrt/drivers/solarxr/solarxr_ipc_socket.c
index d50d30310..8a958ad8c 100644
--- a/src/xrt/drivers/solarxr/solarxr_ipc_socket.c
+++ b/src/xrt/drivers/solarxr/solarxr_ipc_socket.c
@@ -129,7 +129,7 @@ solarxr_ipc_socket_find(const enum u_logging_level log_level, const char filenam
}
// try path used by SlimeVR flatpak
- static const char flatpak_runtime_dir[] = "app/" SLIMEVR_IDENTIFIER "/";
+ static const char flatpak_runtime_dir[] = ".flatpak/" SLIMEVR_IDENTIFIER "/xdg-run/";
if (sizeof(addr.sun_path) - 1 - filename_len - runtime_dir_len >= sizeof(flatpak_runtime_dir) - 1) {
memcpy(&addr.sun_path[runtime_dir_len], flatpak_runtime_dir, sizeof(flatpak_runtime_dir) - 1);
memcpy(&addr.sun_path[runtime_dir_len + (sizeof(flatpak_runtime_dir) - 1)], filename, filename_len + 1);
--
2.52.0

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