From d4665eb7136c09d545002530e8b8f844072690a3 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 26 Aug 2025 22:54:55 +0200 Subject: [PATCH 01/52] Update Monado --- flake.nix | 2 +- monado-rev | 2 +- ...a-vk-Track-VK_KHR_video_maintenance1.patch | 64 --------- ...e-video_maintenance_1-device-feature.patch | 134 ------------------ ...-Request-video_maintenance_1-feature.patch | 26 ---- 5 files changed, 2 insertions(+), 226 deletions(-) delete mode 100644 patches/monado/0011-a-vk-Track-VK_KHR_video_maintenance1.patch delete mode 100644 patches/monado/0012-a-vk-Expose-video_maintenance_1-device-feature.patch delete mode 100644 patches/monado/0013-c-util-Request-video_maintenance_1-feature.patch diff --git a/flake.nix b/flake.nix index 6ab65aa9..71070d51 100644 --- a/flake.nix +++ b/flake.nix @@ -41,7 +41,7 @@ # Keep in sync with CMakeLists.txt monado rev rev = builtins.readFile ./monado-rev; # Nix will output the correct hash when it doesn't match - hash = "sha256-4P/ejRAitrYn8hXZPaDOcx27utfm+aVLjtqL6JxZYAg="; + hash = "sha256-nc198/nj9bvT5VpoEVuHraZKYyjhiFA3S46RzrWA96Q="; }; }; diff --git a/monado-rev b/monado-rev index 16e87975..fe561158 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -5c137fe28b232fe460f9b03defa7749adc32ee48 +76577fe5cfc6904d44e7618f96af3d9387475106 diff --git a/patches/monado/0011-a-vk-Track-VK_KHR_video_maintenance1.patch b/patches/monado/0011-a-vk-Track-VK_KHR_video_maintenance1.patch deleted file mode 100644 index d33beefb..00000000 --- a/patches/monado/0011-a-vk-Track-VK_KHR_video_maintenance1.patch +++ /dev/null @@ -1,64 +0,0 @@ -From 34699c38c4ebb5c968b4e1053ddbf48b31dbe72d Mon Sep 17 00:00:00 2001 -From: Patrick Nicolas -Date: Tue, 5 Aug 2025 15:51:48 +0200 -Subject: [PATCH 11/13] a/vk: Track VK_KHR_video_maintenance1 - ---- - scripts/generate_vk_helpers.py | 1 + - src/xrt/auxiliary/vk/vk_bundle_init.c | 8 ++++++++ - src/xrt/auxiliary/vk/vk_helpers.h | 1 + - 3 files changed, 10 insertions(+) - -diff --git a/scripts/generate_vk_helpers.py b/scripts/generate_vk_helpers.py -index 330b1b05e..80902193a 100755 ---- a/scripts/generate_vk_helpers.py -+++ b/scripts/generate_vk_helpers.py -@@ -307,6 +307,7 @@ DEVICE_EXTENSIONS_TO_CHECK = [ - "VK_KHR_present_wait", - "VK_KHR_synchronization2", - "VK_KHR_timeline_semaphore", -+ "VK_KHR_video_maintenance1", - "VK_EXT_calibrated_timestamps", - "VK_EXT_display_control", - "VK_EXT_external_memory_dma_buf", -diff --git a/src/xrt/auxiliary/vk/vk_bundle_init.c b/src/xrt/auxiliary/vk/vk_bundle_init.c -index f28f7591f..b435d73dd 100644 ---- a/src/xrt/auxiliary/vk/vk_bundle_init.c -+++ b/src/xrt/auxiliary/vk/vk_bundle_init.c -@@ -754,6 +754,7 @@ fill_in_has_device_extensions(struct vk_bundle *vk, struct u_string_list *ext_li - vk->has_KHR_present_wait = false; - vk->has_KHR_synchronization2 = false; - vk->has_KHR_timeline_semaphore = false; -+ vk->has_KHR_video_maintenance1 = false; - vk->has_EXT_calibrated_timestamps = false; - vk->has_EXT_display_control = false; - vk->has_EXT_external_memory_dma_buf = false; -@@ -868,6 +869,13 @@ fill_in_has_device_extensions(struct vk_bundle *vk, struct u_string_list *ext_li - } - #endif // defined(VK_KHR_timeline_semaphore) - -+#if defined(VK_KHR_video_maintenance1) -+ if (strcmp(ext, VK_KHR_VIDEO_MAINTENANCE_1_EXTENSION_NAME) == 0) { -+ vk->has_KHR_video_maintenance1 = true; -+ continue; -+ } -+#endif // defined(VK_KHR_video_maintenance1) -+ - #if defined(VK_EXT_calibrated_timestamps) - if (strcmp(ext, VK_EXT_CALIBRATED_TIMESTAMPS_EXTENSION_NAME) == 0) { - vk->has_EXT_calibrated_timestamps = true; -diff --git a/src/xrt/auxiliary/vk/vk_helpers.h b/src/xrt/auxiliary/vk/vk_helpers.h -index 896b597d4..3b5cbb9c8 100644 ---- a/src/xrt/auxiliary/vk/vk_helpers.h -+++ b/src/xrt/auxiliary/vk/vk_helpers.h -@@ -142,6 +142,7 @@ struct vk_bundle - bool has_KHR_present_wait; - bool has_KHR_synchronization2; - bool has_KHR_timeline_semaphore; -+ bool has_KHR_video_maintenance1; - bool has_EXT_calibrated_timestamps; - bool has_EXT_display_control; - bool has_EXT_external_memory_dma_buf; --- -2.50.1 - diff --git a/patches/monado/0012-a-vk-Expose-video_maintenance_1-device-feature.patch b/patches/monado/0012-a-vk-Expose-video_maintenance_1-device-feature.patch deleted file mode 100644 index cb3c4b18..00000000 --- a/patches/monado/0012-a-vk-Expose-video_maintenance_1-device-feature.patch +++ /dev/null @@ -1,134 +0,0 @@ -From 2300c7509699db2a59e4bd0eee33890a2d906156 Mon Sep 17 00:00:00 2001 -From: Patrick Nicolas -Date: Tue, 5 Aug 2025 16:00:59 +0200 -Subject: [PATCH 12/13] a/vk: Expose video_maintenance_1 device feature - ---- - src/xrt/auxiliary/vk/vk_bundle_init.c | 40 +++++++++++++++++++++++++-- - src/xrt/auxiliary/vk/vk_helpers.h | 4 +++ - 2 files changed, 42 insertions(+), 2 deletions(-) - -diff --git a/src/xrt/auxiliary/vk/vk_bundle_init.c b/src/xrt/auxiliary/vk/vk_bundle_init.c -index b435d73dd..501cd6f3c 100644 ---- a/src/xrt/auxiliary/vk/vk_bundle_init.c -+++ b/src/xrt/auxiliary/vk/vk_bundle_init.c -@@ -1098,6 +1098,13 @@ filter_device_features(struct vk_bundle *vk, - }; - #endif - -+#ifdef VK_KHR_video_maintenance1 -+ VkPhysicalDeviceVideoMaintenance1FeaturesKHR video_maintenance_1_info = { -+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_MAINTENANCE_1_FEATURES_KHR, -+ .pNext = NULL, -+ }; -+#endif -+ - #ifdef VK_ANDROID_external_format_resolve - VkPhysicalDeviceExternalFormatResolveFeaturesANDROID ext_fmt_resolve_info = { - .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FORMAT_RESOLVE_FEATURES_ANDROID, -@@ -1148,6 +1155,13 @@ filter_device_features(struct vk_bundle *vk, - } - #endif - -+#ifdef VK_KHR_video_maintenance1 -+ if (vk->has_KHR_video_maintenance1) { -+ vk_append_to_pnext_chain((VkBaseInStructure *)&physical_device_features, -+ (VkBaseInStructure *)&video_maintenance_1_info); -+ } -+#endif -+ - #ifdef VK_ANDROID_external_format_resolve - if (vk->has_ANDROID_external_format_resolve) { - vk_append_to_pnext_chain((VkBaseInStructure *)&physical_device_features, -@@ -1187,6 +1201,10 @@ filter_device_features(struct vk_bundle *vk, - CHECK(synchronization_2, synchronization_2_info.synchronization2); - #endif - -+#ifdef VK_KHR_video_maintenance1 -+ CHECK(video_maintenance_1, video_maintenance_1_info.videoMaintenance1); -+#endif -+ - #ifdef VK_ANDROID_external_format_resolve - CHECK(ext_fmt_resolve, ext_fmt_resolve_info.externalFormatResolve); - #endif -@@ -1207,14 +1225,16 @@ filter_device_features(struct vk_bundle *vk, - "\n\tshader_storage_image_write_without_format: %i" - "\n\tstorage_buffer_8bit_access: %i" - "\n\tsynchronization_2: %i" -- "\n\ttimeline_semaphore: %i", // -+ "\n\ttimeline_semaphore: %i" -+ "\n\tvideo_maintenance_1: %i", // - device_features->ext_fmt_resolve, // - device_features->null_descriptor, // - device_features->shader_image_gather_extended, // - device_features->shader_storage_image_write_without_format, // - device_features->storage_buffer_8bit_access, // - device_features->synchronization_2, // -- device_features->timeline_semaphore); // -+ device_features->timeline_semaphore, // -+ device_features->video_maintenance_1); // - } - - -@@ -1262,6 +1282,7 @@ vk_create_device(struct vk_bundle *vk, - vk->features.timeline_semaphore = device_features.timeline_semaphore; - vk->features.synchronization_2 = device_features.synchronization_2; - vk->features.present_wait = device_features.present_wait; -+ vk->features.video_maintenance_1 = device_features.video_maintenance_1; - - - /* -@@ -1384,6 +1405,14 @@ vk_create_device(struct vk_bundle *vk, - }; - #endif - -+#ifdef VK_KHR_video_maintenance1 -+ VkPhysicalDeviceVideoMaintenance1FeaturesKHR video_maintenance_1_info = { -+ .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VIDEO_MAINTENANCE_1_FEATURES_KHR, -+ .pNext = NULL, -+ .videoMaintenance1 = device_features.video_maintenance_1, -+ }; -+#endif -+ - #ifdef VK_ANDROID_external_format_resolve - VkPhysicalDeviceExternalFormatResolveFeaturesANDROID ext_fmt_resolve_info = { - .sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_FORMAT_RESOLVE_FEATURES_ANDROID, -@@ -1444,6 +1473,13 @@ vk_create_device(struct vk_bundle *vk, - } - #endif - -+#ifdef VK_KHR_video_maintenance1 -+ if (vk->has_KHR_video_maintenance1) { -+ vk_append_to_pnext_chain((VkBaseInStructure *)&device_create_info, -+ (VkBaseInStructure *)&video_maintenance_1_info); -+ } -+#endif -+ - #ifdef VK_ANDROID_external_format_resolve - if (vk->has_ANDROID_external_format_resolve) { - vk_append_to_pnext_chain((VkBaseInStructure *)&device_create_info, -diff --git a/src/xrt/auxiliary/vk/vk_helpers.h b/src/xrt/auxiliary/vk/vk_helpers.h -index 3b5cbb9c8..748c06dac 100644 ---- a/src/xrt/auxiliary/vk/vk_helpers.h -+++ b/src/xrt/auxiliary/vk/vk_helpers.h -@@ -179,6 +179,9 @@ struct vk_bundle - - //! Was KHR_present_wait requested, available, and enabled? - bool present_wait; -+ -+ //! Was KHR_video_maintenance1 requested, available, and enabled? -+ bool video_maintenance_1; - } features; - - //! Is the GPU a tegra device. -@@ -1030,6 +1033,7 @@ struct vk_device_features - bool ext_fmt_resolve; - bool storage_buffer_8bit_access; - bool present_wait; -+ bool video_maintenance_1; - }; - - /*! --- -2.50.1 - diff --git a/patches/monado/0013-c-util-Request-video_maintenance_1-feature.patch b/patches/monado/0013-c-util-Request-video_maintenance_1-feature.patch deleted file mode 100644 index 4b1b7618..00000000 --- a/patches/monado/0013-c-util-Request-video_maintenance_1-feature.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 8c874368dfaa363e088e91c05adf2a96f921671d Mon Sep 17 00:00:00 2001 -From: Patrick Nicolas -Date: Tue, 5 Aug 2025 16:01:59 +0200 -Subject: [PATCH 13/13] c/util: Request video_maintenance_1 feature - -This will only be enabled if the VK_KHR_maintenance1 extension was -requested. ---- - src/xrt/compositor/util/comp_vulkan.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/xrt/compositor/util/comp_vulkan.c b/src/xrt/compositor/util/comp_vulkan.c -index 5618f4f78..9c719275c 100644 ---- a/src/xrt/compositor/util/comp_vulkan.c -+++ b/src/xrt/compositor/util/comp_vulkan.c -@@ -282,6 +282,7 @@ create_device(struct vk_bundle *vk, const struct comp_vulkan_arguments *vk_args) - .timeline_semaphore = vk_args->timeline_semaphore, - .synchronization_2 = true, - .present_wait = true, -+ .video_maintenance_1 = true, - }; - - ret = vk_init_mutex(vk); --- -2.50.1 - From 2f91217e02997b28c1b14ace9c3d45519ab91879 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 26 Aug 2025 23:09:03 +0200 Subject: [PATCH 02/52] Update Monado --- flake.nix | 2 +- monado-rev | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 71070d51..b46a6f03 100644 --- a/flake.nix +++ b/flake.nix @@ -41,7 +41,7 @@ # Keep in sync with CMakeLists.txt monado rev rev = builtins.readFile ./monado-rev; # Nix will output the correct hash when it doesn't match - hash = "sha256-nc198/nj9bvT5VpoEVuHraZKYyjhiFA3S46RzrWA96Q="; + hash = "sha256-DPIvJb23bK7SDjZr9mK0Wt6Zbo3Ari3Ar8TtPe5QgKY="; }; }; diff --git a/monado-rev b/monado-rev index fe561158..dfe2e07c 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -76577fe5cfc6904d44e7618f96af3d9387475106 +7a4018e2d89151e60e562fac79eba90ca7a328d8 From 9f2aa0157c99e93b4d21877cd89bcfa8d22fb4a1 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 26 Aug 2025 23:17:39 +0200 Subject: [PATCH 03/52] Squash foveation Monado patches --- ...001-c-multi-early-wake-of-compositor.patch | 6 +- ...02-ipc-server-Always-listen-to-stdin.patch | 6 +- .../monado/0003-Use-extern-socket-fd.patch | 6 +- ...Add-storage-usage-to-distortion-mesh.patch | 25 - ...ironment-blend-mode-selection-logic.patch} | 6 +- ...ain-allow-custom-pacing-app-factory.patch} | 10 +- ... 0006-st-oxr-forward-0-refresh-rate.patch} | 6 +- ...7-Replace-distortion-with-foveation.patch} | 821 ++++++++++++++---- .../0007-store-alpha-channel-in-layer-1.patch | 94 -- ...tortion-with-pixel-aligned-foveation.patch | 747 ---------------- 10 files changed, 696 insertions(+), 1031 deletions(-) delete mode 100644 patches/monado/0004-c-render-Add-storage-usage-to-distortion-mesh.patch rename patches/monado/{0005-change-environment-blend-mode-selection-logic.patch => 0004-change-environment-blend-mode-selection-logic.patch} (93%) rename patches/monado/{0008-c-main-allow-custom-pacing-app-factory.patch => 0005-c-main-allow-custom-pacing-app-factory.patch} (92%) rename patches/monado/{0009-st-oxr-forward-0-refresh-rate.patch => 0006-st-oxr-forward-0-refresh-rate.patch} (90%) rename patches/monado/{0006-Convert-to-YCbCr-in-Monado.patch => 0007-Replace-distortion-with-foveation.patch} (51%) delete mode 100644 patches/monado/0007-store-alpha-channel-in-layer-1.patch delete mode 100644 patches/monado/0010-Replace-distortion-with-pixel-aligned-foveation.patch diff --git a/patches/monado/0001-c-multi-early-wake-of-compositor.patch b/patches/monado/0001-c-multi-early-wake-of-compositor.patch index 90eddb98..07420d03 100644 --- a/patches/monado/0001-c-multi-early-wake-of-compositor.patch +++ b/patches/monado/0001-c-multi-early-wake-of-compositor.patch @@ -1,7 +1,7 @@ -From 483ce192460569020fa57522ee2bea99198dac2e Mon Sep 17 00:00:00 2001 +From 5a4505efc60c9252176b73775278b6f5b775fe8e Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 22 Oct 2024 15:23:19 +0200 -Subject: [PATCH 01/13] c/multi: early wake of compositor +Subject: [PATCH 1/7] c/multi: early wake of compositor --- .../compositor/multi/comp_multi_compositor.c | 14 +++++++++ @@ -128,5 +128,5 @@ index be763d1c1..22c801f65 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.50.1 +2.51.0 diff --git a/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch b/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch index aed5a5e2..9a506eb1 100644 --- a/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch +++ b/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch @@ -1,7 +1,7 @@ -From 642f328ff08872289082f591b393aa72cdfffe0a Mon Sep 17 00:00:00 2001 +From e118393925294a3b57cbf149fdc28685b27aec94 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 2 Apr 2024 17:14:42 +0200 -Subject: [PATCH 02/13] ipc/server: Always listen to stdin +Subject: [PATCH 2/7] ipc/server: Always listen to stdin --- src/xrt/ipc/server/ipc_server_mainloop_linux.c | 2 +- @@ -21,5 +21,5 @@ index d364fbed3..ad6b473b7 100644 // default. // This polls stdin. -- -2.50.1 +2.51.0 diff --git a/patches/monado/0003-Use-extern-socket-fd.patch b/patches/monado/0003-Use-extern-socket-fd.patch index 55734999..7755492f 100644 --- a/patches/monado/0003-Use-extern-socket-fd.patch +++ b/patches/monado/0003-Use-extern-socket-fd.patch @@ -1,7 +1,7 @@ -From a06da2ceeddf3f7760501114efa35bd168ba74bc Mon Sep 17 00:00:00 2001 +From d4b4c209e9106edf5e6b1c3efbcac2b88364518b Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 8 Oct 2024 22:13:15 +0200 -Subject: [PATCH 03/13] Use extern socket fd +Subject: [PATCH 3/7] Use extern socket fd --- src/xrt/ipc/server/ipc_server_mainloop_linux.c | 8 ++++++++ @@ -34,5 +34,5 @@ index ad6b473b7..ea6fad65b 100644 // We may have been launched with socket activation int num_fds = sd_listen_fds(0); -- -2.50.1 +2.51.0 diff --git a/patches/monado/0004-c-render-Add-storage-usage-to-distortion-mesh.patch b/patches/monado/0004-c-render-Add-storage-usage-to-distortion-mesh.patch deleted file mode 100644 index 16a7e514..00000000 --- a/patches/monado/0004-c-render-Add-storage-usage-to-distortion-mesh.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 4efe5b0e12a92284e46fdeb225102dc63a7eda51 Mon Sep 17 00:00:00 2001 -From: galister <3123227-galister@users.noreply.gitlab.com> -Date: Mon, 19 Aug 2024 18:51:45 +0900 -Subject: [PATCH 04/13] c/render: Add storage usage to distortion mesh - ---- - src/xrt/compositor/render/render_distortion.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/xrt/compositor/render/render_distortion.c b/src/xrt/compositor/render/render_distortion.c -index 8ac24db8e..5a7e400c3 100644 ---- a/src/xrt/compositor/render/render_distortion.c -+++ b/src/xrt/compositor/render/render_distortion.c -@@ -42,7 +42,7 @@ create_distortion_image_and_view(struct vk_bundle *vk, - vk, // vk_bundle - extent, // extent - format, // format -- VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT, // usage -+ VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_STORAGE_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT, // usage - &device_memory, // out_device_memory - &image); // out_image - VK_CHK_AND_RET(ret, "vk_create_image_simple"); --- -2.50.1 - diff --git a/patches/monado/0005-change-environment-blend-mode-selection-logic.patch b/patches/monado/0004-change-environment-blend-mode-selection-logic.patch similarity index 93% rename from patches/monado/0005-change-environment-blend-mode-selection-logic.patch rename to patches/monado/0004-change-environment-blend-mode-selection-logic.patch index 26e642fb..08cde750 100644 --- a/patches/monado/0005-change-environment-blend-mode-selection-logic.patch +++ b/patches/monado/0004-change-environment-blend-mode-selection-logic.patch @@ -1,7 +1,7 @@ -From a28d3e6a3e85b7c04392137b30958e8b1d13c591 Mon Sep 17 00:00:00 2001 +From 6dc7053efd13536ba81e8261c183ac0ae54321e2 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 05/13] change environment blend mode selection logic +Subject: [PATCH 4/7] change environment blend mode selection logic --- src/xrt/compositor/multi/comp_multi_system.c | 26 +++++++++++++------- @@ -53,5 +53,5 @@ index 22c801f65..1155bc67e 100644 } -- -2.50.1 +2.51.0 diff --git a/patches/monado/0008-c-main-allow-custom-pacing-app-factory.patch b/patches/monado/0005-c-main-allow-custom-pacing-app-factory.patch similarity index 92% rename from patches/monado/0008-c-main-allow-custom-pacing-app-factory.patch rename to patches/monado/0005-c-main-allow-custom-pacing-app-factory.patch index ce7e84a3..9df7fc75 100644 --- a/patches/monado/0008-c-main-allow-custom-pacing-app-factory.patch +++ b/patches/monado/0005-c-main-allow-custom-pacing-app-factory.patch @@ -1,7 +1,7 @@ -From 0d2ae2efb84f1479151c096e26f3295eded3b170 Mon Sep 17 00:00:00 2001 +From b9be14a7b106595ac1e6e350dcaaf93c906d0d0b Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 27 Feb 2025 22:45:36 +0100 -Subject: [PATCH 08/13] c/main: allow custom pacing app factory +Subject: [PATCH 5/7] c/main: allow custom pacing app factory --- src/xrt/compositor/main/comp_compositor.c | 10 ++++++---- @@ -10,7 +10,7 @@ Subject: [PATCH 08/13] c/main: allow custom pacing app factory 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c -index 819c2c8b3..a42d25869 100644 +index 805683d70..8220808ff 100644 --- a/src/xrt/compositor/main/comp_compositor.c +++ b/src/xrt/compositor/main/comp_compositor.c @@ -987,6 +987,7 @@ compositor_init_renderer(struct comp_compositor *c) @@ -21,7 +21,7 @@ index 819c2c8b3..a42d25869 100644 struct xrt_system_compositor **out_xsysc) { COMP_TRACE_MARKER(); -@@ -1185,10 +1186,11 @@ comp_main_create_system_compositor(struct xrt_device *xdev, +@@ -1187,10 +1188,11 @@ comp_main_create_system_compositor(struct xrt_device *xdev, } // Standard app pacer. @@ -78,5 +78,5 @@ index 617561c37..e10ba8358 100644 #else if (!use_null) { -- -2.50.1 +2.51.0 diff --git a/patches/monado/0009-st-oxr-forward-0-refresh-rate.patch b/patches/monado/0006-st-oxr-forward-0-refresh-rate.patch similarity index 90% rename from patches/monado/0009-st-oxr-forward-0-refresh-rate.patch rename to patches/monado/0006-st-oxr-forward-0-refresh-rate.patch index fe282057..0d3feef9 100644 --- a/patches/monado/0009-st-oxr-forward-0-refresh-rate.patch +++ b/patches/monado/0006-st-oxr-forward-0-refresh-rate.patch @@ -1,7 +1,7 @@ -From 1a9b288475830fc1caf9bbf340ea370677b239a5 Mon Sep 17 00:00:00 2001 +From bbf1e184d62cfb0dbafe5cfa1c1851baebf6be58 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 15 Mar 2025 22:19:48 +0100 -Subject: [PATCH 09/13] st/oxr: forward 0 refresh rate +Subject: [PATCH 6/7] st/oxr: forward 0 refresh rate --- src/xrt/state_trackers/oxr/oxr_api_session.c | 6 +----- @@ -29,5 +29,5 @@ index 9c5889f12..c4cdaf8c3 100644 if ((int)(displayRefreshRate * 100.0f) == (int)(sess->sys->xsysc->info.refresh_rates_hz[i] * 100.0f)) { found = true; -- -2.50.1 +2.51.0 diff --git a/patches/monado/0006-Convert-to-YCbCr-in-Monado.patch b/patches/monado/0007-Replace-distortion-with-foveation.patch similarity index 51% rename from patches/monado/0006-Convert-to-YCbCr-in-Monado.patch rename to patches/monado/0007-Replace-distortion-with-foveation.patch index a907d7ac..94e906c0 100644 --- a/patches/monado/0006-Convert-to-YCbCr-in-Monado.patch +++ b/patches/monado/0007-Replace-distortion-with-foveation.patch @@ -1,21 +1,45 @@ -From ec28b5726922e300dc05085a30150223c6a2183a Mon Sep 17 00:00:00 2001 +From d8385cab2e585d9bb1f9a392a22ecf3be3f714fe Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 11 Sep 2024 22:56:29 +0200 -Subject: [PATCH 06/13] Convert to YCbCr in Monado +Subject: [PATCH 7/7] Replace distortion with foveation --- + src/xrt/compositor/CMakeLists.txt | 4 +- src/xrt/compositor/main/comp_renderer.c | 6 +- src/xrt/compositor/main/comp_target.h | 3 +- - src/xrt/compositor/render/render_compute.c | 104 ++++++++++++------ - src/xrt/compositor/render/render_interface.h | 15 ++- - src/xrt/compositor/render/render_resources.c | 35 ++++-- - src/xrt/compositor/shaders/distortion.comp | 62 +++++++---- + src/xrt/compositor/render/render_compute.c | 267 +++++------------- + src/xrt/compositor/render/render_interface.h | 48 ++-- + src/xrt/compositor/render/render_resources.c | 106 +++---- + src/xrt/compositor/shaders/clear.comp | 4 +- + src/xrt/compositor/shaders/distortion.comp | 169 +++++------ .../compositor/util/comp_high_level_render.c | 6 +- .../compositor/util/comp_high_level_render.h | 9 +- src/xrt/compositor/util/comp_render.h | 11 +- - src/xrt/compositor/util/comp_render_cs.c | 19 +++- - 10 files changed, 184 insertions(+), 86 deletions(-) + src/xrt/compositor/util/comp_render_cs.c | 44 ++- + 12 files changed, 245 insertions(+), 432 deletions(-) +diff --git a/src/xrt/compositor/CMakeLists.txt b/src/xrt/compositor/CMakeLists.txt +index 1ba5ec438..eb068f5fc 100644 +--- a/src/xrt/compositor/CMakeLists.txt ++++ b/src/xrt/compositor/CMakeLists.txt +@@ -105,7 +105,7 @@ if(XRT_HAVE_VULKAN) + spirv_shaders( + SHADER_HEADERS + SPIRV_VERSION +- 1.0 # Currently targeting Vulkan 1.0 ++ 1.3 # Currently targeting Vulkan 1.3 + SOURCES + ${SHADERS} + ) +@@ -115,7 +115,7 @@ if(XRT_HAVE_VULKAN) + ${SHADER_HEADERS} + render/render_buffer.c + render/render_compute.c +- render/render_distortion.c ++ # render/render_distortion.c implemented in wivrn + render/render_gfx.c + render/render_interface.h + render/render_resources.c diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c index e45d33e22..d2518585c 100644 --- a/src/xrt/compositor/main/comp_renderer.c @@ -55,20 +79,9 @@ index 2122f46e7..53dcd631b 100644 /*! diff --git a/src/xrt/compositor/render/render_compute.c b/src/xrt/compositor/render/render_compute.c -index 27b1953cf..fd04801d4 100644 +index 27b1953cf..44c3f0aee 100644 --- a/src/xrt/compositor/render/render_compute.c +++ b/src/xrt/compositor/render/render_compute.c -@@ -66,8 +66,8 @@ calc_dispatch_dims_views(const struct render_viewport_data views[XRT_MAX_VIEWS], - #undef IMAX - - // Power of two divide and round up. -- w = uint_divide_and_round_up(w, 8); -- h = uint_divide_and_round_up(h, 8); -+ w = uint_divide_and_round_up(w, 16); -+ h = uint_divide_and_round_up(h, 16); - - *out_w = w; - *out_h = h; @@ -86,8 +86,10 @@ update_compute_layer_descriptor_set(struct vk_bundle *vk, VkSampler src_samplers[RENDER_MAX_IMAGES_SIZE], VkImageView src_image_views[RENDER_MAX_IMAGES_SIZE], @@ -135,12 +148,16 @@ index 27b1953cf..fd04801d4 100644 }; vk->vkUpdateDescriptorSets( // -@@ -154,8 +169,10 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk, +@@ -152,10 +167,12 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk, + VkSampler src_samplers[XRT_MAX_VIEWS], + VkImageView src_image_views[XRT_MAX_VIEWS], uint32_t distortion_binding, - VkSampler distortion_samplers[3 * XRT_MAX_VIEWS], - VkImageView distortion_image_views[3 * XRT_MAX_VIEWS], +- VkSampler distortion_samplers[3 * XRT_MAX_VIEWS], +- VkImageView distortion_image_views[3 * XRT_MAX_VIEWS], - uint32_t target_binding, - VkImageView target_image_view, ++ VkDeviceSize foveation_size, ++ VkBuffer foveation_buffer, + uint32_t target_binding_y, + uint32_t target_binding_cbcr, + VkImageView target_image_view_y, @@ -148,10 +165,22 @@ index 27b1953cf..fd04801d4 100644 uint32_t ubo_binding, VkBuffer ubo_buffer, VkDeviceSize ubo_size, -@@ -176,8 +193,13 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk, - distortion_image_info[i].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; +@@ -169,15 +186,19 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk, + src_image_info[i].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; } +- VkDescriptorImageInfo distortion_image_info[3 * XRT_MAX_VIEWS]; +- for (uint32_t i = 0; i < 3 * view_count; ++i) { +- distortion_image_info[i].sampler = distortion_samplers[i]; +- distortion_image_info[i].imageView = distortion_image_views[i]; +- distortion_image_info[i].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; +- } ++ VkDescriptorBufferInfo foveation_buffer_info = { ++ .buffer = foveation_buffer, ++ .offset = 0, ++ .range = foveation_size, ++ }; + - VkDescriptorImageInfo target_image_info = { - .imageView = target_image_view, + VkDescriptorImageInfo target_image_y_info = { @@ -164,7 +193,7 @@ index 27b1953cf..fd04801d4 100644 .imageLayout = VK_IMAGE_LAYOUT_GENERAL, }; -@@ -187,7 +209,7 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk, +@@ -187,7 +208,7 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk, .range = ubo_size, }; @@ -173,7 +202,17 @@ index 27b1953cf..fd04801d4 100644 { .sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET, .dstSet = descriptor_set, -@@ -207,10 +229,10 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk, +@@ -200,17 +221,17 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk, + .sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET, + .dstSet = descriptor_set, + .dstBinding = distortion_binding, +- .descriptorCount = 3 * view_count, +- .descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, +- .pImageInfo = distortion_image_info, ++ .descriptorCount = 1, ++ .descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, ++ .pBufferInfo = &foveation_buffer_info, + }, { .sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET, .dstSet = descriptor_set, @@ -186,7 +225,7 @@ index 27b1953cf..fd04801d4 100644 }, { .sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET, -@@ -220,6 +242,14 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk, +@@ -220,6 +241,14 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk, .descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, .pBufferInfo = &buffer_info, }, @@ -201,7 +240,7 @@ index 27b1953cf..fd04801d4 100644 }; vk->vkUpdateDescriptorSets( // -@@ -395,7 +425,8 @@ render_compute_layers(struct render_compute *render, +@@ -395,7 +424,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, @@ -211,7 +250,7 @@ index 27b1953cf..fd04801d4 100644 const struct render_viewport_data *view, bool do_timewarp) { -@@ -415,8 +446,10 @@ render_compute_layers(struct render_compute *render, +@@ -415,8 +445,10 @@ render_compute_layers(struct render_compute *render, src_samplers, // src_image_views, // num_srcs, // @@ -224,39 +263,150 @@ index 27b1953cf..fd04801d4 100644 r->compute.ubo_binding, // ubo, // VK_WHOLE_SIZE, // -@@ -459,7 +492,8 @@ render_compute_projection_timewarp(struct render_compute *render, - const struct xrt_fov src_fovs[XRT_MAX_VIEWS], - const struct xrt_pose new_poses[XRT_MAX_VIEWS], - VkImage target_image, +@@ -450,150 +482,14 @@ render_compute_layers(struct render_compute *render, + 1); // groupCountZ + } + +-void +-render_compute_projection_timewarp(struct render_compute *render, +- VkSampler src_samplers[XRT_MAX_VIEWS], +- VkImageView src_image_views[XRT_MAX_VIEWS], +- const struct xrt_normalized_rect src_norm_rects[XRT_MAX_VIEWS], +- const struct xrt_pose src_poses[XRT_MAX_VIEWS], +- const struct xrt_fov src_fovs[XRT_MAX_VIEWS], +- const struct xrt_pose new_poses[XRT_MAX_VIEWS], +- VkImage target_image, - VkImageView target_image_view, -+ VkImageView target_image_view_y, -+ VkImageView target_image_view_cbcr, - const struct render_viewport_data views[XRT_MAX_VIEWS]) - { - assert(render->r != NULL); -@@ -528,8 +562,10 @@ render_compute_projection_timewarp(struct render_compute *render, - r->compute.distortion_binding, // - distortion_samplers, // - r->distortion.image_views, // +- const struct render_viewport_data views[XRT_MAX_VIEWS]) +-{ +- assert(render->r != NULL); +- +- struct vk_bundle *vk = vk_from_render(render); +- struct render_resources *r = render->r; +- +- +- /* +- * UBO +- */ +- +- struct xrt_matrix_4x4 time_warp_matrix[XRT_MAX_VIEWS]; +- for (uint32_t i = 0; i < render->r->view_count; ++i) { +- render_calc_time_warp_matrix( // +- &src_poses[i], // +- &src_fovs[i], // +- &new_poses[i], // +- &time_warp_matrix[i]); // +- } +- +- struct render_compute_distortion_ubo_data *data = +- (struct render_compute_distortion_ubo_data *)r->compute.distortion.ubo.mapped; +- for (uint32_t i = 0; i < render->r->view_count; ++i) { +- data->views[i] = views[i]; +- data->pre_transforms[i] = r->distortion.uv_to_tanangle[i]; +- data->transforms[i] = time_warp_matrix[i]; +- data->post_transforms[i] = src_norm_rects[i]; +- } +- +- /* +- * Source, target and distortion images. +- */ +- +- VkImageSubresourceRange subresource_range = { +- .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, +- .baseMipLevel = 0, +- .levelCount = VK_REMAINING_MIP_LEVELS, +- .baseArrayLayer = 0, +- .layerCount = VK_REMAINING_ARRAY_LAYERS, +- }; +- +- vk_cmd_image_barrier_gpu_locked( // +- vk, // +- r->cmd, // +- target_image, // +- 0, // +- VK_ACCESS_SHADER_WRITE_BIT, // +- VK_IMAGE_LAYOUT_UNDEFINED, // +- VK_IMAGE_LAYOUT_GENERAL, // +- subresource_range); // +- +- VkSampler sampler = r->samplers.clamp_to_edge; +- VkSampler distortion_samplers[3 * XRT_MAX_VIEWS]; +- for (uint32_t i = 0; i < render->r->view_count; ++i) { +- distortion_samplers[3 * i + 0] = sampler; +- distortion_samplers[3 * i + 1] = sampler; +- distortion_samplers[3 * i + 2] = sampler; +- } +- +- update_compute_shared_descriptor_set( // +- vk, // +- r->compute.src_binding, // +- src_samplers, // +- src_image_views, // +- r->compute.distortion_binding, // +- distortion_samplers, // +- r->distortion.image_views, // - r->compute.target_binding, // - target_image_view, // -+ r->compute.target_binding_y, // -+ r->compute.target_binding_cbcr, // -+ target_image_view_y, // -+ target_image_view_cbcr, // - r->compute.ubo_binding, // - r->compute.distortion.ubo.buffer, // - VK_WHOLE_SIZE, // -@@ -567,7 +603,7 @@ render_compute_projection_timewarp(struct render_compute *render, - .srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT, - .dstAccessMask = VK_ACCESS_MEMORY_READ_BIT, - .oldLayout = VK_IMAGE_LAYOUT_GENERAL, +- r->compute.ubo_binding, // +- r->compute.distortion.ubo.buffer, // +- VK_WHOLE_SIZE, // +- render->shared_descriptor_set, // +- render->r->view_count); // +- +- vk->vkCmdBindPipeline( // +- r->cmd, // +- VK_PIPELINE_BIND_POINT_COMPUTE, // pipelineBindPoint +- r->compute.distortion.timewarp_pipeline); // pipeline +- +- vk->vkCmdBindDescriptorSets( // +- r->cmd, // +- VK_PIPELINE_BIND_POINT_COMPUTE, // pipelineBindPoint +- r->compute.distortion.pipeline_layout, // layout +- 0, // firstSet +- 1, // descriptorSetCount +- &render->shared_descriptor_set, // pDescriptorSets +- 0, // dynamicOffsetCount +- NULL); // pDynamicOffsets +- +- +- uint32_t w = 0, h = 0; +- calc_dispatch_dims_views(views, render->r->view_count, &w, &h); +- assert(w != 0 && h != 0); +- +- vk->vkCmdDispatch( // +- r->cmd, // +- w, // groupCountX +- h, // groupCountY +- 2); // groupCountZ +- +- VkImageMemoryBarrier memoryBarrier = { +- .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER, +- .srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT, +- .dstAccessMask = VK_ACCESS_MEMORY_READ_BIT, +- .oldLayout = VK_IMAGE_LAYOUT_GENERAL, - .newLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR, -+ .newLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, - .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, - .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, - .image = target_image, -@@ -593,7 +629,8 @@ render_compute_projection(struct render_compute *render, +- .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, +- .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, +- .image = target_image, +- .subresourceRange = subresource_range, +- }; +- +- vk->vkCmdPipelineBarrier( // +- r->cmd, // +- VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, // +- VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, // +- 0, // +- 0, // +- NULL, // +- 0, // +- NULL, // +- 1, // +- &memoryBarrier); // +-} +- + void + render_compute_projection(struct render_compute *render, + VkSampler src_samplers[XRT_MAX_VIEWS], VkImageView src_image_views[XRT_MAX_VIEWS], const struct xrt_normalized_rect src_norm_rects[XRT_MAX_VIEWS], VkImage target_image, @@ -266,12 +416,30 @@ index 27b1953cf..fd04801d4 100644 const struct render_viewport_data views[XRT_MAX_VIEWS]) { assert(render->r != NULL); -@@ -652,8 +689,10 @@ render_compute_projection(struct render_compute *render, +@@ -636,24 +532,18 @@ render_compute_projection(struct render_compute *render, + VK_IMAGE_LAYOUT_GENERAL, // + subresource_range); // + +- VkSampler sampler = r->samplers.clamp_to_edge; +- VkSampler distortion_samplers[3 * XRT_MAX_VIEWS]; +- for (uint32_t i = 0; i < render->r->view_count; ++i) { +- distortion_samplers[3 * i + 0] = sampler; +- distortion_samplers[3 * i + 1] = sampler; +- distortion_samplers[3 * i + 2] = sampler; +- } +- + update_compute_shared_descriptor_set( // + vk, // + r->compute.src_binding, // + src_samplers, // + src_image_views, // r->compute.distortion_binding, // - distortion_samplers, // - r->distortion.image_views, // +- distortion_samplers, // +- r->distortion.image_views, // - r->compute.target_binding, // - target_image_view, // ++ VK_WHOLE_SIZE, // ++ r->distortion.buffer, // + r->compute.target_binding_y, // + r->compute.target_binding_cbcr, // + target_image_view_y, // @@ -279,7 +447,7 @@ index 27b1953cf..fd04801d4 100644 r->compute.ubo_binding, // r->compute.distortion.ubo.buffer, // VK_WHOLE_SIZE, // -@@ -691,7 +730,7 @@ render_compute_projection(struct render_compute *render, +@@ -691,7 +581,7 @@ render_compute_projection(struct render_compute *render, .srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT, .dstAccessMask = VK_ACCESS_MEMORY_READ_BIT, .oldLayout = VK_IMAGE_LAYOUT_GENERAL, @@ -288,7 +456,7 @@ index 27b1953cf..fd04801d4 100644 .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, .image = target_image, -@@ -714,7 +753,8 @@ render_compute_projection(struct render_compute *render, +@@ -714,7 +604,8 @@ render_compute_projection(struct render_compute *render, void render_compute_clear(struct render_compute *render, VkImage target_image, @@ -298,12 +466,30 @@ index 27b1953cf..fd04801d4 100644 const struct render_viewport_data views[XRT_MAX_VIEWS]) { assert(render->r != NULL); -@@ -781,8 +821,10 @@ render_compute_clear(struct render_compute *render, +@@ -764,13 +655,9 @@ render_compute_clear(struct render_compute *render, + VkSampler sampler = r->samplers.mock; + VkSampler src_samplers[XRT_MAX_VIEWS]; + VkImageView src_image_views[XRT_MAX_VIEWS]; +- VkSampler distortion_samplers[3 * XRT_MAX_VIEWS]; + for (uint32_t i = 0; i < render->r->view_count; ++i) { + src_samplers[i] = sampler; + src_image_views[i] = r->mock.color.image_view; +- distortion_samplers[3 * i + 0] = sampler; +- distortion_samplers[3 * i + 1] = sampler; +- distortion_samplers[3 * i + 2] = sampler; + } + + update_compute_shared_descriptor_set( // +@@ -779,10 +666,12 @@ render_compute_clear(struct render_compute *render, + src_samplers, // + src_image_views, // r->compute.distortion_binding, // - distortion_samplers, // - r->distortion.image_views, // +- distortion_samplers, // +- r->distortion.image_views, // - r->compute.target_binding, // - target_image_view, // ++ VK_WHOLE_SIZE, // ++ r->distortion.buffer, // + r->compute.target_binding_y, // + r->compute.target_binding_cbcr, // + target_image_view_y, // @@ -311,7 +497,7 @@ index 27b1953cf..fd04801d4 100644 r->compute.ubo_binding, // r->compute.clear.ubo.buffer, // VK_WHOLE_SIZE, // ubo_size -@@ -820,7 +862,7 @@ render_compute_clear(struct render_compute *render, +@@ -820,7 +709,7 @@ render_compute_clear(struct render_compute *render, .srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT, .dstAccessMask = VK_ACCESS_MEMORY_READ_BIT, .oldLayout = VK_IMAGE_LAYOUT_GENERAL, @@ -321,10 +507,25 @@ index 27b1953cf..fd04801d4 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 d5d2bc4cb..2f8ce5287 100644 +index d5d2bc4cb..d74ec78dd 100644 --- a/src/xrt/compositor/render/render_interface.h +++ b/src/xrt/compositor/render/render_interface.h -@@ -481,7 +481,8 @@ struct render_resources +@@ -74,12 +74,8 @@ extern "C" { + #define RENDER_MAX_LAYER_RUNS_SIZE (XRT_MAX_VIEWS) + #define RENDER_MAX_LAYER_RUNS_COUNT(RENDER_RESOURCES) (RENDER_RESOURCES->view_count) + +-//! Distortion image dimension in pixels +-#define RENDER_DISTORTION_IMAGE_DIMENSIONS (128) +- +-//! How many distortion images we have, one for each channel (3 rgb) and per view. +-#define RENDER_DISTORTION_IMAGES_SIZE (3 * XRT_MAX_VIEWS) +-#define RENDER_DISTORTION_IMAGES_COUNT(RENDER_RESOURCES) (3 * RENDER_RESOURCES->view_count) ++//! Foveation buffer dimension in pixels (including past-the end pixel) ++#define RENDER_FOVEATION_BUFFER_DIMENSIONS (4096 + 1) + + //! The binding that the layer projection and quad shader have their UBO on. + #define RENDER_BINDING_LAYER_SHARED_UBO 0 +@@ -481,7 +477,8 @@ struct render_resources uint32_t distortion_binding; //! Writing the image out too. @@ -334,7 +535,54 @@ index d5d2bc4cb..2f8ce5287 100644 //! Uniform data binding. uint32_t ubo_binding; -@@ -1350,7 +1351,8 @@ render_compute_layers(struct render_compute *render, +@@ -518,9 +515,6 @@ struct render_resources + //! Doesn't depend on target so is static. + VkPipeline pipeline; + +- //! Doesn't depend on target so is static. +- VkPipeline timewarp_pipeline; +- + //! Target info. + struct render_buffer ubo; + } distortion; +@@ -542,17 +536,11 @@ struct render_resources + //! Transform to go from UV to tangle angles. + struct xrt_normalized_rect uv_to_tanangle[XRT_MAX_VIEWS]; + +- //! Backing memory to distortion images. +- VkDeviceMemory device_memories[RENDER_DISTORTION_IMAGES_SIZE]; +- +- //! Distortion images. +- VkImage images[RENDER_DISTORTION_IMAGES_SIZE]; ++ //! Backing memory to foveation buffers. ++ VkDeviceMemory device_memory; + +- //! The views into the distortion images. +- VkImageView image_views[RENDER_DISTORTION_IMAGES_SIZE]; +- +- //! Whether distortion images have been pre-rotated 90 degrees. +- bool pre_rotated; ++ //! Foveation buffer. ++ VkBuffer buffer; + } distortion; + }; + +@@ -1297,6 +1285,14 @@ struct render_compute_distortion_ubo_data + struct xrt_matrix_4x4 transforms[XRT_MAX_VIEWS]; + }; + ++struct render_compute_distortion_foveation_data ++{ ++ // For each output pixel: index of the first pixel to read. ++ // contains 1 additional value at the end for past-the end pixel ++ uint32_t x[XRT_MAX_VIEWS * RENDER_FOVEATION_BUFFER_DIMENSIONS]; ++ uint32_t y[XRT_MAX_VIEWS * RENDER_FOVEATION_BUFFER_DIMENSIONS]; ++}; ++ + /*! + * Init struct and create resources needed for compute rendering. + * +@@ -1350,7 +1346,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, @@ -344,7 +592,7 @@ index d5d2bc4cb..2f8ce5287 100644 const struct render_viewport_data *view, bool timewarp); -@@ -1366,7 +1368,8 @@ render_compute_projection_timewarp(struct render_compute *render, +@@ -1366,7 +1363,8 @@ render_compute_projection_timewarp(struct render_compute *render, const struct xrt_fov src_fovs[XRT_MAX_VIEWS], const struct xrt_pose new_poses[XRT_MAX_VIEWS], VkImage target_image, @@ -354,7 +602,7 @@ index d5d2bc4cb..2f8ce5287 100644 const struct render_viewport_data views[XRT_MAX_VIEWS]); /*! -@@ -1378,7 +1381,8 @@ render_compute_projection(struct render_compute *render, +@@ -1378,7 +1376,8 @@ render_compute_projection(struct render_compute *render, VkImageView src_image_views[XRT_MAX_VIEWS], const struct xrt_normalized_rect src_rects[XRT_MAX_VIEWS], VkImage target_image, @@ -364,7 +612,7 @@ index d5d2bc4cb..2f8ce5287 100644 const struct render_viewport_data views[XRT_MAX_VIEWS]); /*! -@@ -1387,7 +1391,8 @@ render_compute_projection(struct render_compute *render, +@@ -1387,7 +1386,8 @@ render_compute_projection(struct render_compute *render, void render_compute_clear(struct render_compute *render, VkImage target_image, @@ -375,7 +623,7 @@ index d5d2bc4cb..2f8ce5287 100644 diff --git a/src/xrt/compositor/render/render_resources.c b/src/xrt/compositor/render/render_resources.c -index ccc6f10cf..5b9addd59 100644 +index ccc6f10cf..7d4d9cddb 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 @@ -435,7 +683,14 @@ index ccc6f10cf..5b9addd59 100644 { .binding = src_binding, .descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, -@@ -255,7 +263,7 @@ create_compute_distortion_descriptor_set_layout(struct vk_bundle *vk, +@@ -250,12 +258,12 @@ create_compute_distortion_descriptor_set_layout(struct vk_bundle *vk, + }, + { + .binding = distortion_binding, +- .descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, +- .descriptorCount = 6, ++ .descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, ++ .descriptorCount = 1, .stageFlags = VK_SHADER_STAGE_COMPUTE_BIT, }, { @@ -457,7 +712,57 @@ index ccc6f10cf..5b9addd59 100644 }; VkDescriptorSetLayoutCreateInfo set_layout_info = { -@@ -539,8 +553,9 @@ render_resources_init(struct render_resources *r, +@@ -295,12 +309,6 @@ struct compute_layer_params + uint32_t image_array_size; + }; + +-struct compute_distortion_params +-{ +- uint32_t distortion_texel_count; +- VkBool32 do_timewarp; +-}; +- + 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, + VkPipelineCache pipeline_cache, + VkShaderModule shader, + VkPipelineLayout pipeline_layout, +- const struct compute_distortion_params *params, + VkPipeline *out_compute_pipeline) + { +-#define ENTRY(ID, FIELD) \ +- { \ +- .constantID = ID, \ +- .offset = offsetof(struct compute_distortion_params, FIELD), \ +- sizeof(params->FIELD), \ +- } +- +- VkSpecializationMapEntry entries[2] = { +- ENTRY(0, distortion_texel_count), +- ENTRY(1, do_timewarp), +- }; +-#undef ENTRY +- +- VkSpecializationInfo specialization_info = { +- .mapEntryCount = ARRAY_SIZE(entries), +- .pMapEntries = entries, +- .dataSize = sizeof(*params), +- .pData = params, +- }; + + return vk_create_compute_pipeline( // + vk, // vk_bundle + pipeline_cache, // pipeline_cache + shader, // shader + pipeline_layout, // pipeline_layout +- &specialization_info, // specialization_info ++ NULL, // specialization_info + out_compute_pipeline); // out_compute_pipeline + } + +@@ -539,8 +527,9 @@ render_resources_init(struct render_resources *r, } r->compute.src_binding = 0; r->compute.distortion_binding = 1; @@ -468,7 +773,19 @@ index ccc6f10cf..5b9addd59 100644 r->compute.layer.image_array_size = MIN(vk->features.max_per_stage_descriptor_sampled_images, RENDER_MAX_IMAGES_COUNT(r)); -@@ -856,7 +871,8 @@ render_resources_init(struct render_resources *r, +@@ -834,9 +823,9 @@ render_resources_init(struct render_resources *r, + struct vk_descriptor_pool_info compute_pool_info = { + .uniform_per_descriptor_count = 1, + // layer images +- .sampler_per_descriptor_count = r->compute.layer.image_array_size + RENDER_DISTORTION_IMAGES_COUNT(r), ++ .sampler_per_descriptor_count = r->compute.layer.image_array_size, + .storage_image_per_descriptor_count = 1, +- .storage_buffer_per_descriptor_count = 0, ++ .storage_buffer_per_descriptor_count = 1, + .descriptor_count = compute_descriptor_count, + .freeable = false, + }; +@@ -856,7 +845,8 @@ render_resources_init(struct render_resources *r, ret = create_compute_layer_descriptor_set_layout( // vk, // vk_bundle r->compute.src_binding, // src_binding, @@ -478,7 +795,7 @@ index ccc6f10cf..5b9addd59 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 +953,8 @@ render_resources_init(struct render_resources *r, +@@ -937,7 +927,8 @@ render_resources_init(struct render_resources *r, vk, // vk_bundle r->compute.src_binding, // src_binding, r->compute.distortion_binding, // distortion_binding, @@ -488,24 +805,134 @@ index ccc6f10cf..5b9addd59 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, + VK_NAME_PIPELINE_LAYOUT(vk, r->compute.distortion.pipeline_layout, + "render_resources compute distortion pipeline layout"); + +- struct compute_distortion_params distortion_params = { +- .distortion_texel_count = RENDER_DISTORTION_IMAGE_DIMENSIONS, +- .do_timewarp = false, +- }; +- + ret = create_compute_distortion_pipeline( // + vk, // vk_bundle + r->pipeline_cache, // pipeline_cache + r->shaders->distortion_comp, // shader + r->compute.distortion.pipeline_layout, // pipeline_layout +- &distortion_params, // params + &r->compute.distortion.pipeline); // out_compute_pipeline + VK_CHK_WITH_RET(ret, "create_compute_distortion_pipeline", false); + + VK_NAME_PIPELINE(vk, r->compute.distortion.pipeline, "render_resources compute distortion pipeline"); + +- struct compute_distortion_params distortion_timewarp_params = { +- .distortion_texel_count = RENDER_DISTORTION_IMAGE_DIMENSIONS, +- .do_timewarp = true, +- }; +- +- ret = create_compute_distortion_pipeline( // +- vk, // vk_bundle +- r->pipeline_cache, // pipeline_cache +- r->shaders->distortion_comp, // shader +- r->compute.distortion.pipeline_layout, // pipeline_layout +- &distortion_timewarp_params, // params +- &r->compute.distortion.timewarp_pipeline); // out_compute_pipeline +- VK_CHK_WITH_RET(ret, "create_compute_distortion_pipeline", false); +- +- VK_NAME_PIPELINE(vk, r->compute.distortion.timewarp_pipeline, +- "render_resources compute distortion timewarp pipeline"); +- + 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, + * Compute distortion textures, not created until later. + */ + +- for (uint32_t i = 0; i < RENDER_DISTORTION_IMAGES_COUNT(r); i++) { +- r->distortion.image_views[i] = VK_NULL_HANDLE; +- } +- for (uint32_t i = 0; i < RENDER_DISTORTION_IMAGES_COUNT(r); i++) { +- r->distortion.images[i] = VK_NULL_HANDLE; +- } +- for (uint32_t i = 0; i < RENDER_DISTORTION_IMAGES_COUNT(r); i++) { +- r->distortion.device_memories[i] = VK_NULL_HANDLE; +- } ++ r->distortion.buffer = VK_NULL_HANDLE; ++ r->distortion.device_memory = VK_NULL_HANDLE; + + + /* +@@ -1124,7 +1085,6 @@ render_resources_fini(struct render_resources *r) + + D(DescriptorSetLayout, r->compute.distortion.descriptor_set_layout); + D(Pipeline, r->compute.distortion.pipeline); +- D(Pipeline, r->compute.distortion.timewarp_pipeline); + D(PipelineLayout, r->compute.distortion.pipeline_layout); + + D(Pipeline, r->compute.clear.pipeline); +diff --git a/src/xrt/compositor/shaders/clear.comp b/src/xrt/compositor/shaders/clear.comp +index 036da401a..db8e5178e 100644 +--- a/src/xrt/compositor/shaders/clear.comp ++++ b/src/xrt/compositor/shaders/clear.comp +@@ -10,7 +10,7 @@ + + layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in; + +-layout(set = 0, binding = 2) uniform writeonly restrict image2D target; ++layout(set = 0, binding = 2) uniform writeonly restrict image2DArray target; + layout(set = 0, binding = 3) uniform restrict Config + { + ivec4 views[2]; +@@ -35,5 +35,5 @@ void main() + + vec4 colour = vec4(from_linear_to_srgb(vec3(0.1)), 1.0); + +- imageStore(target, ivec2(offset.x + ix, offset.y + iy), colour); ++ imageStore(target, ivec3(offset.x + ix, offset.y + iy, 0), colour); + } diff --git a/src/xrt/compositor/shaders/distortion.comp b/src/xrt/compositor/shaders/distortion.comp -index 08b44d4cf..e1dd1cb58 100644 +index 08b44d4cf..cd1828ac9 100644 --- a/src/xrt/compositor/shaders/distortion.comp +++ b/src/xrt/compositor/shaders/distortion.comp -@@ -18,7 +18,7 @@ layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in; +@@ -4,21 +4,23 @@ + #version 460 + #extension GL_GOOGLE_include_directive : require ++#extension GL_KHR_shader_subgroup_basic: require ++#extension GL_KHR_shader_subgroup_shuffle: require + + #include "srgb.inc.glsl" + +- +-// The size of the distortion texture dimensions in texels. +-layout(constant_id = 0) const int distortion_texel_count = 2; +- +-// Should we do timewarp. +-layout(constant_id = 1) const bool do_timewarp = false; +- + layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in; + ++#define MAX_DIM 4097 ++ layout(set = 0, binding = 0) uniform sampler2D source[2]; - layout(set = 0, binding = 1) uniform sampler2D distortion[6]; +-layout(set = 0, binding = 1) uniform sampler2D distortion[6]; -layout(set = 0, binding = 2) uniform writeonly restrict image2D target; -+layout(set = 0, binding = 2) uniform writeonly restrict image2D luma; ++layout(set = 0, binding = 1, std430) buffer restrict Foveation ++{ ++ uint x[2*MAX_DIM]; ++ uint y[2*MAX_DIM]; ++} foveation; ++ ++layout(set = 0, binding = 2) uniform writeonly restrict image2DArray luma; layout(set = 0, binding = 3, std140) uniform restrict Config { ivec4 views[2]; -@@ -26,7 +26,20 @@ layout(set = 0, binding = 3, std140) uniform restrict Config +@@ -26,115 +28,74 @@ layout(set = 0, binding = 3, std140) uniform restrict Config vec4 post_transform[2]; mat4 transform[2]; } ubo; -+layout(set = 0, binding = 4) uniform writeonly restrict image2D chroma; ++layout(set = 0, binding = 4) uniform writeonly restrict image2DArray chroma; +const mat3 color_space = mat3( +// clang-format off @@ -514,15 +941,82 @@ index 08b44d4cf..e1dd1cb58 100644 +/* Cb*/-0.1146, -0.3854, 0.5, +/* Cr*/ 0.5 , -0.4542, -0.0458); +//clang-format: on -+ -+vec3 rgb_to_ycbcr(vec3 color) -+{ -+ return transpose(color_space) * color + vec3(0, 0.5, 0.5); -+} - vec2 position_to_uv(ivec2 extent, uint ix, uint iy) +-vec2 position_to_uv(ivec2 extent, uint ix, uint iy) +-{ +- // Turn the index into floating point. +- vec2 xy = vec2(float(ix), float(iy)); +- +- // The inverse of the extent of the target image is the pixel size in [0 .. 1] space. +- vec2 extent_pixel_size = vec2(1.0 / float(extent.x), 1.0 / float(extent.y)); +- +- // Per-target pixel we move the size of the pixels. +- vec2 dist_uv = xy * extent_pixel_size; +- +- // Emulate a triangle sample position by offset half target pixel size. +- dist_uv = dist_uv + extent_pixel_size / 2.0; +- +- +- // To correctly sample we need to put position (0, 0) in the +- // middle of the (0, 0) texel in the distortion textures. That's why we +- // offset with half the texel size, pushing all samples into the middle +- // of each texels, a kin to a vertex buffer. We need to put uv coord +- // (1, 1) in the middle of the last texel, that pixel is (size - 1) +- // texels away from the first texel. So we need to scale [0 .. 1] to +- // [0 .. size - 1]. +- +-#define DIM (float(distortion_texel_count)) +-#define STRETCH ((DIM - 1.0) / DIM) +-#define OFFSET (1.0 / (DIM * 2.0)) +- +- dist_uv = (dist_uv * STRETCH) + OFFSET; +- +- return dist_uv; +-} +- +-vec2 transform_uv_subimage(vec2 uv, uint iz) ++vec3 rgb_to_ycbcr(vec3 color) { -@@ -104,37 +117,40 @@ vec2 transform_uv(vec2 uv, uint iz) +- vec2 values = uv; +- +- // To deal with OpenGL flip and sub image view. +- values.xy = values.xy * ubo.post_transform[iz].zw + ubo.post_transform[iz].xy; +- +- // Ready to be used. +- return values.xy; +-} +- +-vec2 transform_uv_timewarp(vec2 uv, uint iz) +-{ +- vec4 values = vec4(uv, -1, 1); +- +- // From uv to tan angle (tangent space). +- values.xy = values.xy * ubo.pre_transform[iz].zw + ubo.pre_transform[iz].xy; +- values.y = -values.y; // Flip to OpenXR coordinate system. +- +- // Timewarp. +- values = ubo.transform[iz] * values; +- values.xy = values.xy * (1.0 / max(values.w, 0.00001)); +- +- // From [-1, 1] to [0, 1] +- values.xy = values.xy * 0.5 + 0.5; +- +- // To deal with OpenGL flip and sub image view. +- values.xy = values.xy * ubo.post_transform[iz].zw + ubo.post_transform[iz].xy; +- +- // Done. +- return values.xy; +-} +- +-vec2 transform_uv(vec2 uv, uint iz) +-{ +- if (do_timewarp) { +- return transform_uv_timewarp(uv, iz); +- } else { +- return transform_uv_subimage(uv, iz); +- } ++ return transpose(color_space) * color + vec3(0, 0.5, 0.5); + } void main() { @@ -532,58 +1026,77 @@ index 08b44d4cf..e1dd1cb58 100644 ivec2 offset = ivec2(ubo.views[iz].xy); ivec2 extent = ivec2(ubo.views[iz].zw); -+ vec2 cbcrs[4]; -+ for (int k = 0; k < 2; k += 1) { -+ uint iy = gl_GlobalInvocationID.y * 2 + k; -+ for (int j = 0; j < 2; j += 1) { -+ uint ix = gl_GlobalInvocationID.x * 2 + j; - +- - if (ix >= extent.x || iy >= extent.y) { -- return; -- } -+ vec2 dist_uv = position_to_uv(extent, ix, iy); ++ uint iy = gl_GlobalInvocationID.y; ++ uint ymin = foveation.y[MAX_DIM * iz + iy]; ++ uint ymax = foveation.y[MAX_DIM * iz + iy + 1]; ++ if (ymin == ymax) + return; ++ if (ymin > ymax) ++ { ++ uint tmp = ymin; ++ ymin = ymax; ++ ymax = tmp; + } ++ uint ix = gl_GlobalInvocationID.x; - vec2 dist_uv = position_to_uv(extent, ix, iy); -+ vec2 uv = texture(distortion[iz + 0], dist_uv).xy; -+ vec2 lod = texture(distortion[iz + 2], dist_uv).xy; - +- - vec2 r_uv = texture(distortion[iz + 0], dist_uv).xy; - vec2 g_uv = texture(distortion[iz + 2], dist_uv).xy; - vec2 b_uv = texture(distortion[iz + 4], dist_uv).xy; -+ // Do any transformation needed. -+ uv = transform_uv(uv, iz); - +- - // Do any transformation needed. - r_uv = transform_uv(r_uv, iz); - g_uv = transform_uv(g_uv, iz); - b_uv = transform_uv(b_uv, iz); -+ // Sample the source -+ vec3 colour = textureLod(source[iz], uv, mix(lod.x, lod.y, 0.5)).rgb; - +- - // Sample the source with distorted and chromatic-aberration corrected samples. - vec4 colour = vec4( - texture(source[iz], r_uv).r, - texture(source[iz], g_uv).g, - texture(source[iz], b_uv).b, - 1); -+ colour = rgb_to_ycbcr(from_linear_to_srgb(colour)); ++ uint xmin = foveation.x[MAX_DIM * iz + ix]; ++ uint xmax = foveation.x[MAX_DIM * iz + ix + 1]; ++ if (xmin == xmax) ++ return; - // Do colour correction here since there are no automatic conversion in hardware available. - colour = vec4(from_linear_to_srgb(colour.rgb), 1); -+ int i = k * 2 + j; -+ cbcrs[i] = colour.yz; - -- imageStore(target, ivec2(offset.x + ix, offset.y + iy), colour); -+ if (ix < extent.x && iy < extent.y) { -+ imageStore(luma, ivec2(offset.x + ix, offset.y + iy), vec4(colour.x)); -+ } ++ vec4 colour = vec4(0); ++ for (uint y = ymin ; y < ymax; y += 1) { ++ for (uint x = xmin ; x < xmax; x += 1) { ++ colour += texelFetch(source[iz], ivec2(x, y), 0); + } + } -+ if (gl_GlobalInvocationID.x >= extent.x || gl_GlobalInvocationID.y >= extent.y) { -+ return; ++ colour /= (xmax - xmin) * (ymax - ymin); ++ colour.xyz = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb)); ++ ++ imageStore(luma, ivec3(offset.x + ix, offset.y + iy, 0), vec4(colour.x)); ++ ++ vec4 sum = colour; ++ for (uint i = 0 ; i < gl_SubgroupSize; ++i) ++ { ++ uvec3 other = subgroupShuffle(gl_GlobalInvocationID, i); ++ vec4 c = subgroupShuffle(colour, i); ++ if ( ++ other == gl_GlobalInvocationID + uvec3(1, 0, 0) ++ || other == gl_GlobalInvocationID + uvec3(0, 1, 0) ++ || other == gl_GlobalInvocationID + uvec3(1, 1, 0)) ++ { ++ sum += c; ++ } ++ } + +- imageStore(target, ivec2(offset.x + ix, offset.y + iy), colour); ++ if (ix %2 == 0 && iy %2 == 0) ++ { ++ imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy/2, 0), vec4(sum.y, sum.z, 0, 0) / 4); ++ imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy/2, 1), vec4(sum.w, 0, 0, 0) / 4); ++ imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy/2, 1), vec4(0.5, 0.5, 0, 0)); + } -+ vec2 cbcr = mix(mix(cbcrs[0], cbcrs[1], 0.5), mix(cbcrs[2], cbcrs[3], 0.5), 0.5); -+ imageStore(chroma, ivec2(offset.xy/2 + gl_GlobalInvocationID.xy), vec4(cbcr.x, cbcr.y, 0, 0)); } diff --git a/src/xrt/compositor/util/comp_high_level_render.c b/src/xrt/compositor/util/comp_high_level_render.c index f1c9aa145..2e5e048a5 100644 @@ -685,7 +1198,7 @@ index 334464256..f4a9140a2 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 4e20b32f0..b2d3ce10d 100644 +index 4e20b32f0..69429dc97 100644 --- a/src/xrt/compositor/util/comp_render_cs.c +++ b/src/xrt/compositor/util/comp_render_cs.c @@ -347,7 +347,8 @@ crc_clear_output(struct render_compute *render, const struct comp_render_dispatc @@ -708,27 +1221,45 @@ index 4e20b32f0..b2d3ce10d 100644 target_viewport_datas); // views } -@@ -471,7 +473,8 @@ crc_distortion_fast_path(struct render_compute *render, - src_image_views, // - src_norm_rects, // - d->target.cs.image, // -- d->target.cs.storage_view, // -+ d->target.cs.storage_view_y, // -+ d->target.cs.storage_view_cbcr, // - target_viewport_datas); // - } else { - render_compute_projection_timewarp( // -@@ -483,7 +486,8 @@ crc_distortion_fast_path(struct render_compute *render, - src_fovs, // - world_poses, // - d->target.cs.image, // -- d->target.cs.storage_view, // -+ d->target.cs.storage_view_y, // -+ d->target.cs.storage_view_cbcr, // - target_viewport_datas); // +@@ -464,28 +466,15 @@ crc_distortion_fast_path(struct render_compute *render, + world_poses[i] = world_pose; } + +- if (!d->do_timewarp) { +- render_compute_projection( // +- render, // +- src_samplers, // +- src_image_views, // +- src_norm_rects, // +- d->target.cs.image, // +- d->target.cs.storage_view, // +- target_viewport_datas); // +- } else { +- render_compute_projection_timewarp( // +- render, // +- src_samplers, // +- src_image_views, // +- src_norm_rects, // +- src_poses, // +- src_fovs, // +- world_poses, // +- d->target.cs.image, // +- d->target.cs.storage_view, // +- target_viewport_datas); // +- } ++ render_compute_projection( // ++ render, // ++ src_samplers, // ++ src_image_views, // ++ src_norm_rects, // ++ d->target.cs.image, // ++ d->target.cs.storage_view_y, // ++ d->target.cs.storage_view_cbcr, // ++ target_viewport_datas); // } -@@ -504,7 +508,8 @@ comp_render_cs_layer(struct render_compute *render, + + +@@ -504,7 +493,8 @@ comp_render_cs_layer(struct render_compute *render, const struct xrt_pose *world_pose, const struct xrt_pose *eye_pose, const VkImage target_image, @@ -738,7 +1269,7 @@ index 4e20b32f0..b2d3ce10d 100644 const struct render_viewport_data *target_view, bool do_timewarp) { -@@ -661,7 +666,8 @@ comp_render_cs_layer(struct render_compute *render, +@@ -661,7 +651,8 @@ comp_render_cs_layer(struct render_compute *render, src_samplers, // src_image_views, // cur_image, // @@ -748,7 +1279,7 @@ index 4e20b32f0..b2d3ce10d 100644 target_view, // do_timewarp); // } -@@ -697,6 +703,7 @@ comp_render_cs_layers(struct render_compute *render, +@@ -697,6 +688,7 @@ comp_render_cs_layers(struct render_compute *render, &view->eye_pose, // view->squash.image, // view->squash.cs.storage_view, // @@ -757,5 +1288,5 @@ index 4e20b32f0..b2d3ce10d 100644 d->do_timewarp); // } -- -2.50.1 +2.51.0 diff --git a/patches/monado/0007-store-alpha-channel-in-layer-1.patch b/patches/monado/0007-store-alpha-channel-in-layer-1.patch deleted file mode 100644 index 580a5500..00000000 --- a/patches/monado/0007-store-alpha-channel-in-layer-1.patch +++ /dev/null @@ -1,94 +0,0 @@ -From 022835847793c2b97df20a1dc823512a36533d53 Mon Sep 17 00:00:00 2001 -From: Patrick Nicolas -Date: Sun, 3 Nov 2024 13:40:00 +0100 -Subject: [PATCH 07/13] store alpha channel in layer 1 - ---- - src/xrt/compositor/shaders/clear.comp | 4 ++-- - src/xrt/compositor/shaders/distortion.comp | 18 ++++++++++++------ - 2 files changed, 14 insertions(+), 8 deletions(-) - -diff --git a/src/xrt/compositor/shaders/clear.comp b/src/xrt/compositor/shaders/clear.comp -index 036da401a..db8e5178e 100644 ---- a/src/xrt/compositor/shaders/clear.comp -+++ b/src/xrt/compositor/shaders/clear.comp -@@ -10,7 +10,7 @@ - - layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in; - --layout(set = 0, binding = 2) uniform writeonly restrict image2D target; -+layout(set = 0, binding = 2) uniform writeonly restrict image2DArray target; - layout(set = 0, binding = 3) uniform restrict Config - { - ivec4 views[2]; -@@ -35,5 +35,5 @@ void main() - - vec4 colour = vec4(from_linear_to_srgb(vec3(0.1)), 1.0); - -- imageStore(target, ivec2(offset.x + ix, offset.y + iy), colour); -+ imageStore(target, ivec3(offset.x + ix, offset.y + iy, 0), colour); - } -diff --git a/src/xrt/compositor/shaders/distortion.comp b/src/xrt/compositor/shaders/distortion.comp -index e1dd1cb58..9ce46fe6f 100644 ---- a/src/xrt/compositor/shaders/distortion.comp -+++ b/src/xrt/compositor/shaders/distortion.comp -@@ -18,7 +18,7 @@ layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in; - - layout(set = 0, binding = 0) uniform sampler2D source[2]; - layout(set = 0, binding = 1) uniform sampler2D distortion[6]; --layout(set = 0, binding = 2) uniform writeonly restrict image2D luma; -+layout(set = 0, binding = 2) uniform writeonly restrict image2DArray luma; - layout(set = 0, binding = 3, std140) uniform restrict Config - { - ivec4 views[2]; -@@ -26,7 +26,7 @@ layout(set = 0, binding = 3, std140) uniform restrict Config - vec4 post_transform[2]; - mat4 transform[2]; - } ubo; --layout(set = 0, binding = 4) uniform writeonly restrict image2D chroma; -+layout(set = 0, binding = 4) uniform writeonly restrict image2DArray chroma; - - const mat3 color_space = mat3( - // clang-format off -@@ -122,6 +122,7 @@ void main() - ivec2 offset = ivec2(ubo.views[iz].xy); - ivec2 extent = ivec2(ubo.views[iz].zw); - vec2 cbcrs[4]; -+ vec4 alpha; - for (int k = 0; k < 2; k += 1) { - uint iy = gl_GlobalInvocationID.y * 2 + k; - for (int j = 0; j < 2; j += 1) { -@@ -136,15 +137,16 @@ void main() - uv = transform_uv(uv, iz); - - // Sample the source -- vec3 colour = textureLod(source[iz], uv, mix(lod.x, lod.y, 0.5)).rgb; -+ vec4 colour = textureLod(source[iz], uv, mix(lod.x, lod.y, 0.5)); - -- colour = rgb_to_ycbcr(from_linear_to_srgb(colour)); -+ colour.rgb = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb)); - - int i = k * 2 + j; - cbcrs[i] = colour.yz; -+ alpha[i] = colour.a; - - if (ix < extent.x && iy < extent.y) { -- imageStore(luma, ivec2(offset.x + ix, offset.y + iy), vec4(colour.x)); -+ imageStore(luma, ivec3(offset.x + ix, offset.y + iy, 0), vec4(colour.x)); - } - } - } -@@ -152,5 +154,9 @@ void main() - return; - } - vec2 cbcr = mix(mix(cbcrs[0], cbcrs[1], 0.5), mix(cbcrs[2], cbcrs[3], 0.5), 0.5); -- imageStore(chroma, ivec2(offset.xy/2 + gl_GlobalInvocationID.xy), vec4(cbcr.x, cbcr.y, 0, 0)); -+ imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 0), vec4(cbcr.x, cbcr.y, 0, 0)); -+ -+ imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), vec4(0.5, 0.5, 0, 0)); -+ alpha = vec4(mix(mix(alpha[0], alpha[1], 0.5), mix(alpha[2], alpha[3], 0.5), 0.5)); -+ imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), alpha); - } --- -2.50.1 - diff --git a/patches/monado/0010-Replace-distortion-with-pixel-aligned-foveation.patch b/patches/monado/0010-Replace-distortion-with-pixel-aligned-foveation.patch deleted file mode 100644 index 267eb76f..00000000 --- a/patches/monado/0010-Replace-distortion-with-pixel-aligned-foveation.patch +++ /dev/null @@ -1,747 +0,0 @@ -From 624849b80a893d073f2315eca909afa823c0a345 Mon Sep 17 00:00:00 2001 -From: Patrick Nicolas -Date: Mon, 2 Jun 2025 14:51:11 +0200 -Subject: [PATCH 10/13] Replace distortion with pixel-aligned foveation - ---- - src/xrt/compositor/CMakeLists.txt | 4 +- - src/xrt/compositor/render/render_compute.c | 185 ++----------------- - src/xrt/compositor/render/render_interface.h | 33 ++-- - src/xrt/compositor/render/render_resources.c | 71 +------ - src/xrt/compositor/shaders/distortion.comp | 167 ++++++----------- - src/xrt/compositor/util/comp_render_cs.c | 33 +--- - 6 files changed, 101 insertions(+), 392 deletions(-) - -diff --git a/src/xrt/compositor/CMakeLists.txt b/src/xrt/compositor/CMakeLists.txt -index 1ba5ec438..eb068f5fc 100644 ---- a/src/xrt/compositor/CMakeLists.txt -+++ b/src/xrt/compositor/CMakeLists.txt -@@ -105,7 +105,7 @@ if(XRT_HAVE_VULKAN) - spirv_shaders( - SHADER_HEADERS - SPIRV_VERSION -- 1.0 # Currently targeting Vulkan 1.0 -+ 1.3 # Currently targeting Vulkan 1.3 - SOURCES - ${SHADERS} - ) -@@ -115,7 +115,7 @@ if(XRT_HAVE_VULKAN) - ${SHADER_HEADERS} - render/render_buffer.c - render/render_compute.c -- render/render_distortion.c -+ # render/render_distortion.c implemented in wivrn - render/render_gfx.c - render/render_interface.h - render/render_resources.c -diff --git a/src/xrt/compositor/render/render_compute.c b/src/xrt/compositor/render/render_compute.c -index fd04801d4..44c3f0aee 100644 ---- a/src/xrt/compositor/render/render_compute.c -+++ b/src/xrt/compositor/render/render_compute.c -@@ -66,8 +66,8 @@ calc_dispatch_dims_views(const struct render_viewport_data views[XRT_MAX_VIEWS], - #undef IMAX - - // Power of two divide and round up. -- w = uint_divide_and_round_up(w, 16); -- h = uint_divide_and_round_up(h, 16); -+ w = uint_divide_and_round_up(w, 8); -+ h = uint_divide_and_round_up(h, 8); - - *out_w = w; - *out_h = h; -@@ -167,8 +167,8 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk, - VkSampler src_samplers[XRT_MAX_VIEWS], - VkImageView src_image_views[XRT_MAX_VIEWS], - uint32_t distortion_binding, -- VkSampler distortion_samplers[3 * XRT_MAX_VIEWS], -- VkImageView distortion_image_views[3 * XRT_MAX_VIEWS], -+ VkDeviceSize foveation_size, -+ VkBuffer foveation_buffer, - uint32_t target_binding_y, - uint32_t target_binding_cbcr, - VkImageView target_image_view_y, -@@ -186,12 +186,11 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk, - src_image_info[i].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; - } - -- VkDescriptorImageInfo distortion_image_info[3 * XRT_MAX_VIEWS]; -- for (uint32_t i = 0; i < 3 * view_count; ++i) { -- distortion_image_info[i].sampler = distortion_samplers[i]; -- distortion_image_info[i].imageView = distortion_image_views[i]; -- distortion_image_info[i].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; -- } -+ VkDescriptorBufferInfo foveation_buffer_info = { -+ .buffer = foveation_buffer, -+ .offset = 0, -+ .range = foveation_size, -+ }; - - VkDescriptorImageInfo target_image_y_info = { - .imageView = target_image_view_y, -@@ -222,9 +221,9 @@ update_compute_shared_descriptor_set(struct vk_bundle *vk, - .sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET, - .dstSet = descriptor_set, - .dstBinding = distortion_binding, -- .descriptorCount = 3 * view_count, -- .descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, -- .pImageInfo = distortion_image_info, -+ .descriptorCount = 1, -+ .descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, -+ .pBufferInfo = &foveation_buffer_info, - }, - { - .sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET, -@@ -483,146 +482,6 @@ render_compute_layers(struct render_compute *render, - 1); // groupCountZ - } - --void --render_compute_projection_timewarp(struct render_compute *render, -- VkSampler src_samplers[XRT_MAX_VIEWS], -- VkImageView src_image_views[XRT_MAX_VIEWS], -- const struct xrt_normalized_rect src_norm_rects[XRT_MAX_VIEWS], -- const struct xrt_pose src_poses[XRT_MAX_VIEWS], -- const struct xrt_fov src_fovs[XRT_MAX_VIEWS], -- const struct xrt_pose new_poses[XRT_MAX_VIEWS], -- VkImage target_image, -- VkImageView target_image_view_y, -- VkImageView target_image_view_cbcr, -- const struct render_viewport_data views[XRT_MAX_VIEWS]) --{ -- assert(render->r != NULL); -- -- struct vk_bundle *vk = vk_from_render(render); -- struct render_resources *r = render->r; -- -- -- /* -- * UBO -- */ -- -- struct xrt_matrix_4x4 time_warp_matrix[XRT_MAX_VIEWS]; -- for (uint32_t i = 0; i < render->r->view_count; ++i) { -- render_calc_time_warp_matrix( // -- &src_poses[i], // -- &src_fovs[i], // -- &new_poses[i], // -- &time_warp_matrix[i]); // -- } -- -- struct render_compute_distortion_ubo_data *data = -- (struct render_compute_distortion_ubo_data *)r->compute.distortion.ubo.mapped; -- for (uint32_t i = 0; i < render->r->view_count; ++i) { -- data->views[i] = views[i]; -- data->pre_transforms[i] = r->distortion.uv_to_tanangle[i]; -- data->transforms[i] = time_warp_matrix[i]; -- data->post_transforms[i] = src_norm_rects[i]; -- } -- -- /* -- * Source, target and distortion images. -- */ -- -- VkImageSubresourceRange subresource_range = { -- .aspectMask = VK_IMAGE_ASPECT_COLOR_BIT, -- .baseMipLevel = 0, -- .levelCount = VK_REMAINING_MIP_LEVELS, -- .baseArrayLayer = 0, -- .layerCount = VK_REMAINING_ARRAY_LAYERS, -- }; -- -- vk_cmd_image_barrier_gpu_locked( // -- vk, // -- r->cmd, // -- target_image, // -- 0, // -- VK_ACCESS_SHADER_WRITE_BIT, // -- VK_IMAGE_LAYOUT_UNDEFINED, // -- VK_IMAGE_LAYOUT_GENERAL, // -- subresource_range); // -- -- VkSampler sampler = r->samplers.clamp_to_edge; -- VkSampler distortion_samplers[3 * XRT_MAX_VIEWS]; -- for (uint32_t i = 0; i < render->r->view_count; ++i) { -- distortion_samplers[3 * i + 0] = sampler; -- distortion_samplers[3 * i + 1] = sampler; -- distortion_samplers[3 * i + 2] = sampler; -- } -- -- update_compute_shared_descriptor_set( // -- vk, // -- r->compute.src_binding, // -- src_samplers, // -- src_image_views, // -- r->compute.distortion_binding, // -- distortion_samplers, // -- r->distortion.image_views, // -- r->compute.target_binding_y, // -- r->compute.target_binding_cbcr, // -- target_image_view_y, // -- target_image_view_cbcr, // -- r->compute.ubo_binding, // -- r->compute.distortion.ubo.buffer, // -- VK_WHOLE_SIZE, // -- render->shared_descriptor_set, // -- render->r->view_count); // -- -- vk->vkCmdBindPipeline( // -- r->cmd, // -- VK_PIPELINE_BIND_POINT_COMPUTE, // pipelineBindPoint -- r->compute.distortion.timewarp_pipeline); // pipeline -- -- vk->vkCmdBindDescriptorSets( // -- r->cmd, // -- VK_PIPELINE_BIND_POINT_COMPUTE, // pipelineBindPoint -- r->compute.distortion.pipeline_layout, // layout -- 0, // firstSet -- 1, // descriptorSetCount -- &render->shared_descriptor_set, // pDescriptorSets -- 0, // dynamicOffsetCount -- NULL); // pDynamicOffsets -- -- -- uint32_t w = 0, h = 0; -- calc_dispatch_dims_views(views, render->r->view_count, &w, &h); -- assert(w != 0 && h != 0); -- -- vk->vkCmdDispatch( // -- r->cmd, // -- w, // groupCountX -- h, // groupCountY -- 2); // groupCountZ -- -- VkImageMemoryBarrier memoryBarrier = { -- .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER, -- .srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT, -- .dstAccessMask = VK_ACCESS_MEMORY_READ_BIT, -- .oldLayout = VK_IMAGE_LAYOUT_GENERAL, -- .newLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, -- .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, -- .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, -- .image = target_image, -- .subresourceRange = subresource_range, -- }; -- -- vk->vkCmdPipelineBarrier( // -- r->cmd, // -- VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, // -- VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, // -- 0, // -- 0, // -- NULL, // -- 0, // -- NULL, // -- 1, // -- &memoryBarrier); // --} -- - void - render_compute_projection(struct render_compute *render, - VkSampler src_samplers[XRT_MAX_VIEWS], -@@ -673,22 +532,14 @@ render_compute_projection(struct render_compute *render, - VK_IMAGE_LAYOUT_GENERAL, // - subresource_range); // - -- VkSampler sampler = r->samplers.clamp_to_edge; -- VkSampler distortion_samplers[3 * XRT_MAX_VIEWS]; -- for (uint32_t i = 0; i < render->r->view_count; ++i) { -- distortion_samplers[3 * i + 0] = sampler; -- distortion_samplers[3 * i + 1] = sampler; -- distortion_samplers[3 * i + 2] = sampler; -- } -- - update_compute_shared_descriptor_set( // - vk, // - r->compute.src_binding, // - src_samplers, // - src_image_views, // - r->compute.distortion_binding, // -- distortion_samplers, // -- r->distortion.image_views, // -+ VK_WHOLE_SIZE, // -+ r->distortion.buffer, // - r->compute.target_binding_y, // - r->compute.target_binding_cbcr, // - target_image_view_y, // -@@ -804,13 +655,9 @@ render_compute_clear(struct render_compute *render, - VkSampler sampler = r->samplers.mock; - VkSampler src_samplers[XRT_MAX_VIEWS]; - VkImageView src_image_views[XRT_MAX_VIEWS]; -- VkSampler distortion_samplers[3 * XRT_MAX_VIEWS]; - for (uint32_t i = 0; i < render->r->view_count; ++i) { - src_samplers[i] = sampler; - src_image_views[i] = r->mock.color.image_view; -- distortion_samplers[3 * i + 0] = sampler; -- distortion_samplers[3 * i + 1] = sampler; -- distortion_samplers[3 * i + 2] = sampler; - } - - update_compute_shared_descriptor_set( // -@@ -819,8 +666,8 @@ render_compute_clear(struct render_compute *render, - src_samplers, // - src_image_views, // - r->compute.distortion_binding, // -- distortion_samplers, // -- r->distortion.image_views, // -+ VK_WHOLE_SIZE, // -+ r->distortion.buffer, // - r->compute.target_binding_y, // - r->compute.target_binding_cbcr, // - target_image_view_y, // -diff --git a/src/xrt/compositor/render/render_interface.h b/src/xrt/compositor/render/render_interface.h -index 2f8ce5287..d74ec78dd 100644 ---- a/src/xrt/compositor/render/render_interface.h -+++ b/src/xrt/compositor/render/render_interface.h -@@ -74,12 +74,8 @@ extern "C" { - #define RENDER_MAX_LAYER_RUNS_SIZE (XRT_MAX_VIEWS) - #define RENDER_MAX_LAYER_RUNS_COUNT(RENDER_RESOURCES) (RENDER_RESOURCES->view_count) - --//! Distortion image dimension in pixels --#define RENDER_DISTORTION_IMAGE_DIMENSIONS (128) -- --//! How many distortion images we have, one for each channel (3 rgb) and per view. --#define RENDER_DISTORTION_IMAGES_SIZE (3 * XRT_MAX_VIEWS) --#define RENDER_DISTORTION_IMAGES_COUNT(RENDER_RESOURCES) (3 * RENDER_RESOURCES->view_count) -+//! Foveation buffer dimension in pixels (including past-the end pixel) -+#define RENDER_FOVEATION_BUFFER_DIMENSIONS (4096 + 1) - - //! The binding that the layer projection and quad shader have their UBO on. - #define RENDER_BINDING_LAYER_SHARED_UBO 0 -@@ -519,9 +515,6 @@ struct render_resources - //! Doesn't depend on target so is static. - VkPipeline pipeline; - -- //! Doesn't depend on target so is static. -- VkPipeline timewarp_pipeline; -- - //! Target info. - struct render_buffer ubo; - } distortion; -@@ -543,17 +536,11 @@ struct render_resources - //! Transform to go from UV to tangle angles. - struct xrt_normalized_rect uv_to_tanangle[XRT_MAX_VIEWS]; - -- //! Backing memory to distortion images. -- VkDeviceMemory device_memories[RENDER_DISTORTION_IMAGES_SIZE]; -- -- //! Distortion images. -- VkImage images[RENDER_DISTORTION_IMAGES_SIZE]; -+ //! Backing memory to foveation buffers. -+ VkDeviceMemory device_memory; - -- //! The views into the distortion images. -- VkImageView image_views[RENDER_DISTORTION_IMAGES_SIZE]; -- -- //! Whether distortion images have been pre-rotated 90 degrees. -- bool pre_rotated; -+ //! Foveation buffer. -+ VkBuffer buffer; - } distortion; - }; - -@@ -1298,6 +1285,14 @@ struct render_compute_distortion_ubo_data - struct xrt_matrix_4x4 transforms[XRT_MAX_VIEWS]; - }; - -+struct render_compute_distortion_foveation_data -+{ -+ // For each output pixel: index of the first pixel to read. -+ // contains 1 additional value at the end for past-the end pixel -+ uint32_t x[XRT_MAX_VIEWS * RENDER_FOVEATION_BUFFER_DIMENSIONS]; -+ uint32_t y[XRT_MAX_VIEWS * RENDER_FOVEATION_BUFFER_DIMENSIONS]; -+}; -+ - /*! - * Init struct and create resources needed for compute rendering. - * -diff --git a/src/xrt/compositor/render/render_resources.c b/src/xrt/compositor/render/render_resources.c -index 5b9addd59..7d4d9cddb 100644 ---- a/src/xrt/compositor/render/render_resources.c -+++ b/src/xrt/compositor/render/render_resources.c -@@ -258,8 +258,8 @@ create_compute_distortion_descriptor_set_layout(struct vk_bundle *vk, - }, - { - .binding = distortion_binding, -- .descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, -- .descriptorCount = 6, -+ .descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER, -+ .descriptorCount = 1, - .stageFlags = VK_SHADER_STAGE_COMPUTE_BIT, - }, - { -@@ -309,12 +309,6 @@ struct compute_layer_params - uint32_t image_array_size; - }; - --struct compute_distortion_params --{ -- uint32_t distortion_texel_count; -- VkBool32 do_timewarp; --}; -- - XRT_CHECK_RESULT static VkResult - create_compute_layer_pipeline(struct vk_bundle *vk, - VkPipelineCache pipeline_cache, -@@ -359,35 +353,15 @@ create_compute_distortion_pipeline(struct vk_bundle *vk, - VkPipelineCache pipeline_cache, - VkShaderModule shader, - VkPipelineLayout pipeline_layout, -- const struct compute_distortion_params *params, - VkPipeline *out_compute_pipeline) - { --#define ENTRY(ID, FIELD) \ -- { \ -- .constantID = ID, \ -- .offset = offsetof(struct compute_distortion_params, FIELD), \ -- sizeof(params->FIELD), \ -- } -- -- VkSpecializationMapEntry entries[2] = { -- ENTRY(0, distortion_texel_count), -- ENTRY(1, do_timewarp), -- }; --#undef ENTRY -- -- VkSpecializationInfo specialization_info = { -- .mapEntryCount = ARRAY_SIZE(entries), -- .pMapEntries = entries, -- .dataSize = sizeof(*params), -- .pData = params, -- }; - - return vk_create_compute_pipeline( // - vk, // vk_bundle - pipeline_cache, // pipeline_cache - shader, // shader - pipeline_layout, // pipeline_layout -- &specialization_info, // specialization_info -+ NULL, // specialization_info - out_compute_pipeline); // out_compute_pipeline - } - -@@ -849,9 +823,9 @@ render_resources_init(struct render_resources *r, - struct vk_descriptor_pool_info compute_pool_info = { - .uniform_per_descriptor_count = 1, - // layer images -- .sampler_per_descriptor_count = r->compute.layer.image_array_size + RENDER_DISTORTION_IMAGES_COUNT(r), -+ .sampler_per_descriptor_count = r->compute.layer.image_array_size, - .storage_image_per_descriptor_count = 1, -- .storage_buffer_per_descriptor_count = 0, -+ .storage_buffer_per_descriptor_count = 1, - .descriptor_count = compute_descriptor_count, - .freeable = false, - }; -@@ -971,39 +945,16 @@ render_resources_init(struct render_resources *r, - VK_NAME_PIPELINE_LAYOUT(vk, r->compute.distortion.pipeline_layout, - "render_resources compute distortion pipeline layout"); - -- struct compute_distortion_params distortion_params = { -- .distortion_texel_count = RENDER_DISTORTION_IMAGE_DIMENSIONS, -- .do_timewarp = false, -- }; -- - ret = create_compute_distortion_pipeline( // - vk, // vk_bundle - r->pipeline_cache, // pipeline_cache - r->shaders->distortion_comp, // shader - r->compute.distortion.pipeline_layout, // pipeline_layout -- &distortion_params, // params - &r->compute.distortion.pipeline); // out_compute_pipeline - VK_CHK_WITH_RET(ret, "create_compute_distortion_pipeline", false); - - VK_NAME_PIPELINE(vk, r->compute.distortion.pipeline, "render_resources compute distortion pipeline"); - -- struct compute_distortion_params distortion_timewarp_params = { -- .distortion_texel_count = RENDER_DISTORTION_IMAGE_DIMENSIONS, -- .do_timewarp = true, -- }; -- -- ret = create_compute_distortion_pipeline( // -- vk, // vk_bundle -- r->pipeline_cache, // pipeline_cache -- r->shaders->distortion_comp, // shader -- r->compute.distortion.pipeline_layout, // pipeline_layout -- &distortion_timewarp_params, // params -- &r->compute.distortion.timewarp_pipeline); // out_compute_pipeline -- VK_CHK_WITH_RET(ret, "create_compute_distortion_pipeline", false); -- -- VK_NAME_PIPELINE(vk, r->compute.distortion.timewarp_pipeline, -- "render_resources compute distortion timewarp pipeline"); -- - size_t distortion_ubo_size = sizeof(struct render_compute_distortion_ubo_data); - - ret = render_buffer_init( // -@@ -1056,15 +1007,8 @@ render_resources_init(struct render_resources *r, - * Compute distortion textures, not created until later. - */ - -- for (uint32_t i = 0; i < RENDER_DISTORTION_IMAGES_COUNT(r); i++) { -- r->distortion.image_views[i] = VK_NULL_HANDLE; -- } -- for (uint32_t i = 0; i < RENDER_DISTORTION_IMAGES_COUNT(r); i++) { -- r->distortion.images[i] = VK_NULL_HANDLE; -- } -- for (uint32_t i = 0; i < RENDER_DISTORTION_IMAGES_COUNT(r); i++) { -- r->distortion.device_memories[i] = VK_NULL_HANDLE; -- } -+ r->distortion.buffer = VK_NULL_HANDLE; -+ r->distortion.device_memory = VK_NULL_HANDLE; - - - /* -@@ -1141,7 +1085,6 @@ render_resources_fini(struct render_resources *r) - - D(DescriptorSetLayout, r->compute.distortion.descriptor_set_layout); - D(Pipeline, r->compute.distortion.pipeline); -- D(Pipeline, r->compute.distortion.timewarp_pipeline); - D(PipelineLayout, r->compute.distortion.pipeline_layout); - - D(Pipeline, r->compute.clear.pipeline); -diff --git a/src/xrt/compositor/shaders/distortion.comp b/src/xrt/compositor/shaders/distortion.comp -index 9ce46fe6f..cd1828ac9 100644 ---- a/src/xrt/compositor/shaders/distortion.comp -+++ b/src/xrt/compositor/shaders/distortion.comp -@@ -4,20 +4,22 @@ - - #version 460 - #extension GL_GOOGLE_include_directive : require -+#extension GL_KHR_shader_subgroup_basic: require -+#extension GL_KHR_shader_subgroup_shuffle: require - - #include "srgb.inc.glsl" - -- --// The size of the distortion texture dimensions in texels. --layout(constant_id = 0) const int distortion_texel_count = 2; -- --// Should we do timewarp. --layout(constant_id = 1) const bool do_timewarp = false; -- - layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in; - -+#define MAX_DIM 4097 -+ - layout(set = 0, binding = 0) uniform sampler2D source[2]; --layout(set = 0, binding = 1) uniform sampler2D distortion[6]; -+layout(set = 0, binding = 1, std430) buffer restrict Foveation -+{ -+ uint x[2*MAX_DIM]; -+ uint y[2*MAX_DIM]; -+} foveation; -+ - layout(set = 0, binding = 2) uniform writeonly restrict image2DArray luma; - layout(set = 0, binding = 3, std140) uniform restrict Config - { -@@ -41,122 +43,59 @@ vec3 rgb_to_ycbcr(vec3 color) - return transpose(color_space) * color + vec3(0, 0.5, 0.5); - } - --vec2 position_to_uv(ivec2 extent, uint ix, uint iy) --{ -- // Turn the index into floating point. -- vec2 xy = vec2(float(ix), float(iy)); -- -- // The inverse of the extent of the target image is the pixel size in [0 .. 1] space. -- vec2 extent_pixel_size = vec2(1.0 / float(extent.x), 1.0 / float(extent.y)); -- -- // Per-target pixel we move the size of the pixels. -- vec2 dist_uv = xy * extent_pixel_size; -- -- // Emulate a triangle sample position by offset half target pixel size. -- dist_uv = dist_uv + extent_pixel_size / 2.0; -- -- -- // To correctly sample we need to put position (0, 0) in the -- // middle of the (0, 0) texel in the distortion textures. That's why we -- // offset with half the texel size, pushing all samples into the middle -- // of each texels, a kin to a vertex buffer. We need to put uv coord -- // (1, 1) in the middle of the last texel, that pixel is (size - 1) -- // texels away from the first texel. So we need to scale [0 .. 1] to -- // [0 .. size - 1]. -- --#define DIM (float(distortion_texel_count)) --#define STRETCH ((DIM - 1.0) / DIM) --#define OFFSET (1.0 / (DIM * 2.0)) -- -- dist_uv = (dist_uv * STRETCH) + OFFSET; -- -- return dist_uv; --} -- --vec2 transform_uv_subimage(vec2 uv, uint iz) --{ -- vec2 values = uv; -- -- // To deal with OpenGL flip and sub image view. -- values.xy = values.xy * ubo.post_transform[iz].zw + ubo.post_transform[iz].xy; -- -- // Ready to be used. -- return values.xy; --} -- --vec2 transform_uv_timewarp(vec2 uv, uint iz) --{ -- vec4 values = vec4(uv, -1, 1); -- -- // From uv to tan angle (tangent space). -- values.xy = values.xy * ubo.pre_transform[iz].zw + ubo.pre_transform[iz].xy; -- values.y = -values.y; // Flip to OpenXR coordinate system. -- -- // Timewarp. -- values = ubo.transform[iz] * values; -- values.xy = values.xy * (1.0 / max(values.w, 0.00001)); -- -- // From [-1, 1] to [0, 1] -- values.xy = values.xy * 0.5 + 0.5; -- -- // To deal with OpenGL flip and sub image view. -- values.xy = values.xy * ubo.post_transform[iz].zw + ubo.post_transform[iz].xy; -- -- // Done. -- return values.xy; --} -- --vec2 transform_uv(vec2 uv, uint iz) --{ -- if (do_timewarp) { -- return transform_uv_timewarp(uv, iz); -- } else { -- return transform_uv_subimage(uv, iz); -- } --} -- - void main() - { - uint iz = gl_GlobalInvocationID.z; - - ivec2 offset = ivec2(ubo.views[iz].xy); - ivec2 extent = ivec2(ubo.views[iz].zw); -- vec2 cbcrs[4]; -- vec4 alpha; -- for (int k = 0; k < 2; k += 1) { -- uint iy = gl_GlobalInvocationID.y * 2 + k; -- for (int j = 0; j < 2; j += 1) { -- uint ix = gl_GlobalInvocationID.x * 2 + j; -- -- vec2 dist_uv = position_to_uv(extent, ix, iy); -- -- vec2 uv = texture(distortion[iz + 0], dist_uv).xy; -- vec2 lod = texture(distortion[iz + 2], dist_uv).xy; -- -- // Do any transformation needed. -- uv = transform_uv(uv, iz); -- -- // Sample the source -- vec4 colour = textureLod(source[iz], uv, mix(lod.x, lod.y, 0.5)); -- -- colour.rgb = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb)); -+ uint iy = gl_GlobalInvocationID.y; -+ uint ymin = foveation.y[MAX_DIM * iz + iy]; -+ uint ymax = foveation.y[MAX_DIM * iz + iy + 1]; -+ if (ymin == ymax) -+ return; -+ if (ymin > ymax) -+ { -+ uint tmp = ymin; -+ ymin = ymax; -+ ymax = tmp; -+ } -+ uint ix = gl_GlobalInvocationID.x; - -- int i = k * 2 + j; -- cbcrs[i] = colour.yz; -- alpha[i] = colour.a; -+ uint xmin = foveation.x[MAX_DIM * iz + ix]; -+ uint xmax = foveation.x[MAX_DIM * iz + ix + 1]; -+ if (xmin == xmax) -+ return; - -- if (ix < extent.x && iy < extent.y) { -- imageStore(luma, ivec3(offset.x + ix, offset.y + iy, 0), vec4(colour.x)); -- } -+ vec4 colour = vec4(0); -+ for (uint y = ymin ; y < ymax; y += 1) { -+ for (uint x = xmin ; x < xmax; x += 1) { -+ colour += texelFetch(source[iz], ivec2(x, y), 0); - } - } -- if (gl_GlobalInvocationID.x >= extent.x || gl_GlobalInvocationID.y >= extent.y) { -- return; -+ colour /= (xmax - xmin) * (ymax - ymin); -+ colour.xyz = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb)); -+ -+ imageStore(luma, ivec3(offset.x + ix, offset.y + iy, 0), vec4(colour.x)); -+ -+ vec4 sum = colour; -+ for (uint i = 0 ; i < gl_SubgroupSize; ++i) -+ { -+ uvec3 other = subgroupShuffle(gl_GlobalInvocationID, i); -+ vec4 c = subgroupShuffle(colour, i); -+ if ( -+ other == gl_GlobalInvocationID + uvec3(1, 0, 0) -+ || other == gl_GlobalInvocationID + uvec3(0, 1, 0) -+ || other == gl_GlobalInvocationID + uvec3(1, 1, 0)) -+ { -+ sum += c; -+ } - } -- vec2 cbcr = mix(mix(cbcrs[0], cbcrs[1], 0.5), mix(cbcrs[2], cbcrs[3], 0.5), 0.5); -- imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 0), vec4(cbcr.x, cbcr.y, 0, 0)); - -- imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), vec4(0.5, 0.5, 0, 0)); -- alpha = vec4(mix(mix(alpha[0], alpha[1], 0.5), mix(alpha[2], alpha[3], 0.5), 0.5)); -- imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), alpha); -+ if (ix %2 == 0 && iy %2 == 0) -+ { -+ imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy/2, 0), vec4(sum.y, sum.z, 0, 0) / 4); -+ imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy/2, 1), vec4(sum.w, 0, 0, 0) / 4); -+ imageStore(chroma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy/2, 1), vec4(0.5, 0.5, 0, 0)); -+ } - } -diff --git a/src/xrt/compositor/util/comp_render_cs.c b/src/xrt/compositor/util/comp_render_cs.c -index b2d3ce10d..69429dc97 100644 ---- a/src/xrt/compositor/util/comp_render_cs.c -+++ b/src/xrt/compositor/util/comp_render_cs.c -@@ -466,30 +466,15 @@ crc_distortion_fast_path(struct render_compute *render, - world_poses[i] = world_pose; - } - -- if (!d->do_timewarp) { -- render_compute_projection( // -- render, // -- src_samplers, // -- src_image_views, // -- src_norm_rects, // -- d->target.cs.image, // -- d->target.cs.storage_view_y, // -- d->target.cs.storage_view_cbcr, // -- target_viewport_datas); // -- } else { -- render_compute_projection_timewarp( // -- render, // -- src_samplers, // -- src_image_views, // -- src_norm_rects, // -- src_poses, // -- src_fovs, // -- world_poses, // -- d->target.cs.image, // -- d->target.cs.storage_view_y, // -- d->target.cs.storage_view_cbcr, // -- target_viewport_datas); // -- } -+ render_compute_projection( // -+ render, // -+ src_samplers, // -+ src_image_views, // -+ src_norm_rects, // -+ d->target.cs.image, // -+ d->target.cs.storage_view_y, // -+ d->target.cs.storage_view_cbcr, // -+ target_viewport_datas); // - } - - --- -2.50.1 - From f97c241f9f04682fe01ac868a60bdd0b3baa0625 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 26 Aug 2025 20:16:18 +0200 Subject: [PATCH 04/52] Don't request promoted extensions --- client/application.cpp | 6 +--- client/xr/instance.cpp | 74 +++++++++++++++++++++++++++++++++--------- 2 files changed, 59 insertions(+), 21 deletions(-) diff --git a/client/application.cpp b/client/application.cpp index 1ab926a2..22de1aee 100644 --- a/client/application.cpp +++ b/client/application.cpp @@ -71,7 +71,6 @@ struct interaction_profile std::string profile_name; std::vector required_extensions; XrVersion min_version = XR_MAKE_VERSION(1, 0, 0); - XrVersion max_version = XR_MAKE_VERSION(2, 0, 0); // exclusive std::vector input_sources; bool available; }; @@ -139,7 +138,6 @@ static std::vector interaction_profiles{ interaction_profile{ .profile_name = "/interaction_profiles/facebook/touch_controller_pro", .required_extensions = {XR_FB_TOUCH_CONTROLLER_PRO_EXTENSION_NAME}, - .max_version = XR_MAKE_VERSION(1, 1, 0), .input_sources = { "/user/hand/left/output/haptic", "/user/hand/left/output/haptic_trigger_fb", @@ -252,7 +250,6 @@ static std::vector interaction_profiles{ interaction_profile{ .profile_name = "/interaction_profiles/meta/touch_controller_plus", .required_extensions = {XR_META_TOUCH_CONTROLLER_PLUS_EXTENSION_NAME}, - .max_version = XR_MAKE_VERSION(1, 1, 0), .input_sources = { "/user/hand/left/output/haptic", "/user/hand/right/output/haptic", @@ -997,8 +994,7 @@ void application::initialize_actions() for (auto & profile: interaction_profiles) { profile.available = std::ranges::all_of(profile.required_extensions, [&](auto & ext) { return xr_instance.has_extension(ext); }) and - profile.min_version <= api_version and - profile.max_version > api_version; + profile.min_version <= api_version; if (profile.profile_name.ends_with("khr/simple_controller")) { diff --git a/client/xr/instance.cpp b/client/xr/instance.cpp index 4f95679d..5522341d 100644 --- a/client/xr/instance.cpp +++ b/client/xr/instance.cpp @@ -25,6 +25,8 @@ #include #include #include +#include +#include #include #include #include @@ -42,7 +44,37 @@ static XrBool32 debug_callback( return XR_FALSE; } -static std::pair create_instance(XrInstanceCreateInfo & info) +static const std::map>> promoted_extensions = { + { + XR_MAKE_VERSION(1, 1, 0), + { + XR_KHR_LOCATE_SPACES_EXTENSION_NAME, + XR_KHR_MAINTENANCE1_EXTENSION_NAME, + XR_EXT_HP_MIXED_REALITY_CONTROLLER_EXTENSION_NAME, + XR_EXT_LOCAL_FLOOR_EXTENSION_NAME, + XR_EXT_PALM_POSE_EXTENSION_NAME, + XR_EXT_SAMSUNG_ODYSSEY_CONTROLLER_EXTENSION_NAME, + XR_EXT_UUID_EXTENSION_NAME, + XR_BD_CONTROLLER_INTERACTION_EXTENSION_NAME, + XR_FB_TOUCH_CONTROLLER_PRO_EXTENSION_NAME, + XR_HTC_VIVE_COSMOS_CONTROLLER_INTERACTION_EXTENSION_NAME, + XR_HTC_VIVE_FOCUS3_CONTROLLER_INTERACTION_EXTENSION_NAME, + XR_META_TOUCH_CONTROLLER_PLUS_EXTENSION_NAME, + XR_ML_ML2_CONTROLLER_INTERACTION_EXTENSION_NAME, + XR_VARJO_QUAD_VIEWS_EXTENSION_NAME, + }, + }, +}; + +static bool is_promoted(XrVersion version, const char * extension) +{ + auto it = promoted_extensions.find(XR_MAKE_VERSION(XR_VERSION_MAJOR(version), XR_VERSION_MINOR(version), 0)); + if (it == promoted_extensions.end()) + return false; + return it->second.contains(extension); +} + +static std::pair create_instance(XrInstanceCreateInfo & info, std::vector & in_extensions) { XrResult res; for (XrVersion version: { @@ -50,11 +82,21 @@ static std::pair create_instance(XrInstanceCreateInfo & i XR_API_VERSION_1_0, }) { + std::vector extensions; + std::ranges::copy_if( + in_extensions, + std::back_inserter(extensions), + [version](const char * ext) { return not is_promoted(version, ext); }); info.applicationInfo.apiVersion = version; + info.enabledExtensionNames = extensions.data(); + info.enabledExtensionCount = extensions.size(); XrInstance inst; res = xrCreateInstance(&info, &inst); if (XR_SUCCEEDED(res)) + { + std::swap(in_extensions, extensions); return {version, inst}; + } spdlog::info("Failed to create OpenXR instance version {}: {}", xr::to_string(version), xr::to_string(res)); @@ -129,20 +171,6 @@ xr::instance::instance(std::string_view application_name, std::vector Date: Tue, 26 Aug 2025 22:42:10 +0200 Subject: [PATCH 05/52] Fix gradle deprecation warnings --- build.gradle | 103 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 72 insertions(+), 31 deletions(-) diff --git a/build.gradle b/build.gradle index 7d22897d..f4512f7a 100644 --- a/build.gradle +++ b/build.gradle @@ -17,45 +17,86 @@ allprojects { apply plugin: 'com.android.application' -task "generatePngs"() { - group = 'Custom' - mkdir layout.buildDirectory.dir('generated_resources') - ["mipmap-mdpi", "mipmap-hdpi", "mipmap-xhdpi", "mipmap-xxhdpi", "mipmap-xxxhdpi", ].each { - mkdir layout.buildDirectory.dir("generated_resources/${it}") - } +import javax.inject.Inject +import org.gradle.api.DefaultTask +import org.gradle.api.tasks.* +import org.gradle.api.file.DirectoryProperty +import org.gradle.process.ExecOperations - def css = project.hasProperty('wivrn_css') ? project.wivrn_css: "images/wivrn-local.css" +abstract class GeneratePngsTask extends DefaultTask { + @Inject + abstract ExecOperations getExecOps() - exec { - executable = 'rsvg-convert' - args = [ "images/wivrn.svg", "-w", "48", "-h", "48", "-o", layout.buildDirectory.file('generated_resources/mipmap-mdpi/ic_wivrn_launcher.png').get().asFile, '--stylesheet=' + css ] - } + @InputFile + abstract RegularFileProperty getSvg() - exec { - executable = 'rsvg-convert' - args = [ "images/wivrn.svg", "-w", "72", "-h", "72", "-o", layout.buildDirectory.file('generated_resources/mipmap-hdpi/ic_wivrn_launcher.png').get().asFile, '--stylesheet=' + css ] - } + @InputFile + @Optional + abstract RegularFileProperty getCss() - exec { - executable = 'rsvg-convert' - args = [ "images/wivrn.svg", "-w", "96", "-h", "96", "-o", layout.buildDirectory.file('generated_resources/mipmap-xhdpi/ic_wivrn_launcher.png').get().asFile, '--stylesheet=' + css ] - } + @OutputDirectory + abstract DirectoryProperty getOutputDir() - exec { - executable = 'rsvg-convert' - args = [ "images/wivrn.svg", "-w", "144", "-h", "144", "-o", layout.buildDirectory.file('generated_resources/mipmap-xxhdpi/ic_wivrn_launcher.png').get().asFile, '--stylesheet=' + css ] - } + @TaskAction + void generate() { + def outDir = getOutputDir().get().asFile + outDir.mkdirs() - exec { - executable = 'rsvg-convert' - args = [ "images/wivrn.svg", "-w", "192", "-h", "192", "-o", layout.buildDirectory.file('generated_resources/mipmap-xxxhdpi/ic_wivrn_launcher.png').get().asFile, '--stylesheet=' + css ] + // Map of density → size + def dpiConfigs = [ + "mipmap-mdpi" : 48, + "mipmap-hdpi" : 72, + "mipmap-xhdpi" : 96, + "mipmap-xxhdpi" : 144, + "mipmap-xxxhdpi": 192 + ] + + def cssFile = getCss().isPresent() ? getCss().get().asFile : null + + dpiConfigs.each { dpi, size -> + def dpiDir = new File(outDir, dpi) + dpiDir.mkdirs() + + def outputFile = new File(dpiDir, "ic_wivrn_launcher.png") + + def argsList = [ + getSvg().get().asFile.absolutePath, + "-w", size.toString(), + "-h", size.toString(), + "-o", outputFile.absolutePath + ] + if (cssFile != null) { + argsList.add("--stylesheet=${cssFile.absolutePath}") + } + + execOps.exec { + executable = "rsvg-convert" + args = argsList + } + } } } +tasks.register("generatePngs", GeneratePngsTask) { + group = "Custom" + + // configure defaults + svg.set(layout.projectDirectory.file("images/wivrn.svg")) + outputDir.set(layout.buildDirectory.dir("generated_resources")) + + if (project.hasProperty("wivrn_css")) { + css.set(layout.projectDirectory.file(project.wivrn_css)) + } else { + css.set(layout.projectDirectory.file("images/wivrn-local.css")) + } +} + + + android { - namespace "org.meumeu.wivrn" - ndkVersion "28.1.13356709" + namespace = "org.meumeu.wivrn" + ndkVersion = "28.1.13356709" lint { disable += "ExpiredTargetSdkVersion" @@ -106,7 +147,7 @@ android { keyAlias "default_key" storePassword signingKeyPassword // Set in gradle.properties keyPassword signingKeyPassword - enableV2Signing true + enableV2Signing = true } } } @@ -114,7 +155,7 @@ android { buildTypes { if (project.hasProperty("signingKeyPassword")) { release { - signingConfig signingConfigs.release + signingConfig = signingConfigs.release } } @@ -183,7 +224,7 @@ android { externalNativeBuild { cmake { - version '3.30.3' + version = '3.30.3' path 'CMakeLists.txt' } } From 5ff85ef7a7704c1220475baf316ba18e19aab65d Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sun, 31 Aug 2025 17:08:45 +0200 Subject: [PATCH 06/52] Limit number of foveation samples per pixel --- ...001-c-multi-early-wake-of-compositor.patch | 2 +- ...02-ipc-server-Always-listen-to-stdin.patch | 2 +- .../monado/0003-Use-extern-socket-fd.patch | 2 +- ...vironment-blend-mode-selection-logic.patch | 4 +- ...main-allow-custom-pacing-app-factory.patch | 4 +- .../0006-st-oxr-forward-0-refresh-rate.patch | 4 +- ...07-Replace-distortion-with-foveation.patch | 4 +- ...08-Limit-foveation-samples-per-pixel.patch | 46 +++++++++++++++++++ 8 files changed, 57 insertions(+), 11 deletions(-) create mode 100644 patches/monado/0008-Limit-foveation-samples-per-pixel.patch diff --git a/patches/monado/0001-c-multi-early-wake-of-compositor.patch b/patches/monado/0001-c-multi-early-wake-of-compositor.patch index 07420d03..73ebe4b2 100644 --- a/patches/monado/0001-c-multi-early-wake-of-compositor.patch +++ b/patches/monado/0001-c-multi-early-wake-of-compositor.patch @@ -1,7 +1,7 @@ From 5a4505efc60c9252176b73775278b6f5b775fe8e Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 22 Oct 2024 15:23:19 +0200 -Subject: [PATCH 1/7] c/multi: early wake of compositor +Subject: [PATCH 1/8] c/multi: early wake of compositor --- .../compositor/multi/comp_multi_compositor.c | 14 +++++++++ diff --git a/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch b/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch index 9a506eb1..8665fdaf 100644 --- a/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch +++ b/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch @@ -1,7 +1,7 @@ From e118393925294a3b57cbf149fdc28685b27aec94 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 2 Apr 2024 17:14:42 +0200 -Subject: [PATCH 2/7] ipc/server: Always listen to stdin +Subject: [PATCH 2/8] ipc/server: Always listen to stdin --- src/xrt/ipc/server/ipc_server_mainloop_linux.c | 2 +- diff --git a/patches/monado/0003-Use-extern-socket-fd.patch b/patches/monado/0003-Use-extern-socket-fd.patch index 7755492f..65a3f826 100644 --- a/patches/monado/0003-Use-extern-socket-fd.patch +++ b/patches/monado/0003-Use-extern-socket-fd.patch @@ -1,7 +1,7 @@ From d4b4c209e9106edf5e6b1c3efbcac2b88364518b Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 8 Oct 2024 22:13:15 +0200 -Subject: [PATCH 3/7] Use extern socket fd +Subject: [PATCH 3/8] Use extern socket fd --- src/xrt/ipc/server/ipc_server_mainloop_linux.c | 8 ++++++++ diff --git a/patches/monado/0004-change-environment-blend-mode-selection-logic.patch b/patches/monado/0004-change-environment-blend-mode-selection-logic.patch index 08cde750..6133b855 100644 --- a/patches/monado/0004-change-environment-blend-mode-selection-logic.patch +++ b/patches/monado/0004-change-environment-blend-mode-selection-logic.patch @@ -1,7 +1,7 @@ -From 6dc7053efd13536ba81e8261c183ac0ae54321e2 Mon Sep 17 00:00:00 2001 +From a0eafb7370e319386bdd790059e2f13147706a9f 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 4/7] change environment blend mode selection logic +Subject: [PATCH 4/8] change environment blend mode selection logic --- src/xrt/compositor/multi/comp_multi_system.c | 26 +++++++++++++------- diff --git a/patches/monado/0005-c-main-allow-custom-pacing-app-factory.patch b/patches/monado/0005-c-main-allow-custom-pacing-app-factory.patch index 9df7fc75..640a7f9d 100644 --- a/patches/monado/0005-c-main-allow-custom-pacing-app-factory.patch +++ b/patches/monado/0005-c-main-allow-custom-pacing-app-factory.patch @@ -1,7 +1,7 @@ -From b9be14a7b106595ac1e6e350dcaaf93c906d0d0b Mon Sep 17 00:00:00 2001 +From 406114aa32a71e04b43b44b0aec04472f9fa82c3 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 27 Feb 2025 22:45:36 +0100 -Subject: [PATCH 5/7] c/main: allow custom pacing app factory +Subject: [PATCH 5/8] c/main: allow custom pacing app factory --- src/xrt/compositor/main/comp_compositor.c | 10 ++++++---- diff --git a/patches/monado/0006-st-oxr-forward-0-refresh-rate.patch b/patches/monado/0006-st-oxr-forward-0-refresh-rate.patch index 0d3feef9..88852ab8 100644 --- a/patches/monado/0006-st-oxr-forward-0-refresh-rate.patch +++ b/patches/monado/0006-st-oxr-forward-0-refresh-rate.patch @@ -1,7 +1,7 @@ -From bbf1e184d62cfb0dbafe5cfa1c1851baebf6be58 Mon Sep 17 00:00:00 2001 +From aa73e7d05747374760b22333495cde8c3d9d3f10 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 15 Mar 2025 22:19:48 +0100 -Subject: [PATCH 6/7] st/oxr: forward 0 refresh rate +Subject: [PATCH 6/8] st/oxr: forward 0 refresh rate --- src/xrt/state_trackers/oxr/oxr_api_session.c | 6 +----- diff --git a/patches/monado/0007-Replace-distortion-with-foveation.patch b/patches/monado/0007-Replace-distortion-with-foveation.patch index 94e906c0..b15553ab 100644 --- a/patches/monado/0007-Replace-distortion-with-foveation.patch +++ b/patches/monado/0007-Replace-distortion-with-foveation.patch @@ -1,7 +1,7 @@ -From d8385cab2e585d9bb1f9a392a22ecf3be3f714fe Mon Sep 17 00:00:00 2001 +From 3172d537740d2a334dbb009f63c6e6f039554181 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 11 Sep 2024 22:56:29 +0200 -Subject: [PATCH 7/7] Replace distortion with foveation +Subject: [PATCH 7/8] Replace distortion with foveation --- src/xrt/compositor/CMakeLists.txt | 4 +- diff --git a/patches/monado/0008-Limit-foveation-samples-per-pixel.patch b/patches/monado/0008-Limit-foveation-samples-per-pixel.patch new file mode 100644 index 00000000..4a85e429 --- /dev/null +++ b/patches/monado/0008-Limit-foveation-samples-per-pixel.patch @@ -0,0 +1,46 @@ +From 4de55a9bc2ab7d3931d38b6697268af5421c0328 Mon Sep 17 00:00:00 2001 +From: Patrick Nicolas +Date: Sun, 31 Aug 2025 17:05:49 +0200 +Subject: [PATCH 8/8] Limit foveation samples per pixel + +--- + src/xrt/compositor/shaders/distortion.comp | 12 +++++++++--- + 1 file changed, 9 insertions(+), 3 deletions(-) + +diff --git a/src/xrt/compositor/shaders/distortion.comp b/src/xrt/compositor/shaders/distortion.comp +index cd1828ac9..41de849e6 100644 +--- a/src/xrt/compositor/shaders/distortion.comp ++++ b/src/xrt/compositor/shaders/distortion.comp +@@ -12,6 +12,7 @@ + layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in; + + #define MAX_DIM 4097 ++#define MAX_SAMPLES 4 + + layout(set = 0, binding = 0) uniform sampler2D source[2]; + layout(set = 0, binding = 1, std430) buffer restrict Foveation +@@ -67,13 +68,18 @@ void main() + if (xmin == xmax) + return; + ++ uint xstep = (xmax - xmin + MAX_SAMPLES - 1) / MAX_SAMPLES; ++ uint ystep = (ymax - ymin + MAX_SAMPLES - 1) / MAX_SAMPLES; ++ + vec4 colour = vec4(0); +- for (uint y = ymin ; y < ymax; y += 1) { +- for (uint x = xmin ; x < xmax; x += 1) { ++ uint count = 0; ++ for (uint y = ymin ; y < ymax; y += ystep) { ++ for (uint x = xmin ; x < xmax; x += xstep) { + colour += texelFetch(source[iz], ivec2(x, y), 0); ++ ++count; + } + } +- colour /= (xmax - xmin) * (ymax - ymin); ++ colour /= count; + colour.xyz = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb)); + + imageStore(luma, ivec3(offset.x + ix, offset.y + iy, 0), vec4(colour.x)); +-- +2.51.0 + From 692d4dec04a9d6cfa067c0f48c82981ed2fc44a3 Mon Sep 17 00:00:00 2001 From: Sapphire Date: Mon, 1 Sep 2025 20:47:04 -0500 Subject: [PATCH 07/52] Enable XRT_FEATURE_OPENXR_LAYER_COLOR_SCALE_BIAS by default --- server/CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt index f575469c..3794c3c6 100644 --- a/server/CMakeLists.txt +++ b/server/CMakeLists.txt @@ -38,10 +38,11 @@ set(XRT_FEATURE_OPENXR_FACIAL_TRACKING_HTC ON) set(XRT_FEATURE_OPENXR_HAND_TRACKING_EXT ON) set(XRT_FEATURE_OPENXR_INTERACTION_EXT_HAND ON) set(XRT_FEATURE_OPENXR_INTERACTION_EXT_PALM_POSE ON) -set(XRT_FEATURE_OPENXR_INTERACTION_BYTEDANCE ON) -set(XRT_FEATURE_OPENXR_INTERACTION_VIVE_FOCUS3 ON) -set(XRT_FEATURE_OPENXR_INTERACTION_TOUCH_PRO ON) -set(XRT_FEATURE_OPENXR_INTERACTION_TOUCH_PLUS ON) +set(XRT_FEATURE_OPENXR_INTERACTION_BYTEDANCE ON) +set(XRT_FEATURE_OPENXR_INTERACTION_VIVE_FOCUS3 ON) +set(XRT_FEATURE_OPENXR_INTERACTION_TOUCH_PRO ON) +set(XRT_FEATURE_OPENXR_INTERACTION_TOUCH_PLUS ON) +set(XRT_FEATURE_OPENXR_LAYER_COLOR_SCALE_BIAS ON) set(XRT_HAVE_BLUETOOTH OFF) set(XRT_HAVE_GST OFF) From 435c2be127d662942cc7c67e61c0488e347a17bb Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 2 Sep 2025 09:40:07 +0200 Subject: [PATCH 08/52] Add renderdoc support in stream scene --- client/scenes/stream.cpp | 18 +- client/vk/renderdoc.cpp | 45 +++ client/vk/renderdoc.h | 6 + common/wivrn_config.h.in | 1 + external/renderdoc_app.h | 741 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 807 insertions(+), 4 deletions(-) create mode 100644 client/vk/renderdoc.cpp create mode 100644 client/vk/renderdoc.h create mode 100644 external/renderdoc_app.h diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index 63ab4a21..a289dd01 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -48,6 +48,11 @@ #include #include +#include "wivrn_config.h" +#if WIVRN_FEATURE_RENDERDOC +#include "vk/renderdoc.h" +#endif + using namespace wivrn; // clang-format off @@ -905,11 +910,13 @@ void scenes::stream::render(const XrFrameState & frame_state) std::array image_indices; +#if WIVRN_FEATURE_RENDERDOC + renderdoc_begin(*vk_instance); +#endif command_buffer.reset(); - - vk::CommandBufferBeginInfo begin_info; - begin_info.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit; - command_buffer.begin(begin_info); + command_buffer.begin(vk::CommandBufferBeginInfo{ + .flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit, + }); // Keep a reference to the resources needed to blit the images until vkWaitForFences @@ -1090,6 +1097,9 @@ void scenes::stream::render(const XrFrameState & frame_state) vk::SubmitInfo submit_info; submit_info.setCommandBuffers(*command_buffer); queue.lock()->submit(submit_info, *fence); +#if WIVRN_FEATURE_RENDERDOC + renderdoc_end(*vk_instance); +#endif swapchain.release(); std::vector layer_view(view_count); diff --git a/client/vk/renderdoc.cpp b/client/vk/renderdoc.cpp new file mode 100644 index 00000000..a2e9c467 --- /dev/null +++ b/client/vk/renderdoc.cpp @@ -0,0 +1,45 @@ +#include "renderdoc.h" +#include "renderdoc_app.h" + +#include +#include + +static RENDERDOC_API_1_0_0 * renderdoc_init() +{ + RENDERDOC_API_1_0_0 * renderdoc_api = nullptr; + auto renderdoc_module = dlopen("librenderdoc.so", RTLD_NOW | RTLD_NOLOAD); + if (not renderdoc_module) + return nullptr; + auto * func = reinterpret_cast(dlsym(renderdoc_module, "RENDERDOC_GetAPI")); + if (!func) + { + std::cerr << "Failed to load RENDERDOC_GetAPI function." << std::endl; + return nullptr; + } + if (!func(eRENDERDOC_API_Version_1_0_0, reinterpret_cast(&renderdoc_api))) + { + std::cerr << "Failed to obtain RenderDoc 1.0.0 API." << std::endl; + return nullptr; + } + + int major, minor, patch; + renderdoc_api->GetAPIVersion(&major, &minor, &patch); + return renderdoc_api; +} + +static RENDERDOC_API_1_0_0 * get_renderdoc() +{ + static RENDERDOC_API_1_0_0 * renderdoc_api = renderdoc_init(); + return renderdoc_api; +} + +void wivrn::renderdoc_begin(VkInstance inst) +{ + if (auto renderdoc_api = get_renderdoc()) + renderdoc_api->StartFrameCapture(RENDERDOC_DEVICEPOINTER_FROM_VKINSTANCE(inst), nullptr); +} +void wivrn::renderdoc_end(VkInstance inst) +{ + if (auto renderdoc_api = get_renderdoc()) + renderdoc_api->EndFrameCapture(RENDERDOC_DEVICEPOINTER_FROM_VKINSTANCE(inst), nullptr); +} diff --git a/client/vk/renderdoc.h b/client/vk/renderdoc.h new file mode 100644 index 00000000..a495a6f7 --- /dev/null +++ b/client/vk/renderdoc.h @@ -0,0 +1,6 @@ +#include +namespace wivrn +{ +void renderdoc_begin(VkInstance); +void renderdoc_end(VkInstance); +} // namespace wivrn diff --git a/common/wivrn_config.h.in b/common/wivrn_config.h.in index 519b6414..76271c46 100644 --- a/common/wivrn_config.h.in +++ b/common/wivrn_config.h.in @@ -30,6 +30,7 @@ #cmakedefine01 WIVRN_USE_PULSEAUDIO #cmakedefine01 WIVRN_FEATURE_DEBUG_GUI +#cmakedefine01 WIVRN_FEATURE_RENDERDOC #cmakedefine01 WIVRN_FEATURE_STEAMVR_LIGHTHOUSE #cmakedefine01 WIVRN_FEATURE_SOLARXR diff --git a/external/renderdoc_app.h b/external/renderdoc_app.h new file mode 100644 index 00000000..c01e0593 --- /dev/null +++ b/external/renderdoc_app.h @@ -0,0 +1,741 @@ +/****************************************************************************** + * The MIT License (MIT) + * + * Copyright (c) 2019-2024 Baldur Karlsson + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + ******************************************************************************/ + +#pragma once + +////////////////////////////////////////////////////////////////////////////////////////////////// +// +// Documentation for the API is available at https://renderdoc.org/docs/in_application_api.html +// + +#if !defined(RENDERDOC_NO_STDINT) +#include +#endif + +#if defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER) +#define RENDERDOC_CC __cdecl +#elif defined(__linux__) || defined(__FreeBSD__) +#define RENDERDOC_CC +#elif defined(__APPLE__) +#define RENDERDOC_CC +#else +#error "Unknown platform" +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +////////////////////////////////////////////////////////////////////////////////////////////////// +// Constants not used directly in below API + +// This is a GUID/magic value used for when applications pass a path where shader debug +// information can be found to match up with a stripped shader. +// the define can be used like so: const GUID RENDERDOC_ShaderDebugMagicValue = +// RENDERDOC_ShaderDebugMagicValue_value +#define RENDERDOC_ShaderDebugMagicValue_struct \ + { \ + 0xeab25520, 0x6670, 0x4865, 0x84, 0x29, 0x6c, 0x8, 0x51, 0x54, 0x00, 0xff \ + } + +// as an alternative when you want a byte array (assuming x86 endianness): +#define RENDERDOC_ShaderDebugMagicValue_bytearray \ + { \ + 0x20, 0x55, 0xb2, 0xea, 0x70, 0x66, 0x65, 0x48, 0x84, 0x29, 0x6c, 0x8, 0x51, 0x54, 0x00, 0xff \ + } + +// truncated version when only a uint64_t is available (e.g. Vulkan tags): +#define RENDERDOC_ShaderDebugMagicValue_truncated 0x48656670eab25520ULL + +////////////////////////////////////////////////////////////////////////////////////////////////// +// RenderDoc capture options +// + +typedef enum RENDERDOC_CaptureOption +{ + // Allow the application to enable vsync + // + // Default - enabled + // + // 1 - The application can enable or disable vsync at will + // 0 - vsync is force disabled + eRENDERDOC_Option_AllowVSync = 0, + + // Allow the application to enable fullscreen + // + // Default - enabled + // + // 1 - The application can enable or disable fullscreen at will + // 0 - fullscreen is force disabled + eRENDERDOC_Option_AllowFullscreen = 1, + + // Record API debugging events and messages + // + // Default - disabled + // + // 1 - Enable built-in API debugging features and records the results into + // the capture, which is matched up with events on replay + // 0 - no API debugging is forcibly enabled + eRENDERDOC_Option_APIValidation = 2, + eRENDERDOC_Option_DebugDeviceMode = 2, // deprecated name of this enum + + // Capture CPU callstacks for API events + // + // Default - disabled + // + // 1 - Enables capturing of callstacks + // 0 - no callstacks are captured + eRENDERDOC_Option_CaptureCallstacks = 3, + + // When capturing CPU callstacks, only capture them from actions. + // This option does nothing without the above option being enabled + // + // Default - disabled + // + // 1 - Only captures callstacks for actions. + // Ignored if CaptureCallstacks is disabled + // 0 - Callstacks, if enabled, are captured for every event. + eRENDERDOC_Option_CaptureCallstacksOnlyDraws = 4, + eRENDERDOC_Option_CaptureCallstacksOnlyActions = 4, + + // Specify a delay in seconds to wait for a debugger to attach, after + // creating or injecting into a process, before continuing to allow it to run. + // + // 0 indicates no delay, and the process will run immediately after injection + // + // Default - 0 seconds + // + eRENDERDOC_Option_DelayForDebugger = 5, + + // Verify buffer access. This includes checking the memory returned by a Map() call to + // detect any out-of-bounds modification, as well as initialising buffers with undefined contents + // to a marker value to catch use of uninitialised memory. + // + // NOTE: This option is only valid for OpenGL and D3D11. Explicit APIs such as D3D12 and Vulkan do + // not do the same kind of interception & checking and undefined contents are really undefined. + // + // Default - disabled + // + // 1 - Verify buffer access + // 0 - No verification is performed, and overwriting bounds may cause crashes or corruption in + // RenderDoc. + eRENDERDOC_Option_VerifyBufferAccess = 6, + + // The old name for eRENDERDOC_Option_VerifyBufferAccess was eRENDERDOC_Option_VerifyMapWrites. + // This option now controls the filling of uninitialised buffers with 0xdddddddd which was + // previously always enabled + eRENDERDOC_Option_VerifyMapWrites = eRENDERDOC_Option_VerifyBufferAccess, + + // Hooks any system API calls that create child processes, and injects + // RenderDoc into them recursively with the same options. + // + // Default - disabled + // + // 1 - Hooks into spawned child processes + // 0 - Child processes are not hooked by RenderDoc + eRENDERDOC_Option_HookIntoChildren = 7, + + // By default RenderDoc only includes resources in the final capture necessary + // for that frame, this allows you to override that behaviour. + // + // Default - disabled + // + // 1 - all live resources at the time of capture are included in the capture + // and available for inspection + // 0 - only the resources referenced by the captured frame are included + eRENDERDOC_Option_RefAllResources = 8, + + // **NOTE**: As of RenderDoc v1.1 this option has been deprecated. Setting or + // getting it will be ignored, to allow compatibility with older versions. + // In v1.1 the option acts as if it's always enabled. + // + // By default RenderDoc skips saving initial states for resources where the + // previous contents don't appear to be used, assuming that writes before + // reads indicate previous contents aren't used. + // + // Default - disabled + // + // 1 - initial contents at the start of each captured frame are saved, even if + // they are later overwritten or cleared before being used. + // 0 - unless a read is detected, initial contents will not be saved and will + // appear as black or empty data. + eRENDERDOC_Option_SaveAllInitials = 9, + + // In APIs that allow for the recording of command lists to be replayed later, + // RenderDoc may choose to not capture command lists before a frame capture is + // triggered, to reduce overheads. This means any command lists recorded once + // and replayed many times will not be available and may cause a failure to + // capture. + // + // NOTE: This is only true for APIs where multithreading is difficult or + // discouraged. Newer APIs like Vulkan and D3D12 will ignore this option + // and always capture all command lists since the API is heavily oriented + // around it and the overheads have been reduced by API design. + // + // 1 - All command lists are captured from the start of the application + // 0 - Command lists are only captured if their recording begins during + // the period when a frame capture is in progress. + eRENDERDOC_Option_CaptureAllCmdLists = 10, + + // Mute API debugging output when the API validation mode option is enabled + // + // Default - enabled + // + // 1 - Mute any API debug messages from being displayed or passed through + // 0 - API debugging is displayed as normal + eRENDERDOC_Option_DebugOutputMute = 11, + + // Option to allow vendor extensions to be used even when they may be + // incompatible with RenderDoc and cause corrupted replays or crashes. + // + // Default - inactive + // + // No values are documented, this option should only be used when absolutely + // necessary as directed by a RenderDoc developer. + eRENDERDOC_Option_AllowUnsupportedVendorExtensions = 12, + + // Define a soft memory limit which some APIs may aim to keep overhead under where + // possible. Anything above this limit will where possible be saved directly to disk during + // capture. + // This will cause increased disk space use (which may cause a capture to fail if disk space is + // exhausted) as well as slower capture times. + // + // Not all memory allocations may be deferred like this so it is not a guarantee of a memory + // limit. + // + // Units are in MBs, suggested values would range from 200MB to 1000MB. + // + // Default - 0 Megabytes + eRENDERDOC_Option_SoftMemoryLimit = 13, +} RENDERDOC_CaptureOption; + +// Sets an option that controls how RenderDoc behaves on capture. +// +// Returns 1 if the option and value are valid +// Returns 0 if either is invalid and the option is unchanged +typedef int(RENDERDOC_CC *pRENDERDOC_SetCaptureOptionU32)(RENDERDOC_CaptureOption opt, uint32_t val); +typedef int(RENDERDOC_CC *pRENDERDOC_SetCaptureOptionF32)(RENDERDOC_CaptureOption opt, float val); + +// Gets the current value of an option as a uint32_t +// +// If the option is invalid, 0xffffffff is returned +typedef uint32_t(RENDERDOC_CC *pRENDERDOC_GetCaptureOptionU32)(RENDERDOC_CaptureOption opt); + +// Gets the current value of an option as a float +// +// If the option is invalid, -FLT_MAX is returned +typedef float(RENDERDOC_CC *pRENDERDOC_GetCaptureOptionF32)(RENDERDOC_CaptureOption opt); + +typedef enum RENDERDOC_InputButton +{ + // '0' - '9' matches ASCII values + eRENDERDOC_Key_0 = 0x30, + eRENDERDOC_Key_1 = 0x31, + eRENDERDOC_Key_2 = 0x32, + eRENDERDOC_Key_3 = 0x33, + eRENDERDOC_Key_4 = 0x34, + eRENDERDOC_Key_5 = 0x35, + eRENDERDOC_Key_6 = 0x36, + eRENDERDOC_Key_7 = 0x37, + eRENDERDOC_Key_8 = 0x38, + eRENDERDOC_Key_9 = 0x39, + + // 'A' - 'Z' matches ASCII values + eRENDERDOC_Key_A = 0x41, + eRENDERDOC_Key_B = 0x42, + eRENDERDOC_Key_C = 0x43, + eRENDERDOC_Key_D = 0x44, + eRENDERDOC_Key_E = 0x45, + eRENDERDOC_Key_F = 0x46, + eRENDERDOC_Key_G = 0x47, + eRENDERDOC_Key_H = 0x48, + eRENDERDOC_Key_I = 0x49, + eRENDERDOC_Key_J = 0x4A, + eRENDERDOC_Key_K = 0x4B, + eRENDERDOC_Key_L = 0x4C, + eRENDERDOC_Key_M = 0x4D, + eRENDERDOC_Key_N = 0x4E, + eRENDERDOC_Key_O = 0x4F, + eRENDERDOC_Key_P = 0x50, + eRENDERDOC_Key_Q = 0x51, + eRENDERDOC_Key_R = 0x52, + eRENDERDOC_Key_S = 0x53, + eRENDERDOC_Key_T = 0x54, + eRENDERDOC_Key_U = 0x55, + eRENDERDOC_Key_V = 0x56, + eRENDERDOC_Key_W = 0x57, + eRENDERDOC_Key_X = 0x58, + eRENDERDOC_Key_Y = 0x59, + eRENDERDOC_Key_Z = 0x5A, + + // leave the rest of the ASCII range free + // in case we want to use it later + eRENDERDOC_Key_NonPrintable = 0x100, + + eRENDERDOC_Key_Divide, + eRENDERDOC_Key_Multiply, + eRENDERDOC_Key_Subtract, + eRENDERDOC_Key_Plus, + + eRENDERDOC_Key_F1, + eRENDERDOC_Key_F2, + eRENDERDOC_Key_F3, + eRENDERDOC_Key_F4, + eRENDERDOC_Key_F5, + eRENDERDOC_Key_F6, + eRENDERDOC_Key_F7, + eRENDERDOC_Key_F8, + eRENDERDOC_Key_F9, + eRENDERDOC_Key_F10, + eRENDERDOC_Key_F11, + eRENDERDOC_Key_F12, + + eRENDERDOC_Key_Home, + eRENDERDOC_Key_End, + eRENDERDOC_Key_Insert, + eRENDERDOC_Key_Delete, + eRENDERDOC_Key_PageUp, + eRENDERDOC_Key_PageDn, + + eRENDERDOC_Key_Backspace, + eRENDERDOC_Key_Tab, + eRENDERDOC_Key_PrtScrn, + eRENDERDOC_Key_Pause, + + eRENDERDOC_Key_Max, +} RENDERDOC_InputButton; + +// Sets which key or keys can be used to toggle focus between multiple windows +// +// If keys is NULL or num is 0, toggle keys will be disabled +typedef void(RENDERDOC_CC *pRENDERDOC_SetFocusToggleKeys)(RENDERDOC_InputButton *keys, int num); + +// Sets which key or keys can be used to capture the next frame +// +// If keys is NULL or num is 0, captures keys will be disabled +typedef void(RENDERDOC_CC *pRENDERDOC_SetCaptureKeys)(RENDERDOC_InputButton *keys, int num); + +typedef enum RENDERDOC_OverlayBits +{ + // This single bit controls whether the overlay is enabled or disabled globally + eRENDERDOC_Overlay_Enabled = 0x1, + + // Show the average framerate over several seconds as well as min/max + eRENDERDOC_Overlay_FrameRate = 0x2, + + // Show the current frame number + eRENDERDOC_Overlay_FrameNumber = 0x4, + + // Show a list of recent captures, and how many captures have been made + eRENDERDOC_Overlay_CaptureList = 0x8, + + // Default values for the overlay mask + eRENDERDOC_Overlay_Default = (eRENDERDOC_Overlay_Enabled | eRENDERDOC_Overlay_FrameRate | + eRENDERDOC_Overlay_FrameNumber | eRENDERDOC_Overlay_CaptureList), + + // Enable all bits + eRENDERDOC_Overlay_All = ~0U, + + // Disable all bits + eRENDERDOC_Overlay_None = 0, +} RENDERDOC_OverlayBits; + +// returns the overlay bits that have been set +typedef uint32_t(RENDERDOC_CC *pRENDERDOC_GetOverlayBits)(); +// sets the overlay bits with an and & or mask +typedef void(RENDERDOC_CC *pRENDERDOC_MaskOverlayBits)(uint32_t And, uint32_t Or); + +// this function will attempt to remove RenderDoc's hooks in the application. +// +// Note: that this can only work correctly if done immediately after +// the module is loaded, before any API work happens. RenderDoc will remove its +// injected hooks and shut down. Behaviour is undefined if this is called +// after any API functions have been called, and there is still no guarantee of +// success. +typedef void(RENDERDOC_CC *pRENDERDOC_RemoveHooks)(); + +// DEPRECATED: compatibility for code compiled against pre-1.4.1 headers. +typedef pRENDERDOC_RemoveHooks pRENDERDOC_Shutdown; + +// This function will unload RenderDoc's crash handler. +// +// If you use your own crash handler and don't want RenderDoc's handler to +// intercede, you can call this function to unload it and any unhandled +// exceptions will pass to the next handler. +typedef void(RENDERDOC_CC *pRENDERDOC_UnloadCrashHandler)(); + +// Sets the capture file path template +// +// pathtemplate is a UTF-8 string that gives a template for how captures will be named +// and where they will be saved. +// +// Any extension is stripped off the path, and captures are saved in the directory +// specified, and named with the filename and the frame number appended. If the +// directory does not exist it will be created, including any parent directories. +// +// If pathtemplate is NULL, the template will remain unchanged +// +// Example: +// +// SetCaptureFilePathTemplate("my_captures/example"); +// +// Capture #1 -> my_captures/example_frame123.rdc +// Capture #2 -> my_captures/example_frame456.rdc +typedef void(RENDERDOC_CC *pRENDERDOC_SetCaptureFilePathTemplate)(const char *pathtemplate); + +// returns the current capture path template, see SetCaptureFileTemplate above, as a UTF-8 string +typedef const char *(RENDERDOC_CC *pRENDERDOC_GetCaptureFilePathTemplate)(); + +// DEPRECATED: compatibility for code compiled against pre-1.1.2 headers. +typedef pRENDERDOC_SetCaptureFilePathTemplate pRENDERDOC_SetLogFilePathTemplate; +typedef pRENDERDOC_GetCaptureFilePathTemplate pRENDERDOC_GetLogFilePathTemplate; + +// returns the number of captures that have been made +typedef uint32_t(RENDERDOC_CC *pRENDERDOC_GetNumCaptures)(); + +// This function returns the details of a capture, by index. New captures are added +// to the end of the list. +// +// filename will be filled with the absolute path to the capture file, as a UTF-8 string +// pathlength will be written with the length in bytes of the filename string +// timestamp will be written with the time of the capture, in seconds since the Unix epoch +// +// Any of the parameters can be NULL and they'll be skipped. +// +// The function will return 1 if the capture index is valid, or 0 if the index is invalid +// If the index is invalid, the values will be unchanged +// +// Note: when captures are deleted in the UI they will remain in this list, so the +// capture path may not exist anymore. +typedef uint32_t(RENDERDOC_CC *pRENDERDOC_GetCapture)(uint32_t idx, char *filename, + uint32_t *pathlength, uint64_t *timestamp); + +// Sets the comments associated with a capture file. These comments are displayed in the +// UI program when opening. +// +// filePath should be a path to the capture file to add comments to. If set to NULL or "" +// the most recent capture file created made will be used instead. +// comments should be a NULL-terminated UTF-8 string to add as comments. +// +// Any existing comments will be overwritten. +typedef void(RENDERDOC_CC *pRENDERDOC_SetCaptureFileComments)(const char *filePath, + const char *comments); + +// returns 1 if the RenderDoc UI is connected to this application, 0 otherwise +typedef uint32_t(RENDERDOC_CC *pRENDERDOC_IsTargetControlConnected)(); + +// DEPRECATED: compatibility for code compiled against pre-1.1.1 headers. +// This was renamed to IsTargetControlConnected in API 1.1.1, the old typedef is kept here for +// backwards compatibility with old code, it is castable either way since it's ABI compatible +// as the same function pointer type. +typedef pRENDERDOC_IsTargetControlConnected pRENDERDOC_IsRemoteAccessConnected; + +// This function will launch the Replay UI associated with the RenderDoc library injected +// into the running application. +// +// if connectTargetControl is 1, the Replay UI will be launched with a command line parameter +// to connect to this application +// cmdline is the rest of the command line, as a UTF-8 string. E.g. a captures to open +// if cmdline is NULL, the command line will be empty. +// +// returns the PID of the replay UI if successful, 0 if not successful. +typedef uint32_t(RENDERDOC_CC *pRENDERDOC_LaunchReplayUI)(uint32_t connectTargetControl, + const char *cmdline); + +// RenderDoc can return a higher version than requested if it's backwards compatible, +// this function returns the actual version returned. If a parameter is NULL, it will be +// ignored and the others will be filled out. +typedef void(RENDERDOC_CC *pRENDERDOC_GetAPIVersion)(int *major, int *minor, int *patch); + +// Requests that the replay UI show itself (if hidden or not the current top window). This can be +// used in conjunction with IsTargetControlConnected and LaunchReplayUI to intelligently handle +// showing the UI after making a capture. +// +// This will return 1 if the request was successfully passed on, though it's not guaranteed that +// the UI will be on top in all cases depending on OS rules. It will return 0 if there is no current +// target control connection to make such a request, or if there was another error +typedef uint32_t(RENDERDOC_CC *pRENDERDOC_ShowReplayUI)(); + +////////////////////////////////////////////////////////////////////////// +// Capturing functions +// + +// A device pointer is a pointer to the API's root handle. +// +// This would be an ID3D11Device, HGLRC/GLXContext, ID3D12Device, etc +typedef void *RENDERDOC_DevicePointer; + +// A window handle is the OS's native window handle +// +// This would be an HWND, GLXDrawable, etc +typedef void *RENDERDOC_WindowHandle; + +// A helper macro for Vulkan, where the device handle cannot be used directly. +// +// Passing the VkInstance to this macro will return the RENDERDOC_DevicePointer to use. +// +// Specifically, the value needed is the dispatch table pointer, which sits as the first +// pointer-sized object in the memory pointed to by the VkInstance. Thus we cast to a void** and +// indirect once. +#define RENDERDOC_DEVICEPOINTER_FROM_VKINSTANCE(inst) (*((void **)(inst))) + +// This sets the RenderDoc in-app overlay in the API/window pair as 'active' and it will +// respond to keypresses. Neither parameter can be NULL +typedef void(RENDERDOC_CC *pRENDERDOC_SetActiveWindow)(RENDERDOC_DevicePointer device, + RENDERDOC_WindowHandle wndHandle); + +// capture the next frame on whichever window and API is currently considered active +typedef void(RENDERDOC_CC *pRENDERDOC_TriggerCapture)(); + +// capture the next N frames on whichever window and API is currently considered active +typedef void(RENDERDOC_CC *pRENDERDOC_TriggerMultiFrameCapture)(uint32_t numFrames); + +// When choosing either a device pointer or a window handle to capture, you can pass NULL. +// Passing NULL specifies a 'wildcard' match against anything. This allows you to specify +// any API rendering to a specific window, or a specific API instance rendering to any window, +// or in the simplest case of one window and one API, you can just pass NULL for both. +// +// In either case, if there are two or more possible matching (device,window) pairs it +// is undefined which one will be captured. +// +// Note: for headless rendering you can pass NULL for the window handle and either specify +// a device pointer or leave it NULL as above. + +// Immediately starts capturing API calls on the specified device pointer and window handle. +// +// If there is no matching thing to capture (e.g. no supported API has been initialised), +// this will do nothing. +// +// The results are undefined (including crashes) if two captures are started overlapping, +// even on separate devices and/oror windows. +typedef void(RENDERDOC_CC *pRENDERDOC_StartFrameCapture)(RENDERDOC_DevicePointer device, + RENDERDOC_WindowHandle wndHandle); + +// Returns whether or not a frame capture is currently ongoing anywhere. +// +// This will return 1 if a capture is ongoing, and 0 if there is no capture running +typedef uint32_t(RENDERDOC_CC *pRENDERDOC_IsFrameCapturing)(); + +// Ends capturing immediately. +// +// This will return 1 if the capture succeeded, and 0 if there was an error capturing. +typedef uint32_t(RENDERDOC_CC *pRENDERDOC_EndFrameCapture)(RENDERDOC_DevicePointer device, + RENDERDOC_WindowHandle wndHandle); + +// Ends capturing immediately and discard any data stored without saving to disk. +// +// This will return 1 if the capture was discarded, and 0 if there was an error or no capture +// was in progress +typedef uint32_t(RENDERDOC_CC *pRENDERDOC_DiscardFrameCapture)(RENDERDOC_DevicePointer device, + RENDERDOC_WindowHandle wndHandle); + +// Only valid to be called between a call to StartFrameCapture and EndFrameCapture. Gives a custom +// title to the capture produced which will be displayed in the UI. +// +// If multiple captures are ongoing, this title will be applied to the first capture to end after +// this call. The second capture to end will have no title, unless this function is called again. +// +// Calling this function has no effect if no capture is currently running, and if it is called +// multiple times only the last title will be used. +typedef void(RENDERDOC_CC *pRENDERDOC_SetCaptureTitle)(const char *title); + +////////////////////////////////////////////////////////////////////////////////////////////////// +// RenderDoc API versions +// + +// RenderDoc uses semantic versioning (http://semver.org/). +// +// MAJOR version is incremented when incompatible API changes happen. +// MINOR version is incremented when functionality is added in a backwards-compatible manner. +// PATCH version is incremented when backwards-compatible bug fixes happen. +// +// Note that this means the API returned can be higher than the one you might have requested. +// e.g. if you are running against a newer RenderDoc that supports 1.0.1, it will be returned +// instead of 1.0.0. You can check this with the GetAPIVersion entry point +typedef enum RENDERDOC_Version +{ + eRENDERDOC_API_Version_1_0_0 = 10000, // RENDERDOC_API_1_0_0 = 1 00 00 + eRENDERDOC_API_Version_1_0_1 = 10001, // RENDERDOC_API_1_0_1 = 1 00 01 + eRENDERDOC_API_Version_1_0_2 = 10002, // RENDERDOC_API_1_0_2 = 1 00 02 + eRENDERDOC_API_Version_1_1_0 = 10100, // RENDERDOC_API_1_1_0 = 1 01 00 + eRENDERDOC_API_Version_1_1_1 = 10101, // RENDERDOC_API_1_1_1 = 1 01 01 + eRENDERDOC_API_Version_1_1_2 = 10102, // RENDERDOC_API_1_1_2 = 1 01 02 + eRENDERDOC_API_Version_1_2_0 = 10200, // RENDERDOC_API_1_2_0 = 1 02 00 + eRENDERDOC_API_Version_1_3_0 = 10300, // RENDERDOC_API_1_3_0 = 1 03 00 + eRENDERDOC_API_Version_1_4_0 = 10400, // RENDERDOC_API_1_4_0 = 1 04 00 + eRENDERDOC_API_Version_1_4_1 = 10401, // RENDERDOC_API_1_4_1 = 1 04 01 + eRENDERDOC_API_Version_1_4_2 = 10402, // RENDERDOC_API_1_4_2 = 1 04 02 + eRENDERDOC_API_Version_1_5_0 = 10500, // RENDERDOC_API_1_5_0 = 1 05 00 + eRENDERDOC_API_Version_1_6_0 = 10600, // RENDERDOC_API_1_6_0 = 1 06 00 +} RENDERDOC_Version; + +// API version changelog: +// +// 1.0.0 - initial release +// 1.0.1 - Bugfix: IsFrameCapturing() was returning false for captures that were triggered +// by keypress or TriggerCapture, instead of Start/EndFrameCapture. +// 1.0.2 - Refactor: Renamed eRENDERDOC_Option_DebugDeviceMode to eRENDERDOC_Option_APIValidation +// 1.1.0 - Add feature: TriggerMultiFrameCapture(). Backwards compatible with 1.0.x since the new +// function pointer is added to the end of the struct, the original layout is identical +// 1.1.1 - Refactor: Renamed remote access to target control (to better disambiguate from remote +// replay/remote server concept in replay UI) +// 1.1.2 - Refactor: Renamed "log file" in function names to just capture, to clarify that these +// are captures and not debug logging files. This is the first API version in the v1.0 +// branch. +// 1.2.0 - Added feature: SetCaptureFileComments() to add comments to a capture file that will be +// displayed in the UI program on load. +// 1.3.0 - Added feature: New capture option eRENDERDOC_Option_AllowUnsupportedVendorExtensions +// which allows users to opt-in to allowing unsupported vendor extensions to function. +// Should be used at the user's own risk. +// Refactor: Renamed eRENDERDOC_Option_VerifyMapWrites to +// eRENDERDOC_Option_VerifyBufferAccess, which now also controls initialisation to +// 0xdddddddd of uninitialised buffer contents. +// 1.4.0 - Added feature: DiscardFrameCapture() to discard a frame capture in progress and stop +// capturing without saving anything to disk. +// 1.4.1 - Refactor: Renamed Shutdown to RemoveHooks to better clarify what is happening +// 1.4.2 - Refactor: Renamed 'draws' to 'actions' in callstack capture option. +// 1.5.0 - Added feature: ShowReplayUI() to request that the replay UI show itself if connected +// 1.6.0 - Added feature: SetCaptureTitle() which can be used to set a title for a +// capture made with StartFrameCapture() or EndFrameCapture() + +typedef struct RENDERDOC_API_1_6_0 +{ + pRENDERDOC_GetAPIVersion GetAPIVersion; + + pRENDERDOC_SetCaptureOptionU32 SetCaptureOptionU32; + pRENDERDOC_SetCaptureOptionF32 SetCaptureOptionF32; + + pRENDERDOC_GetCaptureOptionU32 GetCaptureOptionU32; + pRENDERDOC_GetCaptureOptionF32 GetCaptureOptionF32; + + pRENDERDOC_SetFocusToggleKeys SetFocusToggleKeys; + pRENDERDOC_SetCaptureKeys SetCaptureKeys; + + pRENDERDOC_GetOverlayBits GetOverlayBits; + pRENDERDOC_MaskOverlayBits MaskOverlayBits; + + // Shutdown was renamed to RemoveHooks in 1.4.1. + // These unions allow old code to continue compiling without changes + union + { + pRENDERDOC_Shutdown Shutdown; + pRENDERDOC_RemoveHooks RemoveHooks; + }; + pRENDERDOC_UnloadCrashHandler UnloadCrashHandler; + + // Get/SetLogFilePathTemplate was renamed to Get/SetCaptureFilePathTemplate in 1.1.2. + // These unions allow old code to continue compiling without changes + union + { + // deprecated name + pRENDERDOC_SetLogFilePathTemplate SetLogFilePathTemplate; + // current name + pRENDERDOC_SetCaptureFilePathTemplate SetCaptureFilePathTemplate; + }; + union + { + // deprecated name + pRENDERDOC_GetLogFilePathTemplate GetLogFilePathTemplate; + // current name + pRENDERDOC_GetCaptureFilePathTemplate GetCaptureFilePathTemplate; + }; + + pRENDERDOC_GetNumCaptures GetNumCaptures; + pRENDERDOC_GetCapture GetCapture; + + pRENDERDOC_TriggerCapture TriggerCapture; + + // IsRemoteAccessConnected was renamed to IsTargetControlConnected in 1.1.1. + // This union allows old code to continue compiling without changes + union + { + // deprecated name + pRENDERDOC_IsRemoteAccessConnected IsRemoteAccessConnected; + // current name + pRENDERDOC_IsTargetControlConnected IsTargetControlConnected; + }; + pRENDERDOC_LaunchReplayUI LaunchReplayUI; + + pRENDERDOC_SetActiveWindow SetActiveWindow; + + pRENDERDOC_StartFrameCapture StartFrameCapture; + pRENDERDOC_IsFrameCapturing IsFrameCapturing; + pRENDERDOC_EndFrameCapture EndFrameCapture; + + // new function in 1.1.0 + pRENDERDOC_TriggerMultiFrameCapture TriggerMultiFrameCapture; + + // new function in 1.2.0 + pRENDERDOC_SetCaptureFileComments SetCaptureFileComments; + + // new function in 1.4.0 + pRENDERDOC_DiscardFrameCapture DiscardFrameCapture; + + // new function in 1.5.0 + pRENDERDOC_ShowReplayUI ShowReplayUI; + + // new function in 1.6.0 + pRENDERDOC_SetCaptureTitle SetCaptureTitle; +} RENDERDOC_API_1_6_0; + +typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_0_0; +typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_0_1; +typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_0_2; +typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_1_0; +typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_1_1; +typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_1_2; +typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_2_0; +typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_3_0; +typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_4_0; +typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_4_1; +typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_4_2; +typedef RENDERDOC_API_1_6_0 RENDERDOC_API_1_5_0; + +////////////////////////////////////////////////////////////////////////////////////////////////// +// RenderDoc API entry point +// +// This entry point can be obtained via GetProcAddress/dlsym if RenderDoc is available. +// +// The name is the same as the typedef - "RENDERDOC_GetAPI" +// +// This function is not thread safe, and should not be called on multiple threads at once. +// Ideally, call this once as early as possible in your application's startup, before doing +// any API work, since some configuration functionality etc has to be done also before +// initialising any APIs. +// +// Parameters: +// version is a single value from the RENDERDOC_Version above. +// +// outAPIPointers will be filled out with a pointer to the corresponding struct of function +// pointers. +// +// Returns: +// 1 - if the outAPIPointers has been filled with a pointer to the API struct requested +// 0 - if the requested version is not supported or the arguments are invalid. +// +typedef int(RENDERDOC_CC *pRENDERDOC_GetAPI)(RENDERDOC_Version version, void **outAPIPointers); + +#ifdef __cplusplus +} // extern "C" +#endif From 633f7feeb1dda12c0fc0ad79dea238f99fcf0722 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 1 Sep 2025 23:30:41 +0200 Subject: [PATCH 09/52] Skip blit when possible --- client/scenes/blitter.cpp | 359 ++++++++++++++++++ client/scenes/blitter.h | 72 ++++ client/scenes/stream.cpp | 309 +-------------- client/scenes/stream.h | 20 +- ...reprojection.cpp => stream_defoveator.cpp} | 345 ++++++++--------- ...eam_reprojection.h => stream_defoveator.h} | 35 +- client/shaders/reprojection.glsl.inc | 44 ++- client/shaders/stream.glsl | 30 +- 8 files changed, 678 insertions(+), 536 deletions(-) create mode 100644 client/scenes/blitter.cpp create mode 100644 client/scenes/blitter.h rename client/scenes/{stream_reprojection.cpp => stream_defoveator.cpp} (69%) rename client/scenes/{stream_reprojection.h => stream_defoveator.h} (75%) diff --git a/client/scenes/blitter.cpp b/client/scenes/blitter.cpp new file mode 100644 index 00000000..fd952a80 --- /dev/null +++ b/client/scenes/blitter.cpp @@ -0,0 +1,359 @@ +/* + * WiVRn VR streaming + * Copyright (C) 2025 Patrick Nicolas + * + * 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 . + */ + +#include "blitter.h" + +#include "application.h" +#include "utils/ranges.h" +#include "vk/pipeline.h" +#include "vk/shader.h" +#include "vk/specialization_constants.h" +#include +#include +#include + +namespace wivrn +{ + +static const uint32_t num_views = 2; + +blitter::blitter(vk::raii::Device & device, size_t view) : + device(device), view(view) +{ +} + +void blitter::reset(const to_headset::video_stream_description & desc) +{ + using channels_t = to_headset::video_stream_description::channels_t; + this->desc = desc; + + current = {}; + target = image_allocation(); + image_view = nullptr; + rp = nullptr; + fb = nullptr; + sampler = nullptr; + pipelines.clear(); + passthrough_rgb = passthrough_a = -1; + + auto w = desc.width / num_views; + for (auto [i, item]: utils::enumerate(desc.items)) + { + if (item.offset_x <= view * w and + item.offset_y == 0 and + item.offset_x + item.width * item.subsampling >= (view + 1) * w and + item.height * item.subsampling >= desc.height) + { + spdlog::info("Stream {} is eligible for blit-less path on view {}", i, view); + switch (item.channels) + { + case channels_t::colour: + passthrough_rgb = i; + break; + case channels_t::alpha: + passthrough_a = i; + break; + } + const bool alpha = item.channels == to_headset::video_stream_description::channels_t::alpha; + auto & r = alpha ? current.rect_a : current.rect_rgb; + r = vk::Rect2D{ + .offset = { + .x = int32_t(view * w) - item.offset_x, + .y = 0, + }, + .extent = { + .width = uint32_t(item.width * item.subsampling), + .height = uint32_t(item.height * item.subsampling), + }}; + } + } + + if (passthrough_rgb != -1 and passthrough_a != -1) + return; + + target = image_allocation( + device, + vk::ImageCreateInfo{ + .imageType = vk::ImageType::e2D, + .format = vk::Format::eB8G8R8A8Srgb, + .extent = { + .width = w, + .height = desc.height, + .depth = 1, + }, + .mipLevels = 1, + .arrayLayers = 1, + .usage = vk::ImageUsageFlagBits::eSampled | vk::ImageUsageFlagBits::eColorAttachment, + }, + { + .usage = VMA_MEMORY_USAGE_AUTO, + }, + std::format("blit image {}", view)); + + image_view = device.createImageView(vk::ImageViewCreateInfo{ + .image = vk::Image(target), + .viewType = vk::ImageViewType::e2D, + .format = target.info().format, + .subresourceRange = { + .aspectMask = vk::ImageAspectFlagBits::eColor, + .levelCount = 1, + .layerCount = 1, + }}); + + // render pass + { + vk::AttachmentReference color_ref{ + .attachment = 0, + .layout = vk::ImageLayout::eColorAttachmentOptimal, + }; + + vk::SubpassDescription subpass{ + .pipelineBindPoint = vk::PipelineBindPoint::eGraphics, + .colorAttachmentCount = 1, + .pColorAttachments = &color_ref, + }; + + vk::AttachmentDescription color_desc{ + .format = target.info().format, + .loadOp = vk::AttachmentLoadOp::eDontCare, + .finalLayout = vk::ImageLayout::eShaderReadOnlyOptimal, + }; + + rp = device.createRenderPass(vk::RenderPassCreateInfo{ + .attachmentCount = 1, + .pAttachments = &color_desc, + .subpassCount = 1, + .pSubpasses = &subpass, + }); + } + + fb = device.createFramebuffer( + vk::FramebufferCreateInfo{ + .renderPass = *rp, + .attachmentCount = 1, + .pAttachments = &*image_view, + .width = w, + .height = desc.height, + .layers = 1, + }); + + sampler = device.createSampler(vk::SamplerCreateInfo{ + .magFilter = vk::Filter::eLinear, + .minFilter = vk::Filter::eLinear, + .addressModeU = vk::SamplerAddressMode::eClampToBorder, + .addressModeV = vk::SamplerAddressMode::eClampToBorder, + .addressModeW = vk::SamplerAddressMode::eClampToBorder, + .borderColor = vk::BorderColor::eFloatOpaqueBlack, + }); + + pipelines.resize(desc.items.size()); + for (auto [i, item]: utils::enumerate(desc.items)) + { + pipelines[i].used = item.offset_x < (view + 1) * w and + item.offset_x + item.width * item.subsampling > view * w; + } + + current.rgb = *image_view; + current.sampler_rgb = *sampler; + current.rect_rgb = vk::Rect2D{.extent = {w, desc.height}}; + current.layout_rgb = vk::ImageLayout::eShaderReadOnlyOptimal; +} + +void blitter::begin(vk::raii::CommandBuffer & cmd) +{ + assert(not desc.items.empty()); + if (*fb == VK_NULL_HANDLE) + { + current.rgb = nullptr; + current.a = nullptr; + current.sampler_rgb = nullptr; + current.sampler_a = nullptr; + return; + } + + current.rgb = *image_view; + current.sampler_rgb = *sampler; + + cmd.beginRenderPass( + { + .renderPass = *rp, + .framebuffer = *fb, + .renderArea = { + .offset = {0, 0}, + .extent = {target.info().extent.width, target.info().extent.height}, + }, + }, + vk::SubpassContents::eInline); +} + +void blitter::push_image(vk::raii::CommandBuffer & cmd, uint8_t stream, vk::Sampler sampler, vk::ImageView image, vk::ImageLayout layout) +{ + if (stream == passthrough_rgb) + { + current.rgb = image; + current.sampler_rgb = sampler; + current.layout_rgb = layout; + return; + } + if (stream == passthrough_a) + { + current.a = image; + current.sampler_a = sampler; + current.layout_a = layout; + return; + } + if (pipelines.empty()) + return; + + assert(stream < pipelines.size()); + auto & p = pipelines[stream]; + if (not p.used) + return; + + const auto & extent = target.info().extent; + const auto & description = desc.items[stream]; + if (not *p.pipeline) + { + const bool alpha = description.channels == to_headset::video_stream_description::channels_t::alpha; + vk::DescriptorSetLayoutBinding sampler_layout_binding{ + .binding = 0, + .descriptorType = vk::DescriptorType::eCombinedImageSampler, + .descriptorCount = 1, + .stageFlags = vk::ShaderStageFlagBits::eFragment, + .pImmutableSamplers = &sampler, + }; + + p.set_layout = device.createDescriptorSetLayout(vk::DescriptorSetLayoutCreateInfo{ + .flags = vk::DescriptorSetLayoutCreateFlagBits::ePushDescriptorKHR, + .bindingCount = 1, + .pBindings = &sampler_layout_binding, + }); + + auto vert_constants = make_specialization_constants( + float(description.width) / description.video_width, + float(description.height) / description.video_height); + + auto frag_constants = make_specialization_constants( + VkBool32(alpha)); + + // Create graphics pipeline + vk::raii::ShaderModule vertex_shader = load_shader(device, "stream.vert"); + vk::raii::ShaderModule fragment_shader = load_shader(device, "stream.frag"); + + p.layout = device.createPipelineLayout(vk::PipelineLayoutCreateInfo{ + .setLayoutCount = 1, + .pSetLayouts = &*p.set_layout, + }); + + vk::pipeline_builder pipeline_info{ + .Stages = {{ + .stage = vk::ShaderStageFlagBits::eVertex, + .module = *vertex_shader, + .pName = "main", + .pSpecializationInfo = vert_constants, + }, + { + .stage = vk::ShaderStageFlagBits::eFragment, + .module = *fragment_shader, + .pName = "main", + .pSpecializationInfo = frag_constants, + }}, + .VertexBindingDescriptions = {}, + .VertexAttributeDescriptions = {}, + .InputAssemblyState = {{ + .topology = vk::PrimitiveTopology::eTriangleStrip, + }}, + // With vk::DynamicState::eViewport, vk::DynamicState::eScissor the number of viewports + // and scissors is still used, put a vector with one element + .Viewports = {{}}, + .Scissors = {{}}, + .RasterizationState = {{ + .polygonMode = vk::PolygonMode::eFill, + .lineWidth = 1, + }}, + .MultisampleState = {{ + .rasterizationSamples = vk::SampleCountFlagBits::e1, + }}, + .ColorBlendAttachments = { + {.colorWriteMask = alpha ? vk::ColorComponentFlagBits::eA + : vk::ColorComponentFlagBits::eA | vk::ColorComponentFlagBits::eR | vk::ColorComponentFlagBits::eG | vk::ColorComponentFlagBits::eB}}, + .DynamicStates = {vk::DynamicState::eViewport, vk::DynamicState::eScissor}, + .layout = *p.layout, + .renderPass = *rp, + .subpass = 0, + }; + + p.pipeline = device.createGraphicsPipeline(application::get_pipeline_cache(), pipeline_info); + spdlog::info("Created blit pipeline for stream {}, view {}", stream, view); + } + + cmd.bindPipeline(vk::PipelineBindPoint::eGraphics, *p.pipeline); + + vk::DescriptorImageInfo image_info{ + .imageView = image, + .imageLayout = layout, + }; + cmd.pushDescriptorSetKHR( + vk::PipelineBindPoint::eGraphics, + *p.layout, + 0, + vk::WriteDescriptorSet{ + .dstBinding = 0, + .descriptorCount = 1, + .descriptorType = vk::DescriptorType::eCombinedImageSampler, + .pImageInfo = &image_info, + }); + + int x0 = description.offset_x - view * extent.width; + int y0 = description.offset_y; + int x1 = x0 + description.width * description.subsampling; + int y1 = y0 + description.height * description.subsampling; + + cmd.setViewport( + 0, + vk::Viewport{ + .x = (float)x0, + .y = (float)y0, + .width = float(description.width * description.subsampling), + .height = float(description.height * description.subsampling), + .minDepth = 0, + .maxDepth = 1, + }); + + x0 = std::clamp(x0, 0, extent.width); + x1 = std::clamp(x1, 0, extent.width); + y0 = std::clamp(y0, 0, extent.height); + y1 = std::clamp(y1, 0, extent.height); + + cmd.setScissor( + 0, + vk::Rect2D{ + .offset = {.x = x0, .y = y0}, + .extent = {.width = uint32_t(x1 - x0), .height = uint32_t(y1 - y0)}, + }); + cmd.draw(3, 1, 0, 0); +} + +blitter::output blitter::end(vk::raii::CommandBuffer & cmd) +{ + if (*fb) + cmd.endRenderPass(); + return current; +} + +} // namespace wivrn diff --git a/client/scenes/blitter.h b/client/scenes/blitter.h new file mode 100644 index 00000000..c1a037e8 --- /dev/null +++ b/client/scenes/blitter.h @@ -0,0 +1,72 @@ +/* + * WiVRn VR streaming + * Copyright (C) 2025 Patrick Nicolas + * + * 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 . + */ + +#pragma once + +#include "vk/allocation.h" +#include "wivrn_packets.h" +#include + +namespace wivrn +{ +class blitter +{ +public: + struct output + { + vk::ImageView rgb; + vk::Sampler sampler_rgb; + vk::Rect2D rect_rgb; + vk::ImageLayout layout_rgb; + vk::ImageView a; + vk::Sampler sampler_a; + vk::Rect2D rect_a; + vk::ImageLayout layout_a; + }; + +private: + vk::raii::Device & device; + size_t view; + to_headset::video_stream_description desc; + // indices to simply passthrough, if -1 image needs to be blitted + int passthrough_rgb = -1; + int passthrough_a = -1; + image_allocation target; + vk::raii::ImageView image_view = nullptr; + vk::raii::RenderPass rp = nullptr; + vk::raii::Framebuffer fb = nullptr; + vk::raii::Sampler sampler = nullptr; + struct pipeline_t + { + vk::raii::DescriptorSetLayout set_layout = nullptr; + vk::raii::PipelineLayout layout = nullptr; + vk::raii::Pipeline pipeline = nullptr; + bool used = false; // true if we need this image for blitting + }; + std::vector pipelines; + output current; + +public: + blitter(vk::raii::Device & device, size_t view); + + void reset(const to_headset::video_stream_description & desc); + void begin(vk::raii::CommandBuffer &); + void push_image(vk::raii::CommandBuffer & buf, uint8_t stream, vk::Sampler sampler, vk::ImageView image, vk::ImageLayout); + output end(vk::raii::CommandBuffer &); +}; +} // namespace wivrn diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index a289dd01..aba0b167 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -38,9 +38,6 @@ #include "utils/contains.h" #include "utils/named_thread.h" #include "utils/ranges.h" -#include "vk/pipeline.h" -#include "vk/shader.h" -#include "vk/specialization_constants.h" #include "wivrn_packets.h" #include #include @@ -155,7 +152,8 @@ static const std::array supported_depth_formats{ }; scenes::stream::stream() : - scene_impl(supported_color_formats, supported_depth_formats) + scene_impl(supported_color_formats, supported_depth_formats), + blitters{blitter(device, 0), blitter(device, 1)} { } @@ -783,103 +781,6 @@ void scenes::stream::render(const XrFrameState & frame_state) } assert(swapchain); - for (auto & i: decoders) - { - if (auto sampler = i.decoder->sampler(); sampler and not *i.blit_pipeline) - { - // Create blit pipeline - // Create VkDescriptorSetLayout with an immutable sampler - vk::DescriptorSetLayoutBinding sampler_layout_binding{ - .binding = 0, - .descriptorType = vk::DescriptorType::eCombinedImageSampler, - .descriptorCount = 1, - .stageFlags = vk::ShaderStageFlagBits::eFragment, - .pImmutableSamplers = &sampler, - }; - - vk::DescriptorSetLayoutCreateInfo layout_info{ - .bindingCount = 1, - .pBindings = &sampler_layout_binding, - }; - - i.descriptor_set_layout = vk::raii::DescriptorSetLayout(device, layout_info); - i.descriptor_set = device.allocateDescriptorSets( - vk::DescriptorSetAllocateInfo{ - .descriptorPool = *blit_descriptor_pool, - .descriptorSetCount = 1, - .pSetLayouts = &*i.descriptor_set_layout, - })[0] - .release(); - - const auto & description = i.decoder->desc(); - vk::Extent2D image_size = i.decoder->image_size(); - spdlog::info("useful size: {}x{} with buffer {}x{}", - description.width, - description.height, - image_size.width, - image_size.height); - - auto vert_constants = make_specialization_constants( - float(description.width) / image_size.width, - float(description.height) / image_size.height); - - auto frag_constants = make_specialization_constants( - VkBool32(need_srgb_conversion(guess_model())), - VkBool32(i.alpha())); - - // Create graphics pipeline - vk::raii::ShaderModule vertex_shader = load_shader(device, "stream.vert"); - vk::raii::ShaderModule fragment_shader = load_shader(device, "stream.frag"); - - vk::PipelineLayoutCreateInfo pipeline_layout_info{ - .setLayoutCount = 1, - .pSetLayouts = &*i.descriptor_set_layout, - }; - - i.blit_pipeline_layout = vk::raii::PipelineLayout(device, pipeline_layout_info); - - vk::pipeline_builder pipeline_info{ - .Stages = {{ - .stage = vk::ShaderStageFlagBits::eVertex, - .module = *vertex_shader, - .pName = "main", - .pSpecializationInfo = vert_constants, - }, - { - .stage = vk::ShaderStageFlagBits::eFragment, - .module = *fragment_shader, - .pName = "main", - .pSpecializationInfo = frag_constants, - }}, - .VertexBindingDescriptions = {}, - .VertexAttributeDescriptions = {}, - .InputAssemblyState = {{ - .topology = vk::PrimitiveTopology::eTriangleStrip, - }}, - // With vk::DynamicState::eViewport, vk::DynamicState::eScissor the number of viewports - // and scissors is still used, put a vector with one element - .Viewports = {{}}, - .Scissors = {{}}, - .RasterizationState = {{ - .polygonMode = vk::PolygonMode::eFill, - .lineWidth = 1, - }}, - .MultisampleState = {{ - .rasterizationSamples = vk::SampleCountFlagBits::e1, - }}, - .ColorBlendAttachments = { - {.colorWriteMask = i.alpha() ? vk::ColorComponentFlagBits::eA - : vk::ColorComponentFlagBits::eA | vk::ColorComponentFlagBits::eR | vk::ColorComponentFlagBits::eG | vk::ColorComponentFlagBits::eB}}, - .DynamicStates = {vk::DynamicState::eViewport, vk::DynamicState::eScissor}, - .layout = *i.blit_pipeline_layout, - .renderPass = *blit_render_pass, - .subpass = 0, - }; - - i.blit_pipeline = vk::raii::Pipeline(device, application::get_pipeline_cache(), pipeline_info); - } - } - if (device.waitForFences(*fence, VK_TRUE, UINT64_MAX) == vk::Result::eTimeout) throw std::runtime_error("Vulkan fence timeout"); @@ -931,10 +832,9 @@ void scenes::stream::render(const XrFrameState & frame_state) std::array foveation{}; bool use_alpha = false; - // Blit images from the decoders - for (auto [i, blit_handle]: std::views::zip(decoders, current_blit_handles)) + for (auto & blit_handle: current_blit_handles) { - if (not blit_handle or not *i.blit_pipeline) + if (not blit_handle) continue; blit_handle->feedback.blitted = instance.now(); @@ -948,27 +848,12 @@ void scenes::stream::render(const XrFrameState & frame_state) foveation = blit_handle->view_info.foveation; use_alpha = blit_handle->view_info.alpha; - vk::DescriptorImageInfo image_info{ - .imageView = *blit_handle->image_view, - .imageLayout = vk::ImageLayout::eGeneral, - }; - - vk::WriteDescriptorSet descriptor_write{ - .dstSet = i.descriptor_set, - .dstBinding = 0, - .dstArrayElement = 0, - .descriptorCount = 1, - .descriptorType = vk::DescriptorType::eCombinedImageSampler, - .pImageInfo = &image_info, - }; - - device.updateDescriptorSets(descriptor_write, {}); - if (*blit_handle->current_layout != vk::ImageLayout::eGeneral) + if (*blit_handle->current_layout == vk::ImageLayout::eUndefined) { vk::ImageMemoryBarrier barrier{ .srcAccessMask = vk::AccessFlagBits::eNone, .dstAccessMask = vk::AccessFlagBits::eMemoryRead, - .oldLayout = *blit_handle->current_layout, + .oldLayout = vk::ImageLayout::eUndefined, .newLayout = vk::ImageLayout::eGeneral, .image = blit_handle->image, .subresourceRange = { @@ -983,72 +868,18 @@ void scenes::stream::render(const XrFrameState & frame_state) } } - uint16_t x_offset = 0; - for (auto & out: decoder_output) + // Blit images from the decoders + std::array blitted; + for (auto [i, b]: utils::enumerate(blitters)) { - vk::Extent2D decoder_out_size{ - .width = decoder_out_image.info().extent.width, - .height = decoder_out_image.info().extent.height, - }; - command_buffer.beginRenderPass( - { - .renderPass = *blit_render_pass, - .framebuffer = *out.frame_buffer, - .renderArea = { - .offset = {0, 0}, - .extent = decoder_out_size, - }, - .clearValueCount = 0, - }, - vk::SubpassContents::eInline); - - for (const auto & decoder: decoders) + b.begin(command_buffer); + for (auto [j, blit_handle]: utils::enumerate(current_blit_handles)) { - if (not *decoder.blit_pipeline) + if (not blit_handle) continue; - if (decoder.alpha() and not use_alpha) - continue; - - command_buffer.bindPipeline(vk::PipelineBindPoint::eGraphics, *decoder.blit_pipeline); - - const auto & description = decoder.decoder->desc(); - int x0 = description.offset_x - x_offset; - int y0 = description.offset_y; - int x1 = x0 + description.width * description.subsampling; - int y1 = y0 + description.height * description.subsampling; - - vk::Viewport viewport{ - .x = (float)x0, - .y = (float)y0, - .width = float(description.width * description.subsampling), - .height = float(description.height * description.subsampling), - .minDepth = 0, - .maxDepth = 1, - }; - - x0 = std::clamp(x0, 0, decoder_out_size.width); - x1 = std::clamp(x1, 0, decoder_out_size.width); - y0 = std::clamp(y0, 0, decoder_out_size.height); - y1 = std::clamp(y1, 0, decoder_out_size.height); - - vk::Rect2D scissor{ - .offset = {.x = x0, .y = y0}, - .extent = {.width = (uint32_t)(x1 - x0), .height = (uint32_t)(y1 - y0)}, - }; - - command_buffer.setViewport(0, viewport); - command_buffer.setScissor(0, scissor); - - command_buffer.bindDescriptorSets( - vk::PipelineBindPoint::eGraphics, - *decoder.blit_pipeline_layout, - 0, - decoder.descriptor_set, - nullptr); - command_buffer.draw(3, 1, 0, 0); + b.push_image(command_buffer, j, decoders[j].decoder->sampler(), *blit_handle->image_view, *blit_handle->current_layout); } - command_buffer.endRenderPass(); - x_offset += decoder_out_size.width; + blitted[i] = b.end(command_buffer); } command_buffer.writeTimestamp(vk::PipelineStageFlagBits::eBottomOfPipe, *query_pool, 1); @@ -1059,7 +890,7 @@ void scenes::stream::render(const XrFrameState & frame_state) int32_t max_height = 0; for (size_t i = 0; i < view_count; ++i) { - extents[i] = reprojector->defoveated_size(foveation[i]); + extents[i] = defoveator->defoveated_size(foveation[i]); max_width = std::max(max_width, extents[i].width); max_height = std::max(max_height, extents[i].height); } @@ -1089,7 +920,7 @@ void scenes::stream::render(const XrFrameState & frame_state) // defoveate the image int image_index = swapchain.acquire(); swapchain.wait(); - reprojector->reproject(command_buffer, foveation, image_index); + defoveator->defoveate(command_buffer, foveation, blitted, image_index); command_buffer.writeTimestamp(vk::PipelineStageFlagBits::eBottomOfPipe, *query_pool, 2); @@ -1266,109 +1097,8 @@ void scenes::stream::setup(const to_headset::video_stream_description & descript } video_stream_description = description; - - const uint32_t video_width = description.width / view_count; - const uint32_t video_height = description.height; - - // Create renderpass - { - vk::AttachmentDescription color_desc{ - .format = vk::Format::eA8B8G8R8SrgbPack32, - .samples = vk::SampleCountFlagBits::e1, - .loadOp = vk::AttachmentLoadOp::eDontCare, - .storeOp = vk::AttachmentStoreOp::eStore, - .initialLayout = vk::ImageLayout::eUndefined, - .finalLayout = vk::ImageLayout::eShaderReadOnlyOptimal, - }; - - vk::AttachmentReference color_ref{ - .attachment = 0, - .layout = vk::ImageLayout::eColorAttachmentOptimal, - }; - - vk::SubpassDescription subpass{ - .pipelineBindPoint = vk::PipelineBindPoint::eGraphics, - }; - subpass.setColorAttachments(color_ref); - - vk::RenderPassCreateInfo renderpass_info{ - .flags = {}, - }; - renderpass_info.setAttachments(color_desc); - renderpass_info.setSubpasses(subpass); - - blit_render_pass = vk::raii::RenderPass(device, renderpass_info); - } - - // Create outputs for the decoders - { - vk::ImageCreateInfo image_info{ - .flags = vk::ImageCreateFlags{}, - .imageType = vk::ImageType::e2D, - .format = vk::Format::eA8B8G8R8SrgbPack32, - .extent = {video_width, video_height, 1}, - .mipLevels = 1, - .arrayLayers = view_count, - .samples = vk::SampleCountFlagBits::e1, - .tiling = vk::ImageTiling::eOptimal, - .usage = vk::ImageUsageFlagBits::eSampled | vk::ImageUsageFlagBits::eColorAttachment, - .sharingMode = vk::SharingMode::eExclusive, - .initialLayout = vk::ImageLayout::eUndefined, - }; - - VmaAllocationCreateInfo alloc_info{ - .requiredFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, - }; - - decoder_out_image = image_allocation{device, image_info, alloc_info}; - - vk::ImageViewCreateInfo image_view_info{ - .image = vk::Image{decoder_out_image}, - .viewType = vk::ImageViewType::e2D, - .format = image_info.format, - .components = {}, - .subresourceRange = { - .aspectMask = vk::ImageAspectFlagBits::eColor, - .baseMipLevel = 0, - .levelCount = 1, - .baseArrayLayer = 0, - .layerCount = 1, - }, - }; - - for (uint32_t view = 0; view < view_count; ++view) - { - auto & output = decoder_output[view]; - - image_view_info.subresourceRange.baseArrayLayer = view; - output.image_view = vk::raii::ImageView(device, image_view_info); - - output.frame_buffer = vk::raii::Framebuffer( - device, - vk::FramebufferCreateInfo{ - .renderPass = *blit_render_pass, - .attachmentCount = 1, - .pAttachments = &*output.image_view, - .width = image_info.extent.width, - .height = image_info.extent.height, - .layers = 1, - }); - } - } - - { - vk::DescriptorPoolSize pool_size{ - .type = vk::DescriptorType::eCombinedImageSampler, - .descriptorCount = uint32_t(2 * description.items.size()), - }; - blit_descriptor_pool = vk::raii::DescriptorPool( - device, - vk::DescriptorPoolCreateInfo{ - .maxSets = uint32_t(2 * description.items.size()), - .poolSizeCount = 1, - .pPoolSizes = &pool_size, - }); - } + for (auto & b: blitters) + b.reset(description); for (const auto & [stream_index, item]: utils::enumerate(description.items)) { @@ -1413,10 +1143,9 @@ void scenes::stream::setup_reprojection_swapchain(uint32_t swapchain_width, uint for (auto & image: swapchain.images()) swapchain_images.push_back(image.image); - reprojector.emplace( + defoveator.emplace( device, physical_device, - decoder_out_image, swapchain_images, extent, swapchain.format()); diff --git a/client/scenes/stream.h b/client/scenes/stream.h index 146b6752..64cafea0 100644 --- a/client/scenes/stream.h +++ b/client/scenes/stream.h @@ -23,8 +23,9 @@ #include "decoder/shard_accumulator.h" #include "render/imgui_impl.h" #include "scene.h" +#include "scenes/blitter.h" #include "scenes/input_profile.h" -#include "stream_reprojection.h" +#include "stream_defoveator.h" #include "utils/thread_safe.h" #include "wifi_lock.h" #include "wivrn_client.h" @@ -63,10 +64,6 @@ private: struct accumulator_images { std::unique_ptr decoder; - vk::raii::DescriptorSetLayout descriptor_set_layout = nullptr; - vk::DescriptorSet descriptor_set = nullptr; - vk::raii::PipelineLayout blit_pipeline_layout = nullptr; - vk::raii::Pipeline blit_pipeline = nullptr; // latest frames, rolling buffer std::array, image_buffer_size> latest_frames; @@ -97,19 +94,10 @@ private: std::shared_mutex decoder_mutex; std::optional video_stream_description; std::vector decoders; // Locked by decoder_mutex - vk::raii::DescriptorPool blit_descriptor_pool = nullptr; - vk::raii::RenderPass blit_render_pass = nullptr; - image_allocation decoder_out_image; + std::array blitters; - struct renderpass_output - { - vk::raii::ImageView image_view = nullptr; - vk::raii::Framebuffer frame_buffer = nullptr; - }; - std::array decoder_output; - - std::optional reprojector; + std::optional defoveator; vk::raii::Fence fence = nullptr; vk::raii::CommandBuffer command_buffer = nullptr; diff --git a/client/scenes/stream_reprojection.cpp b/client/scenes/stream_defoveator.cpp similarity index 69% rename from client/scenes/stream_reprojection.cpp rename to client/scenes/stream_defoveator.cpp index 662ad97a..e22700c3 100644 --- a/client/scenes/stream_reprojection.cpp +++ b/client/scenes/stream_defoveator.cpp @@ -17,7 +17,7 @@ * along with this program. If not, see . */ -#include "stream_reprojection.h" +#include "stream_defoveator.h" #include "application.h" #include "utils/contains.h" #include "utils/ranges.h" @@ -32,7 +32,7 @@ #include #include -struct stream_reprojection::vertex +struct stream_defoveator::vertex { // output image position alignas(8) glm::vec2 position; @@ -41,7 +41,13 @@ struct stream_reprojection::vertex int32_t shading_rate; }; -void stream_reprojection::ensure_vertices(size_t num_vertices) +struct vert_pc +{ + glm::ivec4 rgb_rect; + glm::ivec4 a_rect; +}; + +void stream_defoveator::ensure_vertices(size_t num_vertices) { vk::BufferCreateInfo create_info{ .size = num_vertices * sizeof(vertex) * view_count, @@ -60,159 +66,58 @@ void stream_reprojection::ensure_vertices(size_t num_vertices) vertices_size = num_vertices * sizeof(vertex); } -stream_reprojection::vertex * stream_reprojection::get_vertices(size_t view) +stream_defoveator::vertex * stream_defoveator::get_vertices(size_t view) { assert(buffer); return reinterpret_cast(reinterpret_cast(buffer.map()) + view * vertices_size); } -stream_reprojection::stream_reprojection( - vk::raii::Device & device, - vk::raii::PhysicalDevice & physical_device, - image_allocation & input_image, - std::vector output_images_, - vk::Extent2D output_extent, - vk::Format format) : - view_count(input_image.info().arrayLayers), - device(device), - input_extent{ - .width = input_image.info().extent.width, - .height = input_image.info().extent.height, - }, - output_images(std::move(output_images_)), - output_extent(output_extent) +stream_defoveator::pipeline_t & stream_defoveator::ensure_pipeline(size_t view, vk::Sampler rgb, vk::Sampler a) { - vk::SamplerCreateInfo sampler_info{ - .magFilter = vk::Filter::eLinear, - .minFilter = vk::Filter::eLinear, - .mipmapMode = vk::SamplerMipmapMode::eNearest, - .addressModeU = vk::SamplerAddressMode::eClampToBorder, - .addressModeV = vk::SamplerAddressMode::eClampToBorder, - .addressModeW = vk::SamplerAddressMode::eClampToBorder, - .mipLodBias = 0.0f, - .anisotropyEnable = VK_FALSE, - .maxAnisotropy = 1, - .compareEnable = VK_FALSE, - .compareOp = vk::CompareOp::eNever, - .minLod = 0.0f, - .maxLod = 0.0f, - .borderColor = vk::BorderColor::eFloatOpaqueBlack, - .unnormalizedCoordinates = VK_FALSE, - }; + auto & target = a ? pipeline_a[view] : pipeline_rgb[view]; + if (*target.pipeline) + return target; - if (utils::contains(application::get_vk_device_extensions(), VK_IMG_FILTER_CUBIC_EXTENSION_NAME)) - sampler_info.magFilter = vk::Filter::eCubicIMG; - - sampler = vk::raii::Sampler(device, sampler_info); + std::array samplers{rgb, a}; + int32_t alpha = a ? 1 : 0; // Create VkDescriptorSetLayout - vk::DescriptorSetLayoutBinding layout_binding{ - .binding = 0, - .descriptorType = vk::DescriptorType::eCombinedImageSampler, - .descriptorCount = 1, - .stageFlags = vk::ShaderStageFlagBits::eFragment, - }; - - vk::DescriptorSetLayoutCreateInfo layout_info; - layout_info.setBindings(layout_binding); - - descriptor_set_layout = vk::raii::DescriptorSetLayout(device, layout_info); - - std::array pool_size{ - vk::DescriptorPoolSize{ - .type = vk::DescriptorType::eCombinedImageSampler, - .descriptorCount = (uint32_t)view_count, + std::array layout_binding{ + vk::DescriptorSetLayoutBinding{ + .binding = 0, + .descriptorType = vk::DescriptorType::eCombinedImageSampler, + .descriptorCount = uint32_t(alpha + 1), + .stageFlags = vk::ShaderStageFlagBits::eFragment, + .pImmutableSamplers = samplers.data(), }, }; - vk::DescriptorPoolCreateInfo pool_info{ - .maxSets = view_count, - .poolSizeCount = pool_size.size(), - .pPoolSizes = pool_size.data(), + target.descriptor_set_layout = device.createDescriptorSetLayout(vk::DescriptorSetLayoutCreateInfo{ + .bindingCount = layout_binding.size(), + .pBindings = layout_binding.data(), + }); + + target.ds = device.allocateDescriptorSets(vk::DescriptorSetAllocateInfo{ + .descriptorPool = *ds_pool, + .descriptorSetCount = 1, + .pSetLayouts = &*target.descriptor_set_layout, + })[0] + .release(); + + // pipeline layout + vk::PushConstantRange pc_range{ + .stageFlags = vk::ShaderStageFlagBits::eVertex, + .size = sizeof(vert_pc), }; - descriptor_pool = vk::raii::DescriptorPool(device, pool_info); - - // Create image views and descriptor sets - for (uint32_t view = 0; view < view_count; ++view) - { - vk::ImageViewCreateInfo iv_info{ - .image = input_image, - .viewType = vk::ImageViewType::e2D, - .format = input_image.info().format, - .components = { - .r = vk::ComponentSwizzle::eIdentity, - .g = vk::ComponentSwizzle::eIdentity, - .b = vk::ComponentSwizzle::eIdentity, - .a = vk::ComponentSwizzle::eIdentity, - }, - .subresourceRange = { - .aspectMask = vk::ImageAspectFlagBits::eColor, - .baseMipLevel = 0, - .levelCount = 1, - .baseArrayLayer = view, - .layerCount = 1, - }, - }; - - vk::ImageView input_image_view = *input_image_views.emplace_back(device, iv_info); - - vk::DescriptorSetAllocateInfo ds_info{ - .descriptorPool = *descriptor_pool, - .descriptorSetCount = 1, - .pSetLayouts = &*descriptor_set_layout, - }; - - auto descriptor_set = descriptor_sets.emplace_back(device.allocateDescriptorSets(ds_info)[0].release()); - - vk::DescriptorImageInfo image_info{ - .sampler = *sampler, - .imageView = input_image_view, - .imageLayout = vk::ImageLayout::eShaderReadOnlyOptimal, - }; - - device.updateDescriptorSets( - vk::WriteDescriptorSet{ - .dstSet = descriptor_set, - .dstBinding = 0, - .dstArrayElement = 0, - .descriptorCount = 1, - .descriptorType = vk::DescriptorType::eCombinedImageSampler, - .pImageInfo = &image_info, - }, - {}); - } - - // Create renderpass - vk::AttachmentReference color_ref{ - .attachment = 0, - .layout = vk::ImageLayout::eColorAttachmentOptimal, + vk::PipelineLayoutCreateInfo pipeline_layout_info{ + .setLayoutCount = 1, + .pSetLayouts = &*target.descriptor_set_layout, + .pushConstantRangeCount = 1, + .pPushConstantRanges = &pc_range, }; - vk::AttachmentDescription attachment{ - .format = format, - .samples = vk::SampleCountFlagBits::e1, - .loadOp = vk::AttachmentLoadOp::eDontCare, - .storeOp = vk::AttachmentStoreOp::eStore, - .initialLayout = vk::ImageLayout::eColorAttachmentOptimal, - .finalLayout = vk::ImageLayout::eColorAttachmentOptimal, - }; - - vk::SubpassDescription subpass{ - .pipelineBindPoint = vk::PipelineBindPoint::eGraphics, - }; - subpass.setColorAttachments(color_ref); - - vk::StructureChain renderpass_info{ - vk::RenderPassCreateInfo{ - .attachmentCount = 1, - .pAttachments = &attachment, - .subpassCount = 1, - .pSubpasses = &subpass, - }, - }; - - renderpass = vk::raii::RenderPass(device, renderpass_info.get()); + target.layout = vk::raii::PipelineLayout(device, pipeline_layout_info); const auto & vk_device_extensions = application::get_vk_device_extensions(); bool fragment_shading_rate = false; @@ -231,6 +136,8 @@ stream_reprojection::stream_reprojection( // Fragment shader +#if 0 +FIXME: SGSR const configuration::sgsr_settings & sgsr = application::get_config().sgsr; auto sgsr_specialization = make_specialization_constants( VkBool32(sgsr.use_edge_direction), @@ -238,12 +145,12 @@ stream_reprojection::stream_reprojection( float(sgsr.edge_sharpness)); vk::raii::ShaderModule fragment_shader = load_shader(device, sgsr.enabled ? "reprojection_sgsr.frag" : "reprojection.frag"); - - // Create graphics pipeline - vk::PipelineLayoutCreateInfo pipeline_layout_info; - pipeline_layout_info.setSetLayouts(*descriptor_set_layout); - - layout = vk::raii::PipelineLayout(device, pipeline_layout_info); +#else + auto specialization = make_specialization_constants( + int32_t(alpha), + VkBool32(need_srgb_conversion(guess_model()))); + vk::raii::ShaderModule fragment_shader = load_shader(device, "reprojection.frag"); +#endif vk::pipeline_builder pipeline_info_builder{ .flags = {}, @@ -257,7 +164,7 @@ stream_reprojection::stream_reprojection( .stage = vk::ShaderStageFlagBits::eFragment, .module = *fragment_shader, .pName = "main", - .pSpecializationInfo = sgsr.enabled ? sgsr_specialization.info() : nullptr, + .pSpecializationInfo = specialization, }, }, .VertexBindingDescriptions = { @@ -313,7 +220,7 @@ stream_reprojection::stream_reprojection( .ColorBlendAttachments = {{ .colorWriteMask = vk::ColorComponentFlagBits::eR | vk::ColorComponentFlagBits::eG | vk::ColorComponentFlagBits::eB | vk::ColorComponentFlagBits::eA, }}, - .layout = *layout, + .layout = *target.layout, .renderPass = *renderpass, .subpass = 0, }; @@ -360,7 +267,61 @@ stream_reprojection::stream_reprojection( } } - pipeline = vk::raii::Pipeline(device, application::get_pipeline_cache(), pipeline_info); + target.pipeline = device.createGraphicsPipeline(application::get_pipeline_cache(), pipeline_info); + return target; +} + +stream_defoveator::stream_defoveator( + vk::raii::Device & device, + vk::raii::PhysicalDevice & physical_device, + std::vector output_images_, + vk::Extent2D output_extent, + vk::Format format) : + device(device), + physical_device(physical_device), + output_images(std::move(output_images_)), + output_extent(output_extent) +{ + // Create renderpass + vk::AttachmentDescription attachment{ + .format = format, + .samples = vk::SampleCountFlagBits::e1, + .loadOp = vk::AttachmentLoadOp::eDontCare, + .storeOp = vk::AttachmentStoreOp::eStore, + .finalLayout = vk::ImageLayout::eColorAttachmentOptimal, + }; + + vk::AttachmentReference color_ref{ + .attachment = 0, + .layout = vk::ImageLayout::eColorAttachmentOptimal, + }; + vk::SubpassDescription subpass{ + .pipelineBindPoint = vk::PipelineBindPoint::eGraphics, + .colorAttachmentCount = 1, + .pColorAttachments = &color_ref, + }; + + vk::StructureChain renderpass_info{ + vk::RenderPassCreateInfo{ + .attachmentCount = 1, + .pAttachments = &attachment, + .subpassCount = 1, + .pSubpasses = &subpass, + }, + }; + + renderpass = vk::raii::RenderPass(device, renderpass_info.get()); + + vk::DescriptorPoolSize pool_size{ + .type = vk::DescriptorType::eCombinedImageSampler, + .descriptorCount = view_count * 2, + }; + + ds_pool = device.createDescriptorPool(vk::DescriptorPoolCreateInfo{ + .maxSets = view_count * 2, + .poolSizeCount = 1, + .pPoolSizes = &pool_size, + }); // Create image views and framebuffers output_image_views.reserve(output_images.size() * view_count); @@ -413,7 +374,7 @@ static size_t required_vertices(const wivrn::to_headset::foveation_parameter & p return (2 * (p.x.size() + 1) + 1) * p.y.size(); } -int32_t stream_reprojection::shading_rate(int pixels_x, int pixels_y) +int32_t stream_defoveator::shading_rate(int pixels_x, int pixels_y) { int x = 0; if (pixels_x >= 2) @@ -428,9 +389,10 @@ int32_t stream_reprojection::shading_rate(int pixels_x, int pixels_y) return fragment_sizes[x][y]; } -void stream_reprojection::reproject(vk::raii::CommandBuffer & command_buffer, - const std::array & foveation, - int destination) +void stream_defoveator::defoveate(vk::raii::CommandBuffer & command_buffer, + const std::array & foveation, + std::span inputs, + int destination) { if (destination < 0 || destination >= (int)output_images.size()) throw std::runtime_error("Invalid destination image index"); @@ -447,8 +409,6 @@ void stream_reprojection::reproject(vk::raii::CommandBuffer & command_buffer, const int n_ratio_x = (px.size() - 1) / 2; glm::vec2 in(0), out(0); // pixel coordinates - glm::vec2 in_pixel_size(1. / input_extent.width, - 1. / input_extent.height); glm::vec2 out_pixel_size(2. / output_extent.width, 2. / output_extent.height); for (auto [iy, n_out_y]: utils::enumerate_range(py)) @@ -462,12 +422,12 @@ void stream_reprojection::reproject(vk::raii::CommandBuffer & command_buffer, const int ratio_x = std::abs(n_ratio_x - int(ix)) + 1; *vertices++ = { .position = out * out_pixel_size - glm::vec2(1), - .uv = in * in_pixel_size, + .uv = in, .shading_rate = shading_rate(ratio_x, ratio_y), }; *vertices++ = { .position = (out + glm::vec2(0, n_out_y * ratio_y)) * out_pixel_size - glm::vec2(1), - .uv = (in + glm::vec2(0, n_out_y)) * in_pixel_size, + .uv = (in + glm::vec2(0, n_out_y)), .shading_rate = shading_rate(ratio_x, ratio_y), }; in.x += n_out_x; @@ -475,40 +435,21 @@ void stream_reprojection::reproject(vk::raii::CommandBuffer & command_buffer, } *vertices++ = { .position = out * out_pixel_size - glm::vec2(1), - .uv = in * in_pixel_size, + .uv = in, }; in.y += n_out_y; out.y += n_out_y * ratio_y; *vertices++ = { .position = out * out_pixel_size - glm::vec2(1), - .uv = in * in_pixel_size, + .uv = in, }; *vertices++ = { .position = out * out_pixel_size - glm::vec2(1), - .uv = in * in_pixel_size, + .uv = in, }; } } - command_buffer.pipelineBarrier( - vk::PipelineStageFlagBits::eTopOfPipe, - vk::PipelineStageFlagBits::eColorAttachmentOutput, - {}, - {}, - {}, - vk::ImageMemoryBarrier{ - .srcAccessMask = {}, - .dstAccessMask = vk::AccessFlagBits::eColorAttachmentWrite, - .oldLayout = vk::ImageLayout::eUndefined, - .newLayout = vk::ImageLayout::eColorAttachmentOptimal, - .image = output_images[destination], - .subresourceRange = { - .aspectMask = vk::ImageAspectFlagBits::eColor, - .levelCount = 1, - .layerCount = view_count, - }, - }); - for (size_t view = 0; view < view_count; ++view) { vk::RenderPassBeginInfo begin_info{ @@ -520,9 +461,49 @@ void stream_reprojection::reproject(vk::raii::CommandBuffer & command_buffer, }, }; + const auto & input = inputs[view]; + auto & pipeline = ensure_pipeline(view, input.sampler_rgb, input.sampler_a); + + std::array image_info{ + vk::DescriptorImageInfo{ + .sampler = input.sampler_rgb, + .imageView = input.rgb, + .imageLayout = input.layout_rgb, + }, + vk::DescriptorImageInfo{ + .sampler = input.sampler_a, + .imageView = input.a, + .imageLayout = input.layout_a, + }, + }; + + std::array descriptor_writes{ + vk::WriteDescriptorSet{ + .dstSet = pipeline.ds, + .dstBinding = 0, + .descriptorCount = input.sampler_a ? 2u : 1u, + .descriptorType = vk::DescriptorType::eCombinedImageSampler, + .pImageInfo = image_info.data(), + }, + }; + + vert_pc pc{ + .rgb_rect = glm::ivec4(input.rect_rgb.offset.x, + input.rect_rgb.offset.y, + input.rect_rgb.extent.width, + input.rect_rgb.extent.height), + .a_rect = glm::ivec4(input.rect_a.offset.x, + input.rect_a.offset.y, + input.rect_a.extent.width, + input.rect_a.extent.height), + }; + + device.updateDescriptorSets(descriptor_writes, {}); + command_buffer.beginRenderPass(begin_info, vk::SubpassContents::eInline); - command_buffer.bindPipeline(vk::PipelineBindPoint::eGraphics, *pipeline); - command_buffer.bindDescriptorSets(vk::PipelineBindPoint::eGraphics, *layout, 0, descriptor_sets[view], {}); + command_buffer.bindPipeline(vk::PipelineBindPoint::eGraphics, *pipeline.pipeline); + command_buffer.bindDescriptorSets(vk::PipelineBindPoint::eGraphics, *pipeline.layout, 0, pipeline.ds, {}); + command_buffer.pushConstants(*pipeline.layout, vk::ShaderStageFlagBits::eVertex, 0, pc); command_buffer.bindVertexBuffers(0, vk::Buffer(buffer), vertices_size * view); command_buffer.draw(required_vertices(foveation[view]), 1, 0, 0); command_buffer.endRenderPass(); @@ -542,7 +523,7 @@ static uint16_t count_pixels(const std::vector & param) return res; } -XrExtent2Di stream_reprojection::defoveated_size(const wivrn::to_headset::foveation_parameter & view) const +XrExtent2Di stream_defoveator::defoveated_size(const wivrn::to_headset::foveation_parameter & view) const { return { count_pixels(view.x), diff --git a/client/scenes/stream_reprojection.h b/client/scenes/stream_defoveator.h similarity index 75% rename from client/scenes/stream_reprojection.h rename to client/scenes/stream_defoveator.h index de4cc829..e14affc1 100644 --- a/client/scenes/stream_reprojection.h +++ b/client/scenes/stream_defoveator.h @@ -19,27 +19,35 @@ #pragma once +#include "blitter.h" #include "vk/allocation.h" #include "wivrn_packets.h" #include #include -class stream_reprojection +class stream_defoveator { struct vertex; - const uint32_t view_count; + static const uint32_t view_count = 2; // Vertex buffer buffer_allocation buffer; size_t vertices_size = 0; vk::raii::Device & device; + vk::raii::PhysicalDevice & physical_device; // Graphic pipeline - vk::raii::DescriptorSetLayout descriptor_set_layout = nullptr; - vk::raii::DescriptorPool descriptor_pool = nullptr; - vk::raii::PipelineLayout layout = nullptr; vk::raii::RenderPass renderpass = nullptr; - vk::raii::Pipeline pipeline = nullptr; + vk::raii::DescriptorPool ds_pool = nullptr; + struct pipeline_t + { + vk::raii::DescriptorSetLayout descriptor_set_layout = nullptr; + vk::DescriptorSet ds; + vk::raii::PipelineLayout layout = nullptr; + vk::raii::Pipeline pipeline = nullptr; + }; + pipeline_t pipeline_rgb[view_count]; + pipeline_t pipeline_a[view_count]; // Allowed sizes for variable shading rate // indices are for x, y @@ -48,12 +56,6 @@ class stream_reprojection // 2 is 4 pixels or more int32_t fragment_sizes[3][3] = {}; - // Source image - vk::raii::Sampler sampler = nullptr; - std::vector input_image_views; - std::vector descriptor_sets; - vk::Extent2D input_extent; - // Destination images std::vector output_images; std::vector output_image_views; @@ -64,21 +66,22 @@ class stream_reprojection vertex * get_vertices(size_t view); int32_t shading_rate(int pixels_x, int pixels_y); + pipeline_t & ensure_pipeline(size_t view, vk::Sampler rgb, vk::Sampler a); public: - stream_reprojection( + stream_defoveator( vk::raii::Device & device, vk::raii::PhysicalDevice & physical_device, - image_allocation & input_image, std::vector output_images, vk::Extent2D output_extent, vk::Format format); - stream_reprojection(const stream_reprojection &) = delete; + stream_defoveator(const stream_defoveator &) = delete; - void reproject( + void defoveate( vk::raii::CommandBuffer & command_buffer, const std::array & foveation, + std::span inputs, int destination); XrExtent2Di defoveated_size(const wivrn::to_headset::foveation_parameter &) const; diff --git a/client/shaders/reprojection.glsl.inc b/client/shaders/reprojection.glsl.inc index b82b7b4f..3c99775f 100644 --- a/client/shaders/reprojection.glsl.inc +++ b/client/shaders/reprojection.glsl.inc @@ -28,12 +28,19 @@ layout (location = 0) in vec2 vPosition; layout (location = 1) in vec2 vUV; layout (location = 2) in int vShadingRate; -layout(location = 0) out vec2 outUV; +layout(location = 0) out vec4 outUV; + +layout(push_constant) uniform pc +{ + ivec4 rgb_rect; + ivec4 a_rect; +}; void main() { gl_Position = vec4(vPosition, 0.0, 1.0); - outUV = vUV; + outUV.xy = (vUV + rgb_rect.xy) / rgb_rect.zw; + outUV.zw = (vUV + a_rect.xy) / a_rect.zw; #if VSR gl_PrimitiveShadingRateEXT = vShadingRate; #endif @@ -42,15 +49,42 @@ void main() #ifdef FRAG_SHADER -layout(set = 0, binding = 0) uniform sampler2D texSampler; +layout(constant_id = 0) const int alpha = 1; +layout(constant_id = 1) const bool do_srgb = false; -layout(location = 0) in vec2 inUV; +layout(set = 0, binding = 0) uniform sampler2D rgb[alpha + 1]; + +layout(location = 0) in vec4 inUV; layout(location = 0) out vec4 outColor; +float sRGB_to_linear(float x) +{ + if (x <= 0.04045) + return x / 12.92; + return pow((x + 0.055) / 1.055, 2.4); +} + +vec4 sRGB_to_linear_rgba(vec4 x) +{ + return vec4( + sRGB_to_linear(x.r), + sRGB_to_linear(x.g), + sRGB_to_linear(x.b), + x.a); +} + void main() { - outColor = texture(texSampler, inUV).rgba; + if (alpha == 1) + outColor = vec4(texture(rgb[0], inUV.xy).rgb, texture(rgb[1], inUV.zw).r); + else + outColor = texture(rgb[0], inUV.xy).rgba; + + if (do_srgb) + { + outColor = sRGB_to_linear_rgba(outColor); + } } #endif diff --git a/client/shaders/stream.glsl b/client/shaders/stream.glsl index 84b4ca78..c07b0953 100644 --- a/client/shaders/stream.glsl +++ b/client/shaders/stream.glsl @@ -45,40 +45,16 @@ void main() #ifdef FRAG_SHADER layout(binding = 0) uniform sampler2D texSampler; -layout(constant_id = 0) const bool do_srgb = true; -layout(constant_id = 1) const bool is_alpha = false; +layout(constant_id = 0) const bool is_alpha = false; layout(location = 0) in vec2 inUV; layout(location = 0) out vec4 outColor; -float sRGB_to_linear(float x) -{ - if (x <= 0.04045) - return x / 12.92; - return pow((x + 0.055) / 1.055, 2.4); -} - -vec4 sRGB_to_linear_rgba(vec4 x) -{ - return vec4( - sRGB_to_linear(x.r), - sRGB_to_linear(x.g), - sRGB_to_linear(x.b), - x.r); -} - void main() { - if (do_srgb) - { - outColor = sRGB_to_linear_rgba(texture(texSampler, inUV)); - } - else - { - outColor = texture(texSampler, inUV); - outColor.a = outColor.r; - } + outColor = texture(texSampler, inUV); + outColor.a = outColor.r; if (!is_alpha) { outColor.a = 1; From 9186bafd288847c8c1577e0af11c9d8cd4ee1ba5 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 4 Sep 2025 10:38:21 +0200 Subject: [PATCH 10/52] Pack shading rate in position variable --- client/scenes/stream_defoveator.cpp | 27 ++++++++++----------------- client/scenes/stream_defoveator.h | 4 ++-- client/shaders/reprojection.glsl.inc | 12 +++++++----- 3 files changed, 19 insertions(+), 24 deletions(-) diff --git a/client/scenes/stream_defoveator.cpp b/client/scenes/stream_defoveator.cpp index e22700c3..3f4375fb 100644 --- a/client/scenes/stream_defoveator.cpp +++ b/client/scenes/stream_defoveator.cpp @@ -36,9 +36,8 @@ struct stream_defoveator::vertex { // output image position alignas(8) glm::vec2 position; - // input texture coordinates - alignas(8) glm::vec2 uv; - int32_t shading_rate; + // input texture coordinates + shading rate in the first 4 bits of x + alignas(8) glm::uvec2 uv; }; struct vert_pc @@ -184,15 +183,9 @@ FIXME: SGSR { .location = 1, .binding = 0, - .format = vk::Format::eR32G32Sfloat, + .format = vk::Format::eR32G32Uint, .offset = offsetof(vertex, uv), }, - { - .location = 2, - .binding = 0, - .format = vk::Format::eR32Sint, - .offset = offsetof(vertex, shading_rate), - }, }, .InputAssemblyState = {{ .topology = vk::PrimitiveTopology::eTriangleStrip, @@ -260,7 +253,7 @@ FIXME: SGSR for (int x = std::bit_width(rate.fragmentSize.width) - 1; x < 3; ++x) { if (fragment_sizes[x][y] == 0) - fragment_sizes[x][y] = flags; + fragment_sizes[x][y] = flags << 28; } } } @@ -374,7 +367,7 @@ static size_t required_vertices(const wivrn::to_headset::foveation_parameter & p return (2 * (p.x.size() + 1) + 1) * p.y.size(); } -int32_t stream_defoveator::shading_rate(int pixels_x, int pixels_y) +uint32_t stream_defoveator::shading_rate(int pixels_x, int pixels_y) { int x = 0; if (pixels_x >= 2) @@ -408,7 +401,8 @@ void stream_defoveator::defoveate(vk::raii::CommandBuffer & command_buffer, const int n_ratio_y = (py.size() - 1) / 2; const int n_ratio_x = (px.size() - 1) / 2; - glm::vec2 in(0), out(0); // pixel coordinates + glm::uvec2 in(0); + glm::vec2 out(0); // pixel coordinates glm::vec2 out_pixel_size(2. / output_extent.width, 2. / output_extent.height); for (auto [iy, n_out_y]: utils::enumerate_range(py)) @@ -420,15 +414,14 @@ void stream_defoveator::defoveate(vk::raii::CommandBuffer & command_buffer, for (auto [ix, n_out_x]: utils::enumerate_range(px)) { const int ratio_x = std::abs(n_ratio_x - int(ix)) + 1; + glm::uvec2 rate = glm::uvec2(shading_rate(ratio_x, ratio_y), 0); *vertices++ = { .position = out * out_pixel_size - glm::vec2(1), - .uv = in, - .shading_rate = shading_rate(ratio_x, ratio_y), + .uv = in | rate, }; *vertices++ = { .position = (out + glm::vec2(0, n_out_y * ratio_y)) * out_pixel_size - glm::vec2(1), - .uv = (in + glm::vec2(0, n_out_y)), - .shading_rate = shading_rate(ratio_x, ratio_y), + .uv = (in + glm::uvec2(0, n_out_y)) | rate, }; in.x += n_out_x; out.x += n_out_x * ratio_x; diff --git a/client/scenes/stream_defoveator.h b/client/scenes/stream_defoveator.h index e14affc1..afcd691e 100644 --- a/client/scenes/stream_defoveator.h +++ b/client/scenes/stream_defoveator.h @@ -54,7 +54,7 @@ class stream_defoveator // 0 is 1 pixel // 1 is 2 or 3 pixels // 2 is 4 pixels or more - int32_t fragment_sizes[3][3] = {}; + uint32_t fragment_sizes[3][3] = {}; // Destination images std::vector output_images; @@ -65,7 +65,7 @@ class stream_defoveator void ensure_vertices(size_t num_vertices); vertex * get_vertices(size_t view); - int32_t shading_rate(int pixels_x, int pixels_y); + uint32_t shading_rate(int pixels_x, int pixels_y); pipeline_t & ensure_pipeline(size_t view, vk::Sampler rgb, vk::Sampler a); public: diff --git a/client/shaders/reprojection.glsl.inc b/client/shaders/reprojection.glsl.inc index 3c99775f..fae06d9a 100644 --- a/client/shaders/reprojection.glsl.inc +++ b/client/shaders/reprojection.glsl.inc @@ -25,8 +25,7 @@ layout (location = 0) in vec2 vPosition; -layout (location = 1) in vec2 vUV; -layout (location = 2) in int vShadingRate; +layout (location = 1) in uvec2 vUV; layout(location = 0) out vec4 outUV; @@ -39,11 +38,14 @@ layout(push_constant) uniform pc void main() { gl_Position = vec4(vPosition, 0.0, 1.0); - outUV.xy = (vUV + rgb_rect.xy) / rgb_rect.zw; - outUV.zw = (vUV + a_rect.xy) / a_rect.zw; #if VSR - gl_PrimitiveShadingRateEXT = vShadingRate; + gl_PrimitiveShadingRateEXT = int(bitfieldExtract(vUV.x, 28, 4)); + vec2 uv = bitfieldInsert(vUV, uvec2(0), 28, 4); +#else + vec2 uv = vUV; #endif + outUV.xy = (uv + rgb_rect.xy) / rgb_rect.zw; + outUV.zw = (uv + a_rect.xy) / a_rect.zw; } #endif From c80ba550eb0501ff533df4b8a8f28e779948491b Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 4 Sep 2025 13:53:57 +0200 Subject: [PATCH 11/52] Fix defoveator descriptor pool size --- client/scenes/stream_defoveator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scenes/stream_defoveator.cpp b/client/scenes/stream_defoveator.cpp index 3f4375fb..5343a4ee 100644 --- a/client/scenes/stream_defoveator.cpp +++ b/client/scenes/stream_defoveator.cpp @@ -307,7 +307,7 @@ stream_defoveator::stream_defoveator( vk::DescriptorPoolSize pool_size{ .type = vk::DescriptorType::eCombinedImageSampler, - .descriptorCount = view_count * 2, + .descriptorCount = view_count * 4, }; ds_pool = device.createDescriptorPool(vk::DescriptorPoolCreateInfo{ From cc5990a513f7df4054e1897ccfc4df841f2dda08 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 3 Sep 2025 19:24:19 +0200 Subject: [PATCH 12/52] Run spirv-opt when compiling shaders --- CMakeLists.txt | 1 + client/CMakeLists.txt | 2 +- client/render/scene_renderer.cpp | 3 -- client/vk/shader.cpp | 3 +- client/vk/shader.h | 3 -- cmake/CompileGLSL.cmake | 63 +++++++++++++++++++++++++++----- flake.nix | 4 ++ 7 files changed, 62 insertions(+), 17 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d8d427a..354b164a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,7 @@ 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_USE_NVENC "Enable nvenc (Nvidia) hardware encoder" ON) option(WIVRN_USE_VAAPI "Enable vaapi (AMD/Intel) hardware encoder" ON) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 1311f36d..dbc4e89a 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -89,7 +89,7 @@ file(GLOB LOCAL_SOURCE CONFIGURE_DEPENDS file(GLOB_RECURSE VULKAN_SHADERS CONFIGURE_DEPENDS "*.glsl") target_sources(wivrn PRIVATE ${LOCAL_SOURCE} ${VULKAN_SHADERS}) -wivrn_compile_glsl(wivrn ${VULKAN_SHADERS}) +wivrn_compile_glsl(wivrn SHADERS ${VULKAN_SHADERS}) target_link_libraries(wivrn Boost::locale diff --git a/client/render/scene_renderer.cpp b/client/render/scene_renderer.cpp index da28ec8f..2074e5aa 100644 --- a/client/render/scene_renderer.cpp +++ b/client/render/scene_renderer.cpp @@ -35,7 +35,6 @@ #include #include #include -#include #include #include #include @@ -43,8 +42,6 @@ #include #include -extern const std::map> shaders; - // TODO move in lobby? vk::Format scene_renderer::find_usable_image_format( vk::raii::PhysicalDevice physical_device, diff --git a/client/vk/shader.cpp b/client/vk/shader.cpp index b7d5d89d..a7fef667 100644 --- a/client/vk/shader.cpp +++ b/client/vk/shader.cpp @@ -18,12 +18,13 @@ */ #include "shader.h" +#include "wivrn_shaders.h" vk::raii::ShaderModule load_shader(vk::raii::Device & device, const std::vector & spirv) { vk::ShaderModuleCreateInfo create_info{ .codeSize = spirv.size() * sizeof(uint32_t), - .pCode = data(spirv), + .pCode = spirv.data(), }; return vk::raii::ShaderModule{device, create_info}; diff --git a/client/vk/shader.h b/client/vk/shader.h index ad0fe78b..e0b196f5 100644 --- a/client/vk/shader.h +++ b/client/vk/shader.h @@ -19,12 +19,9 @@ #pragma once -#include #include #include #include -extern const std::map> shaders; - vk::raii::ShaderModule load_shader(vk::raii::Device & device, const std::vector & spirv); vk::raii::ShaderModule load_shader(vk::raii::Device & device, const std::string & name); diff --git a/cmake/CompileGLSL.cmake b/cmake/CompileGLSL.cmake index 4e05cf80..5e4ceca1 100644 --- a/cmake/CompileGLSL.cmake +++ b/cmake/CompileGLSL.cmake @@ -1,5 +1,8 @@ +set(_THIS_MODULE_BASE_DIR "${CMAKE_CURRENT_LIST_DIR}") -function(compile_glsl_aux shader_stage shader_name glsl_filename output) +find_program(HEXDUMP hexdump REQUIRED) + +function(compile_glsl_aux shader_stage shader_name glsl_filename output target_env) string(TOUPPER ${shader_stage} shader_stage_upper) cmake_path(REPLACE_FILENAME output "${shader_name}.spv" OUTPUT_VARIABLE SPV_FILE) @@ -11,11 +14,29 @@ function(compile_glsl_aux shader_stage shader_name glsl_filename output) ") add_custom_command( - OUTPUT "${SPV_FILE}" - COMMAND Vulkan::glslangValidator -V -S ${shader_stage} -D${shader_stage_upper}_SHADER ${in_file} -x -o "${SPV_FILE}" + 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" DEPENDS "${glsl_filename}" VERBATIM ) + if (WIVRN_OPTIMIZE_SHADERS) + add_custom_command( + OUTPUT "${SPV_FILE}-opt" + COMMAND spirv-opt --target-env=${target_env} -O "${SPV_FILE}-nopt" -o "${SPV_FILE}-opt" + DEPENDS "${SPV_FILE}-nopt" + VERBATIM + ) + set(_spv "${SPV_FILE}-opt") + else() + set(_spv "${SPV_FILE}-nopt") + endif() + set(_format "/4 \"0x%02X, \"") + add_custom_command( + OUTPUT "${SPV_FILE}" + COMMAND "${HEXDUMP}" -ve "${_format}" ${_spv} > "${SPV_FILE}" + DEPENDS "${_spv}" + VERBATIM + ) get_source_file_property(deps "${output}" OBJECT_DEPENDS) if (deps) @@ -30,33 +51,57 @@ endfunction() function(wivrn_compile_glsl target) + set(options) + set(oneValueArgs TARGET_ENV NAMESPACE) + set(multiValueArgs SHADERS) + cmake_parse_arguments(_args "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) + + if(NOT _args_TARGET_ENV) + set(_args_TARGET_ENV vulkan1.0) + endif() + + if (_args_NAMESPACE) + set(_namespace_begin "namespace ${_args_NAMESPACE} {") + set(_namespace_end "}") + endif() cmake_path(APPEND OUTPUT "${CMAKE_CURRENT_BINARY_DIR}" "${target}_shaders.cpp") + file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/${target}_shaders.h" "\ +#include +#include +#include +#include +${_namespace_begin} +extern const std::map> shaders; +${_namespace_end}") + file(WRITE ${OUTPUT} "\ #include #include #include #include +${_namespace_begin} extern const std::map> shaders = { ") - foreach(in_file IN LISTS ARGN) - if (in_file MATCHES "\.\(vert|frag|tesc|tese|geom|comp\)\.glsl$") + foreach(in_file IN LISTS _args_SHADERS) + if (in_file MATCHES "\.\(vert|frag|tesc|tese|geom|comp\)\(\.glsl\)?$") set(shader_stage ${CMAKE_MATCH_1}) cmake_path(GET in_file STEM LAST_ONLY shader_name) - compile_glsl_aux(${shader_stage} ${shader_name} ${in_file} ${OUTPUT}) + compile_glsl_aux(${shader_stage} ${shader_name} ${in_file} ${OUTPUT} ${_args_TARGET_ENV}) else() cmake_path(GET in_file STEM LAST_ONLY shader_name) - compile_glsl_aux(vert ${shader_name}.vert ${in_file} ${OUTPUT}) - compile_glsl_aux(frag ${shader_name}.frag ${in_file} ${OUTPUT}) + compile_glsl_aux(vert ${shader_name}.vert ${in_file} ${OUTPUT} ${_args_TARGET_ENV}) + compile_glsl_aux(frag ${shader_name}.frag ${in_file} ${OUTPUT} ${_args_TARGET_ENV}) endif() endforeach() - file(APPEND ${OUTPUT} "};") + file(APPEND ${OUTPUT} "};${_namespace_end}") target_sources(${target} PRIVATE ${OUTPUT}) + target_include_directories(${target} PRIVATE "${CMAKE_CURRENT_BINARY_DIR}") endfunction() diff --git a/flake.nix b/flake.nix index b46a6f03..1415ce51 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,9 @@ pkgs.libpng pkgs.libarchive ]; + extraNativeBuildInputs = [ + pkgs.util-linux + ]; package = pkgs.enableDebugging (pkgs.wivrn.overrideAttrs (finalAttrs: oldAttrs: { src = ./.; @@ -46,6 +49,7 @@ }; buildInputs = oldAttrs.buildInputs ++ extraBuildInputs; + nativeBuildInputs = oldAttrs.nativeBuildInputs ++ extraNativeBuildInputs; dontWrapQtApps = true; From 6b99cf4cc34d7977074479d28fd20e558af04ef0 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 3 Sep 2025 11:36:42 +0200 Subject: [PATCH 13/52] Use inheritance for decoder implementations --- client/decoder/android/android_decoder.cpp | 45 ++++++++----- client/decoder/android/android_decoder.h | 45 ++----------- client/decoder/decoder.cpp | 67 ++++++++++++++++++++ client/decoder/decoder.h | 74 ++++++++++++++++++++++ client/decoder/ffmpeg/ffmpeg_decoder.cpp | 63 ++++++++++++------ client/decoder/ffmpeg/ffmpeg_decoder.h | 38 ++--------- client/decoder/shard_accumulator.cpp | 4 +- client/decoder/shard_accumulator.h | 35 ++++------ client/scenes/stream.cpp | 8 +-- 9 files changed, 249 insertions(+), 130 deletions(-) create mode 100644 client/decoder/decoder.cpp create mode 100644 client/decoder/decoder.h diff --git a/client/decoder/android/android_decoder.cpp b/client/decoder/android/android_decoder.cpp index 2a091ad4..0d5f4217 100644 --- a/client/decoder/android/android_decoder.cpp +++ b/client/decoder/android/android_decoder.cpp @@ -61,6 +61,7 @@ const char * mime(wivrn::video_codec codec) return "video/av01"; } assert(false); + __builtin_unreachable(); } void check(media_status_t status, const char * msg) @@ -72,6 +73,26 @@ void check(media_status_t status, const char * msg) } } +struct android_blit_handle : public decoder::blit_handle +{ + std::shared_ptr vk_data; + std::shared_ptr image_reader; + AImage_ptr aimage; + android_blit_handle( + const wivrn::from_headset::feedback & feedback, + const wivrn::to_headset::video_stream_data_shard::view_info_t & view_info, + vk::ImageView image_view, + vk::Image image, + vk::ImageLayout & current_layout, + decltype(vk_data) vk_data, + decltype(image_reader) image_reader, + decltype(aimage) aimage) : + decoder::blit_handle(feedback, view_info, image_view, image, current_layout), + vk_data(vk_data), + image_reader(image_reader), + aimage(std::move(aimage)) {} +}; + } // namespace namespace wivrn::android @@ -85,7 +106,7 @@ decoder::decoder( uint8_t stream_index, std::weak_ptr weak_scene, shard_accumulator * accumulator) : - description(description), stream_index(stream_index), fps(fps), device(device), weak_scene(weak_scene), accumulator(accumulator) + wivrn::decoder(description), stream_index(stream_index), fps(fps), device(device), weak_scene(weak_scene), accumulator(accumulator) { spdlog::info("hbm_mutex.native_handle() = {}", (void *)hbm_mutex.native_handle()); @@ -222,7 +243,7 @@ void decoder::push_data(std::span> data, uint64_t frame current_input_buffer = input_buffer{}; } -void decoder::frame_completed(wivrn::from_headset::feedback & feedback, const wivrn::to_headset::video_stream_data_shard::view_info_t & view_info) +void decoder::frame_completed(const wivrn::from_headset::feedback & feedback, const wivrn::to_headset::video_stream_data_shard::view_info_t & view_info) { if (not media_codec) { @@ -255,7 +276,7 @@ void decoder::on_image_available(AImageReader * reader) assert(reader == image_reader.get()); // Executed on image reader thread - decltype(blit_handle::aimage) image; + decltype(android_blit_handle::aimage) image; try { AImage * tmp; @@ -280,13 +301,13 @@ void decoder::on_image_available(AImageReader * reader) auto vk_data = map_hardware_buffer(image.get()); - auto handle = std::make_shared( + auto handle = std::make_shared( info->feedback, info->view_info, - vk_data->image_view, + *vk_data->image_view, *vk_data->vimage, - &vk_data->layout, - vk_data, + vk_data->layout, + std::move(vk_data), image_reader, std::move(image)); @@ -514,11 +535,6 @@ void decoder::on_media_output_available(AMediaCodec * media_codec, void * userda }); } -void decoder::blit_handle::deleter::operator()(AImage * aimage) -{ - AImage_delete(aimage); -} - static bool hardware_accelerated(AMediaCodec * media_codec) { // MediaCodecInfo has isHardwareAccelerated, but this does not exist in NDK. @@ -542,9 +558,8 @@ static bool hardware_accelerated(AMediaCodec * media_codec) return true; } -std::vector decoder::supported_codecs() +void decoder::supported_codecs(std::vector & result) { - std::vector result; // Make sure we update this code when codecs are changed static_assert(magic_enum::enum_count() == 3); @@ -563,8 +578,6 @@ std::vector decoder::supported_codecs() spdlog::info("video codec {}: {}supported", magic_enum::enum_name(codec), supported ? "" : "NOT "); } - - return result; } } // namespace wivrn::android diff --git a/client/decoder/android/android_decoder.h b/client/decoder/android/android_decoder.h index 63926935..27d26c1f 100644 --- a/client/decoder/android/android_decoder.h +++ b/client/decoder/android/android_decoder.h @@ -19,6 +19,7 @@ #pragma once +#include "decoder/decoder.h" #include "utils/sync_queue.h" #include "wivrn_packets.h" #include @@ -59,31 +60,12 @@ class stream; namespace wivrn::android { -class decoder +class decoder : public wivrn::decoder { public: struct mapped_hardware_buffer; - struct blit_handle - { - struct deleter - { - void operator()(AImage *); - }; - wivrn::from_headset::feedback feedback; - wivrn::to_headset::video_stream_data_shard::view_info_t view_info; - vk::raii::ImageView & image_view; - vk::Image image = nullptr; - vk::ImageLayout * current_layout = nullptr; - - std::shared_ptr vk_data; - - std::shared_ptr image_reader; - AImage_ptr aimage; - }; - private: - wivrn::to_headset::video_stream_description::item description; uint8_t stream_index; float fps; @@ -146,33 +128,20 @@ public: uint8_t stream_index, std::weak_ptr scene, shard_accumulator * accumulator); - - decoder(const decoder &) = delete; - decoder(decoder &&) = delete; ~decoder(); - void push_data(std::span> data, uint64_t frame_index, bool partial); + void push_data(std::span> data, uint64_t frame_index, bool partial) override; void frame_completed( - wivrn::from_headset::feedback & feedback, - const wivrn::to_headset::video_stream_data_shard::view_info_t & view_info); + const wivrn::from_headset::feedback & feedback, + const wivrn::to_headset::video_stream_data_shard::view_info_t & view_info) override; - const auto & desc() const - { - return description; - } - - vk::Sampler sampler() + vk::Sampler sampler() override { return *ycbcr_sampler; } - vk::Extent2D image_size() - { - return extent; - } - - static std::vector supported_codecs(); + static void supported_codecs(std::vector &); }; } // namespace wivrn::android diff --git a/client/decoder/decoder.cpp b/client/decoder/decoder.cpp new file mode 100644 index 00000000..3fcd7e54 --- /dev/null +++ b/client/decoder/decoder.cpp @@ -0,0 +1,67 @@ +/* + * WiVRn VR streaming + * Copyright (C) 2025 Patrick Nicolas + * + * 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 . + */ + +#include "decoder.h" + +#ifdef __ANDROID__ +#include "decoder/android/android_decoder.h" +#else +#include "decoder/ffmpeg/ffmpeg_decoder.h" +#endif + +wivrn::decoder::~decoder() = default; + +std::shared_ptr wivrn::decoder::make( + vk::raii::Device & device, + vk::raii::PhysicalDevice & phys_dev, + const wivrn::to_headset::video_stream_description::item & description, + float fps, + uint8_t stream_index, + std::weak_ptr scene, + shard_accumulator * acc) +{ +#ifdef __ANDROID__ + return std::make_shared( + device, + phys_dev, + description, + fps, + stream_index, + scene, + acc); +#else + return std::make_shared( + device, + phys_dev, + description, + stream_index, + scene, + acc); +#endif +} + +std::vector wivrn::decoder::supported_codecs() +{ + std::vector res; +#ifdef __ANDROID__ + android::decoder::supported_codecs(res); +#else + ffmpeg::decoder::supported_codecs(res); +#endif + return res; +} diff --git a/client/decoder/decoder.h b/client/decoder/decoder.h new file mode 100644 index 00000000..1886759a --- /dev/null +++ b/client/decoder/decoder.h @@ -0,0 +1,74 @@ +/* + * WiVRn VR streaming + * Copyright (C) 2025 Patrick Nicolas + * + * 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 . + */ + +#pragma once + +#include "wivrn_packets.h" + +#include +#include +#include +#include + +namespace scenes +{ +class stream; +} + +namespace wivrn +{ +class shard_accumulator; +class decoder +{ +public: + struct blit_handle + { + wivrn::from_headset::feedback feedback; + wivrn::to_headset::video_stream_data_shard::view_info_t view_info; + vk::ImageView image_view = nullptr; + vk::Image image = nullptr; + vk::ImageLayout & current_layout; + }; + + const wivrn::to_headset::video_stream_description::item description; + +protected: + decoder(const wivrn::to_headset::video_stream_description::item & description) : + description(description) {} + +public: + static std::shared_ptr make( + vk::raii::Device &, + vk::raii::PhysicalDevice &, + const wivrn::to_headset::video_stream_description::item & description, + float fps, + uint8_t stream_index, + std::weak_ptr, + shard_accumulator *); + virtual ~decoder(); + virtual void push_data(std::span> data, uint64_t frame_index, bool partial) = 0; + + virtual void frame_completed( + const from_headset::feedback & feedback, + const to_headset::video_stream_data_shard::view_info_t & view_info) = 0; + + virtual vk::Sampler sampler() = 0; + + static std::vector supported_codecs(); +}; +} // namespace wivrn diff --git a/client/decoder/ffmpeg/ffmpeg_decoder.cpp b/client/decoder/ffmpeg/ffmpeg_decoder.cpp index 09416a28..afa61e4c 100644 --- a/client/decoder/ffmpeg/ffmpeg_decoder.cpp +++ b/client/decoder/ffmpeg/ffmpeg_decoder.cpp @@ -61,24 +61,53 @@ static AVCodecID codec_id(wivrn::video_codec codec) __builtin_unreachable(); } -decoder::blit_handle::~blit_handle() +struct decoder::ffmpeg_blit_handle : public wivrn::decoder::blit_handle { - std::unique_lock lock(self->mutex); - if (image_index < 0) - return; + int image_index; + wivrn::ffmpeg::decoder * self; - self->free_images.push_back(image_index); -} + ffmpeg_blit_handle( + const wivrn::from_headset::feedback & feedback, + const wivrn::to_headset::video_stream_data_shard::view_info_t & view_info, + vk::ImageView image_view, + vk::Image image, + vk::ImageLayout & current_layout, + int image_index, + wivrn::ffmpeg::decoder * self) : + wivrn::decoder::blit_handle{ + feedback, + view_info, + image_view, + image, + current_layout, + }, + image_index(image_index), + self(self) + {} + + ~ffmpeg_blit_handle() + { + std::unique_lock lock(self->mutex); + if (image_index < 0) + return; + + self->free_images.push_back(image_index); + } +}; decoder::decoder( vk::raii::Device & device, vk::raii::PhysicalDevice & physical_device, const wivrn::to_headset::video_stream_description::item & description, - float fps, uint8_t stream_index, std::weak_ptr scene, shard_accumulator * accumulator) : - device(device), description(description), codec(nullptr, free_codec_context), sws(nullptr, sws_freeContext), weak_scene(scene), accumulator(accumulator) + wivrn::decoder(description), + device(device), + codec(nullptr, free_codec_context), + sws(nullptr, sws_freeContext), + weak_scene(scene), + accumulator(accumulator) { free_images.resize(image_count); @@ -221,12 +250,12 @@ void decoder::frame_completed(const wivrn::from_headset::feedback & feedback, co if (res == 0) throw std::runtime_error{"sws_scale failed"}; - auto handle = std::make_shared( + auto handle = std::make_shared( feedback, view_info, - decoded_images[index].image_view, - (vk::Image)decoded_images[index].image, - &decoded_images[index].current_layout, + *decoded_images[index].image_view, + decoded_images[index].image, + decoded_images[index].current_layout, index, this); @@ -234,13 +263,11 @@ void decoder::frame_completed(const wivrn::from_headset::feedback & feedback, co scene->push_blit_handle(accumulator, std::move(handle)); } -std::vector decoder::supported_codecs() +void decoder::supported_codecs(std::vector & res) { - return { - wivrn::video_codec::h264, - wivrn::video_codec::h265, - wivrn::video_codec::av1, - }; + res.push_back(wivrn::video_codec::h264); + res.push_back(wivrn::video_codec::h265); + res.push_back(wivrn::video_codec::av1); } } // namespace wivrn::ffmpeg diff --git a/client/decoder/ffmpeg/ffmpeg_decoder.h b/client/decoder/ffmpeg/ffmpeg_decoder.h index 33190af8..360de157 100644 --- a/client/decoder/ffmpeg/ffmpeg_decoder.h +++ b/client/decoder/ffmpeg/ffmpeg_decoder.h @@ -19,6 +19,7 @@ #pragma once +#include "decoder/decoder.h" #include "vk/allocation.h" #include "wivrn_packets.h" #include @@ -46,24 +47,10 @@ class stream; namespace wivrn::ffmpeg { -class decoder +class decoder : public wivrn::decoder { -public: - struct blit_handle - { - wivrn::from_headset::feedback feedback; - wivrn::to_headset::video_stream_data_shard::view_info_t view_info; - vk::raii::ImageView & image_view; - vk::Image image = nullptr; - vk::ImageLayout * current_layout = nullptr; - - int image_index; - decoder * self; - - ~blit_handle(); - }; - private: + struct ffmpeg_blit_handle; static const int image_count = 12; struct image { @@ -81,8 +68,6 @@ private: vk::Extent2D extent{}; std::vector free_images; - wivrn::to_headset::video_stream_description::item description; - std::unique_ptr codec; std::unique_ptr sws; std::vector packet; @@ -96,26 +81,17 @@ public: decoder(vk::raii::Device & device, vk::raii::PhysicalDevice & physical_device, const wivrn::to_headset::video_stream_description::item & description, - float fps, uint8_t stream_index, std::weak_ptr scene, shard_accumulator * accumulator); - decoder(const decoder &) = delete; - decoder(decoder &&) = delete; - - void push_data(std::span> data, uint64_t frame_index, bool partial); + void push_data(std::span> data, uint64_t frame_index, bool partial) override; void frame_completed( const wivrn::from_headset::feedback & feedback, - const wivrn::to_headset::video_stream_data_shard::view_info_t & view_info); + const wivrn::to_headset::video_stream_data_shard::view_info_t & view_info) override; - const auto & desc() const - { - return description; - } - - vk::Sampler sampler() + vk::Sampler sampler() override { return *rgb_sampler; } @@ -125,6 +101,6 @@ public: return extent; } - static std::vector supported_codecs(); + static void supported_codecs(std::vector &); }; } // namespace wivrn::ffmpeg diff --git a/client/decoder/shard_accumulator.cpp b/client/decoder/shard_accumulator.cpp index 900c05ee..a7ec0636 100644 --- a/client/decoder/shard_accumulator.cpp +++ b/client/decoder/shard_accumulator.cpp @@ -186,7 +186,7 @@ void shard_accumulator::try_submit_frame(uint16_t shard_idx) payload.emplace_back(data_shards[idx]->payload); bool frame_complete = last_idx == data_shards.size() and data_shards.back()->flags & video_stream_data_shard::end_of_frame; - decoder->push_data(payload, data_shards[shard_idx]->frame_idx, not frame_complete); + decoder_->push_data(payload, data_shards[shard_idx]->frame_idx, not frame_complete); if (not frame_complete) return; @@ -206,7 +206,7 @@ void shard_accumulator::try_submit_frame(uint16_t shard_idx) } // Try to extract a frame - decoder->frame_completed(current.feedback, *data_shards.front()->view_info); + decoder_->frame_completed(current.feedback, *data_shards.front()->view_info); send_feedback(current.feedback); diff --git a/client/decoder/shard_accumulator.h b/client/decoder/shard_accumulator.h index 406c0c49..bcc7730b 100644 --- a/client/decoder/shard_accumulator.h +++ b/client/decoder/shard_accumulator.h @@ -19,32 +19,30 @@ #pragma once -#include -#include - -#ifdef __ANDROID__ -#include "decoder/android/android_decoder.h" -using decoder_impl = ::wivrn::android::decoder; -#else -#include "decoder/ffmpeg/ffmpeg_decoder.h" -using decoder_impl = ::wivrn::ffmpeg::decoder; -#endif - +#include "decoder.h" #include "wivrn_packets.h" + +#include #include #include +#include namespace xr { class instance; } +namespace scenes +{ +class stream; +} + namespace wivrn { class shard_accumulator { - std::shared_ptr decoder; + std::shared_ptr decoder_; public: using data_shard = wivrn::to_headset::video_stream_data_shard; @@ -86,7 +84,7 @@ public: float fps, std::weak_ptr scene, uint8_t stream_index) : - decoder(std::make_shared(device, physical_device, description, fps, stream_index, scene, this)), + decoder_(decoder::make(device, physical_device, description, fps, stream_index, scene, this)), current(stream_index), next(stream_index), weak_scene(scene), @@ -99,20 +97,15 @@ public: auto & desc() const { - return decoder->desc(); + return decoder_->description; } vk::Sampler sampler() { - return decoder->sampler(); + return decoder_->sampler(); } - vk::Extent2D image_size() - { - return decoder->image_size(); - } - - using blit_handle = decoder_impl::blit_handle; + using blit_handle = decoder::blit_handle; private: void try_submit_frame(std::optional shard_idx); diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index aba0b167..ecf72112 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -299,7 +299,7 @@ std::shared_ptr scenes::stream::create(std::unique_ptrview_info.foveation; use_alpha = blit_handle->view_info.alpha; - if (*blit_handle->current_layout == vk::ImageLayout::eUndefined) + if (blit_handle->current_layout == vk::ImageLayout::eUndefined) { vk::ImageMemoryBarrier barrier{ .srcAccessMask = vk::AccessFlagBits::eNone, @@ -864,7 +864,7 @@ void scenes::stream::render(const XrFrameState & frame_state) }; command_buffer.pipelineBarrier(vk::PipelineStageFlagBits::eAllCommands, vk::PipelineStageFlagBits::eAllCommands, {}, {}, {}, barrier); - *blit_handle->current_layout = vk::ImageLayout::eGeneral; + blit_handle->current_layout = vk::ImageLayout::eGeneral; } } @@ -877,7 +877,7 @@ void scenes::stream::render(const XrFrameState & frame_state) { if (not blit_handle) continue; - b.push_image(command_buffer, j, decoders[j].decoder->sampler(), *blit_handle->image_view, *blit_handle->current_layout); + b.push_image(command_buffer, j, decoders[j].decoder->sampler(), blit_handle->image_view, blit_handle->current_layout); } blitted[i] = b.end(command_buffer); } From 9a5af1a0cadccf4a327c90520662a1dd5edaaee9 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 4 Sep 2025 17:26:08 +0200 Subject: [PATCH 14/52] Default to 2 encoder split --- docs/configuration.md | 2 +- server/encoder/encoder_settings.cpp | 22 +++++----------------- 2 files changed, 6 insertions(+), 18 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 3ee6ad01..5c2785b3 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -44,7 +44,7 @@ Bit depth of the video. 8-bit is supported by all encoders. 10-bit is supported ## `encoders` A list of encoders to use. -Default value: 3 encoders in order 1/8th, 3/8th and 4/8th of the image. +Default value: one encoder per eye WiVRn has the ability to split the video in blocks that are processed independently, this may use resources more effectively and reduce latency. All the provided encoders are put into groups, groups are executed concurrently and items within a group are processed sequentially. diff --git a/server/encoder/encoder_settings.cpp b/server/encoder/encoder_settings.cpp index 6fd30ad8..7a383007 100644 --- a/server/encoder/encoder_settings.cpp +++ b/server/encoder/encoder_settings.cpp @@ -307,34 +307,22 @@ static std::vector get_encoder_default_settings(wivrn_vk #ifdef WIVRN_SPLIT_ENCODERS if (base.name != encoder_x264) { - /* Split in 3 parts: + /* Split in 2 parts: * +--------+--------+ * | | | - * | | | - * +--------+ | - * | | | - * | | | - * | | | - * | | | + * | left | right | + * | eye | eye | * | | | * +--------+--------+ - * All 3 are encoded sequentially, so that the smallest is ready earlier. + * Encoded sequentially, so the first eye is ready and transmitted earlier. * Decoder can start work as fast as possible, reducing idle time. + * Splitting on eye boundaries allows for fast-path on headset. * */ return { { .name = base.name, .width = 0.5, - .height = 0.25, - .group = 0, - .codec = base.codec, - }, - { - .name = base.name, - .width = 0.5, - .height = 0.75, - .offset_y = 0.25, .group = 0, .codec = base.codec, }, From b1c7160bbaffac6c96ade01085acb7d19a3e32a4 Mon Sep 17 00:00:00 2001 From: Jonathan Steffan Date: Sun, 7 Sep 2025 11:30:04 -0600 Subject: [PATCH 15/52] Update bug_report.yml to include plain render type Added render type as plain for multiple fields in bug report template. --- .github/ISSUE_TEMPLATE/bug_report.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 098f36d2..b7236678 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -49,6 +49,7 @@ body: Provide the content of `config.json` for the server. Located in `${XDG_CONFIG_HOME-${HOME}/.config}/wivrn/config.json` or `~/.var/app/io.github.wivrn.wivrn/config/wivrn/config.json` for the flatpak version + render: plain placeholder: | { "encoders": [ @@ -60,6 +61,7 @@ body: attributes: label: Server Logs description: Provide the `wivrn-server` output. + render: plain placeholder: | Add the output of the wivrn-server here. If more than a few lines, prefer file attachment. @@ -80,6 +82,7 @@ body: attributes: label: Vulkan Info description: Provide the output of `vulkaninfo --summary` command. + render: plain placeholder: Attach the output as a file here. - type: dropdown @@ -106,4 +109,5 @@ body: attributes: label: ADB Logs description: Provide the output of `adb logcat` command. + render: plain placeholder: Attach the output of adb logcat as a file. From 5405176890ab60bd2d17f0561c1543652a2d87f8 Mon Sep 17 00:00:00 2001 From: Jonathan Steffan Date: Mon, 8 Sep 2025 08:46:14 -0600 Subject: [PATCH 16/52] Update render type for Vulkan Info in bug report template --- .github/ISSUE_TEMPLATE/bug_report.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index b7236678..5c847e25 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -49,7 +49,6 @@ body: Provide the content of `config.json` for the server. Located in `${XDG_CONFIG_HOME-${HOME}/.config}/wivrn/config.json` or `~/.var/app/io.github.wivrn.wivrn/config/wivrn/config.json` for the flatpak version - render: plain placeholder: | { "encoders": [ @@ -61,7 +60,6 @@ body: attributes: label: Server Logs description: Provide the `wivrn-server` output. - render: plain placeholder: | Add the output of the wivrn-server here. If more than a few lines, prefer file attachment. @@ -82,7 +80,7 @@ body: attributes: label: Vulkan Info description: Provide the output of `vulkaninfo --summary` command. - render: plain + render: text placeholder: Attach the output as a file here. - type: dropdown From ccf430d26a2415711a7c6e680ef85c37b5a33dc1 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 9 Sep 2025 18:08:38 +0200 Subject: [PATCH 17/52] Fix width/height typo --- client/scenes/blitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/scenes/blitter.cpp b/client/scenes/blitter.cpp index fd952a80..39ec6982 100644 --- a/client/scenes/blitter.cpp +++ b/client/scenes/blitter.cpp @@ -77,8 +77,8 @@ void blitter::reset(const to_headset::video_stream_description & desc) .y = 0, }, .extent = { - .width = uint32_t(item.width * item.subsampling), - .height = uint32_t(item.height * item.subsampling), + .width = uint32_t(item.video_width * item.subsampling), + .height = uint32_t(item.video_height * item.subsampling), }}; } } From 3c08a3de2f4c7dd60af5c691f76e0b42b8096c8e Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 9 Sep 2025 19:00:08 +0200 Subject: [PATCH 18/52] Fix defoveation for low scale values The effective image size may be different from the size in description, we have to only consider the useful size --- client/decoder/android/android_decoder.cpp | 3 ++- client/decoder/android/android_decoder.h | 1 - client/decoder/decoder.h | 5 +++++ client/decoder/ffmpeg/ffmpeg_decoder.cpp | 2 +- client/decoder/ffmpeg/ffmpeg_decoder.h | 6 ------ client/decoder/shard_accumulator.h | 5 +++++ client/scenes/blitter.cpp | 13 ++++++------- client/scenes/blitter.h | 2 +- client/scenes/stream.cpp | 2 +- client/scenes/stream_defoveator.cpp | 19 ++++++++++--------- 10 files changed, 31 insertions(+), 27 deletions(-) diff --git a/client/decoder/android/android_decoder.cpp b/client/decoder/android/android_decoder.cpp index 0d5f4217..bde67eff 100644 --- a/client/decoder/android/android_decoder.cpp +++ b/client/decoder/android/android_decoder.cpp @@ -409,7 +409,8 @@ std::shared_ptr decoder::map_hardware_buffer(AI if (!*ycbcr_sampler || memcmp(&ahb_format, &format_properties, sizeof(format_properties))) { memcpy(&ahb_format, &format_properties, sizeof(format_properties)); - extent = {buffer_desc.width, buffer_desc.height}; + extent_ = {buffer_desc.width, buffer_desc.height}; + spdlog::info("decoded image size: {}x{}", buffer_desc.width, buffer_desc.height); create_sampler(buffer_desc, ahb_format); hardware_buffer_map.clear(); // TODO tell the reprojector to recreate the pipeline diff --git a/client/decoder/android/android_decoder.h b/client/decoder/android/android_decoder.h index 27d26c1f..3cfa3cb4 100644 --- a/client/decoder/android/android_decoder.h +++ b/client/decoder/android/android_decoder.h @@ -74,7 +74,6 @@ private: vk::AndroidHardwareBufferFormatPropertiesANDROID ahb_format; vk::raii::SamplerYcbcrConversion ycbcr_conversion = nullptr; vk::raii::Sampler ycbcr_sampler = nullptr; - vk::Extent2D extent{}; std::mutex hbm_mutex; std::shared_ptr image_reader; diff --git a/client/decoder/decoder.h b/client/decoder/decoder.h index 1886759a..44497327 100644 --- a/client/decoder/decoder.h +++ b/client/decoder/decoder.h @@ -50,6 +50,7 @@ public: protected: decoder(const wivrn::to_headset::video_stream_description::item & description) : description(description) {} + vk::Extent2D extent_; // Must be populated when sampler is set public: static std::shared_ptr make( @@ -68,6 +69,10 @@ public: const to_headset::video_stream_data_shard::view_info_t & view_info) = 0; virtual vk::Sampler sampler() = 0; + const vk::Extent2D extent() + { + return extent_; + } static std::vector supported_codecs(); }; diff --git a/client/decoder/ffmpeg/ffmpeg_decoder.cpp b/client/decoder/ffmpeg/ffmpeg_decoder.cpp index afa61e4c..7f960b37 100644 --- a/client/decoder/ffmpeg/ffmpeg_decoder.cpp +++ b/client/decoder/ffmpeg/ffmpeg_decoder.cpp @@ -137,7 +137,7 @@ decoder::decoder( decoded_images[i].image = image_allocation(device, image_info, alloc_info); decoded_images[i].image.map(); - extent = vk::Extent2D{description.width, description.height}; + extent_ = vk::Extent2D{description.width, description.height}; vk::ImageSubresource resource; resource.aspectMask = vk::ImageAspectFlagBits::eColor; diff --git a/client/decoder/ffmpeg/ffmpeg_decoder.h b/client/decoder/ffmpeg/ffmpeg_decoder.h index 360de157..9bc121d5 100644 --- a/client/decoder/ffmpeg/ffmpeg_decoder.h +++ b/client/decoder/ffmpeg/ffmpeg_decoder.h @@ -65,7 +65,6 @@ private: vk::raii::Sampler rgb_sampler = nullptr; std::array decoded_images; - vk::Extent2D extent{}; std::vector free_images; std::unique_ptr codec; @@ -96,11 +95,6 @@ public: return *rgb_sampler; } - vk::Extent2D image_size() - { - return extent; - } - static void supported_codecs(std::vector &); }; } // namespace wivrn::ffmpeg diff --git a/client/decoder/shard_accumulator.h b/client/decoder/shard_accumulator.h index bcc7730b..a0145e22 100644 --- a/client/decoder/shard_accumulator.h +++ b/client/decoder/shard_accumulator.h @@ -105,6 +105,11 @@ public: return decoder_->sampler(); } + const vk::Extent2D extent() + { + return decoder_->extent(); + } + using blit_handle = decoder::blit_handle; private: diff --git a/client/scenes/blitter.cpp b/client/scenes/blitter.cpp index 39ec6982..e7da127e 100644 --- a/client/scenes/blitter.cpp +++ b/client/scenes/blitter.cpp @@ -76,10 +76,7 @@ void blitter::reset(const to_headset::video_stream_description & desc) .x = int32_t(view * w) - item.offset_x, .y = 0, }, - .extent = { - .width = uint32_t(item.video_width * item.subsampling), - .height = uint32_t(item.video_height * item.subsampling), - }}; + }; } } @@ -201,13 +198,14 @@ void blitter::begin(vk::raii::CommandBuffer & cmd) vk::SubpassContents::eInline); } -void blitter::push_image(vk::raii::CommandBuffer & cmd, uint8_t stream, vk::Sampler sampler, vk::ImageView image, vk::ImageLayout layout) +void blitter::push_image(vk::raii::CommandBuffer & cmd, uint8_t stream, vk::Sampler sampler, const vk::Extent2D & extent_, vk::ImageView image, vk::ImageLayout layout) { if (stream == passthrough_rgb) { current.rgb = image; current.sampler_rgb = sampler; current.layout_rgb = layout; + current.rect_rgb.extent = extent_; return; } if (stream == passthrough_a) @@ -215,6 +213,7 @@ void blitter::push_image(vk::raii::CommandBuffer & cmd, uint8_t stream, vk::Samp current.a = image; current.sampler_a = sampler; current.layout_a = layout; + current.rect_a.extent = extent_; return; } if (pipelines.empty()) @@ -245,8 +244,8 @@ void blitter::push_image(vk::raii::CommandBuffer & cmd, uint8_t stream, vk::Samp }); auto vert_constants = make_specialization_constants( - float(description.width) / description.video_width, - float(description.height) / description.video_height); + float(description.width) / extent_.width, + float(description.height) / extent_.height); auto frag_constants = make_specialization_constants( VkBool32(alpha)); diff --git a/client/scenes/blitter.h b/client/scenes/blitter.h index c1a037e8..26685c72 100644 --- a/client/scenes/blitter.h +++ b/client/scenes/blitter.h @@ -66,7 +66,7 @@ public: void reset(const to_headset::video_stream_description & desc); void begin(vk::raii::CommandBuffer &); - void push_image(vk::raii::CommandBuffer & buf, uint8_t stream, vk::Sampler sampler, vk::ImageView image, vk::ImageLayout); + void push_image(vk::raii::CommandBuffer & buf, uint8_t stream, vk::Sampler sampler, const vk::Extent2D &, vk::ImageView image, vk::ImageLayout); output end(vk::raii::CommandBuffer &); }; } // namespace wivrn diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index ecf72112..ed89a35c 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -877,7 +877,7 @@ void scenes::stream::render(const XrFrameState & frame_state) { if (not blit_handle) continue; - b.push_image(command_buffer, j, decoders[j].decoder->sampler(), blit_handle->image_view, blit_handle->current_layout); + b.push_image(command_buffer, j, decoders[j].decoder->sampler(), decoders[j].decoder->extent(), blit_handle->image_view, blit_handle->current_layout); } blitted[i] = b.end(command_buffer); } diff --git a/client/scenes/stream_defoveator.cpp b/client/scenes/stream_defoveator.cpp index 5343a4ee..7086e2a1 100644 --- a/client/scenes/stream_defoveator.cpp +++ b/client/scenes/stream_defoveator.cpp @@ -394,6 +394,7 @@ void stream_defoveator::defoveate(vk::raii::CommandBuffer & command_buffer, for (size_t view = 0; view < view_count; ++view) { + const auto out_size = defoveated_size(foveation[view]); auto vertices = get_vertices(view); const auto & [px, py] = foveation[view]; assert(px.size() % 2 == 1); @@ -402,42 +403,42 @@ void stream_defoveator::defoveate(vk::raii::CommandBuffer & command_buffer, const int n_ratio_x = (px.size() - 1) / 2; glm::uvec2 in(0); - glm::vec2 out(0); // pixel coordinates - glm::vec2 out_pixel_size(2. / output_extent.width, - 2. / output_extent.height); + glm::vec2 out(-0.5 * out_size.width, -0.5 * out_size.height); // pixel coordinates + glm::vec2 out_pixel_size(2. / out_size.width, + 2. / out_size.height); for (auto [iy, n_out_y]: utils::enumerate_range(py)) { // number of output pixels per source pixels const int ratio_y = std::abs(n_ratio_y - int(iy)) + 1; in.x = 0; - out.x = 0; + out.x = -0.5 * out_size.width; for (auto [ix, n_out_x]: utils::enumerate_range(px)) { const int ratio_x = std::abs(n_ratio_x - int(ix)) + 1; glm::uvec2 rate = glm::uvec2(shading_rate(ratio_x, ratio_y), 0); *vertices++ = { - .position = out * out_pixel_size - glm::vec2(1), + .position = out * out_pixel_size, .uv = in | rate, }; *vertices++ = { - .position = (out + glm::vec2(0, n_out_y * ratio_y)) * out_pixel_size - glm::vec2(1), + .position = (out + glm::vec2(0, n_out_y * ratio_y)) * out_pixel_size, .uv = (in + glm::uvec2(0, n_out_y)) | rate, }; in.x += n_out_x; out.x += n_out_x * ratio_x; } *vertices++ = { - .position = out * out_pixel_size - glm::vec2(1), + .position = out * out_pixel_size, .uv = in, }; in.y += n_out_y; out.y += n_out_y * ratio_y; *vertices++ = { - .position = out * out_pixel_size - glm::vec2(1), + .position = out * out_pixel_size, .uv = in, }; *vertices++ = { - .position = out * out_pixel_size - glm::vec2(1), + .position = out * out_pixel_size, .uv = in, }; } From 80933a33923da35464f5b87d85d9c2c8dc4cb39d Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 9 Sep 2025 19:21:19 +0200 Subject: [PATCH 19/52] Fix visibility mask (fixes UE games) The returned mask type was offset, changing its meaning --- server/driver/wivrn_hmd.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/driver/wivrn_hmd.cpp b/server/driver/wivrn_hmd.cpp index 51f11eaa..d28b21d2 100644 --- a/server/driver/wivrn_hmd.cpp +++ b/server/driver/wivrn_hmd.cpp @@ -41,14 +41,13 @@ xrt_result_t wivrn_hmd::get_visibility_mask(xrt_visibility_mask_type type, uint3 { static_assert(sizeof(uint32_t) == sizeof(decltype(from_headset::visibility_mask_changed::mask::indices)::value_type)); static_assert(sizeof(xrt_vec2) == sizeof(decltype(from_headset::visibility_mask_changed::mask::vertices)::value_type)); - type = xrt_visibility_mask_type((unsigned int)type - 1); // enum values start at 1 const auto visibility_mask = this->visibility_mask.lock(); - if (type >= from_headset::visibility_mask_changed::num_types or view_index >= 2 or not(*visibility_mask)[view_index]) + if (type > from_headset::visibility_mask_changed::num_types or view_index >= 2 or not(*visibility_mask)[view_index]) { *mask = (xrt_visibility_mask *)calloc(1, sizeof(xrt_visibility_mask)); return XRT_SUCCESS; } - const auto & in_mask = (*(*visibility_mask)[view_index])[int(type)]; + const auto & in_mask = (*(*visibility_mask)[view_index])[int(type - 1)]; size_t index_size = in_mask.indices.size() * sizeof(uint32_t); size_t vertex_size = in_mask.vertices.size() * sizeof(xrt_vec2); *mask = (xrt_visibility_mask *)calloc(1, sizeof(xrt_visibility_mask) + index_size + vertex_size); From 200586a0aff0ea0d521d9d9682c2277cdff45247 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 10 Sep 2025 21:44:22 +0200 Subject: [PATCH 20/52] Remove Snapdragon Game Super Resolution --- assets/licenses/SGSR | 32 ---- client/configuration.cpp | 36 ----- client/configuration.h | 12 -- client/scenes/lobby_gui.cpp | 85 +--------- client/scenes/stream.cpp | 9 -- client/scenes/stream_defoveator.cpp | 12 -- client/shaders/reprojection_sgsr.frag.glsl | 179 --------------------- 7 files changed, 1 insertion(+), 364 deletions(-) delete mode 100644 assets/licenses/SGSR delete mode 100644 client/shaders/reprojection_sgsr.frag.glsl diff --git a/assets/licenses/SGSR b/assets/licenses/SGSR deleted file mode 100644 index 9ce2740b..00000000 --- a/assets/licenses/SGSR +++ /dev/null @@ -1,32 +0,0 @@ -Snapdragon(TM) Game Super Resolution -Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved. - -https://github.com/SnapdragonStudios/snapdragon-gsr - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -3. Neither the name of the copyright holder nor the names of its contributors - may be used to endorse or promote products derived from this software - without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. - -SPDX-License-Identifier: BSD-3-Clause diff --git a/client/configuration.cpp b/client/configuration.cpp index a8b2bf09..144191f2 100644 --- a/client/configuration.cpp +++ b/client/configuration.cpp @@ -181,9 +181,6 @@ configuration::configuration(xr::system & system) if (auto val = root["enable_stream_gui"]; val.is_bool()) enable_stream_gui = val.get_bool(); - if (auto val = root["sgsr"]; val.is_object()) - parse_sgsr_options(val.get_object()); - if (auto val = root["openxr_post_processing"]; val.is_object()) parse_openxr_post_processing_options(val.get_object()); @@ -231,31 +228,11 @@ configuration::configuration(xr::system & system) preferred_refresh_rate.reset(); minimum_refresh_rate.reset(); resolution_scale = 1.4; - sgsr = {}; openxr_post_processing = {}; passthrough_enabled = system.passthrough_supported() == xr::passthrough_type::color; } } -void configuration::parse_sgsr_options(simdjson::simdjson_result sgsr_root) -{ - sgsr = {}; - if (auto val = sgsr_root["enabled"]; val.is_bool()) - sgsr.enabled = val.get_bool(); - - if (auto val = sgsr_root["upscaling_factor"]; val.is_double()) - sgsr.upscaling_factor = val.get_double(); - - if (auto val = sgsr_root["use_edge_direction"]; val.is_bool()) - sgsr.use_edge_direction = val.get_bool(); - - if (auto val = sgsr_root["edge_threshold"]; val.is_double()) - sgsr.edge_threshold = val.get_double(); - - if (auto val = sgsr_root["edge_sharpness"]; val.is_double()) - sgsr.edge_sharpness = val.get_double(); -} - void configuration::parse_openxr_post_processing_options(simdjson::simdjson_result openxr_post_processing_root) { openxr_post_processing = {}; @@ -271,17 +248,6 @@ static std::ostream & operator<<(std::ostream & stream, feature f) return stream << "\"" << magic_enum::enum_name(f) << "\""; } -static std::ostream & write_sgsr(std::ofstream & stream, const configuration::sgsr_settings & sgsr) -{ - stream << "{\"enabled\":" << std::boolalpha << sgsr.enabled; - stream << ",\"upscaling_factor\":" << sgsr.upscaling_factor; - stream << ",\"use_edge_direction\":" << std::boolalpha << sgsr.use_edge_direction; - stream << ",\"edge_threshold\":" << sgsr.edge_threshold; - stream << ",\"edge_sharpness\":" << sgsr.edge_sharpness; - stream << "}"; - return stream; -} - static std::ostream & write_openxr_post_processing(std::ofstream & stream, const configuration::openxr_post_processing_settings & openxr_post_processing) { stream << "{\"super_sampling\":" << openxr_post_processing.super_sampling; @@ -324,8 +290,6 @@ void configuration::save() if (minimum_refresh_rate) json << ",\"minimum_refresh_rate\":" << *minimum_refresh_rate; json << ",\"resolution_scale\":" << resolution_scale; - json << ",\"sgsr\":"; - write_sgsr(json, sgsr); json << ",\"openxr_post_processing\":"; write_openxr_post_processing(json, openxr_post_processing); json << ",\"passthrough_enabled\":" << std::boolalpha << passthrough_enabled; diff --git a/client/configuration.h b/client/configuration.h index a0f6ecad..480c1364 100644 --- a/client/configuration.h +++ b/client/configuration.h @@ -58,17 +58,6 @@ public: bool enable_stream_gui = true; - // Snapdragon Game Super Resolution - struct sgsr_settings - { - bool enabled = false; - float upscaling_factor = 1.5; - bool use_edge_direction = true; - float edge_threshold = 4.0; - float edge_sharpness = 2.0; - }; - sgsr_settings sgsr{}; - // XR_FB_composition_layer_settings extension flags struct openxr_post_processing_settings { @@ -92,7 +81,6 @@ private: mutable std::mutex mutex; std::map features; - void parse_sgsr_options(simdjson::simdjson_result root); void parse_openxr_post_processing_options(simdjson::simdjson_result root); public: diff --git a/client/scenes/lobby_gui.cpp b/client/scenes/lobby_gui.cpp index f747d5a2..8cfddc10 100644 --- a/client/scenes/lobby_gui.cpp +++ b/client/scenes/lobby_gui.cpp @@ -1060,89 +1060,6 @@ void scenes::lobby::gui_post_processing() ImGui::Unindent(); } - { - // SGSR - { - if (ImGui::Checkbox(_S("Enable Snapdragon Game Super Resolution"), &config.sgsr.enabled)) - { - config.save(); - } - imgui_ctx->vibrate_on_hover(); - if (ImGui::IsItemHovered()) - { - if (application::get_openxr_post_processing_supported()) - imgui_ctx->tooltip(_("On this headset, this setting has been fully superseded by the native Sharpening setting above.\nOnly enable if you know what you're doing.")); - else - imgui_ctx->tooltip(_("Client-side upscaling and sharpening, adds a performance cost on the headset")); - } - if (application::get_openxr_post_processing_supported()) - { - ImGui::SameLine(); - ImGui::TextColored(ImColor(0xf9, 0x73, 0x06) /*orange*/, ICON_FA_TRIANGLE_EXCLAMATION); - } - } - - { - ImGui::BeginDisabled(not config.sgsr.enabled); - ImGui::Indent(); - { - const auto current = config.sgsr.upscaling_factor; - const auto width = stream_view.recommendedImageRectWidth * config.resolution_scale; - const auto height = stream_view.recommendedImageRectHeight * config.resolution_scale; - auto intScale = int(current * 100); - const auto slider = ImGui::SliderInt( - _("Upscaling factor").append("##upscaling_factor").c_str(), - &intScale, - 100, - 200, - fmt::format(_F("%d%% - {}x{} per eye"), int(width * current), int(height * current)).c_str()); - if (slider) - { - config.sgsr.upscaling_factor = intScale * 0.01; - config.save(); - } - imgui_ctx->vibrate_on_hover(); - if (width * current > stream_view.maxImageRectWidth or height * current > stream_view.maxImageRectHeight) - { - ImGui::TextColored(ImColor(0xf9, 0x73, 0x06) /*orange*/, ICON_FA_TRIANGLE_EXCLAMATION); - ImGui::SameLine(); - ImGui::Text("%s", fmt::format(_F("Resolution larger than {}x{} may not be supported by the headset"), stream_view.maxImageRectWidth, stream_view.maxImageRectHeight).c_str()); - } - } - { - if (ImGui::Checkbox(_S("Use edge direction"), &config.sgsr.use_edge_direction)) - { - config.save(); - } - imgui_ctx->vibrate_on_hover(); - if (ImGui::IsItemHovered()) - imgui_ctx->tooltip(_("Adds an additional performance cost")); - } - { - const float current = config.sgsr.edge_threshold; - int intScale = int(current); - if (ImGui::SliderInt(_S("Edge threshold"), &intScale, 1, 16, "%d.0")) - { - config.sgsr.edge_threshold = float(intScale); - config.save(); - } - imgui_ctx->vibrate_on_hover(); - if (ImGui::IsItemHovered()) - imgui_ctx->tooltip(fmt::format(_F("Recommended: {:.1f}"), 4.0)); - } - { - if (ImGui::SliderFloat(_S("Edge sharpness"), &config.sgsr.edge_sharpness, 1.0, 2.0, "%.2f")) - { - config.save(); - } - imgui_ctx->vibrate_on_hover(); - if (ImGui::IsItemHovered()) - imgui_ctx->tooltip(fmt::format(_F("Recommended: {:.1f}"), 2.0)); - } - ImGui::Unindent(); - ImGui::EndDisabled(); - } - } ImGui::PopStyleVar(); } @@ -1370,7 +1287,7 @@ void scenes::lobby::gui_licenses() ImGui::Text("%s", _("Licenses").c_str()); ImGui::PopFont(); - const auto components = {"WiVRn", "FontAwesome", "openxr-loader", "simdjson", "SGSR"}; + const auto components = {"WiVRn", "FontAwesome", "openxr-loader", "simdjson"}; if (not license) { selected_item = *components.begin(); diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index ed89a35c..e79c1305 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -1118,15 +1118,6 @@ void scenes::stream::setup_reprojection_swapchain(uint32_t swapchain_width, uint const uint32_t video_width = video_stream_description->width / view_count; const uint32_t video_height = video_stream_description->height; - const configuration::sgsr_settings sgsr = application::get_config().sgsr; - if (sgsr.enabled) - { - const float upscaling_factor = sgsr.upscaling_factor; - spdlog::info("Using SGSR with an upscale factor of {}", upscaling_factor); - swapchain_width *= upscaling_factor; - swapchain_height *= upscaling_factor; - } - auto views = system.view_configuration_views(viewconfig); swapchain = xr::swapchain(session, device, swapchain_format, swapchain_width, swapchain_height, 1, views.size()); diff --git a/client/scenes/stream_defoveator.cpp b/client/scenes/stream_defoveator.cpp index 7086e2a1..c6989ec1 100644 --- a/client/scenes/stream_defoveator.cpp +++ b/client/scenes/stream_defoveator.cpp @@ -134,22 +134,10 @@ stream_defoveator::pipeline_t & stream_defoveator::ensure_pipeline(size_t view, vk::raii::ShaderModule vertex_shader = load_shader(device, fragment_shading_rate ? "reprojection_vsr.vert" : "reprojection.vert"); // Fragment shader - -#if 0 -FIXME: SGSR - const configuration::sgsr_settings & sgsr = application::get_config().sgsr; - auto sgsr_specialization = make_specialization_constants( - VkBool32(sgsr.use_edge_direction), - float(sgsr.edge_threshold / 255.f), - float(sgsr.edge_sharpness)); - - vk::raii::ShaderModule fragment_shader = load_shader(device, sgsr.enabled ? "reprojection_sgsr.frag" : "reprojection.frag"); -#else auto specialization = make_specialization_constants( int32_t(alpha), VkBool32(need_srgb_conversion(guess_model()))); vk::raii::ShaderModule fragment_shader = load_shader(device, "reprojection.frag"); -#endif vk::pipeline_builder pipeline_info_builder{ .flags = {}, diff --git a/client/shaders/reprojection_sgsr.frag.glsl b/client/shaders/reprojection_sgsr.frag.glsl deleted file mode 100644 index 80bebdad..00000000 --- a/client/shaders/reprojection_sgsr.frag.glsl +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Snapdragon™ Game Super Resolution - * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved. - * - * https://github.com/SnapdragonStudios/snapdragon-gsr - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * 3. Neither the name of the copyright holder nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * - * SPDX-License-Identifier: BSD-3-Clause - */ - -#version 450 - -precision mediump float; -precision highp int; - -#define OperationMode 1 - -layout (constant_id = 0) const bool use_edge_direction = true; -layout (constant_id = 1) const float edge_threshold = 4.0/255.0; -layout (constant_id = 2) const float edge_sharpness = 2.0; - -layout(set = 0, binding = 0) uniform mediump sampler2D texSampler; - -layout(location = 0) in highp vec2 inUV; - -layout(location = 0) out vec4 outColor; - -float fastLanczos2(float x) -{ - float wA = x-4.0; - float wB = x*wA-wA; - wA *= wA; - return wB*wA; -} - -vec2 weightY(float dx, float dy, float c, vec3 data) -{ - float std = data.x; - vec2 dir = data.yz; - - float edgeDis = ((dx*dir.y)+(dy*dir.x)); - float x = (((dx*dx)+(dy*dy))+((edgeDis*edgeDis)*((clamp(((c*c)*std),0.0,1.0)*0.7)+-1.0))); - - float w = fastLanczos2(x); - return vec2(w, w * c); -} - -vec2 weightYned(float dx, float dy, float c, float std) -{ - float x = ((dx*dx)+(dy* dy))* 0.55 + clamp(abs(c)*std, 0.0, 1.0); - - float w = fastLanczos2(x); - return vec2(w, w * c); -} - -vec2 edgeDirection(vec4 left, vec4 right) -{ - vec2 dir; - float RxLz = (right.x + (-left.z)); - float RwLy = (right.w + (-left.y)); - vec2 delta; - delta.x = (RxLz + RwLy); - delta.y = (RxLz + (-RwLy)); - float lengthInv = inversesqrt((delta.x * delta.x+ 3.075740e-05) + (delta.y * delta.y)); - dir.x = (delta.x * lengthInv); - dir.y = (delta.y * lengthInv); - return dir; -} - -void main() -{ - vec4 color = textureLod(texSampler,inUV,0.0).xyzw; - float alpha = color.a; - - if (OperationMode == 1) - color.a = 0.0; - - if (OperationMode != 4) - { - vec2 dim = textureSize(texSampler, 0); - vec4 viewportInfo = vec4(1/dim.x, 1/dim.y, dim.x, dim.y); - - highp vec2 imgCoord = ((inUV.xy*viewportInfo.zw)+vec2(-0.5,0.5)); - highp vec2 imgCoordPixel = floor(imgCoord); - highp vec2 coord = (imgCoordPixel*viewportInfo.xy); - vec2 pl = (imgCoord+(-imgCoordPixel)); - vec4 left = textureGather(texSampler,coord, OperationMode); - - float edgeVote = abs(left.z - left.y) + abs(color[OperationMode] - left.y) + abs(color[OperationMode] - left.z) ; - if(edgeVote > edge_threshold) - { - coord.x += viewportInfo.x; - - vec4 right = textureGather(texSampler,coord + vec2(viewportInfo.x, 0.0), OperationMode); - vec4 upDown; - upDown.xy = textureGather(texSampler,coord + vec2(0.0, -viewportInfo.y),OperationMode).wz; - upDown.zw = textureGather(texSampler,coord + vec2(0.0, viewportInfo.y), OperationMode).yx; - - float mean = (left.y+left.z+right.x+right.w)*0.25; - left = left - vec4(mean); - right = right - vec4(mean); - upDown = upDown - vec4(mean); - color.w =color[OperationMode] - mean; - - float sum = (((((abs(left.x)+abs(left.y))+abs(left.z))+abs(left.w))+(((abs(right.x)+abs(right.y))+abs(right.z))+abs(right.w)))+(((abs(upDown.x)+abs(upDown.y))+abs(upDown.z))+abs(upDown.w))); - float sumMean = 1.014185e+01/sum; - float std = (sumMean*sumMean); - - vec2 aWY; - if (use_edge_direction) { - vec3 data = vec3(std, edgeDirection(left, right)); - aWY = weightY(pl.x, pl.y+1.0, upDown.x,data); - aWY += weightY(pl.x-1.0, pl.y+1.0, upDown.y,data); - aWY += weightY(pl.x-1.0, pl.y-2.0, upDown.z,data); - aWY += weightY(pl.x, pl.y-2.0, upDown.w,data); - aWY += weightY(pl.x+1.0, pl.y-1.0, left.x,data); - aWY += weightY(pl.x, pl.y-1.0, left.y,data); - aWY += weightY(pl.x, pl.y, left.z,data); - aWY += weightY(pl.x+1.0, pl.y, left.w,data); - aWY += weightY(pl.x-1.0, pl.y-1.0, right.x,data); - aWY += weightY(pl.x-2.0, pl.y-1.0, right.y,data); - aWY += weightY(pl.x-2.0, pl.y, right.z,data); - aWY += weightY(pl.x-1.0, pl.y, right.w,data); - } else { - aWY = weightYned(pl.x, pl.y+1.0, upDown.x,std); - aWY += weightYned(pl.x-1.0, pl.y+1.0, upDown.y,std); - aWY += weightYned(pl.x-1.0, pl.y-2.0, upDown.z,std); - aWY += weightYned(pl.x, pl.y-2.0, upDown.w,std); - aWY += weightYned(pl.x+1.0, pl.y-1.0, left.x,std); - aWY += weightYned(pl.x, pl.y-1.0, left.y,std); - aWY += weightYned(pl.x, pl.y, left.z,std); - aWY += weightYned(pl.x+1.0, pl.y, left.w,std); - aWY += weightYned(pl.x-1.0, pl.y-1.0, right.x,std); - aWY += weightYned(pl.x-2.0, pl.y-1.0, right.y,std); - aWY += weightYned(pl.x-2.0, pl.y, right.z,std); - aWY += weightYned(pl.x-1.0, pl.y, right.w,std); - } - - float finalY = aWY.y/aWY.x; - float maxY = max(max(left.y,left.z),max(right.x,right.w)); - float minY = min(min(left.y,left.z),min(right.x,right.w)); - float deltaY = clamp(edge_sharpness*finalY, minY, maxY) -color.w; - - //smooth high contrast input - deltaY = clamp(deltaY, -23.0 / 255.0, 23.0 / 255.0); - - color.x = clamp((color.x+deltaY),0.0,1.0); - color.y = clamp((color.y+deltaY),0.0,1.0); - color.z = clamp((color.z+deltaY),0.0,1.0); - } - } - - outColor = vec4(color.rgb, alpha); -} From adc07e8f509a30317d6a6d158c89860d7176b7fd Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 10 Sep 2025 22:10:48 +0200 Subject: [PATCH 21/52] Fix alpha channel in no-blit path --- client/scenes/blitter.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/client/scenes/blitter.cpp b/client/scenes/blitter.cpp index e7da127e..d5fddc94 100644 --- a/client/scenes/blitter.cpp +++ b/client/scenes/blitter.cpp @@ -205,7 +205,10 @@ void blitter::push_image(vk::raii::CommandBuffer & cmd, uint8_t stream, vk::Samp current.rgb = image; current.sampler_rgb = sampler; current.layout_rgb = layout; - current.rect_rgb.extent = extent_; + current.rect_rgb.extent = vk::Extent2D{ + extent_.width * desc.items[stream].subsampling, + extent_.height * desc.items[stream].subsampling, + }; return; } if (stream == passthrough_a) @@ -213,7 +216,10 @@ void blitter::push_image(vk::raii::CommandBuffer & cmd, uint8_t stream, vk::Samp current.a = image; current.sampler_a = sampler; current.layout_a = layout; - current.rect_a.extent = extent_; + current.rect_a.extent = vk::Extent2D{ + extent_.width * desc.items[stream].subsampling, + extent_.height * desc.items[stream].subsampling, + }; return; } if (pipelines.empty()) From 891a087ccc0663b863891d9c48c1c9e26bc5b477 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 10 Sep 2025 22:23:02 +0200 Subject: [PATCH 22/52] Correctly handle larger swapchains --- client/scenes/stream_defoveator.cpp | 31 ++++++++++++++++++----------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/client/scenes/stream_defoveator.cpp b/client/scenes/stream_defoveator.cpp index c6989ec1..59937ff6 100644 --- a/client/scenes/stream_defoveator.cpp +++ b/client/scenes/stream_defoveator.cpp @@ -178,18 +178,8 @@ stream_defoveator::pipeline_t & stream_defoveator::ensure_pipeline(size_t view, .InputAssemblyState = {{ .topology = vk::PrimitiveTopology::eTriangleStrip, }}, - .Viewports = {{ - .x = 0, - .y = 0, - .width = (float)output_extent.width, - .height = (float)output_extent.height, - .minDepth = 0, - .maxDepth = 1, - }}, - .Scissors = {{ - .offset = {.x = 0, .y = 0}, - .extent = output_extent, - }}, + .Viewports = {{}}, + .Scissors = {{}}, .RasterizationState = {{ .polygonMode = vk::PolygonMode::eFill, .lineWidth = 1, @@ -201,6 +191,7 @@ stream_defoveator::pipeline_t & stream_defoveator::ensure_pipeline(size_t view, .ColorBlendAttachments = {{ .colorWriteMask = vk::ColorComponentFlagBits::eR | vk::ColorComponentFlagBits::eG | vk::ColorComponentFlagBits::eB | vk::ColorComponentFlagBits::eA, }}, + .DynamicStates = {vk::DynamicState::eViewport, vk::DynamicState::eScissor}, .layout = *target.layout, .renderPass = *renderpass, .subpass = 0, @@ -390,6 +381,22 @@ void stream_defoveator::defoveate(vk::raii::CommandBuffer & command_buffer, const int n_ratio_y = (py.size() - 1) / 2; const int n_ratio_x = (px.size() - 1) / 2; + command_buffer.setScissor( + 0, + vk::Rect2D{ + .extent = {.width = uint32_t(out_size.width), .height = uint32_t(out_size.height)}, + }); + command_buffer.setViewport( + 0, + vk::Viewport{ + .x = 0, + .y = 0, + .width = float(out_size.width), + .height = float(out_size.height), + .minDepth = 0, + .maxDepth = 1, + }); + glm::uvec2 in(0); glm::vec2 out(-0.5 * out_size.width, -0.5 * out_size.height); // pixel coordinates glm::vec2 out_pixel_size(2. / out_size.width, From bd820a4f4a82ad3377849cb43489fccaa124102e Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 12 Sep 2025 14:54:47 +0200 Subject: [PATCH 23/52] Update dashboard default encoder presets --- dashboard/qml/SettingsPage.qml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/dashboard/qml/SettingsPage.qml b/dashboard/qml/SettingsPage.qml index ca9dcc49..f218ae71 100644 --- a/dashboard/qml/SettingsPage.qml +++ b/dashboard/qml/SettingsPage.qml @@ -129,15 +129,9 @@ Kirigami.ScrollablePage { }, { width: 0.5, - height: 0.75, + height: 1, offset_x: 0.5, offset_y: 0 - }, - { - width: 0.5, - height: 0.25, - offset_x: 0.5, - offset_y: 0.75 } ] }, @@ -154,15 +148,9 @@ Kirigami.ScrollablePage { }, { width: 0.5, - height: 0.75, + height: 1, offset_x: 0, offset_y: 0 - }, - { - width: 0.5, - height: 0.25, - offset_x: 0, - offset_y: 0.75 } ] }, From 608cf0c7b238175995f9b8a327314fa6035bf475 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 12 Sep 2025 15:22:37 +0200 Subject: [PATCH 24/52] Drop Ubuntu oracular --- .github/workflows/Build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index a24f9a4e..04c1921c 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -78,7 +78,7 @@ jobs: build-dashboard: name: Linux dashboard runs-on: ubuntu-24.04 - container: ubuntu:oracular + container: ubuntu:plucky if: ${{ vars.APK_ONLY == '' }} steps: - uses: actions/checkout@v4 @@ -462,7 +462,7 @@ jobs: strategy: fail-fast: false matrix: - distro: ['oracular', 'plucky'] + distro: ['plucky'] runs-on: ubuntu-24.04 container: ubuntu:${{ matrix.distro }} steps: From 7e2b0cb973c767b9fd7c93d21b414057bfc5f6a3 Mon Sep 17 00:00:00 2001 From: mitsuami-megane <173323057+mitsuami-megane@users.noreply.github.com> Date: Fri, 12 Sep 2025 22:57:43 +0900 Subject: [PATCH 25/52] update ja locale --- locale/ja/wivrn-dashboard.po | 65 ++++----- locale/ja/wivrn.po | 269 ++++++++++++++++------------------- 2 files changed, 152 insertions(+), 182 deletions(-) diff --git a/locale/ja/wivrn-dashboard.po b/locale/ja/wivrn-dashboard.po index 84933cb6..f0e5f9c4 100644 --- a/locale/ja/wivrn-dashboard.po +++ b/locale/ja/wivrn-dashboard.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn-dashboard\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-08-06 04:49+0900\n" +"POT-Creation-Date: 2025-09-12 21:34+0900\n" "PO-Revision-Date: 2025-04-10 07:14+0900\n" "Last-Translator: Mitsuami Megane \n" "Language-Team: Japanese <>\n" @@ -79,7 +79,7 @@ msgid "No precompiled APK is available for this version." msgstr "現バージョンに対応したAPKはダウンロード不可です。" #: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:259 -#: dashboard/qml/Main.qml:341 +#: dashboard/qml/Main.qml:342 #, kde-format msgid "ADB is not installed." msgstr "ADBはインストールされていません。" @@ -131,7 +131,7 @@ msgstr "WiVRnをインストールする" msgid "Headset statistics" msgstr "HMDの統計情報" -#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:354 +#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:355 #, kde-format msgid "Headsets" msgstr "HMD" @@ -172,7 +172,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:326 dashboard/qml/WizardPage.qml:410 +#: dashboard/qml/WizardPage.qml:327 dashboard/qml/WizardPage.qml:411 #, kde-format msgid "Cancel" msgstr "やめる" @@ -265,7 +265,8 @@ msgstr "" msgid "" "No OpenVR compatibility detected, Steam games won't be able to load VR.\n" "Install xrizer or OpenComposite." -msgstr "OpenVR実装ライブラリーは見つかりませんでした。SteamVRゲームを実行するには、\n" +msgstr "" +"OpenVR実装ライブラリーは見つかりませんでした。SteamVRゲームを実行するには、\n" "xrizerかOpenCompositeをインストールしましょう。" #: dashboard/qml/Main.qml:171 @@ -295,7 +296,7 @@ msgstr "ペアリング" msgid "PIN: %1" msgstr "暗証番号:%1" -#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:373 +#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:374 #, kde-format msgid "Connect by USB" msgstr "USBで接続する" @@ -321,22 +322,22 @@ msgstr "アプリ" msgid "Steam information" msgstr "ストリーム情報" -#: dashboard/qml/Main.qml:325 +#: dashboard/qml/Main.qml:326 #, kde-format msgid "Wizard" msgstr "セットアップウィザード" -#: dashboard/qml/Main.qml:332 +#: dashboard/qml/Main.qml:333 #, kde-format msgid "Install the app" msgstr "アプリをインストール" -#: dashboard/qml/Main.qml:361 dashboard/qml/SettingsPage.qml:14 +#: dashboard/qml/Main.qml:362 dashboard/qml/SettingsPage.qml:14 #, kde-format msgid "Settings" msgstr "設定" -#: dashboard/qml/Main.qml:368 dashboard/qml/TroubleshootPage.qml:10 +#: dashboard/qml/Main.qml:369 dashboard/qml/TroubleshootPage.qml:10 #, kde-format msgid "Troubleshoot" msgstr "問題解決" @@ -625,7 +626,7 @@ msgstr "Steam用の起動オプションをコピーしました" msgid "I cannot find the WiVRn app on my headset" msgstr "HMDでWiVRnアプリが見つからない" -#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:387 +#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:388 #, kde-format msgid "" "If you installed WiVRn over USB on a Meta headset, the app is in the " @@ -637,7 +638,7 @@ msgstr "Metaの場合、ライブラリの「提供元不明」タブをご覧 msgid "I cannot see my computer in the WiVRn app" msgstr "WiVRnアプリでパソコンが表示されない" -#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:392 +#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:393 #, kde-format msgid "" "If the server is not visible or the connection fails, check that port 5353 " @@ -691,7 +692,7 @@ msgstr "ペアリングは無効です。" msgid "I have no sound on my headset" msgstr "HMDから音が出ない" -#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:440 +#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:441 #, kde-format msgid "" "When the headset is connected, select \"WiVRn\" as the default audio output " @@ -715,9 +716,9 @@ msgid "Getting started" msgstr "はじめに" #: dashboard/qml/WizardPage.qml:29 dashboard/qml/WizardPage.qml:78 -#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:316 -#: dashboard/qml/WizardPage.qml:400 dashboard/qml/WizardPage.qml:447 -#: dashboard/qml/WizardPage.qml:484 +#: 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 #, kde-format msgid "Back" msgstr "戻る" @@ -737,8 +738,8 @@ msgstr "" "るようにご案内します。" #: dashboard/qml/WizardPage.qml:83 dashboard/qml/WizardPage.qml:258 -#: dashboard/qml/WizardPage.qml:321 dashboard/qml/WizardPage.qml:452 -#: dashboard/qml/WizardPage.qml:489 +#: dashboard/qml/WizardPage.qml:322 dashboard/qml/WizardPage.qml:453 +#: dashboard/qml/WizardPage.qml:490 #, kde-format msgid "Next" msgstr "次" @@ -833,12 +834,12 @@ msgid "" "your headset." msgstr "接続すると、選択したアプリが自動的に起動します。" -#: dashboard/qml/WizardPage.qml:300 +#: dashboard/qml/WizardPage.qml:301 #, kde-format msgid "Important information" msgstr "警告" -#: dashboard/qml/WizardPage.qml:307 +#: dashboard/qml/WizardPage.qml:308 #, kde-format msgid "" "WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is " @@ -847,12 +848,12 @@ msgstr "" "WiVRnはSteamVRの変わりに使うものです。両方を同時に走らせないように気をつけま" "しょう。" -#: dashboard/qml/WizardPage.qml:358 +#: dashboard/qml/WizardPage.qml:359 #, kde-format msgid "Start the WiVRn app on your headset" msgstr "HMDでWiVRnアプリを起動しましょう。" -#: dashboard/qml/WizardPage.qml:363 +#: dashboard/qml/WizardPage.qml:364 #, kde-format msgid "" "To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" " @@ -861,54 +862,54 @@ msgstr "" "WiFiで接続するには、HMDのWiVRnアプリを使い、「%1」に接続し、暗証番号に「%2」" "を入れましょう。" -#: dashboard/qml/WizardPage.qml:370 +#: dashboard/qml/WizardPage.qml:371 #, kde-format msgid "To connect over USB, click on \"Connect by USB\"." msgstr "USBで接続するには、「USBで接続する」ボタンをクリックしましょう。" -#: dashboard/qml/WizardPage.qml:383 +#: dashboard/qml/WizardPage.qml:384 #, kde-format msgid "Troubleshooting" msgstr "問題解決" -#: dashboard/qml/WizardPage.qml:405 +#: dashboard/qml/WizardPage.qml:406 #, kde-format msgid "Skip" msgstr "スキップ" -#: dashboard/qml/WizardPage.qml:425 +#: dashboard/qml/WizardPage.qml:426 #, kde-format msgid "Connection established" msgstr "接続確立" -#: dashboard/qml/WizardPage.qml:430 +#: dashboard/qml/WizardPage.qml:431 #, kde-format msgid "Your headset is now connected." msgstr "HMDに接続しました。" -#: dashboard/qml/WizardPage.qml:435 dashboard/qml/WizardPage.qml:477 +#: dashboard/qml/WizardPage.qml:436 dashboard/qml/WizardPage.qml:478 #, kde-format msgid "" "To connect another headset, make sure pairing is enabled in the dashboard " "before connecting." msgstr "他のHMDを接続するには、ペアリングが有効なのかどうか確認しましょう。" -#: dashboard/qml/WizardPage.qml:457 dashboard/qml/WizardPage.qml:494 +#: dashboard/qml/WizardPage.qml:458 dashboard/qml/WizardPage.qml:495 #, kde-format msgid "Finish" msgstr "完了" -#: dashboard/qml/WizardPage.qml:472 +#: dashboard/qml/WizardPage.qml:473 #, kde-format msgid "Finished" msgstr "完了しました" -#: dashboard/wivrn_server.cpp:584 +#: dashboard/wivrn_server.cpp:592 #, kde-format msgid "xrizer" msgstr "xrizer" -#: dashboard/wivrn_server.cpp:585 +#: dashboard/wivrn_server.cpp:593 #, kde-format msgid "Open Composite" msgstr "OpenComposite" diff --git a/locale/ja/wivrn.po b/locale/ja/wivrn.po index b1dc3e84..ef105696 100644 --- a/locale/ja/wivrn.po +++ b/locale/ja/wivrn.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn 0.16\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-08-06 04:49+0900\n" +"POT-Creation-Date: 2025-09-12 21:34+0900\n" "PO-Revision-Date: 2024-06-20 10:33+0900\n" "Last-Translator: Mitsuami Megane \n" "Language: Japanese\n" @@ -10,7 +10,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: client/scene.cpp:74 +#: client/scene.cpp:72 msgid "No supported swapchain format" msgstr "互換性のあるスワップチェーンは見つからなかった" @@ -37,94 +37,94 @@ msgstr "{}に接続できませんでした:({}) {}" msgid "Waiting for connection" msgstr "接続を待っています" -#: client/scenes/lobby_gui.cpp:229 +#: client/scenes/lobby_gui.cpp:231 msgctxt "openxr_post_processing" msgid "Normal" msgstr "ノーマル" -#: client/scenes/lobby_gui.cpp:232 +#: client/scenes/lobby_gui.cpp:234 msgctxt "openxr_post_processing" msgid "Quality" msgstr "クオリティ" -#: client/scenes/lobby_gui.cpp:234 +#: client/scenes/lobby_gui.cpp:236 msgctxt "openxr_post_processing" msgid "Disabled" msgstr "無効" -#: client/scenes/lobby_gui.cpp:242 client/scenes/lobby_gui.cpp:398 -#: client/scenes/stream_gui.cpp:812 +#: client/scenes/lobby_gui.cpp:244 client/scenes/lobby_gui.cpp:401 +#: client/scenes/stream_gui.cpp:838 msgid "Disconnect" msgstr "切断する" -#: client/scenes/lobby_gui.cpp:262 client/scenes/stream_gui.cpp:808 +#: client/scenes/lobby_gui.cpp:265 client/scenes/stream_gui.cpp:834 msgid "Close" msgstr "やめる" -#: client/scenes/lobby_gui.cpp:268 +#: client/scenes/lobby_gui.cpp:271 msgid "Connection" msgstr "接続" -#: client/scenes/lobby_gui.cpp:270 +#: client/scenes/lobby_gui.cpp:273 #, c++-format msgid "Connection to {}" msgstr "{}に接続中" -#: client/scenes/lobby_gui.cpp:300 +#: client/scenes/lobby_gui.cpp:303 msgid "PIN" msgstr "暗証番号" -#: client/scenes/lobby_gui.cpp:322 +#: client/scenes/lobby_gui.cpp:325 msgid "Input the PIN displayed on the dashboard" msgstr "パソコンで表示された暗証番号を入力してください" -#: client/scenes/lobby_gui.cpp:393 +#: client/scenes/lobby_gui.cpp:396 msgid "Connected to WiVRn server" msgstr "WiVRnサーバーに接続しました。" -#: client/scenes/lobby_gui.cpp:395 +#: client/scenes/lobby_gui.cpp:398 #, c++-format msgid "Connected to {}" msgstr "{}に接続しました。" -#: client/scenes/lobby_gui.cpp:405 +#: client/scenes/lobby_gui.cpp:408 msgid "Start an application on the server to start streaming." msgstr "VRアプリを起動してVRに入りましょう!" -#: client/scenes/lobby_gui.cpp:414 +#: client/scenes/lobby_gui.cpp:420 msgid "Start an application on your computer or select one to start streaming." msgstr "パソコンでVRアプリを起動するか、ここからアプリを選択しましょう。" -#: client/scenes/lobby_gui.cpp:416 +#: client/scenes/lobby_gui.cpp:422 #, c++-format msgid "Start an application on {} or select one to start streaming." msgstr "{}でVRアプリを起動するか、ここからアプリを選択しましょう。" -#: client/scenes/lobby_gui.cpp:522 +#: client/scenes/lobby_gui.cpp:545 msgid "Name" msgstr "表示名" -#: client/scenes/lobby_gui.cpp:533 +#: client/scenes/lobby_gui.cpp:556 msgid "Address" msgstr "アドレス" -#: client/scenes/lobby_gui.cpp:542 +#: client/scenes/lobby_gui.cpp:565 msgid "Port" msgstr "ポート番号" -#: client/scenes/lobby_gui.cpp:550 +#: client/scenes/lobby_gui.cpp:573 msgid "TCP only" msgstr "TCPのみを使用" -#: client/scenes/lobby_gui.cpp:557 +#: client/scenes/lobby_gui.cpp:580 msgid "Cancel" msgstr "やめる" -#: client/scenes/lobby_gui.cpp:571 +#: client/scenes/lobby_gui.cpp:594 msgid "Save" msgstr "保存する" -#: client/scenes/lobby_gui.cpp:624 +#: client/scenes/lobby_gui.cpp:647 msgid "" "Start a WiVRn server on your\n" "local network" @@ -132,32 +132,32 @@ msgstr "" "ローカルネットワークでWiVRnサーバーを\n" "起動してみて下さい" -#: client/scenes/lobby_gui.cpp:656 +#: client/scenes/lobby_gui.cpp:679 msgid "Autoconnect" msgstr "自動接続" -#: client/scenes/lobby_gui.cpp:682 +#: client/scenes/lobby_gui.cpp:705 msgid "Connect" msgstr "接続する" -#: client/scenes/lobby_gui.cpp:692 client/wivrn_client.cpp:186 +#: client/scenes/lobby_gui.cpp:715 client/wivrn_client.cpp:186 msgid "Incompatible server version" msgstr "互換性のないサーバーです" -#: client/scenes/lobby_gui.cpp:694 +#: client/scenes/lobby_gui.cpp:717 msgid "Server not available" msgstr "サーバーは利用不可です" -#: client/scenes/lobby_gui.cpp:780 +#: client/scenes/lobby_gui.cpp:803 msgid "Refresh rate" msgstr "リフレッシュレート" -#: client/scenes/lobby_gui.cpp:780 client/scenes/lobby_gui.cpp:782 +#: client/scenes/lobby_gui.cpp:803 client/scenes/lobby_gui.cpp:805 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "自動" -#: client/scenes/lobby_gui.cpp:789 +#: client/scenes/lobby_gui.cpp:812 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -165,60 +165,60 @@ msgstr "" "アプリケーションのパフォーマンスを基づいて自動的に設定します。\n" "変更時にチラツキが発生する可能性があります。" -#: client/scenes/lobby_gui.cpp:806 +#: client/scenes/lobby_gui.cpp:829 msgid "Minimum refresh rate" msgstr "最低リフレッシュレート" -#: client/scenes/lobby_gui.cpp:829 +#: client/scenes/lobby_gui.cpp:852 msgid "Resolution scale" msgstr "解像度" -#: client/scenes/lobby_gui.cpp:833 client/scenes/lobby_gui.cpp:1072 +#: client/scenes/lobby_gui.cpp:856 #, c-format, c++-format msgid "%d%% - {}x{} per eye" msgstr "%d%% - 目あたり{}x{}" -#: client/scenes/lobby_gui.cpp:844 client/scenes/lobby_gui.cpp:1083 +#: client/scenes/lobby_gui.cpp:867 #, c++-format msgid "Resolution larger than {}x{} may not be supported by the headset" msgstr "" "{}x{}以上の解像度は、お使いのヘッドセットではサポートされない場合があります。" -#: client/scenes/lobby_gui.cpp:850 +#: client/scenes/lobby_gui.cpp:873 msgid "Enable microphone" msgstr "マイクを有効する" -#: client/scenes/lobby_gui.cpp:859 +#: client/scenes/lobby_gui.cpp:882 msgid "Unprocessed Microphone Audio" msgstr "未処理のマイク音声" -#: client/scenes/lobby_gui.cpp:865 +#: client/scenes/lobby_gui.cpp:888 msgid "Force disable audio filters, such as noise cancellation" msgstr "ノイズ除去などのフィルターを無効化する" -#: client/scenes/lobby_gui.cpp:872 +#: client/scenes/lobby_gui.cpp:895 msgid "Enable hand tracking" msgstr "ハンドトラッキングを有効する" -#: client/scenes/lobby_gui.cpp:878 client/scenes/lobby_gui.cpp:890 -#: client/scenes/lobby_gui.cpp:902 client/scenes/lobby_gui.cpp:918 -#: client/scenes/lobby_gui.cpp:968 +#: client/scenes/lobby_gui.cpp:901 client/scenes/lobby_gui.cpp:913 +#: client/scenes/lobby_gui.cpp:925 client/scenes/lobby_gui.cpp:942 +#: client/scenes/lobby_gui.cpp:987 msgid "This feature is not supported by your headset" msgstr "デバイスはこの機能をサポートしていません" -#: client/scenes/lobby_gui.cpp:884 +#: client/scenes/lobby_gui.cpp:907 msgid "Enable eye tracking" msgstr "アイトラッキングを有効する" -#: client/scenes/lobby_gui.cpp:896 +#: client/scenes/lobby_gui.cpp:919 msgid "Enable face tracking" msgstr "顔トラッキングを有効する" -#: client/scenes/lobby_gui.cpp:909 +#: client/scenes/lobby_gui.cpp:933 msgid "Enable body tracking" msgstr "ボディラッキングを有効する" -#: client/scenes/lobby_gui.cpp:925 +#: client/scenes/lobby_gui.cpp:947 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -229,11 +229,11 @@ msgstr "" "そうでなければ、トラッキングデータはHMDとコントローラーの情報から推測されるこ" "とになる。" -#: client/scenes/lobby_gui.cpp:938 +#: client/scenes/lobby_gui.cpp:957 msgid "Enable lower body tracking" msgstr "下半身トラッキングを有効する" -#: client/scenes/lobby_gui.cpp:944 +#: client/scenes/lobby_gui.cpp:963 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -243,11 +243,11 @@ msgstr "" "Quest設定・動きのトラッキング・ジェスチャーコントロールとボディトラッキングを" "有効する必要がある。" -#: client/scenes/lobby_gui.cpp:947 +#: client/scenes/lobby_gui.cpp:966 msgid "Enable hip tracking" msgstr "腰のトラッキングを有効する" -#: client/scenes/lobby_gui.cpp:953 +#: client/scenes/lobby_gui.cpp:972 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -255,19 +255,31 @@ msgstr "" "下半身トラッキングが有効な場合に使用可能。\n" "腰トラッカーを持ってる方は無効にしましょう。" -#: client/scenes/lobby_gui.cpp:961 +#: client/scenes/lobby_gui.cpp:980 msgid "Enable video passthrough in lobby" msgstr "ロビーでパススルーを有効する" -#: client/scenes/lobby_gui.cpp:982 client/scenes/stream_gui.cpp:434 +#: client/scenes/lobby_gui.cpp:991 +msgid "Enable in-stream window" +msgstr "ストリーミング中の設定パネル" + +#: client/scenes/lobby_gui.cpp:994 +msgid "" +"Enables the configuration window to be shown while the game is streaming.\n" +"If enabled, the window is activated by pressing both thumbsticks." +msgstr "" +"ストリーミング中にも設定パネルを表示できるようにします。\n" +"両方のサムスティックを同時に押して切り替えることができます。" + +#: client/scenes/lobby_gui.cpp:1008 client/scenes/stream_gui.cpp:445 msgid "OpenXR post-processing" msgstr "OpenXRポストエフェクト" -#: client/scenes/lobby_gui.cpp:986 client/scenes/stream_gui.cpp:438 +#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:449 msgid "Supersampling" msgstr "スーパーサンプリング" -#: client/scenes/lobby_gui.cpp:1006 client/scenes/stream_gui.cpp:459 +#: client/scenes/lobby_gui.cpp:1032 client/scenes/stream_gui.cpp:470 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -275,11 +287,11 @@ msgstr "" "コントラストが高い部分のギザギザを低減する。\n" "ストリームの解像度は、HMDの解像度より高い場合は有用です。" -#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:464 +#: client/scenes/lobby_gui.cpp:1037 client/scenes/stream_gui.cpp:475 msgid "Sharpening" msgstr "シャープ" -#: client/scenes/lobby_gui.cpp:1031 client/scenes/stream_gui.cpp:485 +#: client/scenes/lobby_gui.cpp:1057 client/scenes/stream_gui.cpp:496 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -287,169 +299,125 @@ msgstr "" "ぼかしを低減し、コントラストが高い部分の鮮明度を向上する。\n" "ストリームの解像度は、HMDの解像度より低い場合に有用です。" -#: client/scenes/lobby_gui.cpp:1040 -msgid "Enable Snapdragon Game Super Resolution" -msgstr "Snapdragon Game Super Resolutionを有効する" - -#: client/scenes/lobby_gui.cpp:1048 -msgid "" -"On this headset, this setting has been fully superseded by the native " -"Sharpening setting above.\n" -"Only enable if you know what you're doing." -msgstr "" -"この設定は、使用中のHMDでは非推奨です。OpenXRの方法を使用してください。" - -#: client/scenes/lobby_gui.cpp:1050 -msgid "" -"Client-side upscaling and sharpening, adds a performance cost on the headset" -msgstr "" -"HMD側のアップスケーリングやシャープニングを使用する場合、要求性能が上がりま" -"す。" - -#: client/scenes/lobby_gui.cpp:1068 -msgid "Upscaling factor" -msgstr "アップスケーリング係数" - -#: client/scenes/lobby_gui.cpp:1087 -msgid "Use edge direction" -msgstr "エッジ方向を使用する" - -#: client/scenes/lobby_gui.cpp:1093 -msgid "Adds an additional performance cost" -msgstr "HMDに対する要求性能が上がります。" - -#: client/scenes/lobby_gui.cpp:1098 -msgid "Edge threshold" -msgstr "エッジのしきい値" - -#: client/scenes/lobby_gui.cpp:1105 client/scenes/lobby_gui.cpp:1114 -#, c++-format -msgid "Recommended: {:.1f}" -msgstr "推奨値:{:.1f}" - -#: client/scenes/lobby_gui.cpp:1108 -msgid "Edge sharpness" -msgstr "エッジのシャープ" - -#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218 -#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418 +#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161 +#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424 msgid "CPU time" msgstr "CPU使用時間" -#: client/scenes/lobby_gui.cpp:1214 +#: client/scenes/lobby_gui.cpp:1157 msgid "CPU time [ms]" msgstr "CPU使用時間、ミリ秒" -#: client/scenes/lobby_gui.cpp:1224 client/scenes/lobby_gui.cpp:1232 -#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419 +#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175 +#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425 msgid "GPU time" msgstr "GPU使用時間" -#: client/scenes/lobby_gui.cpp:1228 +#: client/scenes/lobby_gui.cpp:1171 msgid "GPU time [ms]" msgstr "GPU使用時間、ミリ秒" -#: client/scenes/lobby_gui.cpp:1271 +#: client/scenes/lobby_gui.cpp:1214 msgid "Enable the microphone?" msgstr "マイクを有効にしますか?" -#: client/scenes/lobby_gui.cpp:1276 +#: client/scenes/lobby_gui.cpp:1219 msgid "Enable eye tracking?" msgstr "アイトラッキングを有効にしますか?" -#: client/scenes/lobby_gui.cpp:1281 +#: client/scenes/lobby_gui.cpp:1224 msgid "Enable face tracking?" msgstr "フェースラッキングを有効にしますか?" -#: client/scenes/lobby_gui.cpp:1286 +#: client/scenes/lobby_gui.cpp:1229 msgid "Enable body tracking?" msgstr "ボディトラッキングを有効にしますか?" -#: client/scenes/lobby_gui.cpp:1294 +#: client/scenes/lobby_gui.cpp:1237 msgid "Welcome to WiVRn" msgstr "WiVRnへようこそ!" -#: client/scenes/lobby_gui.cpp:1318 +#: client/scenes/lobby_gui.cpp:1261 msgid "Yes" msgstr "はい" -#: client/scenes/lobby_gui.cpp:1325 +#: client/scenes/lobby_gui.cpp:1268 msgid "No" msgstr "いいえ" -#: client/scenes/lobby_gui.cpp:1344 client/scenes/lobby_gui.cpp:1983 +#: client/scenes/lobby_gui.cpp:1287 client/scenes/lobby_gui.cpp:1934 msgid "Licenses" msgstr "ライセンス" -#: client/scenes/lobby_gui.cpp:1658 +#: client/scenes/lobby_gui.cpp:1612 msgid "Microphone is enabled" msgstr "マイクは有効です" -#: client/scenes/lobby_gui.cpp:1659 +#: client/scenes/lobby_gui.cpp:1613 msgid "Microphone is disabled" msgstr "マイクは無効です" -#: client/scenes/lobby_gui.cpp:1668 +#: client/scenes/lobby_gui.cpp:1622 msgid "Hand tracking is enabled" msgstr "ハンドトラッキングは有効です" -#: client/scenes/lobby_gui.cpp:1669 +#: client/scenes/lobby_gui.cpp:1623 msgid "Hand tracking is disabled" msgstr "ハンドラッキングは無効です" -#: client/scenes/lobby_gui.cpp:1678 +#: client/scenes/lobby_gui.cpp:1632 msgid "Eye tracking is enabled" msgstr "アイトラッキングは有効です" -#: client/scenes/lobby_gui.cpp:1679 +#: client/scenes/lobby_gui.cpp:1633 msgid "Eye tracking is disabled" msgstr "アイトラッキングは無効です" -#: client/scenes/lobby_gui.cpp:1692 +#: client/scenes/lobby_gui.cpp:1643 msgid "Face tracking is enabled" msgstr "フェーストラッキングは有効です" -#: client/scenes/lobby_gui.cpp:1693 +#: client/scenes/lobby_gui.cpp:1644 msgid "Face tracking is disabled" msgstr "フェーストラッキングは無効です" -#: client/scenes/lobby_gui.cpp:1703 +#: client/scenes/lobby_gui.cpp:1654 msgid "Body tracking is enabled" msgstr "ボディトラッキングは有効です" -#: client/scenes/lobby_gui.cpp:1704 +#: client/scenes/lobby_gui.cpp:1655 msgid "Body tracking is disabled" msgstr "ボディトラッキングは無効です" -#: client/scenes/lobby_gui.cpp:1720 +#: client/scenes/lobby_gui.cpp:1671 msgid "Add server" msgstr "サーバーを追加する" -#: client/scenes/lobby_gui.cpp:1965 +#: client/scenes/lobby_gui.cpp:1916 msgid "Server list" msgstr "サーバー" -#: client/scenes/lobby_gui.cpp:1968 client/scenes/stream_gui.cpp:796 +#: client/scenes/lobby_gui.cpp:1919 client/scenes/stream_gui.cpp:822 msgid "Settings" msgstr "設定" -#: client/scenes/lobby_gui.cpp:1971 +#: client/scenes/lobby_gui.cpp:1922 msgid "Post-processing" msgstr "ポストエフェクト" -#: client/scenes/lobby_gui.cpp:1975 +#: client/scenes/lobby_gui.cpp:1926 msgid "Debug" msgstr "デバッグ" -#: client/scenes/lobby_gui.cpp:1980 +#: client/scenes/lobby_gui.cpp:1931 msgid "About" msgstr "WiVRnについて" -#: client/scenes/lobby_gui.cpp:1986 +#: client/scenes/lobby_gui.cpp:1937 msgid "Exit" msgstr "完了" -#: client/scenes/lobby_gui.cpp:2003 +#: client/scenes/lobby_gui.cpp:1954 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -457,7 +425,7 @@ msgstr "" "メイン・パネルを動かすには、グリップを握るか、\n" "手のひらを上向きにしましょう。" -#: client/scenes/lobby_gui.cpp:2005 +#: client/scenes/lobby_gui.cpp:1956 msgid "Press the grip button to move the main window" msgstr "グリップを握ってパネルを動かしましょう。" @@ -473,11 +441,11 @@ msgstr "レンダー" msgid "Network" msgstr "ネットワーク" -#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416 +#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422 msgid "Download" msgstr "ダウンロード" -#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417 +#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423 msgid "Upload" msgstr "アップロード" @@ -518,66 +486,66 @@ msgstr "表示" msgid "Predicted" msgstr "予測時間" -#: client/scenes/stream_gui.cpp:393 +#: client/scenes/stream_gui.cpp:395 #, c++-format msgid "Estimated motion to photons latency: {}ms" msgstr "「Motion-to-photon」推定遅延 {}ミリ秒" -#: client/scenes/stream_gui.cpp:396 +#: client/scenes/stream_gui.cpp:402 msgid "Press the grip button to move the window" msgstr "グリップを握ってパネルを動かしましょう。" -#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750 +#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776 msgid "Press both thumbsticks to display the WiVRn window" msgstr "両方のサムスティックを同時に押すことで設定表示" -#: client/scenes/stream_gui.cpp:420 +#: client/scenes/stream_gui.cpp:426 msgid "Motion to photon latency" msgstr "「Motion-to-photon」遅延" -#: client/scenes/stream_gui.cpp:492 +#: client/scenes/stream_gui.cpp:503 msgid "Foveation center override" msgstr "光学中心の調整" -#: client/scenes/stream_gui.cpp:495 +#: client/scenes/stream_gui.cpp:506 msgid "Enable" msgstr "有効" -#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550 +#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561 #, c++-format msgid "Height {:.1f} deg" msgstr "仰角 {:.1f}°" -#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551 +#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562 #, c++-format msgid "Distance {:.2f} m" msgstr "距離 {:.2f}m" -#: client/scenes/stream_gui.cpp:505 +#: client/scenes/stream_gui.cpp:516 msgid "Default" msgstr "デフォルト" -#: client/scenes/stream_gui.cpp:516 +#: client/scenes/stream_gui.cpp:527 msgid "Change" msgstr "編集" -#: client/scenes/stream_gui.cpp:548 +#: client/scenes/stream_gui.cpp:559 msgid "Use the thumbsticks to move the foveation center" msgstr "ジョイスティックを使って中心点を調整しましょう。" -#: client/scenes/stream_gui.cpp:549 +#: client/scenes/stream_gui.cpp:560 msgid "Press A to save or B to cancel" msgstr "AかBを押してキャンセル。" -#: client/scenes/stream_gui.cpp:793 +#: client/scenes/stream_gui.cpp:819 msgid "Stats" msgstr "統計情報" -#: client/scenes/stream_gui.cpp:802 +#: client/scenes/stream_gui.cpp:828 msgid "Statistics overlay" msgstr "統計オーバーレイ" -#: client/scenes/stream_gui.cpp:805 +#: client/scenes/stream_gui.cpp:831 msgid "Compact view" msgstr "コンパクト・モード" @@ -596,3 +564,4 @@ msgstr "暗証番号を確認できませんでした" #: client/wivrn_client.cpp:182 msgid "Pairing is disabled on server" msgstr "このサーバーではペアリングが無効です" + From 3269fecef2a452a9effe6d6dc3df0dcec01b192b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=BCseyin=20Fahri=20Uzun?= Date: Fri, 12 Sep 2025 17:36:26 +0300 Subject: [PATCH 26/52] TR updated translation --- locale/tr/wivrn-dashboard.po | 116 ++++++------- locale/tr/wivrn.po | 324 ++++++++++++++++++----------------- 2 files changed, 222 insertions(+), 218 deletions(-) diff --git a/locale/tr/wivrn-dashboard.po b/locale/tr/wivrn-dashboard.po index 6385fcf3..d8198423 100644 --- a/locale/tr/wivrn-dashboard.po +++ b/locale/tr/wivrn-dashboard.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn-dashboard\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-08-04 10:40+0300\n" +"POT-Creation-Date: 2025-09-12 15:54+0300\n" "PO-Revision-Date: 2025-08-08 17:09+0300\n" "Last-Translator: Hüseyin Fahri Uzun \n" "Language-Team: \n" @@ -86,7 +86,7 @@ msgid "No precompiled APK is available for this version." msgstr "Bu sürüm için önceden derlenmiş APK yok." #: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:259 -#: dashboard/qml/Main.qml:341 +#: dashboard/qml/Main.qml:342 #, kde-format msgid "ADB is not installed." msgstr "ADB yüklü değil." @@ -135,7 +135,7 @@ msgstr "WiVRn'i yeniden yükle" msgid "Install WiVRn" msgstr "WiVRn'i yükle" -#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:354 +#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:355 #, kde-format msgid "Headsets" msgstr "Gözlükler" @@ -180,7 +180,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:326 dashboard/qml/WizardPage.qml:410 +#: dashboard/qml/WizardPage.qml:327 dashboard/qml/WizardPage.qml:411 #, kde-format msgid "Cancel" msgstr "İptal" @@ -310,7 +310,7 @@ msgstr "Eşleştirme" msgid "PIN: %1" msgstr "PIN: %1" -#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:373 +#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:374 #, kde-format msgid "Connect by USB" msgstr "USB ile bağlan" @@ -336,22 +336,22 @@ msgstr "Uygulama" msgid "Steam information" msgstr "Steam bilgisi" -#: dashboard/qml/Main.qml:325 +#: dashboard/qml/Main.qml:326 #, kde-format msgid "Wizard" msgstr "Sihirbaz" -#: dashboard/qml/Main.qml:332 +#: dashboard/qml/Main.qml:333 #, kde-format msgid "Install the app" msgstr "Uygulamayı yükle" -#: dashboard/qml/Main.qml:361 dashboard/qml/SettingsPage.qml:14 +#: dashboard/qml/Main.qml:362 dashboard/qml/SettingsPage.qml:14 #, kde-format msgid "Settings" msgstr "Ayarlar" -#: dashboard/qml/Main.qml:368 dashboard/qml/TroubleshootPage.qml:10 +#: dashboard/qml/Main.qml:369 dashboard/qml/TroubleshootPage.qml:10 #, kde-format msgid "Troubleshoot" msgstr "Sorun giderme" @@ -457,19 +457,19 @@ msgctxt "encoder preset" msgid "Default preset" msgstr "Varsayılan ön ayar" -#: dashboard/qml/SettingsPage.qml:145 +#: dashboard/qml/SettingsPage.qml:139 #, kde-format msgctxt "encoder preset" msgid "Low latency preset" msgstr "Düşük gecikmeli ön ayar" -#: dashboard/qml/SettingsPage.qml:170 +#: dashboard/qml/SettingsPage.qml:158 #, kde-format msgctxt "encoder preset" msgid "Safe preset" msgstr "Güvenli ön ayar" -#: dashboard/qml/SettingsPage.qml:193 +#: dashboard/qml/SettingsPage.qml:181 #, kde-format msgid "" "To add a new encoder, split an existing encoder by clicking near an edge.\n" @@ -480,84 +480,84 @@ msgstr "" "Kodlayıcıları yeniden boyutlandırmak veya kaldırmak için bir kenarı " "sürükleyin." -#: dashboard/qml/SettingsPage.qml:220 +#: dashboard/qml/SettingsPage.qml:208 #, kde-format msgid "Encoder:" msgstr "Kodlayıcı:" -#: dashboard/qml/SettingsPage.qml:229 +#: dashboard/qml/SettingsPage.qml:217 #, kde-format msgctxt "automatic encoder setup" msgid "Auto" msgstr "Otomatik" -#: dashboard/qml/SettingsPage.qml:234 +#: dashboard/qml/SettingsPage.qml:222 #, kde-format msgid "nvenc (NVIDIA GPUs)" msgstr "nvenc (NVIDIA GPU'ları)" -#: dashboard/qml/SettingsPage.qml:239 +#: dashboard/qml/SettingsPage.qml:227 #, kde-format msgid "vaapi (AMD and Intel GPUs)" msgstr "vaapi (AMD ve Intel GPU'ları)" -#: dashboard/qml/SettingsPage.qml:244 +#: dashboard/qml/SettingsPage.qml:232 #, kde-format msgid "x264 (software encoding)" msgstr "x264 (yazılım kodlaması)" -#: dashboard/qml/SettingsPage.qml:249 +#: dashboard/qml/SettingsPage.qml:237 #, kde-format msgid "Vulkan (Vulkan Video)" msgstr "Vulkan (Vulkan Video)" -#: dashboard/qml/SettingsPage.qml:272 +#: dashboard/qml/SettingsPage.qml:260 #, 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:278 +#: dashboard/qml/SettingsPage.qml:266 #, kde-format msgid "Codec:" msgstr "Codec:" -#: dashboard/qml/SettingsPage.qml:285 +#: dashboard/qml/SettingsPage.qml:273 #, kde-format msgctxt "automatic codec setup" msgid "Auto" msgstr "Otomatik" -#: dashboard/qml/SettingsPage.qml:289 +#: dashboard/qml/SettingsPage.qml:277 #, kde-format msgid "H.264" msgstr "H.264" -#: dashboard/qml/SettingsPage.qml:293 +#: dashboard/qml/SettingsPage.qml:281 #, kde-format msgid "H.265" msgstr "H.265" -#: dashboard/qml/SettingsPage.qml:297 +#: dashboard/qml/SettingsPage.qml:285 #, kde-format msgid "AV1" msgstr "AV1" -#: dashboard/qml/SettingsPage.qml:319 +#: dashboard/qml/SettingsPage.qml:307 #, kde-format msgid "Advanced options" msgstr "Gelişmiş seçenekler" -#: dashboard/qml/SettingsPage.qml:325 +#: dashboard/qml/SettingsPage.qml:313 #, kde-format msgid "Enable debug window" msgstr "Hata ayıklama penceresini etkinleştir" -#: dashboard/qml/SettingsPage.qml:332 +#: dashboard/qml/SettingsPage.qml:320 #, kde-format msgid "Enable SteamVR tracked devices support" msgstr "SteamVR izlenen aygıt desteğini etkinleştir" -#: dashboard/qml/SettingsPage.qml:335 +#: dashboard/qml/SettingsPage.qml:323 #, kde-format msgid "" "Allows the use of lighthouse-based controllers and trackers.\n" @@ -571,44 +571,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:343 +#: dashboard/qml/SettingsPage.qml:331 #, kde-format msgid "Custom adb location" msgstr "Özel adb konumu" -#: dashboard/qml/SettingsPage.qml:354 +#: dashboard/qml/SettingsPage.qml:342 #, kde-format msgid "Adb location:" msgstr "Adb konumu:" -#: dashboard/qml/SettingsPage.qml:363 +#: dashboard/qml/SettingsPage.qml:351 #, kde-format msgctxt "browse a file to choose the adb binary" msgid "Browse" msgstr "Gözat" -#: dashboard/qml/SettingsPage.qml:373 +#: dashboard/qml/SettingsPage.qml:361 #, kde-format msgid "Default" msgstr "Varsayılan" -#: dashboard/qml/SettingsPage.qml:387 +#: dashboard/qml/SettingsPage.qml:375 #, kde-format msgctxt "set a custom OpenVR compatibility library" msgid "Custom" msgstr "Özel" -#: dashboard/qml/SettingsPage.qml:392 +#: dashboard/qml/SettingsPage.qml:380 #, kde-format msgid "Disabled" msgstr "Devre dışı" -#: dashboard/qml/SettingsPage.qml:400 +#: dashboard/qml/SettingsPage.qml:388 #, kde-format msgid "OpenVR compatibility library:" msgstr "OpenVR uyumluluk kitaplığı:" -#: dashboard/qml/SettingsPage.qml:426 +#: dashboard/qml/SettingsPage.qml:414 #, kde-format msgid "Library path, excluding bin/linux64/vrclient.so" msgstr "Yol: bin/linux64/vrclient.so hariç, kitaplık yolu" @@ -645,7 +645,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:387 +#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:388 #, kde-format msgid "" "If you installed WiVRn over USB on a Meta headset, the app is in the " @@ -659,7 +659,7 @@ msgstr "" msgid "I cannot see my computer in the WiVRn app" msgstr "WiVRn uygulamasında bilgisayarımı göremiyorum" -#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:392 +#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:393 #, kde-format msgid "" "If the server is not visible or the connection fails, check that port 5353 " @@ -714,7 +714,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:50 dashboard/qml/WizardPage.qml:440 +#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:441 #, kde-format msgid "" "When the headset is connected, select \"WiVRn\" as the default audio output " @@ -739,9 +739,9 @@ 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:316 -#: dashboard/qml/WizardPage.qml:400 dashboard/qml/WizardPage.qml:447 -#: dashboard/qml/WizardPage.qml:484 +#: 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 #, kde-format msgid "Back" msgstr "Geri" @@ -761,8 +761,8 @@ msgstr "" "yardımcı olacaktır." #: dashboard/qml/WizardPage.qml:83 dashboard/qml/WizardPage.qml:258 -#: dashboard/qml/WizardPage.qml:321 dashboard/qml/WizardPage.qml:452 -#: dashboard/qml/WizardPage.qml:489 +#: dashboard/qml/WizardPage.qml:322 dashboard/qml/WizardPage.qml:453 +#: dashboard/qml/WizardPage.qml:490 #, kde-format msgid "Next" msgstr "İleri" @@ -860,12 +860,12 @@ msgstr "" "Seçtiğiniz uygulama, gözlüğünüzü bağladığınızda otomatik olarak " "başlayacaktır." -#: dashboard/qml/WizardPage.qml:300 +#: dashboard/qml/WizardPage.qml:301 #, kde-format msgid "Important information" msgstr "Önemli bilgi" -#: dashboard/qml/WizardPage.qml:307 +#: dashboard/qml/WizardPage.qml:308 #, kde-format msgid "" "WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is " @@ -874,12 +874,12 @@ msgstr "" "WiVRn, SteamVR'nin yerini tamamen alır, WiVRn çalışırken SteamVR'yi " "başlatmamalısınız." -#: dashboard/qml/WizardPage.qml:358 +#: dashboard/qml/WizardPage.qml:359 #, 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:363 +#: dashboard/qml/WizardPage.qml:364 #, kde-format msgid "" "To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" " @@ -888,32 +888,32 @@ 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:370 +#: dashboard/qml/WizardPage.qml:371 #, 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:383 +#: dashboard/qml/WizardPage.qml:384 #, kde-format msgid "Troubleshooting" msgstr "Sorun giderme" -#: dashboard/qml/WizardPage.qml:405 +#: dashboard/qml/WizardPage.qml:406 #, kde-format msgid "Skip" msgstr "Atla" -#: dashboard/qml/WizardPage.qml:425 +#: dashboard/qml/WizardPage.qml:426 #, kde-format msgid "Connection established" msgstr "Bağlantı kuruldu" -#: dashboard/qml/WizardPage.qml:430 +#: dashboard/qml/WizardPage.qml:431 #, kde-format msgid "Your headset is now connected." msgstr "Gözlüğünüz şimdi bağlı." -#: dashboard/qml/WizardPage.qml:435 dashboard/qml/WizardPage.qml:477 +#: dashboard/qml/WizardPage.qml:436 dashboard/qml/WizardPage.qml:478 #, kde-format msgid "" "To connect another headset, make sure pairing is enabled in the dashboard " @@ -922,22 +922,22 @@ 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:457 dashboard/qml/WizardPage.qml:494 +#: dashboard/qml/WizardPage.qml:458 dashboard/qml/WizardPage.qml:495 #, kde-format msgid "Finish" msgstr "Bitir" -#: dashboard/qml/WizardPage.qml:472 +#: dashboard/qml/WizardPage.qml:473 #, kde-format msgid "Finished" msgstr "Bitti" -#: dashboard/wivrn_server.cpp:584 +#: dashboard/wivrn_server.cpp:592 #, kde-format msgid "xrizer" msgstr "xrizer" -#: dashboard/wivrn_server.cpp:585 +#: dashboard/wivrn_server.cpp:593 #, kde-format msgid "Open Composite" msgstr "Open Composite" diff --git a/locale/tr/wivrn.po b/locale/tr/wivrn.po index 5f659de9..a3f661fa 100644 --- a/locale/tr/wivrn.po +++ b/locale/tr/wivrn.po @@ -8,9 +8,9 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-08-04 16:49+0300\n" -"PO-Revision-Date: 2025-08-08 16:56+0300\n" -"Last-Translator: Hüseyin Fahri Uzun \n" +"POT-Creation-Date: 2025-09-10 23:23+0300\n" +"PO-Revision-Date: 2025-09-12 17:35+0300\n" +"Last-Translator: Hüseyin Fahri Uzun \n" "Language-Team: \n" "Language: tr\n" "MIME-Version: 1.0\n" @@ -18,7 +18,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 3.6\n" -#: client/scene.cpp:74 +#: client/scene.cpp:72 msgid "No supported swapchain format" msgstr "Desteklenen swapchain formatı yok" @@ -45,130 +45,130 @@ msgstr "Bağlanılamıyor {} ({}): {}" msgid "Waiting for connection" msgstr "Bağlantı için bekleniyor" -#: client/scenes/lobby_gui.cpp:229 +#: client/scenes/lobby_gui.cpp:231 msgctxt "openxr_post_processing" msgid "Normal" msgstr "Normal" -#: client/scenes/lobby_gui.cpp:232 +#: client/scenes/lobby_gui.cpp:234 msgctxt "openxr_post_processing" msgid "Quality" msgstr "Kalite" -#: client/scenes/lobby_gui.cpp:234 +#: client/scenes/lobby_gui.cpp:236 msgctxt "openxr_post_processing" msgid "Disabled" msgstr "Devre dışı" -#: client/scenes/lobby_gui.cpp:242 client/scenes/lobby_gui.cpp:398 -#: client/scenes/stream_gui.cpp:812 +#: client/scenes/lobby_gui.cpp:244 client/scenes/lobby_gui.cpp:401 +#: client/scenes/stream_gui.cpp:838 msgid "Disconnect" msgstr "Bağlantıyı Kes" -#: client/scenes/lobby_gui.cpp:262 client/scenes/stream_gui.cpp:808 +#: client/scenes/lobby_gui.cpp:265 client/scenes/stream_gui.cpp:834 msgid "Close" msgstr "Kapat" -#: client/scenes/lobby_gui.cpp:268 +#: client/scenes/lobby_gui.cpp:271 msgid "Connection" msgstr "Bağlantı" -#: client/scenes/lobby_gui.cpp:270 +#: client/scenes/lobby_gui.cpp:273 #, c++-format msgid "Connection to {}" msgstr "{} Bağlan" -#: client/scenes/lobby_gui.cpp:300 +#: client/scenes/lobby_gui.cpp:303 msgid "PIN" msgstr "PIN" -#: client/scenes/lobby_gui.cpp:322 +#: client/scenes/lobby_gui.cpp:325 msgid "Input the PIN displayed on the dashboard" msgstr "Gösterilen PIN'i gösterge paneline giriniz" -#: client/scenes/lobby_gui.cpp:393 +#: client/scenes/lobby_gui.cpp:396 msgid "Connected to WiVRn server" msgstr "WiVRn sunucusuna bağlanıldı" -#: client/scenes/lobby_gui.cpp:395 +#: client/scenes/lobby_gui.cpp:398 #, c++-format msgid "Connected to {}" msgstr "{} bağlanıldı" -#: client/scenes/lobby_gui.cpp:405 +#: client/scenes/lobby_gui.cpp:408 msgid "Start an application on the server to start streaming." msgstr "Sunucuda bir uygulama başlatarak akışa başlayın." -#: client/scenes/lobby_gui.cpp:414 +#: client/scenes/lobby_gui.cpp:420 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/lobby_gui.cpp:416 +#: client/scenes/lobby_gui.cpp:422 #, c++-format msgid "Start an application on {} or select one to start streaming." msgstr "" "{} üzerinde bir uygulama başlatın veya akış başlatmak için bir tane seçin." -#: client/scenes/lobby_gui.cpp:522 +#: client/scenes/lobby_gui.cpp:545 msgid "Name" msgstr "Ad" -#: client/scenes/lobby_gui.cpp:533 +#: client/scenes/lobby_gui.cpp:556 msgid "Address" msgstr "Adres" -#: client/scenes/lobby_gui.cpp:542 +#: client/scenes/lobby_gui.cpp:565 msgid "Port" msgstr "Port" -#: client/scenes/lobby_gui.cpp:550 +#: client/scenes/lobby_gui.cpp:573 msgid "TCP only" msgstr "Sadece TCP" -#: client/scenes/lobby_gui.cpp:557 +#: client/scenes/lobby_gui.cpp:580 msgid "Cancel" msgstr "İptal" -#: client/scenes/lobby_gui.cpp:571 +#: client/scenes/lobby_gui.cpp:594 msgid "Save" msgstr "Kaydet" -#: client/scenes/lobby_gui.cpp:624 +#: client/scenes/lobby_gui.cpp:647 msgid "" "Start a WiVRn server on your\n" "local network" msgstr "" "Yerel ağınızda\n" -"bir WiVRn sunucusu başlatın." +"bir WiVRn sunucusu başlatın" -#: client/scenes/lobby_gui.cpp:656 +#: client/scenes/lobby_gui.cpp:679 msgid "Autoconnect" msgstr "Oto Bağlan" -#: client/scenes/lobby_gui.cpp:682 +#: client/scenes/lobby_gui.cpp:705 msgid "Connect" msgstr "Bağlan" -#: client/scenes/lobby_gui.cpp:692 client/wivrn_client.cpp:186 +#: client/scenes/lobby_gui.cpp:715 client/wivrn_client.cpp:186 msgid "Incompatible server version" msgstr "Uyumsuz sunucu versiyonu" -#: client/scenes/lobby_gui.cpp:694 +#: client/scenes/lobby_gui.cpp:717 msgid "Server not available" msgstr "Sunucu mevcut değil" -#: client/scenes/lobby_gui.cpp:780 +#: client/scenes/lobby_gui.cpp:803 msgid "Refresh rate" msgstr "Tazeleme oranı" -#: client/scenes/lobby_gui.cpp:780 client/scenes/lobby_gui.cpp:782 +#: client/scenes/lobby_gui.cpp:803 client/scenes/lobby_gui.cpp:805 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "Otomatik" -#: client/scenes/lobby_gui.cpp:789 +#: client/scenes/lobby_gui.cpp:812 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -176,60 +176,60 @@ 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:806 +#: client/scenes/lobby_gui.cpp:829 msgid "Minimum refresh rate" msgstr "Minimum tazeleme oranı" -#: client/scenes/lobby_gui.cpp:829 +#: client/scenes/lobby_gui.cpp:852 msgid "Resolution scale" msgstr "Çözünürlük ölçeği" -#: client/scenes/lobby_gui.cpp:833 client/scenes/lobby_gui.cpp:1072 +#: client/scenes/lobby_gui.cpp:856 #, c-format, c++-format msgid "%d%% - {}x{} per eye" msgstr "göz başına %d%% - {}x{}" -#: client/scenes/lobby_gui.cpp:844 client/scenes/lobby_gui.cpp:1083 +#: client/scenes/lobby_gui.cpp:867 #, 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." +"{}x{} 'den daha büyük çözünürlükler gözlük tarafından desteklenmeyebilir" -#: client/scenes/lobby_gui.cpp:850 +#: client/scenes/lobby_gui.cpp:873 msgid "Enable microphone" msgstr "Mikrofonu aktif et" -#: client/scenes/lobby_gui.cpp:859 +#: client/scenes/lobby_gui.cpp:882 msgid "Unprocessed Microphone Audio" msgstr "İşlenmemiş Mikrofon Sesi" -#: client/scenes/lobby_gui.cpp:865 +#: client/scenes/lobby_gui.cpp:888 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:872 +#: client/scenes/lobby_gui.cpp:895 msgid "Enable hand tracking" msgstr "El izlemeyi etkinleştir" -#: client/scenes/lobby_gui.cpp:878 client/scenes/lobby_gui.cpp:890 -#: client/scenes/lobby_gui.cpp:902 client/scenes/lobby_gui.cpp:918 -#: client/scenes/lobby_gui.cpp:968 +#: client/scenes/lobby_gui.cpp:901 client/scenes/lobby_gui.cpp:913 +#: client/scenes/lobby_gui.cpp:925 client/scenes/lobby_gui.cpp:942 +#: client/scenes/lobby_gui.cpp:987 msgid "This feature is not supported by your headset" -msgstr "Bu özellik gözlüğünüz tarafından desteklenmemektedir." +msgstr "Bu özellik gözlüğünüz tarafından desteklenmemektedir" -#: client/scenes/lobby_gui.cpp:884 +#: client/scenes/lobby_gui.cpp:907 msgid "Enable eye tracking" msgstr "Göz takibi aktif et" -#: client/scenes/lobby_gui.cpp:896 +#: client/scenes/lobby_gui.cpp:919 msgid "Enable face tracking" msgstr "Yüz takibi aktif et" -#: client/scenes/lobby_gui.cpp:909 +#: client/scenes/lobby_gui.cpp:933 msgid "Enable body tracking" msgstr "Vücut takibi aktif et" -#: client/scenes/lobby_gui.cpp:925 +#: client/scenes/lobby_gui.cpp:947 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -238,13 +238,13 @@ msgstr "" "Quest hareket izleme ayarlarında 'El ve vücut izleme' özelliğinin " "etkinleştirilmesi gerekir,\n" "aksi takdirde vücut verileri kontrol cihazı ve başlık konumlarından tahmin " -"edilecektir." +"edilecektir" -#: client/scenes/lobby_gui.cpp:938 +#: client/scenes/lobby_gui.cpp:957 msgid "Enable lower body tracking" msgstr "Alt vücut izlemeyi etkinleştir" -#: client/scenes/lobby_gui.cpp:944 +#: client/scenes/lobby_gui.cpp:963 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -254,11 +254,11 @@ msgstr "" "Quest hareket izleme ayarlarında 'El ve vücut izleme' özelliğinin " "etkinleştirilmesi gerekir" -#: client/scenes/lobby_gui.cpp:947 +#: client/scenes/lobby_gui.cpp:966 msgid "Enable hip tracking" msgstr "Kalça izlemeyi etkinleştir" -#: client/scenes/lobby_gui.cpp:953 +#: client/scenes/lobby_gui.cpp:972 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -266,203 +266,169 @@ 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:961 +#: client/scenes/lobby_gui.cpp:980 msgid "Enable video passthrough in lobby" msgstr "Lobide video geçişini etkinleştir" -#: client/scenes/lobby_gui.cpp:982 client/scenes/stream_gui.cpp:434 +#: client/scenes/lobby_gui.cpp:991 +msgid "Enable in-stream window" +msgstr "Akış penceresinde aktif et" + +#: client/scenes/lobby_gui.cpp:994 +msgid "" +"Enables the configuration window to be shown while the game is streaming.\n" +"If enabled, the window is activated by pressing both thumbsticks." +msgstr "" +"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:1008 client/scenes/stream_gui.cpp:445 msgid "OpenXR post-processing" msgstr "OpenXR işlem sonrası" -#: client/scenes/lobby_gui.cpp:986 client/scenes/stream_gui.cpp:438 +#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:449 msgid "Supersampling" msgstr "Süper örnekleme" -#: client/scenes/lobby_gui.cpp:1006 client/scenes/stream_gui.cpp:459 +#: client/scenes/lobby_gui.cpp:1032 client/scenes/stream_gui.cpp:470 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" 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." +"Giriş çözünürlüğü kulaklık ekranına kıyasla yüksek olduğunda kullanışlıdır" -#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:464 +#: client/scenes/lobby_gui.cpp:1037 client/scenes/stream_gui.cpp:475 msgid "Sharpening" msgstr "Keskinleştirme" -#: client/scenes/lobby_gui.cpp:1031 client/scenes/stream_gui.cpp:485 +#: client/scenes/lobby_gui.cpp:1057 client/scenes/stream_gui.cpp:496 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" 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." +"Giriş çözünürlüğü kulaklık ekranına kıyasla düşük olduğunda kullanışlıdır" -#: client/scenes/lobby_gui.cpp:1040 -msgid "Enable Snapdragon Game Super Resolution" -msgstr "Snapdragon Oyun Süper Çözünürlüğü'nü etkinleştirin" - -#: client/scenes/lobby_gui.cpp:1048 -msgid "" -"On this headset, this setting has been fully superseded by the native " -"Sharpening setting above.\n" -"Only enable if you know what you're doing." -msgstr "" -"Bu kulaklıkta, bu ayar yukarıdaki yerel Keskinleştirme ayarı ile tamamen " -"değiştirilmiştir.\n" -"Ne yaptığınızı biliyorsanız etkinleştirin." - -#: client/scenes/lobby_gui.cpp:1050 -msgid "" -"Client-side upscaling and sharpening, adds a performance cost on the headset" -msgstr "" -"İstemci tarafında yükseltme ve keskinleştirme, kulaklıkta performans " -"düşüşüne neden olur." - -#: client/scenes/lobby_gui.cpp:1068 -msgid "Upscaling factor" -msgstr "Yükseltme faktörü" - -#: client/scenes/lobby_gui.cpp:1087 -msgid "Use edge direction" -msgstr "Kenar yönünü kullan" - -#: client/scenes/lobby_gui.cpp:1093 -msgid "Adds an additional performance cost" -msgstr "Ek bir performans düşüşü ekler" - -#: client/scenes/lobby_gui.cpp:1098 -msgid "Edge threshold" -msgstr "Kenar eşiği" - -#: client/scenes/lobby_gui.cpp:1105 client/scenes/lobby_gui.cpp:1114 -#, c++-format -msgid "Recommended: {:.1f}" -msgstr "Önerilen: {:.1f}" - -#: client/scenes/lobby_gui.cpp:1108 -msgid "Edge sharpness" -msgstr "Kenar keskinliği" - -#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218 -#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418 +#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161 +#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424 msgid "CPU time" msgstr "CPU zamanı" -#: client/scenes/lobby_gui.cpp:1214 +#: client/scenes/lobby_gui.cpp:1157 msgid "CPU time [ms]" msgstr "CPU zamanı [ms]" -#: client/scenes/lobby_gui.cpp:1224 client/scenes/lobby_gui.cpp:1232 -#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419 +#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175 +#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425 msgid "GPU time" msgstr "GPU zamanı" -#: client/scenes/lobby_gui.cpp:1228 +#: client/scenes/lobby_gui.cpp:1171 msgid "GPU time [ms]" msgstr "GPU zamanı [ms]" -#: client/scenes/lobby_gui.cpp:1271 +#: client/scenes/lobby_gui.cpp:1214 msgid "Enable the microphone?" msgstr "Mikrofonu aktif et?" -#: client/scenes/lobby_gui.cpp:1276 +#: client/scenes/lobby_gui.cpp:1219 msgid "Enable eye tracking?" msgstr "Göz takibi aktif et?" -#: client/scenes/lobby_gui.cpp:1281 +#: client/scenes/lobby_gui.cpp:1224 msgid "Enable face tracking?" msgstr "Yüz takibi aktif et?" -#: client/scenes/lobby_gui.cpp:1286 +#: client/scenes/lobby_gui.cpp:1229 msgid "Enable body tracking?" msgstr "Vücut takibi aktif et?" -#: client/scenes/lobby_gui.cpp:1294 +#: client/scenes/lobby_gui.cpp:1237 msgid "Welcome to WiVRn" msgstr "WiVRn'e hoş geldiniz" -#: client/scenes/lobby_gui.cpp:1318 +#: client/scenes/lobby_gui.cpp:1261 msgid "Yes" msgstr "Evet" -#: client/scenes/lobby_gui.cpp:1325 +#: client/scenes/lobby_gui.cpp:1268 msgid "No" msgstr "Hayır" -#: client/scenes/lobby_gui.cpp:1344 client/scenes/lobby_gui.cpp:1983 +#: client/scenes/lobby_gui.cpp:1287 client/scenes/lobby_gui.cpp:1934 msgid "Licenses" msgstr "Lisanslar" -#: client/scenes/lobby_gui.cpp:1658 +#: client/scenes/lobby_gui.cpp:1612 msgid "Microphone is enabled" msgstr "Mikrofon aktif" -#: client/scenes/lobby_gui.cpp:1659 +#: client/scenes/lobby_gui.cpp:1613 msgid "Microphone is disabled" msgstr "Mikrofon devre dışı" -#: client/scenes/lobby_gui.cpp:1668 +#: client/scenes/lobby_gui.cpp:1622 msgid "Hand tracking is enabled" msgstr "El takibi aktif" -#: client/scenes/lobby_gui.cpp:1669 +#: client/scenes/lobby_gui.cpp:1623 msgid "Hand tracking is disabled" msgstr "El takibi devre dışı" -#: client/scenes/lobby_gui.cpp:1678 +#: client/scenes/lobby_gui.cpp:1632 msgid "Eye tracking is enabled" msgstr "Göz takibi aktif" -#: client/scenes/lobby_gui.cpp:1679 +#: client/scenes/lobby_gui.cpp:1633 msgid "Eye tracking is disabled" msgstr "Göz takibi devre dışı" -#: client/scenes/lobby_gui.cpp:1692 +#: client/scenes/lobby_gui.cpp:1643 msgid "Face tracking is enabled" msgstr "Yüz takibi aktif" -#: client/scenes/lobby_gui.cpp:1693 +#: client/scenes/lobby_gui.cpp:1644 msgid "Face tracking is disabled" msgstr "Yüz takibi devre dışı" -#: client/scenes/lobby_gui.cpp:1703 +#: client/scenes/lobby_gui.cpp:1654 msgid "Body tracking is enabled" msgstr "Vücut takibi aktif" -#: client/scenes/lobby_gui.cpp:1704 +#: client/scenes/lobby_gui.cpp:1655 msgid "Body tracking is disabled" msgstr "Vücut takibi devre dışı" -#: client/scenes/lobby_gui.cpp:1720 +#: client/scenes/lobby_gui.cpp:1671 msgid "Add server" msgstr "Sunucu ekle" -#: client/scenes/lobby_gui.cpp:1965 +#: client/scenes/lobby_gui.cpp:1916 msgid "Server list" msgstr "Sunucu listesi" -#: client/scenes/lobby_gui.cpp:1968 client/scenes/stream_gui.cpp:796 +#: client/scenes/lobby_gui.cpp:1919 client/scenes/stream_gui.cpp:822 msgid "Settings" msgstr "Ayarlar" -#: client/scenes/lobby_gui.cpp:1971 +#: client/scenes/lobby_gui.cpp:1922 msgid "Post-processing" msgstr "İşlem sonrası" -#: client/scenes/lobby_gui.cpp:1975 +#: client/scenes/lobby_gui.cpp:1926 msgid "Debug" msgstr "Hata ayıklama" -#: client/scenes/lobby_gui.cpp:1980 +#: client/scenes/lobby_gui.cpp:1931 msgid "About" msgstr "Hakkında" -#: client/scenes/lobby_gui.cpp:1986 +#: client/scenes/lobby_gui.cpp:1937 msgid "Exit" msgstr "Çıkış" -#: client/scenes/lobby_gui.cpp:2003 +#: client/scenes/lobby_gui.cpp:1954 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -470,7 +436,7 @@ msgstr "" "Ana pencereyi hareket ettirmek için tutma düğmesine basın\n" "veya avucunuzu yukarı kaldırın" -#: client/scenes/lobby_gui.cpp:2005 +#: client/scenes/lobby_gui.cpp:1956 msgid "Press the grip button to move the main window" msgstr "Ana pencereyi hareket ettirmek için tutma düğmesine basın" @@ -486,11 +452,11 @@ msgstr "Blit" msgid "Network" msgstr "Ağ" -#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416 +#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422 msgid "Download" msgstr "İndir" -#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417 +#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423 msgid "Upload" msgstr "Gönder" @@ -531,67 +497,67 @@ msgstr "Görüntülenen" msgid "Predicted" msgstr "Tahmin edilen" -#: client/scenes/stream_gui.cpp:393 +#: client/scenes/stream_gui.cpp:395 #, c++-format msgid "Estimated motion to photons latency: {}ms" msgstr "Fotonlara tahmini hareket gecikmesi: {}ms" -#: client/scenes/stream_gui.cpp:396 +#: client/scenes/stream_gui.cpp:402 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:398 client/scenes/stream_gui.cpp:750 +#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776 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:420 +#: client/scenes/stream_gui.cpp:426 msgid "Motion to photon latency" msgstr "Hareketin fotona ulaşma gecikmesi" -#: client/scenes/stream_gui.cpp:492 +#: client/scenes/stream_gui.cpp:503 msgid "Foveation center override" msgstr "Foveasyon merkezi geçersiz kılma" -#: client/scenes/stream_gui.cpp:495 +#: client/scenes/stream_gui.cpp:506 msgid "Enable" msgstr "Aktif et" -#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550 +#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561 #, c++-format msgid "Height {:.1f} deg" msgstr "Boy {:.1f} deg" -#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551 +#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562 #, c++-format msgid "Distance {:.2f} m" msgstr "Uzaklık {:.2f} m" -#: client/scenes/stream_gui.cpp:505 +#: client/scenes/stream_gui.cpp:516 msgid "Default" msgstr "Varsayılan" -#: client/scenes/stream_gui.cpp:516 +#: client/scenes/stream_gui.cpp:527 msgid "Change" msgstr "Değiştir" -#: client/scenes/stream_gui.cpp:548 +#: client/scenes/stream_gui.cpp:559 msgid "Use the thumbsticks to move the foveation center" msgstr "Başparmak çubuklarını kullanarak odak merkezini hareket ettirin" -#: client/scenes/stream_gui.cpp:549 +#: client/scenes/stream_gui.cpp:560 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:793 +#: client/scenes/stream_gui.cpp:819 msgid "Stats" msgstr "İstatistikler" -#: client/scenes/stream_gui.cpp:802 +#: client/scenes/stream_gui.cpp:828 msgid "Statistics overlay" msgstr "İstatistik katmanı" -#: client/scenes/stream_gui.cpp:805 +#: client/scenes/stream_gui.cpp:831 msgid "Compact view" msgstr "Kompakt görünüm" @@ -610,3 +576,41 @@ msgstr "PIN kontrol edilemiyor" #: client/wivrn_client.cpp:182 msgid "Pairing is disabled on server" msgstr "Bu sunucuda eşleşme devre dışı" + +#~ msgid "Enable Snapdragon Game Super Resolution" +#~ msgstr "Snapdragon Oyun Süper Çözünürlüğü'nü etkinleştirin" + +#~ msgid "" +#~ "On this headset, this setting has been fully superseded by the native " +#~ "Sharpening setting above.\n" +#~ "Only enable if you know what you're doing." +#~ msgstr "" +#~ "Bu kulaklıkta, bu ayar yukarıdaki yerel Keskinleştirme ayarı ile tamamen " +#~ "değiştirilmiştir.\n" +#~ "Ne yaptığınızı biliyorsanız etkinleştirin." + +#~ msgid "" +#~ "Client-side upscaling and sharpening, adds a performance cost on the " +#~ "headset" +#~ msgstr "" +#~ "İstemci tarafında yükseltme ve keskinleştirme, kulaklıkta performans " +#~ "düşüşüne neden olur." + +#~ msgid "Upscaling factor" +#~ msgstr "Yükseltme faktörü" + +#~ msgid "Use edge direction" +#~ msgstr "Kenar yönünü kullan" + +#~ msgid "Adds an additional performance cost" +#~ msgstr "Ek bir performans düşüşü ekler" + +#~ msgid "Edge threshold" +#~ msgstr "Kenar eşiği" + +#, c++-format +#~ msgid "Recommended: {:.1f}" +#~ msgstr "Önerilen: {:.1f}" + +#~ msgid "Edge sharpness" +#~ msgstr "Kenar keskinliği" From b0144b96fc8ab33f83db1f68a3e71984437fe05c Mon Sep 17 00:00:00 2001 From: BlackCherryCat Date: Fri, 12 Sep 2025 17:23:08 +0200 Subject: [PATCH 27/52] Update es translations --- locale/es/wivrn-dashboard.po | 116 ++++++------- locale/es/wivrn.po | 310 ++++++++++++++++++----------------- 2 files changed, 215 insertions(+), 211 deletions(-) diff --git a/locale/es/wivrn-dashboard.po b/locale/es/wivrn-dashboard.po index b54423af..b433c6b6 100644 --- a/locale/es/wivrn-dashboard.po +++ b/locale/es/wivrn-dashboard.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn-dashboard\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-08-04 09:40+0200\n" +"POT-Creation-Date: 2025-09-12 14:54+0200\n" "PO-Revision-Date: 2025-08-06 19:20+0200\n" "Last-Translator: Álvaro De Quinta \n" "Language-Team: Spanish\n" @@ -86,7 +86,7 @@ msgid "No precompiled APK is available for this version." msgstr "No hay ningún APK precompilado disponible para esta versión." #: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:259 -#: dashboard/qml/Main.qml:341 +#: dashboard/qml/Main.qml:342 #, kde-format msgid "ADB is not installed." msgstr "ADB no está instalado." @@ -135,7 +135,7 @@ msgstr "Reinstalar WiVRn" msgid "Install WiVRn" msgstr "Instalar WiVRn" -#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:354 +#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:355 #, kde-format msgid "Headsets" msgstr "Visores" @@ -180,7 +180,7 @@ msgstr "Renombrar" #: dashboard/qml/HeadsetsPage.qml:55 dashboard/qml/WizardPage.qml:38 #: dashboard/qml/WizardPage.qml:88 dashboard/qml/WizardPage.qml:263 -#: dashboard/qml/WizardPage.qml:326 dashboard/qml/WizardPage.qml:410 +#: dashboard/qml/WizardPage.qml:327 dashboard/qml/WizardPage.qml:411 #, kde-format msgid "Cancel" msgstr "Cancelar" @@ -312,7 +312,7 @@ msgstr "Emparejando" msgid "PIN: %1" msgstr "PIN: %1" -#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:373 +#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:374 #, kde-format msgid "Connect by USB" msgstr "Conectar por USB" @@ -339,22 +339,22 @@ msgstr "Aplicación" msgid "Steam information" msgstr "Información de Steam" -#: dashboard/qml/Main.qml:325 +#: dashboard/qml/Main.qml:326 #, kde-format msgid "Wizard" msgstr "Asistente" -#: dashboard/qml/Main.qml:332 +#: dashboard/qml/Main.qml:333 #, kde-format msgid "Install the app" msgstr "Instalar aplicación" -#: dashboard/qml/Main.qml:361 dashboard/qml/SettingsPage.qml:14 +#: dashboard/qml/Main.qml:362 dashboard/qml/SettingsPage.qml:14 #, kde-format msgid "Settings" msgstr "Ajustes" -#: dashboard/qml/Main.qml:368 dashboard/qml/TroubleshootPage.qml:10 +#: dashboard/qml/Main.qml:369 dashboard/qml/TroubleshootPage.qml:10 #, kde-format msgid "Troubleshoot" msgstr "Solucionar problemas" @@ -460,19 +460,19 @@ msgctxt "encoder preset" msgid "Default preset" msgstr "Preajuste predeterminado" -#: dashboard/qml/SettingsPage.qml:145 +#: dashboard/qml/SettingsPage.qml:139 #, kde-format msgctxt "encoder preset" msgid "Low latency preset" msgstr "Preajuste de baja latencia" -#: dashboard/qml/SettingsPage.qml:170 +#: dashboard/qml/SettingsPage.qml:158 #, kde-format msgctxt "encoder preset" msgid "Safe preset" msgstr "Preajuste seguro" -#: dashboard/qml/SettingsPage.qml:193 +#: dashboard/qml/SettingsPage.qml:181 #, kde-format msgid "" "To add a new encoder, split an existing encoder by clicking near an edge.\n" @@ -482,84 +482,84 @@ msgstr "" "clic cerca de un borde.\n" "Arrastra un borde para cambiar el tamaño o eliminar codificadores." -#: dashboard/qml/SettingsPage.qml:220 +#: dashboard/qml/SettingsPage.qml:208 #, kde-format msgid "Encoder:" msgstr "Codificador" -#: dashboard/qml/SettingsPage.qml:229 +#: dashboard/qml/SettingsPage.qml:217 #, kde-format msgctxt "automatic encoder setup" msgid "Auto" msgstr "Automático" -#: dashboard/qml/SettingsPage.qml:234 +#: dashboard/qml/SettingsPage.qml:222 #, kde-format msgid "nvenc (NVIDIA GPUs)" msgstr "nvenc (NVIDIA GPUs)" -#: dashboard/qml/SettingsPage.qml:239 +#: dashboard/qml/SettingsPage.qml:227 #, kde-format msgid "vaapi (AMD and Intel GPUs)" msgstr "vaapi (AMD y Intel GPUs)" -#: dashboard/qml/SettingsPage.qml:244 +#: dashboard/qml/SettingsPage.qml:232 #, kde-format msgid "x264 (software encoding)" msgstr "x264 (codificación por software)" -#: dashboard/qml/SettingsPage.qml:249 +#: dashboard/qml/SettingsPage.qml:237 #, kde-format msgid "Vulkan (Vulkan Video)" msgstr "Vulkan (Vulkan Video)" -#: dashboard/qml/SettingsPage.qml:272 +#: dashboard/qml/SettingsPage.qml:260 #, kde-format msgid "\"Auto\" will use hardware acceleration if it is available" msgstr "\"Auto\" utilizará aceleración por hardware si está disponible" -#: dashboard/qml/SettingsPage.qml:278 +#: dashboard/qml/SettingsPage.qml:266 #, kde-format msgid "Codec:" msgstr "Códec" -#: dashboard/qml/SettingsPage.qml:285 +#: dashboard/qml/SettingsPage.qml:273 #, kde-format msgctxt "automatic codec setup" msgid "Auto" msgstr "Automático" -#: dashboard/qml/SettingsPage.qml:289 +#: dashboard/qml/SettingsPage.qml:277 #, kde-format msgid "H.264" msgstr "H.264" -#: dashboard/qml/SettingsPage.qml:293 +#: dashboard/qml/SettingsPage.qml:281 #, kde-format msgid "H.265" msgstr "H.265" -#: dashboard/qml/SettingsPage.qml:297 +#: dashboard/qml/SettingsPage.qml:285 #, kde-format msgid "AV1" msgstr "AV1" -#: dashboard/qml/SettingsPage.qml:319 +#: dashboard/qml/SettingsPage.qml:307 #, kde-format msgid "Advanced options" msgstr "Opciones avanzadas" -#: dashboard/qml/SettingsPage.qml:325 +#: dashboard/qml/SettingsPage.qml:313 #, kde-format msgid "Enable debug window" msgstr "Habilitar ventana de depuración" -#: dashboard/qml/SettingsPage.qml:332 +#: dashboard/qml/SettingsPage.qml:320 #, kde-format msgid "Enable SteamVR tracked devices support" msgstr "Habilitar soporte para dispositivos de seguimiento a través de SteamVR" -#: dashboard/qml/SettingsPage.qml:335 +#: dashboard/qml/SettingsPage.qml:323 #, kde-format msgid "" "Allows the use of lighthouse-based controllers and trackers.\n" @@ -573,44 +573,44 @@ msgstr "" "Los dispositivos deben de estar encendidos antes de conectarte a WiVRn.\n" "Una herramienta externa como motoc será necesaria para la calibración." -#: dashboard/qml/SettingsPage.qml:343 +#: dashboard/qml/SettingsPage.qml:331 #, kde-format msgid "Custom adb location" msgstr "Ruta de adb personalizada" -#: dashboard/qml/SettingsPage.qml:354 +#: dashboard/qml/SettingsPage.qml:342 #, kde-format msgid "Adb location:" msgstr "Ruta de adb:" -#: dashboard/qml/SettingsPage.qml:363 +#: dashboard/qml/SettingsPage.qml:351 #, kde-format msgctxt "browse a file to choose the adb binary" msgid "Browse" msgstr "Explorar" -#: dashboard/qml/SettingsPage.qml:373 +#: dashboard/qml/SettingsPage.qml:361 #, kde-format msgid "Default" msgstr "Por defecto" -#: dashboard/qml/SettingsPage.qml:387 +#: dashboard/qml/SettingsPage.qml:375 #, kde-format msgctxt "set a custom OpenVR compatibility library" msgid "Custom" msgstr "Personalizado" -#: dashboard/qml/SettingsPage.qml:392 +#: dashboard/qml/SettingsPage.qml:380 #, kde-format msgid "Disabled" msgstr "Deshabilitado" -#: dashboard/qml/SettingsPage.qml:400 +#: dashboard/qml/SettingsPage.qml:388 #, kde-format msgid "OpenVR compatibility library:" msgstr "Librería de compatibilidad para OpenVR:" -#: dashboard/qml/SettingsPage.qml:426 +#: dashboard/qml/SettingsPage.qml:414 #, kde-format msgid "Library path, excluding bin/linux64/vrclient.so" msgstr "Ruta de librería, excluyendo bin/linux64/vrclient.so" @@ -647,7 +647,7 @@ msgstr "Comando de lanzamiento de Steam copiado" msgid "I cannot find the WiVRn app on my headset" msgstr "No puedo encontrar la aplicación WiVRn en mi visor" -#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:387 +#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:388 #, kde-format msgid "" "If you installed WiVRn over USB on a Meta headset, the app is in the " @@ -661,7 +661,7 @@ msgstr "" msgid "I cannot see my computer in the WiVRn app" msgstr "No puedo ver mi computadora en la aplicación WiVRn" -#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:392 +#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:393 #, kde-format msgid "" "If the server is not visible or the connection fails, check that port 5353 " @@ -715,7 +715,7 @@ msgstr "El emparejamiento está actualmente desactivado." msgid "I have no sound on my headset" msgstr "No tengo sonido en mi visor" -#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:440 +#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:441 #, kde-format msgid "" "When the headset is connected, select \"WiVRn\" as the default audio output " @@ -740,9 +740,9 @@ msgid "Getting started" msgstr "Comenzando" #: dashboard/qml/WizardPage.qml:29 dashboard/qml/WizardPage.qml:78 -#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:316 -#: dashboard/qml/WizardPage.qml:400 dashboard/qml/WizardPage.qml:447 -#: dashboard/qml/WizardPage.qml:484 +#: 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 #, kde-format msgid "Back" msgstr "Atrás" @@ -762,8 +762,8 @@ msgstr "" "computadora." #: dashboard/qml/WizardPage.qml:83 dashboard/qml/WizardPage.qml:258 -#: dashboard/qml/WizardPage.qml:321 dashboard/qml/WizardPage.qml:452 -#: dashboard/qml/WizardPage.qml:489 +#: dashboard/qml/WizardPage.qml:322 dashboard/qml/WizardPage.qml:453 +#: dashboard/qml/WizardPage.qml:490 #, kde-format msgid "Next" msgstr "Siguiente" @@ -861,12 +861,12 @@ msgstr "" "La aplicación que elijas se iniciará automáticamente cuando conectes tu " "visor." -#: dashboard/qml/WizardPage.qml:300 +#: dashboard/qml/WizardPage.qml:301 #, kde-format msgid "Important information" msgstr "Información importante" -#: dashboard/qml/WizardPage.qml:307 +#: dashboard/qml/WizardPage.qml:308 #, kde-format msgid "" "WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is " @@ -875,12 +875,12 @@ msgstr "" "WiVRn sustituye completamente a SteamVR, no deberías iniciar SteamVR " "mientras WiVRn esté en ejecución" -#: dashboard/qml/WizardPage.qml:358 +#: dashboard/qml/WizardPage.qml:359 #, kde-format msgid "Start the WiVRn app on your headset" msgstr "Inicia la aplicación WiVRn en tu visor" -#: dashboard/qml/WizardPage.qml:363 +#: dashboard/qml/WizardPage.qml:364 #, kde-format msgid "" "To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" " @@ -889,32 +889,32 @@ msgstr "" "Para conectarte por WiFi, inicia la aplicación WiVRn en tu visor, conéctate " "a \"%1\" y ingresa el PIN \"%2\"." -#: dashboard/qml/WizardPage.qml:370 +#: dashboard/qml/WizardPage.qml:371 #, kde-format msgid "To connect over USB, click on \"Connect by USB\"." msgstr "Para conectarte por USB, haz clic en \"Conectar por USB\"." -#: dashboard/qml/WizardPage.qml:383 +#: dashboard/qml/WizardPage.qml:384 #, kde-format msgid "Troubleshooting" msgstr "Solución de problemas" -#: dashboard/qml/WizardPage.qml:405 +#: dashboard/qml/WizardPage.qml:406 #, kde-format msgid "Skip" msgstr "Saltar" -#: dashboard/qml/WizardPage.qml:425 +#: dashboard/qml/WizardPage.qml:426 #, kde-format msgid "Connection established" msgstr "Conexión establecida" -#: dashboard/qml/WizardPage.qml:430 +#: dashboard/qml/WizardPage.qml:431 #, kde-format msgid "Your headset is now connected." msgstr "Tu visor está ahora conectado." -#: dashboard/qml/WizardPage.qml:435 dashboard/qml/WizardPage.qml:477 +#: dashboard/qml/WizardPage.qml:436 dashboard/qml/WizardPage.qml:478 #, kde-format msgid "" "To connect another headset, make sure pairing is enabled in the dashboard " @@ -923,22 +923,22 @@ msgstr "" "Para conectar otro visor, asegúrate de que el emparejamiento esté habilitado " "en el panel antes de conectar." -#: dashboard/qml/WizardPage.qml:457 dashboard/qml/WizardPage.qml:494 +#: dashboard/qml/WizardPage.qml:458 dashboard/qml/WizardPage.qml:495 #, kde-format msgid "Finish" msgstr "Finalizar" -#: dashboard/qml/WizardPage.qml:472 +#: dashboard/qml/WizardPage.qml:473 #, kde-format msgid "Finished" msgstr "Terminado" -#: dashboard/wivrn_server.cpp:584 +#: dashboard/wivrn_server.cpp:592 #, kde-format msgid "xrizer" msgstr "xrizer" -#: dashboard/wivrn_server.cpp:585 +#: dashboard/wivrn_server.cpp:593 #, kde-format msgid "Open Composite" msgstr "Open Composite" diff --git a/locale/es/wivrn.po b/locale/es/wivrn.po index 39f4673a..b623e1c2 100644 --- a/locale/es/wivrn.po +++ b/locale/es/wivrn.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn 0.15\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-08-04 15:49+0200\n" -"PO-Revision-Date: 2025-08-10 17:11+0200\n" +"POT-Creation-Date: 2025-09-10 22:23+0200\n" +"PO-Revision-Date: 2025-09-12 17:21+0200\n" "Last-Translator: Álvaro De Quinta \n" "Language-Team: Spanish\n" "Language: es\n" @@ -16,7 +16,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Generator: Gtranslator 48.0\n" -#: client/scene.cpp:74 +#: client/scene.cpp:72 msgid "No supported swapchain format" msgstr "Formato de swapchain no compatible" @@ -43,97 +43,97 @@ msgstr "No se puede conectar a {} ({}): {}" msgid "Waiting for connection" msgstr "Esperando conexión" -#: client/scenes/lobby_gui.cpp:229 +#: client/scenes/lobby_gui.cpp:231 msgctxt "openxr_post_processing" msgid "Normal" msgstr "Normal" -#: client/scenes/lobby_gui.cpp:232 +#: client/scenes/lobby_gui.cpp:234 msgctxt "openxr_post_processing" msgid "Quality" msgstr "Calidad" -#: client/scenes/lobby_gui.cpp:234 +#: client/scenes/lobby_gui.cpp:236 msgctxt "openxr_post_processing" msgid "Disabled" msgstr "Deshabilitado" -#: client/scenes/lobby_gui.cpp:242 client/scenes/lobby_gui.cpp:398 -#: client/scenes/stream_gui.cpp:812 +#: client/scenes/lobby_gui.cpp:244 client/scenes/lobby_gui.cpp:401 +#: client/scenes/stream_gui.cpp:838 msgid "Disconnect" msgstr "Desconectar" -#: client/scenes/lobby_gui.cpp:262 client/scenes/stream_gui.cpp:808 +#: client/scenes/lobby_gui.cpp:265 client/scenes/stream_gui.cpp:834 msgid "Close" msgstr "Cerrar" -#: client/scenes/lobby_gui.cpp:268 +#: client/scenes/lobby_gui.cpp:271 msgid "Connection" msgstr "Conexión" -#: client/scenes/lobby_gui.cpp:270 +#: client/scenes/lobby_gui.cpp:273 #, c++-format msgid "Connection to {}" msgstr "Conexión a {}" -#: client/scenes/lobby_gui.cpp:300 +#: client/scenes/lobby_gui.cpp:303 msgid "PIN" msgstr "PIN" -#: client/scenes/lobby_gui.cpp:322 +#: client/scenes/lobby_gui.cpp:325 msgid "Input the PIN displayed on the dashboard" msgstr "Ingresa el PIN que se muestra en el panel de control" -#: client/scenes/lobby_gui.cpp:393 +#: client/scenes/lobby_gui.cpp:396 msgid "Connected to WiVRn server" msgstr "Conectado al servidor WiVRn" -#: client/scenes/lobby_gui.cpp:395 +#: client/scenes/lobby_gui.cpp:398 #, c++-format msgid "Connected to {}" msgstr "Connectado a {}" -#: client/scenes/lobby_gui.cpp:405 +#: client/scenes/lobby_gui.cpp:408 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/lobby_gui.cpp:414 +#: client/scenes/lobby_gui.cpp:420 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/lobby_gui.cpp:416 +#: client/scenes/lobby_gui.cpp:422 #, c++-format msgid "Start an application on {} or select one to start streaming." msgstr "" "Inicia una aplicación en {} o selecciona una para empezar la retransmisión" -#: client/scenes/lobby_gui.cpp:522 +#: client/scenes/lobby_gui.cpp:545 msgid "Name" msgstr "Nombre" -#: client/scenes/lobby_gui.cpp:533 +#: client/scenes/lobby_gui.cpp:556 msgid "Address" msgstr "Dirección" -#: client/scenes/lobby_gui.cpp:542 +#: client/scenes/lobby_gui.cpp:565 msgid "Port" msgstr "Puerto" -#: client/scenes/lobby_gui.cpp:550 +#: client/scenes/lobby_gui.cpp:573 msgid "TCP only" msgstr "Solo TCP" -#: client/scenes/lobby_gui.cpp:557 +#: client/scenes/lobby_gui.cpp:580 msgid "Cancel" msgstr "Cancelar" -#: client/scenes/lobby_gui.cpp:571 +#: client/scenes/lobby_gui.cpp:594 msgid "Save" msgstr "Guardar" -#: client/scenes/lobby_gui.cpp:624 +#: client/scenes/lobby_gui.cpp:647 msgid "" "Start a WiVRn server on your\n" "local network" @@ -141,32 +141,32 @@ msgstr "" "Inicia un servidor WiVRn en tu\n" "red local" -#: client/scenes/lobby_gui.cpp:656 +#: client/scenes/lobby_gui.cpp:679 msgid "Autoconnect" msgstr "Conexión automática" -#: client/scenes/lobby_gui.cpp:682 +#: client/scenes/lobby_gui.cpp:705 msgid "Connect" msgstr "Conectar" -#: client/scenes/lobby_gui.cpp:692 client/wivrn_client.cpp:186 +#: client/scenes/lobby_gui.cpp:715 client/wivrn_client.cpp:186 msgid "Incompatible server version" msgstr "Versión del servidor incompatible" -#: client/scenes/lobby_gui.cpp:694 +#: client/scenes/lobby_gui.cpp:717 msgid "Server not available" msgstr "Servidor no disponible" -#: client/scenes/lobby_gui.cpp:780 +#: client/scenes/lobby_gui.cpp:803 msgid "Refresh rate" msgstr "Frecuencia de actualización" -#: client/scenes/lobby_gui.cpp:780 client/scenes/lobby_gui.cpp:782 +#: client/scenes/lobby_gui.cpp:803 client/scenes/lobby_gui.cpp:805 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "Automática" -#: client/scenes/lobby_gui.cpp:789 +#: client/scenes/lobby_gui.cpp:812 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -175,61 +175,61 @@ msgstr "" "aplicación.\n" "Puede causar parpadeos cuando ocurre un cambio." -#: client/scenes/lobby_gui.cpp:806 +#: client/scenes/lobby_gui.cpp:829 msgid "Minimum refresh rate" msgstr "Tasa mínima de refresco" -#: client/scenes/lobby_gui.cpp:829 +#: client/scenes/lobby_gui.cpp:852 msgid "Resolution scale" msgstr "Escala de resolución" -#: client/scenes/lobby_gui.cpp:833 client/scenes/lobby_gui.cpp:1072 +#: client/scenes/lobby_gui.cpp:856 #, c-format, c++-format msgid "%d%% - {}x{} per eye" msgstr "%d%% - {}x{} por ojo" -#: client/scenes/lobby_gui.cpp:844 client/scenes/lobby_gui.cpp:1083 +#: client/scenes/lobby_gui.cpp:867 #, c++-format msgid "Resolution larger than {}x{} may not be supported by the headset" msgstr "La resolución mayor que {}x{} podría no ser compatible con el visor" -#: client/scenes/lobby_gui.cpp:850 +#: client/scenes/lobby_gui.cpp:873 msgid "Enable microphone" msgstr "Activar micrófono" -#: client/scenes/lobby_gui.cpp:859 +#: client/scenes/lobby_gui.cpp:882 msgid "Unprocessed Microphone Audio" msgstr "Entrada de audio sin procesar" -#: client/scenes/lobby_gui.cpp:865 +#: client/scenes/lobby_gui.cpp:888 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:872 +#: client/scenes/lobby_gui.cpp:895 msgid "Enable hand tracking" msgstr "Activar seguimiento de manos" -#: client/scenes/lobby_gui.cpp:878 client/scenes/lobby_gui.cpp:890 -#: client/scenes/lobby_gui.cpp:902 client/scenes/lobby_gui.cpp:918 -#: client/scenes/lobby_gui.cpp:968 +#: client/scenes/lobby_gui.cpp:901 client/scenes/lobby_gui.cpp:913 +#: client/scenes/lobby_gui.cpp:925 client/scenes/lobby_gui.cpp:942 +#: client/scenes/lobby_gui.cpp:987 msgid "This feature is not supported by your headset" msgstr "Esta función no es compatible con tu visor" -#: client/scenes/lobby_gui.cpp:884 +#: client/scenes/lobby_gui.cpp:907 msgid "Enable eye tracking" msgstr "Activar seguimiento ocular" -#: client/scenes/lobby_gui.cpp:896 +#: client/scenes/lobby_gui.cpp:919 msgid "Enable face tracking" msgstr "Activar seguimiento facial" -#: client/scenes/lobby_gui.cpp:909 +#: client/scenes/lobby_gui.cpp:933 msgid "Enable body tracking" msgstr "Habilitar seguimiento corporal" -#: client/scenes/lobby_gui.cpp:925 +#: client/scenes/lobby_gui.cpp:947 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -240,11 +240,11 @@ msgstr "" "si no el seguimiento corporal será medido por la posición de los controles y " "el visor" -#: client/scenes/lobby_gui.cpp:938 +#: client/scenes/lobby_gui.cpp:957 msgid "Enable lower body tracking" msgstr "Habilitar seguimiento de cintura para abajo" -#: client/scenes/lobby_gui.cpp:944 +#: client/scenes/lobby_gui.cpp:963 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -255,11 +255,11 @@ msgstr "" "Requiere habilitar 'Seguimiento de manos y del cuerpo' en los ajustes de " "movimiento de Quest" -#: client/scenes/lobby_gui.cpp:947 +#: client/scenes/lobby_gui.cpp:966 msgid "Enable hip tracking" msgstr "Habilitar seguimiento de cintura" -#: client/scenes/lobby_gui.cpp:953 +#: client/scenes/lobby_gui.cpp:972 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -267,19 +267,31 @@ 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:961 +#: client/scenes/lobby_gui.cpp:980 msgid "Enable video passthrough in lobby" msgstr "Activar video passthrough en el lobby" -#: client/scenes/lobby_gui.cpp:982 client/scenes/stream_gui.cpp:434 +#: client/scenes/lobby_gui.cpp:991 +msgid "Enable in-stream window" +msgstr "Habilitar ventana mientras se juega" + +#: client/scenes/lobby_gui.cpp:994 +msgid "" +"Enables the configuration window to be shown while the game is streaming.\n" +"If enabled, the window is activated by pressing both thumbsticks." +msgstr "" +"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:1008 client/scenes/stream_gui.cpp:445 msgid "OpenXR post-processing" msgstr "Post-procesamiento de OpenXR" -#: client/scenes/lobby_gui.cpp:986 client/scenes/stream_gui.cpp:438 +#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:449 msgid "Supersampling" msgstr "Sobremuestreo" -#: client/scenes/lobby_gui.cpp:1006 client/scenes/stream_gui.cpp:459 +#: client/scenes/lobby_gui.cpp:1032 client/scenes/stream_gui.cpp:470 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -288,11 +300,11 @@ msgstr "" "Útil cuando la resolución de entrada es alta comparada con la pantalla del " "visor" -#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:464 +#: client/scenes/lobby_gui.cpp:1037 client/scenes/stream_gui.cpp:475 msgid "Sharpening" msgstr "Nitidez" -#: client/scenes/lobby_gui.cpp:1031 client/scenes/stream_gui.cpp:485 +#: client/scenes/lobby_gui.cpp:1057 client/scenes/stream_gui.cpp:496 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -301,171 +313,125 @@ msgstr "" "Útil cuando la resolución de entrada es baja comparada con la pantalla del " "visor" -#: client/scenes/lobby_gui.cpp:1040 -msgid "Enable Snapdragon Game Super Resolution" -msgstr "Habilitar Snapdragon Game Super Resolution" - -#: client/scenes/lobby_gui.cpp:1048 -msgid "" -"On this headset, this setting has been fully superseded by the native " -"Sharpening setting above.\n" -"Only enable if you know what you're doing." -msgstr "" -"En este visor, está opción ha sido reemplazada totalmente por la nativa " -"Opción de enfoque arriba.\n" -"Sólo habilita esto si sabes lo que estás haciendo." - -#: client/scenes/lobby_gui.cpp:1050 -msgid "" -"Client-side upscaling and sharpening, adds a performance cost on the headset" -msgstr "" -"Sobreescalado y nitidez de lado del cliente, supone un mayor coste de " -"rendimiento para el visor" - -#: client/scenes/lobby_gui.cpp:1068 -msgid "Upscaling factor" -msgstr "Factor de sobreescalado" - -#: client/scenes/lobby_gui.cpp:1087 -msgid "Use edge direction" -msgstr "Usar la dirección del borde" - -#: client/scenes/lobby_gui.cpp:1093 -msgid "Adds an additional performance cost" -msgstr "Añade un coste de rendimiento adicional" - -#: client/scenes/lobby_gui.cpp:1098 -msgid "Edge threshold" -msgstr "Umbral del borde" - -#: client/scenes/lobby_gui.cpp:1105 client/scenes/lobby_gui.cpp:1114 -#, c++-format -msgid "Recommended: {:.1f}" -msgstr "Recomendado: {:.1f}" - -#: client/scenes/lobby_gui.cpp:1108 -msgid "Edge sharpness" -msgstr "Nitidez del borde" - -#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218 -#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418 +#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161 +#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424 msgid "CPU time" msgstr "Tiempo de CPU" -#: client/scenes/lobby_gui.cpp:1214 +#: client/scenes/lobby_gui.cpp:1157 msgid "CPU time [ms]" msgstr "Tiempo de CPU [ms]" -#: client/scenes/lobby_gui.cpp:1224 client/scenes/lobby_gui.cpp:1232 -#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419 +#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175 +#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425 msgid "GPU time" msgstr "Tiempo de GPU" -#: client/scenes/lobby_gui.cpp:1228 +#: client/scenes/lobby_gui.cpp:1171 msgid "GPU time [ms]" msgstr "Tiempo de GPU [ms]" -#: client/scenes/lobby_gui.cpp:1271 +#: client/scenes/lobby_gui.cpp:1214 msgid "Enable the microphone?" msgstr "¿Habilitar micrófono?" -#: client/scenes/lobby_gui.cpp:1276 +#: client/scenes/lobby_gui.cpp:1219 msgid "Enable eye tracking?" msgstr "¿Habilitar seguimiento ocular?" -#: client/scenes/lobby_gui.cpp:1281 +#: client/scenes/lobby_gui.cpp:1224 msgid "Enable face tracking?" msgstr "¿Habilitar seguimiento facial?" -#: client/scenes/lobby_gui.cpp:1286 +#: client/scenes/lobby_gui.cpp:1229 msgid "Enable body tracking?" msgstr "¿Habilitar seguimiento corporal?" -#: client/scenes/lobby_gui.cpp:1294 +#: client/scenes/lobby_gui.cpp:1237 msgid "Welcome to WiVRn" msgstr "Bienvenido a WiVRn" -#: client/scenes/lobby_gui.cpp:1318 +#: client/scenes/lobby_gui.cpp:1261 msgid "Yes" msgstr "Sí" -#: client/scenes/lobby_gui.cpp:1325 +#: client/scenes/lobby_gui.cpp:1268 msgid "No" msgstr "No" -#: client/scenes/lobby_gui.cpp:1344 client/scenes/lobby_gui.cpp:1983 +#: client/scenes/lobby_gui.cpp:1287 client/scenes/lobby_gui.cpp:1934 msgid "Licenses" msgstr "Licencias" -#: client/scenes/lobby_gui.cpp:1658 +#: client/scenes/lobby_gui.cpp:1612 msgid "Microphone is enabled" msgstr "Micrófono activado" -#: client/scenes/lobby_gui.cpp:1659 +#: client/scenes/lobby_gui.cpp:1613 msgid "Microphone is disabled" msgstr "Micrófono desactivado" -#: client/scenes/lobby_gui.cpp:1668 +#: client/scenes/lobby_gui.cpp:1622 msgid "Hand tracking is enabled" msgstr "Seguimiento de manos activado" -#: client/scenes/lobby_gui.cpp:1669 +#: client/scenes/lobby_gui.cpp:1623 msgid "Hand tracking is disabled" msgstr "Seguimiento de manos desactivado" -#: client/scenes/lobby_gui.cpp:1678 +#: client/scenes/lobby_gui.cpp:1632 msgid "Eye tracking is enabled" msgstr "Seguimiento ocular activado" -#: client/scenes/lobby_gui.cpp:1679 +#: client/scenes/lobby_gui.cpp:1633 msgid "Eye tracking is disabled" msgstr "Seguimiento ocular desactivado" -#: client/scenes/lobby_gui.cpp:1692 +#: client/scenes/lobby_gui.cpp:1643 msgid "Face tracking is enabled" msgstr "Seguimiento facial activado" -#: client/scenes/lobby_gui.cpp:1693 +#: client/scenes/lobby_gui.cpp:1644 msgid "Face tracking is disabled" msgstr "Seguimiento facial desactivado" -#: client/scenes/lobby_gui.cpp:1703 +#: client/scenes/lobby_gui.cpp:1654 msgid "Body tracking is enabled" msgstr "Seguimiento corporal está habilitado" -#: client/scenes/lobby_gui.cpp:1704 +#: client/scenes/lobby_gui.cpp:1655 msgid "Body tracking is disabled" msgstr "Seguimiento corporal está deshabilitado" -#: client/scenes/lobby_gui.cpp:1720 +#: client/scenes/lobby_gui.cpp:1671 msgid "Add server" msgstr "Agregar servidor" -#: client/scenes/lobby_gui.cpp:1965 +#: client/scenes/lobby_gui.cpp:1916 msgid "Server list" msgstr "Lista de servidores" -#: client/scenes/lobby_gui.cpp:1968 client/scenes/stream_gui.cpp:796 +#: client/scenes/lobby_gui.cpp:1919 client/scenes/stream_gui.cpp:822 msgid "Settings" msgstr "Configuración" -#: client/scenes/lobby_gui.cpp:1971 +#: client/scenes/lobby_gui.cpp:1922 msgid "Post-processing" msgstr "Post-procesamiento" -#: client/scenes/lobby_gui.cpp:1975 +#: client/scenes/lobby_gui.cpp:1926 msgid "Debug" msgstr "Depuración" -#: client/scenes/lobby_gui.cpp:1980 +#: client/scenes/lobby_gui.cpp:1931 msgid "About" msgstr "Acerca de" -#: client/scenes/lobby_gui.cpp:1986 +#: client/scenes/lobby_gui.cpp:1937 msgid "Exit" msgstr "Salir" -#: client/scenes/lobby_gui.cpp:2003 +#: client/scenes/lobby_gui.cpp:1954 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -473,7 +439,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:2005 +#: client/scenes/lobby_gui.cpp:1956 msgid "Press the grip button to move the main window" msgstr "Pulsa el botón de agarre para mover la ventana principal" @@ -489,11 +455,11 @@ msgstr "Copia" msgid "Network" msgstr "Red" -#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416 +#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422 msgid "Download" msgstr "Descargar" -#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417 +#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423 msgid "Upload" msgstr "Subir" @@ -534,66 +500,66 @@ msgstr "Mostrado" msgid "Predicted" msgstr "Previsto" -#: client/scenes/stream_gui.cpp:393 +#: client/scenes/stream_gui.cpp:395 #, c++-format msgid "Estimated motion to photons latency: {}ms" msgstr "Latencia estimada de movimiento a fotones: {}ms" -#: client/scenes/stream_gui.cpp:396 +#: client/scenes/stream_gui.cpp:402 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:398 client/scenes/stream_gui.cpp:750 +#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776 msgid "Press both thumbsticks to display the WiVRn window" msgstr "Pulsa ambos joysticks para mostrar la ventana de WiVRn" -#: client/scenes/stream_gui.cpp:420 +#: client/scenes/stream_gui.cpp:426 msgid "Motion to photon latency" msgstr "Latencia entre el movimiento y la imagen mostrada" -#: client/scenes/stream_gui.cpp:492 +#: client/scenes/stream_gui.cpp:503 msgid "Foveation center override" msgstr "Reajustar el centro de la fóvea" -#: client/scenes/stream_gui.cpp:495 +#: client/scenes/stream_gui.cpp:506 msgid "Enable" msgstr "Habilitar" -#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550 +#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561 #, c++-format msgid "Height {:.1f} deg" msgstr "Altura {:.1f} °" -#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551 +#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562 #, c++-format msgid "Distance {:.2f} m" msgstr "Distancia {:.2f} m" -#: client/scenes/stream_gui.cpp:505 +#: client/scenes/stream_gui.cpp:516 msgid "Default" msgstr "Por defecto" -#: client/scenes/stream_gui.cpp:516 +#: client/scenes/stream_gui.cpp:527 msgid "Change" msgstr "Cambiar" -#: client/scenes/stream_gui.cpp:548 +#: client/scenes/stream_gui.cpp:559 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:549 +#: client/scenes/stream_gui.cpp:560 msgid "Press A to save or B to cancel" msgstr "Pulsa A para guardar o B para cancelar" -#: client/scenes/stream_gui.cpp:793 +#: client/scenes/stream_gui.cpp:819 msgid "Stats" msgstr "Estadísticas" -#: client/scenes/stream_gui.cpp:802 +#: client/scenes/stream_gui.cpp:828 msgid "Statistics overlay" msgstr "Superponer estadísticas" -#: client/scenes/stream_gui.cpp:805 +#: client/scenes/stream_gui.cpp:831 msgid "Compact view" msgstr "Vista compacta" @@ -613,6 +579,44 @@ msgstr "No se puede verificar el PIN" msgid "Pairing is disabled on server" msgstr "El emparejamiento está deshabilitado en el servidor." +#~ msgid "Enable Snapdragon Game Super Resolution" +#~ msgstr "Habilitar Snapdragon Game Super Resolution" + +#~ msgid "" +#~ "On this headset, this setting has been fully superseded by the native " +#~ "Sharpening setting above.\n" +#~ "Only enable if you know what you're doing." +#~ msgstr "" +#~ "En este visor, está opción ha sido reemplazada totalmente por la nativa " +#~ "Opción de enfoque arriba.\n" +#~ "Sólo habilita esto si sabes lo que estás haciendo." + +#~ msgid "" +#~ "Client-side upscaling and sharpening, adds a performance cost on the " +#~ "headset" +#~ msgstr "" +#~ "Sobreescalado y nitidez de lado del cliente, supone un mayor coste de " +#~ "rendimiento para el visor" + +#~ msgid "Upscaling factor" +#~ msgstr "Factor de sobreescalado" + +#~ msgid "Use edge direction" +#~ msgstr "Usar la dirección del borde" + +#~ msgid "Adds an additional performance cost" +#~ msgstr "Añade un coste de rendimiento adicional" + +#~ msgid "Edge threshold" +#~ msgstr "Umbral del borde" + +#, c++-format +#~ msgid "Recommended: {:.1f}" +#~ msgstr "Recomendado: {:.1f}" + +#~ msgid "Edge sharpness" +#~ msgstr "Nitidez del borde" + #~ msgid "Video stream interrupted" #~ msgstr "Transmisión de video interrumpida" From 0e5a09cc4536cce4494b78691e5d5ed47fefdd03 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 12 Sep 2025 18:38:28 +0200 Subject: [PATCH 28/52] Update libktx, switch to https download --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 354b164a..9c3abbe2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -221,9 +221,8 @@ FetchContent_Declare(spdlog EXCLUDE_FROM_ALL SYSTEM URL https://github.co URL_HASH SHA256=1586508029a7d0670dfcb2d97575dcdc242d3868a259742b69f100801ab4e16b) FetchContent_Declare(stb EXCLUDE_FROM_ALL SYSTEM URL https://github.com/nothings/stb/archive/013ac3beddff3dbffafd5177e7972067cd2b5083.zip URL_HASH SHA256=b7f476902bbef1b30f8ecc2d9d95c459c32302c8b559d09b589b5955463b7af8) -FetchContent_Declare(libktx EXCLUDE_FROM_ALL SYSTEM - GIT_REPOSITORY https://github.com/KhronosGroup/KTX-Software - GIT_TAG 91ace88675ac59a97e55d0378a6602a9ae6b98bd) +FetchContent_Declare(libktx EXCLUDE_FROM_ALL SYSTEM URL https://github.com/KhronosGroup/KTX-Software/archive/refs/tags/v4.4.0.tar.gz + URL_HASH SHA256=3585d76edcdcbe3a671479686f8c81c1c10339f419e4b02a9a6f19cc6e4e0612) FetchContent_Declare(implot EXCLUDE_FROM_ALL SYSTEM URL https://github.com/epezent/implot/archive/3da8bd34299965d3b0ab124df743fe3e076fa222.zip URL_HASH SHA256=e9b439a94aa6f09fcf12ed9c2cd784efe5e99e96242122aa683e690b29f7a59f) file(GLOB IMGUI_PATCHES CONFIGURE_DEPENDS patches/imgui/*) From 8b9beb272db731ef95b8d673b3efa68395ed7f98 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 12 Sep 2025 19:30:45 +0200 Subject: [PATCH 29/52] Silence cmake warning for unused variable --- client/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index dbc4e89a..35a33459 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -184,6 +184,9 @@ if(USE_ANDROID_VALIDATION_LAYER) file(COPY ${CMAKE_BINARY_DIR}/Vulkan-ValidationLayer/android-binaries-${VVL_VERSION}/${CMAKE_ANDROID_ARCH_ABI} DESTINATION ${CMAKE_ANDROID_LIB_DIRECTORIES}) +else() + # silence "Manually-specified variables were not used by the project" warning + set(_unused ${CMAKE_ANDROID_LIB_DIRECTORIES}) endif() From ea54031627b1eb9f93399888340465c30c3bca34 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 13 Sep 2025 18:15:30 +0200 Subject: [PATCH 30/52] Don't try OpenXR 1.1 The promoted extension mechanism is flawed: it should use the new names for FB interaction profiles, but keep the BD ones with the original name --- client/xr/instance.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/client/xr/instance.cpp b/client/xr/instance.cpp index 5522341d..38687df0 100644 --- a/client/xr/instance.cpp +++ b/client/xr/instance.cpp @@ -78,7 +78,6 @@ static std::pair create_instance(XrInstanceCreateInfo & i { XrResult res; for (XrVersion version: { - XR_API_VERSION_1_1, XR_API_VERSION_1_0, }) { From 88ae120c5276cec030bd58477efc6d82564c94c7 Mon Sep 17 00:00:00 2001 From: Jayden Date: Sun, 14 Sep 2025 11:16:21 +0800 Subject: [PATCH 31/52] upate zh-TW translation --- locale/zh_TW/wivrn-dashboard.po | 119 ++++++------- locale/zh_TW/wivrn.po | 301 ++++++++++++++++---------------- 2 files changed, 212 insertions(+), 208 deletions(-) diff --git a/locale/zh_TW/wivrn-dashboard.po b/locale/zh_TW/wivrn-dashboard.po index add32911..9863f0a6 100644 --- a/locale/zh_TW/wivrn-dashboard.po +++ b/locale/zh_TW/wivrn-dashboard.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn-dashboard\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-08-07 23:22+0800\n" +"POT-Creation-Date: 2025-09-14 10:48+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Jayden Ha \n" "Language-Team: LANGUAGE \n" @@ -84,7 +84,7 @@ msgid "No precompiled APK is available for this version." msgstr "此版本沒有預編譯 APK 可用" #: dashboard/qml/ApkInstallPage.qml:45 dashboard/qml/Main.qml:259 -#: dashboard/qml/Main.qml:341 +#: dashboard/qml/Main.qml:342 #, kde-format msgid "ADB is not installed." msgstr "未安裝 ADB" @@ -131,7 +131,7 @@ msgstr "重新安裝 WiVRn" msgid "Install WiVRn" msgstr "安裝 WiVRn" -#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:354 +#: dashboard/qml/HeadsetsPage.qml:12 dashboard/qml/Main.qml:355 #, kde-format msgid "Headsets" msgstr "頭戴式裝置" @@ -176,7 +176,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:326 dashboard/qml/WizardPage.qml:410 +#: dashboard/qml/WizardPage.qml:327 dashboard/qml/WizardPage.qml:411 #, kde-format msgid "Cancel" msgstr "取消" @@ -272,7 +272,8 @@ msgstr "" msgid "" "No OpenVR compatibility detected, Steam games won't be able to load VR.\n" "Install xrizer or OpenComposite." -msgstr "未偵測到 OpenVR 相容性,Steam 遊戲將無法載入 VR。\n" +msgstr "" +"未偵測到 OpenVR 相容性,Steam 遊戲將無法載入 VR。\n" "請安裝 xrizer 或 OpenComposite" #: dashboard/qml/Main.qml:171 @@ -302,7 +303,7 @@ msgstr "配對中" msgid "PIN: %1" msgstr "PIN: %1" -#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:373 +#: dashboard/qml/Main.qml:250 dashboard/qml/WizardPage.qml:374 #, kde-format msgid "Connect by USB" msgstr "透過 USB 連線" @@ -328,22 +329,22 @@ msgstr "應用程式" msgid "Steam information" msgstr "Steam 資訊" -#: dashboard/qml/Main.qml:325 +#: dashboard/qml/Main.qml:326 #, kde-format msgid "Wizard" msgstr "精靈" -#: dashboard/qml/Main.qml:332 +#: dashboard/qml/Main.qml:333 #, kde-format msgid "Install the app" msgstr "安裝應用程式" -#: dashboard/qml/Main.qml:361 dashboard/qml/SettingsPage.qml:14 +#: dashboard/qml/Main.qml:362 dashboard/qml/SettingsPage.qml:14 #, kde-format msgid "Settings" msgstr "設定" -#: dashboard/qml/Main.qml:368 dashboard/qml/TroubleshootPage.qml:10 +#: dashboard/qml/Main.qml:369 dashboard/qml/TroubleshootPage.qml:10 #, kde-format msgid "Troubleshoot" msgstr "疑難排解" @@ -448,19 +449,19 @@ msgctxt "encoder preset" msgid "Default preset" msgstr "預設" -#: dashboard/qml/SettingsPage.qml:145 +#: dashboard/qml/SettingsPage.qml:139 #, kde-format msgctxt "encoder preset" msgid "Low latency preset" msgstr "低延遲預設" -#: dashboard/qml/SettingsPage.qml:170 +#: dashboard/qml/SettingsPage.qml:158 #, kde-format msgctxt "encoder preset" msgid "Safe preset" msgstr "安全預設" -#: dashboard/qml/SettingsPage.qml:193 +#: dashboard/qml/SettingsPage.qml:181 #, kde-format msgid "" "To add a new encoder, split an existing encoder by clicking near an edge.\n" @@ -469,84 +470,84 @@ msgstr "" "要新增編碼器,請點擊邊緣附近以分割現有編碼器。\n" "拖曳邊緣以調整大小或移除編碼器。" -#: dashboard/qml/SettingsPage.qml:220 +#: dashboard/qml/SettingsPage.qml:208 #, kde-format msgid "Encoder:" msgstr "編碼器:" -#: dashboard/qml/SettingsPage.qml:229 +#: dashboard/qml/SettingsPage.qml:217 #, kde-format msgctxt "automatic encoder setup" msgid "Auto" msgstr "自動" -#: dashboard/qml/SettingsPage.qml:234 +#: dashboard/qml/SettingsPage.qml:222 #, kde-format msgid "nvenc (NVIDIA GPUs)" msgstr "nvenc (NVIDIA GPUs)" -#: dashboard/qml/SettingsPage.qml:239 +#: dashboard/qml/SettingsPage.qml:227 #, kde-format msgid "vaapi (AMD and Intel GPUs)" msgstr "vaapi (AMD 和 Intel GPUs)" -#: dashboard/qml/SettingsPage.qml:244 +#: dashboard/qml/SettingsPage.qml:232 #, kde-format msgid "x264 (software encoding)" msgstr "x264 (軟體編碼)" -#: dashboard/qml/SettingsPage.qml:249 +#: dashboard/qml/SettingsPage.qml:237 #, kde-format msgid "Vulkan (Vulkan Video)" msgstr "Vulkan (Vulkan Video)" -#: dashboard/qml/SettingsPage.qml:272 +#: dashboard/qml/SettingsPage.qml:260 #, kde-format msgid "\"Auto\" will use hardware acceleration if it is available" msgstr "\"自動\" 將在可用時使用硬體加速" -#: dashboard/qml/SettingsPage.qml:278 +#: dashboard/qml/SettingsPage.qml:266 #, kde-format msgid "Codec:" msgstr "編碼器:" -#: dashboard/qml/SettingsPage.qml:285 +#: dashboard/qml/SettingsPage.qml:273 #, kde-format msgctxt "automatic codec setup" msgid "Auto" msgstr "自動" -#: dashboard/qml/SettingsPage.qml:289 +#: dashboard/qml/SettingsPage.qml:277 #, kde-format msgid "H.264" msgstr "H.264" -#: dashboard/qml/SettingsPage.qml:293 +#: dashboard/qml/SettingsPage.qml:281 #, kde-format msgid "H.265" msgstr "H.265" -#: dashboard/qml/SettingsPage.qml:297 +#: dashboard/qml/SettingsPage.qml:285 #, kde-format msgid "AV1" msgstr "AV1" -#: dashboard/qml/SettingsPage.qml:319 +#: dashboard/qml/SettingsPage.qml:307 #, kde-format msgid "Advanced options" msgstr "進階選項" -#: dashboard/qml/SettingsPage.qml:325 +#: dashboard/qml/SettingsPage.qml:313 #, kde-format msgid "Enable debug window" msgstr "啟用偵錯視窗" -#: dashboard/qml/SettingsPage.qml:332 +#: dashboard/qml/SettingsPage.qml:320 #, kde-format msgid "Enable SteamVR tracked devices support" msgstr "啟用 SteamVR 追蹤裝置支援" -#: dashboard/qml/SettingsPage.qml:335 +#: dashboard/qml/SettingsPage.qml:323 #, kde-format msgid "" "Allows the use of lighthouse-based controllers and trackers.\n" @@ -559,44 +560,44 @@ msgstr "" "裝置必須在連線到 WiVRn 之前開啟電源。\n" "校準需要額外工具,例如 motoc。" -#: dashboard/qml/SettingsPage.qml:343 +#: dashboard/qml/SettingsPage.qml:331 #, kde-format msgid "Custom adb location" msgstr "自訂 adb 位置" -#: dashboard/qml/SettingsPage.qml:354 +#: dashboard/qml/SettingsPage.qml:342 #, kde-format msgid "Adb location:" msgstr "adb 位置:" -#: dashboard/qml/SettingsPage.qml:363 +#: dashboard/qml/SettingsPage.qml:351 #, kde-format msgctxt "browse a file to choose the adb binary" msgid "Browse" msgstr "瀏覽" -#: dashboard/qml/SettingsPage.qml:373 +#: dashboard/qml/SettingsPage.qml:361 #, kde-format msgid "Default" msgstr "預設" -#: dashboard/qml/SettingsPage.qml:387 +#: dashboard/qml/SettingsPage.qml:375 #, kde-format msgctxt "set a custom OpenVR compatibility library" msgid "Custom" msgstr "自訂" -#: dashboard/qml/SettingsPage.qml:392 +#: dashboard/qml/SettingsPage.qml:380 #, kde-format msgid "Disabled" msgstr "已停用" -#: dashboard/qml/SettingsPage.qml:400 +#: dashboard/qml/SettingsPage.qml:388 #, kde-format msgid "OpenVR compatibility library:" msgstr "OpenVR 相容性函式庫:" -#: dashboard/qml/SettingsPage.qml:426 +#: dashboard/qml/SettingsPage.qml:414 #, kde-format msgid "Library path, excluding bin/linux64/vrclient.so" msgstr "函式庫路徑,不包含 bin/linux64/vrclient.so" @@ -631,7 +632,7 @@ msgstr "已複製 Steam 啟動命令" msgid "I cannot find the WiVRn app on my headset" msgstr "我在我的頭顯上找不到 WiVRn 應用程式。" -#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:387 +#: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:388 #, kde-format msgid "" "If you installed WiVRn over USB on a Meta headset, the app is in the " @@ -645,7 +646,7 @@ msgstr "" msgid "I cannot see my computer in the WiVRn app" msgstr "我在 WiVRn 應用程式中看不到我的電腦。" -#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:392 +#: dashboard/qml/TroubleshootPage.qml:25 dashboard/qml/WizardPage.qml:393 #, kde-format msgid "" "If the server is not visible or the connection fails, check that port 5353 " @@ -698,7 +699,7 @@ msgstr "目前已停用配對" msgid "I have no sound on my headset" msgstr "我的頭戴式裝置沒有聲音" -#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:440 +#: dashboard/qml/TroubleshootPage.qml:50 dashboard/qml/WizardPage.qml:441 #, kde-format msgid "" "When the headset is connected, select \"WiVRn\" as the default audio output " @@ -721,9 +722,9 @@ msgid "Getting started" msgstr "入門指南" #: dashboard/qml/WizardPage.qml:29 dashboard/qml/WizardPage.qml:78 -#: dashboard/qml/WizardPage.qml:253 dashboard/qml/WizardPage.qml:316 -#: dashboard/qml/WizardPage.qml:400 dashboard/qml/WizardPage.qml:447 -#: dashboard/qml/WizardPage.qml:484 +#: 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 #, kde-format msgid "Back" msgstr "返回" @@ -741,8 +742,8 @@ msgid "" msgstr "此精靈將幫助您在頭戴式裝置上設定 WiVRn,並將其連接到您的電腦。" #: dashboard/qml/WizardPage.qml:83 dashboard/qml/WizardPage.qml:258 -#: dashboard/qml/WizardPage.qml:321 dashboard/qml/WizardPage.qml:452 -#: dashboard/qml/WizardPage.qml:489 +#: dashboard/qml/WizardPage.qml:322 dashboard/qml/WizardPage.qml:453 +#: dashboard/qml/WizardPage.qml:490 #, kde-format msgid "Next" msgstr "下一步" @@ -834,24 +835,24 @@ msgid "" "your headset." msgstr "當您連接頭戴式裝置時,您選擇的應用程式將會自動啟動。" -#: dashboard/qml/WizardPage.qml:300 +#: dashboard/qml/WizardPage.qml:301 #, kde-format msgid "Important information" msgstr "重要訊息" -#: dashboard/qml/WizardPage.qml:307 +#: dashboard/qml/WizardPage.qml:308 #, kde-format msgid "" "WiVRn entirely replaces SteamVR, you should not start SteamVR while WiVRn is " "running." msgstr "WiVRn完全取代了SteamVR,在WiVRn運行時,請勿啟動SteamVR" -#: dashboard/qml/WizardPage.qml:358 +#: dashboard/qml/WizardPage.qml:359 #, kde-format msgid "Start the WiVRn app on your headset" msgstr "在您的頭戴式裝置上啟動 WiVRn 應用程式" -#: dashboard/qml/WizardPage.qml:363 +#: dashboard/qml/WizardPage.qml:364 #, kde-format msgid "" "To connect over WiFi, start the WiVRn app on your headset, connect to \"%1\" " @@ -860,54 +861,54 @@ msgstr "" "要通過 WiFi 連線,請在您的頭戴式裝置上啟動 WiVRn 應用程式,連線至 \"%1\" 並輸" "入 PIN 碼 \"%2\"。" -#: dashboard/qml/WizardPage.qml:370 +#: dashboard/qml/WizardPage.qml:371 #, kde-format msgid "To connect over USB, click on \"Connect by USB\"." msgstr "要透過 USB 連線,請點擊 \"透過 USB 連線\"。" -#: dashboard/qml/WizardPage.qml:383 +#: dashboard/qml/WizardPage.qml:384 #, kde-format msgid "Troubleshooting" msgstr "疑難排解" -#: dashboard/qml/WizardPage.qml:405 +#: dashboard/qml/WizardPage.qml:406 #, kde-format msgid "Skip" msgstr "跳過" -#: dashboard/qml/WizardPage.qml:425 +#: dashboard/qml/WizardPage.qml:426 #, kde-format msgid "Connection established" msgstr "連線已建立" -#: dashboard/qml/WizardPage.qml:430 +#: dashboard/qml/WizardPage.qml:431 #, kde-format msgid "Your headset is now connected." msgstr "您的頭戴式裝置現在已連線。" -#: dashboard/qml/WizardPage.qml:435 dashboard/qml/WizardPage.qml:477 +#: dashboard/qml/WizardPage.qml:436 dashboard/qml/WizardPage.qml:478 #, kde-format msgid "" "To connect another headset, make sure pairing is enabled in the dashboard " "before connecting." msgstr "如要連接其他頭戴式裝置,請確保在連線之前在儀表板中啟用配對。" -#: dashboard/qml/WizardPage.qml:457 dashboard/qml/WizardPage.qml:494 +#: dashboard/qml/WizardPage.qml:458 dashboard/qml/WizardPage.qml:495 #, kde-format msgid "Finish" msgstr "完成" -#: dashboard/qml/WizardPage.qml:472 +#: dashboard/qml/WizardPage.qml:473 #, kde-format msgid "Finished" msgstr "已完成" -#: dashboard/wivrn_server.cpp:584 +#: dashboard/wivrn_server.cpp:592 #, kde-format msgid "xrizer" msgstr "xrizer" -#: dashboard/wivrn_server.cpp:585 +#: dashboard/wivrn_server.cpp:593 #, kde-format msgid "Open Composite" msgstr "Open Composite" diff --git a/locale/zh_TW/wivrn.po b/locale/zh_TW/wivrn.po index 3a0e8ede..0f0ae004 100644 --- a/locale/zh_TW/wivrn.po +++ b/locale/zh_TW/wivrn.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-08-07 23:22+0800\n" +"POT-Creation-Date: 2025-09-14 10:48+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Jayden Ha \n" "Language-Team: LANGUAGE \n" @@ -17,7 +17,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: client/scene.cpp:74 +#: client/scene.cpp:72 msgid "No supported swapchain format" msgstr "不支援的交換鏈格式" @@ -44,94 +44,94 @@ msgstr "無法連線至 {} ({}): {}" msgid "Waiting for connection" msgstr "等待連線" -#: client/scenes/lobby_gui.cpp:229 +#: client/scenes/lobby_gui.cpp:231 msgctxt "openxr_post_processing" msgid "Normal" msgstr "正常" -#: client/scenes/lobby_gui.cpp:232 +#: client/scenes/lobby_gui.cpp:234 msgctxt "openxr_post_processing" msgid "Quality" msgstr "畫質" -#: client/scenes/lobby_gui.cpp:234 +#: client/scenes/lobby_gui.cpp:236 msgctxt "openxr_post_processing" msgid "Disabled" msgstr "已停用" -#: client/scenes/lobby_gui.cpp:242 client/scenes/lobby_gui.cpp:398 -#: client/scenes/stream_gui.cpp:812 +#: client/scenes/lobby_gui.cpp:244 client/scenes/lobby_gui.cpp:401 +#: client/scenes/stream_gui.cpp:838 msgid "Disconnect" msgstr "中斷連線" -#: client/scenes/lobby_gui.cpp:262 client/scenes/stream_gui.cpp:808 +#: client/scenes/lobby_gui.cpp:265 client/scenes/stream_gui.cpp:834 msgid "Close" msgstr "關閉" -#: client/scenes/lobby_gui.cpp:268 +#: client/scenes/lobby_gui.cpp:271 msgid "Connection" msgstr "連線" -#: client/scenes/lobby_gui.cpp:270 +#: client/scenes/lobby_gui.cpp:273 #, c++-format msgid "Connection to {}" msgstr "連線至 {}" -#: client/scenes/lobby_gui.cpp:300 +#: client/scenes/lobby_gui.cpp:303 msgid "PIN" msgstr "PIN" -#: client/scenes/lobby_gui.cpp:322 +#: client/scenes/lobby_gui.cpp:325 msgid "Input the PIN displayed on the dashboard" msgstr "請輸入控制面板上顯示的 PIN 碼" -#: client/scenes/lobby_gui.cpp:393 +#: client/scenes/lobby_gui.cpp:396 msgid "Connected to WiVRn server" msgstr "已連線到 WiVRn 伺服器" -#: client/scenes/lobby_gui.cpp:395 +#: client/scenes/lobby_gui.cpp:398 #, c++-format msgid "Connected to {}" msgstr "已連線到 {}" -#: client/scenes/lobby_gui.cpp:405 +#: client/scenes/lobby_gui.cpp:408 msgid "Start an application on the server to start streaming." msgstr "在伺服器那邊啟動程式來開始串流。" -#: client/scenes/lobby_gui.cpp:414 +#: client/scenes/lobby_gui.cpp:420 msgid "Start an application on your computer or select one to start streaming." msgstr "在您的電腦上啟動應用程式,或是選擇一個來開始串流。" -#: client/scenes/lobby_gui.cpp:416 +#: client/scenes/lobby_gui.cpp:422 #, c++-format msgid "Start an application on {} or select one to start streaming." msgstr "在 {} 上啟動應用程式,或是選擇一個來開始串流。" -#: client/scenes/lobby_gui.cpp:522 +#: client/scenes/lobby_gui.cpp:545 msgid "Name" msgstr "名" -#: client/scenes/lobby_gui.cpp:533 +#: client/scenes/lobby_gui.cpp:556 msgid "Address" msgstr "伺服器位址" -#: client/scenes/lobby_gui.cpp:542 +#: client/scenes/lobby_gui.cpp:565 msgid "Port" msgstr "連接埠" -#: client/scenes/lobby_gui.cpp:550 +#: client/scenes/lobby_gui.cpp:573 msgid "TCP only" msgstr "僅限 TCP" -#: client/scenes/lobby_gui.cpp:557 +#: client/scenes/lobby_gui.cpp:580 msgid "Cancel" msgstr "取消" -#: client/scenes/lobby_gui.cpp:571 +#: client/scenes/lobby_gui.cpp:594 msgid "Save" msgstr "儲存" -#: client/scenes/lobby_gui.cpp:624 +#: client/scenes/lobby_gui.cpp:647 msgid "" "Start a WiVRn server on your\n" "local network" @@ -139,32 +139,32 @@ msgstr "" "在您的區域網路中啟動\n" "WiVRn 伺服器" -#: client/scenes/lobby_gui.cpp:656 +#: client/scenes/lobby_gui.cpp:679 msgid "Autoconnect" msgstr "自動連線" -#: client/scenes/lobby_gui.cpp:682 +#: client/scenes/lobby_gui.cpp:705 msgid "Connect" msgstr "連線" -#: client/scenes/lobby_gui.cpp:692 client/wivrn_client.cpp:186 +#: client/scenes/lobby_gui.cpp:715 client/wivrn_client.cpp:186 msgid "Incompatible server version" msgstr "伺服器版本不相容" -#: client/scenes/lobby_gui.cpp:694 +#: client/scenes/lobby_gui.cpp:717 msgid "Server not available" msgstr "無法使用伺服器" -#: client/scenes/lobby_gui.cpp:780 +#: client/scenes/lobby_gui.cpp:803 msgid "Refresh rate" msgstr "刷新率" -#: client/scenes/lobby_gui.cpp:780 client/scenes/lobby_gui.cpp:782 +#: client/scenes/lobby_gui.cpp:803 client/scenes/lobby_gui.cpp:805 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "自動" -#: client/scenes/lobby_gui.cpp:789 +#: client/scenes/lobby_gui.cpp:812 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -172,59 +172,59 @@ msgstr "" "根據測量的應用程式效能選擇刷新率。\n" "變更時可能會造成閃爍。" -#: client/scenes/lobby_gui.cpp:806 +#: client/scenes/lobby_gui.cpp:829 msgid "Minimum refresh rate" msgstr "最低刷新率" -#: client/scenes/lobby_gui.cpp:829 +#: client/scenes/lobby_gui.cpp:852 msgid "Resolution scale" msgstr "解析度縮放比例" -#: client/scenes/lobby_gui.cpp:833 client/scenes/lobby_gui.cpp:1072 +#: client/scenes/lobby_gui.cpp:856 #, c-format, c++-format msgid "%d%% - {}x{} per eye" msgstr "%d%% - 單眼 {}x{}" -#: client/scenes/lobby_gui.cpp:844 client/scenes/lobby_gui.cpp:1083 +#: client/scenes/lobby_gui.cpp:867 #, c++-format msgid "Resolution larger than {}x{} may not be supported by the headset" msgstr "解析度高於 {}x{} 可能不被頭戴式裝置支援" -#: client/scenes/lobby_gui.cpp:850 +#: client/scenes/lobby_gui.cpp:873 msgid "Enable microphone" msgstr "啟用麥克風" -#: client/scenes/lobby_gui.cpp:859 +#: client/scenes/lobby_gui.cpp:882 msgid "Unprocessed Microphone Audio" msgstr "未處理的麥克風音訊" -#: client/scenes/lobby_gui.cpp:865 +#: client/scenes/lobby_gui.cpp:888 msgid "Force disable audio filters, such as noise cancellation" msgstr "強制停用音訊濾波器,例如降噪" -#: client/scenes/lobby_gui.cpp:872 +#: client/scenes/lobby_gui.cpp:895 msgid "Enable hand tracking" msgstr "啟用手部追蹤" -#: client/scenes/lobby_gui.cpp:878 client/scenes/lobby_gui.cpp:890 -#: client/scenes/lobby_gui.cpp:902 client/scenes/lobby_gui.cpp:918 -#: client/scenes/lobby_gui.cpp:968 +#: client/scenes/lobby_gui.cpp:901 client/scenes/lobby_gui.cpp:913 +#: client/scenes/lobby_gui.cpp:925 client/scenes/lobby_gui.cpp:942 +#: client/scenes/lobby_gui.cpp:987 msgid "This feature is not supported by your headset" msgstr "您的頭戴式裝置不支援此功能" -#: client/scenes/lobby_gui.cpp:884 +#: client/scenes/lobby_gui.cpp:907 msgid "Enable eye tracking" msgstr "啟用眼球追蹤" -#: client/scenes/lobby_gui.cpp:896 +#: client/scenes/lobby_gui.cpp:919 msgid "Enable face tracking" msgstr "啟用臉部追蹤" -#: client/scenes/lobby_gui.cpp:909 +#: client/scenes/lobby_gui.cpp:933 msgid "Enable body tracking" msgstr "啟用身體追蹤" -#: client/scenes/lobby_gui.cpp:925 +#: client/scenes/lobby_gui.cpp:947 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -233,11 +233,11 @@ msgstr "" "需要在 Quest 移動追蹤設定中啟用「手部和身體追蹤」,\n" "否則身體資料將根據控制器和頭戴式裝置的位置進行猜測" -#: client/scenes/lobby_gui.cpp:938 +#: client/scenes/lobby_gui.cpp:957 msgid "Enable lower body tracking" msgstr "啟用下半身追蹤" -#: client/scenes/lobby_gui.cpp:944 +#: client/scenes/lobby_gui.cpp:963 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -246,11 +246,11 @@ msgstr "" "使用 Generative Legs 預估下半身關節位置\n" "需要在 Quest 移動追蹤設定中啟用「手部和身體追蹤」" -#: client/scenes/lobby_gui.cpp:947 +#: client/scenes/lobby_gui.cpp:966 msgid "Enable hip tracking" msgstr "啟用臀部追蹤" -#: client/scenes/lobby_gui.cpp:953 +#: client/scenes/lobby_gui.cpp:972 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -258,19 +258,30 @@ msgstr "" "僅在啟用下半身追蹤時生效\n" "在使用其他臀部追蹤時可能需要此功能" -#: client/scenes/lobby_gui.cpp:961 +#: client/scenes/lobby_gui.cpp:980 msgid "Enable video passthrough in lobby" msgstr "在待機區啟用影像穿透 (Passthrough)" -#: client/scenes/lobby_gui.cpp:982 client/scenes/stream_gui.cpp:434 +#: client/scenes/lobby_gui.cpp:991 +msgid "Enable in-stream window" +msgstr "啟用串流中視窗" + +#: client/scenes/lobby_gui.cpp:994 +msgid "" +"Enables the configuration window to be shown while the game is streaming.\n" +"If enabled, the window is activated by pressing both thumbsticks." +msgstr "啟用在遊戲串流期間顯示配置視窗\n" +"若啟用此功能,按下兩根搖桿後,將會顯示該視窗。" + +#: client/scenes/lobby_gui.cpp:1008 client/scenes/stream_gui.cpp:445 msgid "OpenXR post-processing" msgstr "OpenXR 後期處理" -#: client/scenes/lobby_gui.cpp:986 client/scenes/stream_gui.cpp:438 +#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:449 msgid "Supersampling" msgstr "超取樣" -#: client/scenes/lobby_gui.cpp:1006 client/scenes/stream_gui.cpp:459 +#: client/scenes/lobby_gui.cpp:1032 client/scenes/stream_gui.cpp:470 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -278,11 +289,11 @@ msgstr "" "減少高對比邊緣的閃爍。\n" "當輸入解析度對於頭戴式顯示器來說很高時很有用" -#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:464 +#: client/scenes/lobby_gui.cpp:1037 client/scenes/stream_gui.cpp:475 msgid "Sharpening" msgstr "銳利化" -#: client/scenes/lobby_gui.cpp:1031 client/scenes/stream_gui.cpp:485 +#: client/scenes/lobby_gui.cpp:1057 client/scenes/stream_gui.cpp:496 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -290,168 +301,125 @@ msgstr "" "改善高對比邊緣的清晰度並抵消模糊。\n" "當輸入解析度對於頭戴式顯示器來說較低時很有用" -#: client/scenes/lobby_gui.cpp:1040 -msgid "Enable Snapdragon Game Super Resolution" -msgstr "啟用 Snapdragon 遊戲超級解析度" - -#: client/scenes/lobby_gui.cpp:1048 -msgid "" -"On this headset, this setting has been fully superseded by the native " -"Sharpening setting above.\n" -"Only enable if you know what you're doing." -msgstr "" -"在此頭戴式顯示器上,此設定已被上方的原生「銳利化」設定完全取代。\n" -"僅在您了解自己在做什麼時啟用。" - -#: client/scenes/lobby_gui.cpp:1050 -msgid "" -"Client-side upscaling and sharpening, adds a performance cost on the headset" -msgstr "用戶端向上取樣和銳利化,會增加頭戴式顯示器的效能負擔" - -#: client/scenes/lobby_gui.cpp:1068 -msgid "Upscaling factor" -msgstr "向上取樣係數" - -#: client/scenes/lobby_gui.cpp:1087 -msgid "Use edge direction" -msgstr "使用邊緣方向" - -#: client/scenes/lobby_gui.cpp:1093 -msgid "Adds an additional performance cost" -msgstr "會增加額外的效能負擔" - -#: client/scenes/lobby_gui.cpp:1098 -msgid "Edge threshold" -msgstr "邊緣閾值" - -#: client/scenes/lobby_gui.cpp:1105 client/scenes/lobby_gui.cpp:1114 -#, c++-format -msgid "Recommended: {:.1f}" -msgstr "推薦:{:.1f}" - -#: client/scenes/lobby_gui.cpp:1108 -msgid "Edge sharpness" -msgstr "邊緣銳利度" - -#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218 -#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418 +#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161 +#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424 msgid "CPU time" msgstr "CPU 時間" -#: client/scenes/lobby_gui.cpp:1214 +#: client/scenes/lobby_gui.cpp:1157 msgid "CPU time [ms]" msgstr "CPU 時間 [ms]" -#: client/scenes/lobby_gui.cpp:1224 client/scenes/lobby_gui.cpp:1232 -#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419 +#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175 +#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425 msgid "GPU time" msgstr "GPU 時間" -#: client/scenes/lobby_gui.cpp:1228 +#: client/scenes/lobby_gui.cpp:1171 msgid "GPU time [ms]" msgstr "GPU 時間 [ms]" -#: client/scenes/lobby_gui.cpp:1271 +#: client/scenes/lobby_gui.cpp:1214 msgid "Enable the microphone?" msgstr "要啟用麥克風嗎?" -#: client/scenes/lobby_gui.cpp:1276 +#: client/scenes/lobby_gui.cpp:1219 msgid "Enable eye tracking?" msgstr "要啟用眼部追蹤嗎?" -#: client/scenes/lobby_gui.cpp:1281 +#: client/scenes/lobby_gui.cpp:1224 msgid "Enable face tracking?" msgstr "要啟用臉部追蹤嗎?" -#: client/scenes/lobby_gui.cpp:1286 +#: client/scenes/lobby_gui.cpp:1229 msgid "Enable body tracking?" msgstr "要啟用身體追蹤嗎?" -#: client/scenes/lobby_gui.cpp:1294 +#: client/scenes/lobby_gui.cpp:1237 msgid "Welcome to WiVRn" msgstr "歡迎使用 WiVRn" -#: client/scenes/lobby_gui.cpp:1318 +#: client/scenes/lobby_gui.cpp:1261 msgid "Yes" msgstr "是" -#: client/scenes/lobby_gui.cpp:1325 +#: client/scenes/lobby_gui.cpp:1268 msgid "No" msgstr "否" -#: client/scenes/lobby_gui.cpp:1344 client/scenes/lobby_gui.cpp:1983 +#: client/scenes/lobby_gui.cpp:1287 client/scenes/lobby_gui.cpp:1934 msgid "Licenses" msgstr "授權資訊" -#: client/scenes/lobby_gui.cpp:1658 +#: client/scenes/lobby_gui.cpp:1612 msgid "Microphone is enabled" msgstr "麥克風已啟用" -#: client/scenes/lobby_gui.cpp:1659 +#: client/scenes/lobby_gui.cpp:1613 msgid "Microphone is disabled" msgstr "麥克風已停用" -#: client/scenes/lobby_gui.cpp:1668 +#: client/scenes/lobby_gui.cpp:1622 msgid "Hand tracking is enabled" msgstr "手部追蹤已啟用" -#: client/scenes/lobby_gui.cpp:1669 +#: client/scenes/lobby_gui.cpp:1623 msgid "Hand tracking is disabled" msgstr "手部追蹤已停用" -#: client/scenes/lobby_gui.cpp:1678 +#: client/scenes/lobby_gui.cpp:1632 msgid "Eye tracking is enabled" msgstr "眼球追蹤已啟用" -#: client/scenes/lobby_gui.cpp:1679 +#: client/scenes/lobby_gui.cpp:1633 msgid "Eye tracking is disabled" msgstr "眼球追蹤已停用" -#: client/scenes/lobby_gui.cpp:1692 +#: client/scenes/lobby_gui.cpp:1643 msgid "Face tracking is enabled" msgstr "臉部追蹤已啟用" -#: client/scenes/lobby_gui.cpp:1693 +#: client/scenes/lobby_gui.cpp:1644 msgid "Face tracking is disabled" msgstr "臉部追蹤已停用" -#: client/scenes/lobby_gui.cpp:1703 +#: client/scenes/lobby_gui.cpp:1654 msgid "Body tracking is enabled" msgstr "身體追蹤已啟用" -#: client/scenes/lobby_gui.cpp:1704 +#: client/scenes/lobby_gui.cpp:1655 msgid "Body tracking is disabled" msgstr "身體追蹤已停用" -#: client/scenes/lobby_gui.cpp:1720 +#: client/scenes/lobby_gui.cpp:1671 msgid "Add server" msgstr "新增伺服器" -#: client/scenes/lobby_gui.cpp:1965 +#: client/scenes/lobby_gui.cpp:1916 msgid "Server list" msgstr "伺服器列表" -#: client/scenes/lobby_gui.cpp:1968 client/scenes/stream_gui.cpp:796 +#: client/scenes/lobby_gui.cpp:1919 client/scenes/stream_gui.cpp:822 msgid "Settings" msgstr "設定" -#: client/scenes/lobby_gui.cpp:1971 +#: client/scenes/lobby_gui.cpp:1922 msgid "Post-processing" msgstr "後期處理" -#: client/scenes/lobby_gui.cpp:1975 +#: client/scenes/lobby_gui.cpp:1926 msgid "Debug" msgstr "偵錯" -#: client/scenes/lobby_gui.cpp:1980 +#: client/scenes/lobby_gui.cpp:1931 msgid "About" msgstr "關於" -#: client/scenes/lobby_gui.cpp:1986 +#: client/scenes/lobby_gui.cpp:1937 msgid "Exit" msgstr "離開" -#: client/scenes/lobby_gui.cpp:2003 +#: client/scenes/lobby_gui.cpp:1954 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -459,7 +427,7 @@ msgstr "" "按下握把按鈕或手掌向上\n" "以移動主視窗" -#: client/scenes/lobby_gui.cpp:2005 +#: client/scenes/lobby_gui.cpp:1956 msgid "Press the grip button to move the main window" msgstr "按下握把按鈕以移動主視窗" @@ -475,11 +443,11 @@ msgstr "貼圖" msgid "Network" msgstr "網路" -#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416 +#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422 msgid "Download" msgstr "下載" -#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417 +#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423 msgid "Upload" msgstr "上傳" @@ -520,66 +488,66 @@ msgstr "已顯示" msgid "Predicted" msgstr "已預測" -#: client/scenes/stream_gui.cpp:393 +#: client/scenes/stream_gui.cpp:395 #, c++-format msgid "Estimated motion to photons latency: {}ms" msgstr "估計運動到光子的延遲: {}毫秒" -#: client/scenes/stream_gui.cpp:396 +#: client/scenes/stream_gui.cpp:402 msgid "Press the grip button to move the window" msgstr "按下握把按鈕來移動視窗" -#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750 +#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776 msgid "Press both thumbsticks to display the WiVRn window" msgstr "同時按下兩側搖桿以顯示 WiVRn 視窗" -#: client/scenes/stream_gui.cpp:420 +#: client/scenes/stream_gui.cpp:426 msgid "Motion to photon latency" msgstr "從動作到顯示的延遲" -#: client/scenes/stream_gui.cpp:492 +#: client/scenes/stream_gui.cpp:503 msgid "Foveation center override" msgstr "注視點渲染中心覆蓋" -#: client/scenes/stream_gui.cpp:495 +#: client/scenes/stream_gui.cpp:506 msgid "Enable" msgstr "啟用" -#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550 +#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561 #, c++-format msgid "Height {:.1f} deg" msgstr "高度 {:.1f} 度" -#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551 +#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562 #, c++-format msgid "Distance {:.2f} m" msgstr "距離 {:.2f} 公尺" -#: client/scenes/stream_gui.cpp:505 +#: client/scenes/stream_gui.cpp:516 msgid "Default" msgstr "預設" -#: client/scenes/stream_gui.cpp:516 +#: client/scenes/stream_gui.cpp:527 msgid "Change" msgstr "變更" -#: client/scenes/stream_gui.cpp:548 +#: client/scenes/stream_gui.cpp:559 msgid "Use the thumbsticks to move the foveation center" msgstr "使用搖桿移動注視點中心" -#: client/scenes/stream_gui.cpp:549 +#: client/scenes/stream_gui.cpp:560 msgid "Press A to save or B to cancel" msgstr "按下 A 儲存或 B 取消" -#: client/scenes/stream_gui.cpp:793 +#: client/scenes/stream_gui.cpp:819 msgid "Stats" msgstr "統計" -#: client/scenes/stream_gui.cpp:802 +#: client/scenes/stream_gui.cpp:828 msgid "Statistics overlay" msgstr "統計數據覆疊" -#: client/scenes/stream_gui.cpp:805 +#: client/scenes/stream_gui.cpp:831 msgid "Compact view" msgstr "精簡顯示" @@ -599,6 +567,41 @@ msgstr "無法驗證 PIN 碼" msgid "Pairing is disabled on server" msgstr "伺服器上已停用配對" +#~ msgid "Enable Snapdragon Game Super Resolution" +#~ msgstr "啟用 Snapdragon 遊戲超級解析度" + +#~ msgid "" +#~ "On this headset, this setting has been fully superseded by the native " +#~ "Sharpening setting above.\n" +#~ "Only enable if you know what you're doing." +#~ msgstr "" +#~ "在此頭戴式顯示器上,此設定已被上方的原生「銳利化」設定完全取代。\n" +#~ "僅在您了解自己在做什麼時啟用。" + +#~ msgid "" +#~ "Client-side upscaling and sharpening, adds a performance cost on the " +#~ "headset" +#~ msgstr "用戶端向上取樣和銳利化,會增加頭戴式顯示器的效能負擔" + +#~ msgid "Upscaling factor" +#~ msgstr "向上取樣係數" + +#~ msgid "Use edge direction" +#~ msgstr "使用邊緣方向" + +#~ msgid "Adds an additional performance cost" +#~ msgstr "會增加額外的效能負擔" + +#~ msgid "Edge threshold" +#~ msgstr "邊緣閾值" + +#, c++-format +#~ msgid "Recommended: {:.1f}" +#~ msgstr "推薦:{:.1f}" + +#~ msgid "Edge sharpness" +#~ msgstr "邊緣銳利度" + #~ msgid "Video stream interrupted" #~ msgstr "影片串流中斷" From 509311604c7de5e72ca77889ce9a7c23ddde8ae1 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sun, 14 Sep 2025 23:42:09 +0200 Subject: [PATCH 32/52] Fix off-by-one in imgui call --- client/scenes/lobby_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/scenes/lobby_gui.cpp b/client/scenes/lobby_gui.cpp index 8cfddc10..1f585f8b 100644 --- a/client/scenes/lobby_gui.cpp +++ b/client/scenes/lobby_gui.cpp @@ -134,14 +134,14 @@ static void InputText(const char * label, std::string & text, const ImVec2 & siz if (data->EventFlag == ImGuiInputTextFlags_CallbackResize) { assert(text.data() == data->Buf); - text.resize(data->BufTextLen); + text.resize(data->BufTextLen + 1); data->Buf = text.data(); } return 0; }; - ImGui::InputTextEx(label, nullptr, text.data(), text.size(), size, flags | ImGuiInputTextFlags_CallbackResize, callback, &text); + ImGui::InputTextEx(label, nullptr, text.data(), text.size() + 1, size, flags | ImGuiInputTextFlags_CallbackResize, callback, &text); } static void display_recentering_tip(imgui_context & ctx, const std::string & tip) From f33dc57ec985a625c6117dde8198113fb752b3ca Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 17 Sep 2025 20:00:53 +0200 Subject: [PATCH 33/52] Prepare 25.9 release --- dashboard/io.github.wivrn.wivrn.metainfo.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dashboard/io.github.wivrn.wivrn.metainfo.xml b/dashboard/io.github.wivrn.wivrn.metainfo.xml index 8ea3e1be..7306e170 100644 --- a/dashboard/io.github.wivrn.wivrn.metainfo.xml +++ b/dashboard/io.github.wivrn.wivrn.metainfo.xml @@ -69,6 +69,16 @@ + + https://github.com/WiVRn/WiVRn/releases/tag/v25.9 + +
    +
  • GPU usage reduction on headset
  • +
  • Disable face and body tracking when not used
  • +
  • Fix black screen on Unreal Engine games
  • +
+
+
https://github.com/WiVRn/WiVRn/releases/tag/v25.8 From b411afb9462894d3aa6a06f384405a90dd4242ce Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 18 Sep 2025 00:06:32 +0200 Subject: [PATCH 34/52] Add option to manually set language --- client/application.cpp | 58 ++++--- client/application.h | 2 + client/configuration.cpp | 4 + client/configuration.h | 2 + client/render/imgui_impl.cpp | 30 ++-- client/scenes/lobby_gui.cpp | 38 +++++ client/utils/i18n.cpp | 70 ++++++++ client/utils/i18n.h | 3 + locale/fr/wivrn.po | 315 ++++++++++++++++++----------------- locale/it/wivrn.po | 309 +++++++++++++++++----------------- 10 files changed, 479 insertions(+), 352 deletions(-) create mode 100644 client/utils/i18n.cpp diff --git a/client/application.cpp b/client/application.cpp index 22de1aee..24082765 100644 --- a/client/application.cpp +++ b/client/application.cpp @@ -18,7 +18,7 @@ */ #include "application.h" -#include "asset.h" + #include "hardware.h" #include "openxr/openxr.h" #include "scene.h" @@ -26,6 +26,7 @@ #include "spdlog/spdlog.h" #include "utils/contains.h" #include "utils/files.h" +#include "utils/i18n.h" #include "vk/check.h" #include "wifi_lock.h" #include "wivrn_packets.h" @@ -1329,50 +1330,47 @@ void application::initialize() vk_cmdpool = vk::raii::CommandPool{vk_device, cmdpool_create_info}; initialize_actions(); + load_locale(); +} +void application::load_locale() +{ gen.add_messages_domain("wivrn"); std::locale loc = gen(""); + messages_info.encoding = "UTF-8"; + if (config->locale.empty()) + { #ifdef __ANDROID__ - jni::klass java_util_Locale("java/util/Locale"); - auto default_locale = java_util_Locale.call>("getDefault"); + jni::klass java_util_Locale("java/util/Locale"); + auto default_locale = java_util_Locale.call>("getDefault"); - // if (auto language = default_locale.call("toString")) - if (auto language = default_locale.call("getLanguage")) - messages_info.language = language; - - if (auto country = default_locale.call("getCountry")) - messages_info.country = country; - - messages_info.encoding = "UTF-8"; + // if (auto language = default_locale.call("toString")) + if (auto language = default_locale.call("getLanguage")) + messages_info.language = language; + if (auto country = default_locale.call("getCountry")) + messages_info.country = country; #else - auto & facet = std::use_facet(loc); - messages_info.language = facet.language(); - messages_info.country = facet.country(); - messages_info.encoding = "UTF-8"; + auto & facet = std::use_facet(loc); + messages_info.language = facet.language(); + messages_info.country = facet.country(); #endif + } + else + { + auto pos = config->locale.find("_"); + messages_info.language = config->locale.substr(0, pos); + if (pos != std::string::npos) + messages_info.country = config->locale.substr(pos + 1); + } spdlog::info("Current locale: language {}, country {}, encoding {}", messages_info.language, messages_info.country, messages_info.encoding); messages_info.paths.push_back("locale"); messages_info.domains.push_back(boost::locale::gnu_gettext::messages_info::domain("wivrn")); - messages_info.callback = [](const std::string & file_name, const std::string & encoding) { - std::vector buffer; - try - { - asset file(file_name); - buffer.resize(file.size()); - memcpy(buffer.data(), file.data(), file.size()); - } - catch (...) - { - } - - return buffer; - }; - + messages_info.callback = open_locale_file; loc = std::locale(loc, boost::locale::gnu_gettext::create_messages_facet(messages_info)); std::locale::global(loc); diff --git a/client/application.h b/client/application.h index 368983fa..365ebcf6 100644 --- a/client/application.h +++ b/client/application.h @@ -417,4 +417,6 @@ public: { return instance().messages_info; } + + void load_locale(); }; diff --git a/client/configuration.cpp b/client/configuration.cpp index 144191f2..dbea9cf2 100644 --- a/client/configuration.cpp +++ b/client/configuration.cpp @@ -218,6 +218,9 @@ configuration::configuration(xr::system & system) if (auto val = root["first_run"]; val.is_bool()) first_run = val.get_bool(); + + if (auto val = root["locale"]; val.is_string()) + locale = val.get_string().value(); } catch (std::exception & e) { @@ -304,5 +307,6 @@ void configuration::save() json << ",\"override_foveation_pitch\":" << override_foveation_pitch; json << ",\"override_foveation_distance\":" << override_foveation_distance; json << ",\"first_run\":" << std::boolalpha << first_run; + json << ",\"locale\":" << json_string(locale); json << "}"; } diff --git a/client/configuration.h b/client/configuration.h index 480c1364..d8dfbf6f 100644 --- a/client/configuration.h +++ b/client/configuration.h @@ -74,6 +74,8 @@ public: bool first_run = true; + std::string locale; + bool check_feature(feature f) const; void set_feature(feature f, bool state); diff --git a/client/render/imgui_impl.cpp b/client/render/imgui_impl.cpp index 75556eca..888e4865 100644 --- a/client/render/imgui_impl.cpp +++ b/client/render/imgui_impl.cpp @@ -490,22 +490,22 @@ static std::vector find_font(std::u16string sample_text, const std: void imgui_context::initialize_fonts() { - std::u16string sample_text = u"Hello world"; - - const auto & locale = application::get_messages_info(); - auto it = glyph_set_per_language.find(locale.language + "_" + locale.country); - if (it == glyph_set_per_language.end()) - it = glyph_set_per_language.find(locale.language); - - if (it != glyph_set_per_language.end()) - for (char16_t c: it->second) - sample_text += c; - - // Load Fonts - auto fonts = find_font(sample_text, application::get_messages_info().language); - for (auto & i: fonts) + std::vector fonts; + for (auto & [code, glyphs]: glyph_set_per_language) { - spdlog::info("Font {}", i); + std::u16string sample_text = u"Hello world"; + + for (char16_t c: glyphs) + sample_text += c; + auto language = code.substr(0, code.find("_")); + + // Load Fonts + for (auto && i: find_font(sample_text, language)) + { + spdlog::info("Font for {} {}", code, i); + if (not std::ranges::contains(fonts, i)) + fonts.push_back(std::move(i)); + } } asset font_awesome_regular("Font Awesome 6 Free-Regular-400.otf"); diff --git a/client/scenes/lobby_gui.cpp b/client/scenes/lobby_gui.cpp index 1f585f8b..71e5a483 100644 --- a/client/scenes/lobby_gui.cpp +++ b/client/scenes/lobby_gui.cpp @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #define IMGUI_DEFINE_MATH_OPERATORS #ifdef __ANDROID__ @@ -794,6 +795,43 @@ void scenes::lobby::gui_settings() ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(20, 20)); + { + auto language_name = [&](const std::locale & loc = std::locale()) { + return boost::locale::pgettext("language selection, replace with the name of the language", "English", loc); + }; + std::vector> languages; + for (const auto & msg_info: get_locales()) + { + std::string code = msg_info.language; + if (not msg_info.country.empty()) + code += "_" + msg_info.country; + std::locale loc(std::locale(), boost::locale::gnu_gettext::create_messages_facet(msg_info)); + languages.emplace_back(language_name(loc), loc, std::move(code)); + } + std::ranges::sort(languages, [](auto & l, auto & r) { + return una::casesens::collate_utf8(std::get<0>(l), std::get<0>(r)) < 0; + }); + if (ImGui::BeginCombo(_S("Language"), config.locale.empty() ? _S("System language") : language_name().c_str())) + { + if (ImGui::Selectable(_S("System language"), config.locale.empty(), ImGuiSelectableFlags_SelectOnRelease)) + { + config.locale.clear(); + config.save(); + application::instance().load_locale(); + } + for (const auto & [lang, locale, code]: languages) + { + if (ImGui::Selectable(lang.c_str(), code == config.locale, ImGuiSelectableFlags_SelectOnRelease)) + { + config.locale = code; + config.save(); + application::instance().load_locale(); + } + } + ImGui::EndCombo(); + } + } + if (instance.has_extension(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME)) { const auto & refresh_rates = session.get_refresh_rates(); diff --git a/client/utils/i18n.cpp b/client/utils/i18n.cpp new file mode 100644 index 00000000..3ce25fd6 --- /dev/null +++ b/client/utils/i18n.cpp @@ -0,0 +1,70 @@ +/* + * WiVRn VR streaming + * Copyright (C) 2024 Guillaume Meunier + * Copyright (C) 2024 Patrick Nicolas + * + * 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 . + */ + +#include "i18n.h" + +#include "asset.h" +#include +#include +#include + +extern std::map> glyph_set_per_language; + +std::vector get_locales() +{ + boost::locale::gnu_gettext::messages_info messages_info; + messages_info.paths.push_back("locale"); + messages_info.encoding = "UTF-8"; + + messages_info.domains.push_back(boost::locale::gnu_gettext::messages_info::domain("wivrn")); + messages_info.callback = open_locale_file; + std::vector res; + + messages_info.language = "en"; + messages_info.country = "US"; + res.push_back(messages_info); + + for (const auto & [code, glyphs]: glyph_set_per_language) + { + auto pos = code.find("_"); + messages_info.language = code.substr(0, pos); + if (pos == std::string::npos) + messages_info.country = ""; + else + messages_info.country = code.substr(pos + 1); + res.push_back(messages_info); + } + return res; +} + +std::vector open_locale_file(const std::string & file_name, const std::string & encoding) +{ + std::vector buffer; + try + { + asset file(file_name); + buffer.resize(file.size()); + memcpy(buffer.data(), file.data(), file.size()); + } + catch (...) + { + } + + return buffer; +} diff --git a/client/utils/i18n.h b/client/utils/i18n.h index 9f77be21..70d3b769 100644 --- a/client/utils/i18n.h +++ b/client/utils/i18n.h @@ -23,3 +23,6 @@ #define _F(x) fmt::runtime(boost::locale::gettext(x)) #define _S(x) boost::locale::gettext(x).c_str() #define _cS(c, x) boost::locale::pgettext(c, x).c_str() + +std::vector get_locales(); +std::vector open_locale_file(const std::string & file_name, const std::string & encoding); diff --git a/locale/fr/wivrn.po b/locale/fr/wivrn.po index c6eaa9d7..d7a11bed 100644 --- a/locale/fr/wivrn.po +++ b/locale/fr/wivrn.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn 0.15\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-08-12 13:35+0200\n" -"PO-Revision-Date: 2025-08-12 13:37+0200\n" +"POT-Creation-Date: 2025-09-18 00:05+0200\n" +"PO-Revision-Date: 2025-09-18 00:05+0200\n" "Last-Translator: Guillaume Meunier \n" "Language-Team: French <>\n" "Language: French\n" @@ -15,7 +15,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Gtranslator 48.0\n" -#: client/scene.cpp:74 +#: client/scene.cpp:72 msgid "No supported swapchain format" msgstr "Aucun format de swapchain supporté" @@ -43,99 +43,99 @@ msgstr "Impossible de se connecter à {} ({}): {}" msgid "Waiting for connection" msgstr "Attente de connexion" -#: client/scenes/lobby_gui.cpp:230 +#: client/scenes/lobby_gui.cpp:232 msgctxt "openxr_post_processing" msgid "Normal" msgstr "Normal" -#: client/scenes/lobby_gui.cpp:233 +#: client/scenes/lobby_gui.cpp:235 msgctxt "openxr_post_processing" msgid "Quality" msgstr "Qualité" -#: client/scenes/lobby_gui.cpp:235 +#: client/scenes/lobby_gui.cpp:237 msgctxt "openxr_post_processing" msgid "Disabled" msgstr "Désactivé" -#: client/scenes/lobby_gui.cpp:243 client/scenes/lobby_gui.cpp:400 -#: client/scenes/stream_gui.cpp:814 +#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402 +#: client/scenes/stream_gui.cpp:838 msgid "Disconnect" msgstr "Déconnecter" -#: client/scenes/lobby_gui.cpp:264 client/scenes/stream_gui.cpp:810 +#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834 msgid "Close" msgstr "Fermer" -#: client/scenes/lobby_gui.cpp:270 +#: client/scenes/lobby_gui.cpp:272 msgid "Connection" msgstr "Connexion en cours" -#: client/scenes/lobby_gui.cpp:272 +#: client/scenes/lobby_gui.cpp:274 #, c++-format msgid "Connection to {}" msgstr "Connexion à {}" -#: client/scenes/lobby_gui.cpp:302 +#: client/scenes/lobby_gui.cpp:304 msgid "PIN" msgstr "Code PIN" -#: client/scenes/lobby_gui.cpp:324 +#: client/scenes/lobby_gui.cpp:326 msgid "Input the PIN displayed on the dashboard" msgstr "Entrez le code PIN affiché sur le tableau de bord" -#: client/scenes/lobby_gui.cpp:395 +#: client/scenes/lobby_gui.cpp:397 msgid "Connected to WiVRn server" msgstr "Connecté au serveur WiVRn" -#: client/scenes/lobby_gui.cpp:397 +#: client/scenes/lobby_gui.cpp:399 #, c++-format msgid "Connected to {}" msgstr "Connecté à {}" -#: client/scenes/lobby_gui.cpp:407 +#: client/scenes/lobby_gui.cpp:409 msgid "Start an application on the server to start streaming." msgstr "" "Démarrez une application sur le serveur pour commencer la transmission." -#: client/scenes/lobby_gui.cpp:419 +#: client/scenes/lobby_gui.cpp:421 msgid "Start an application on your computer or select one to start streaming." msgstr "" "Démarrez une application sur le serveur ou depuis la liste pour commencer la " "transmission." -#: client/scenes/lobby_gui.cpp:421 +#: client/scenes/lobby_gui.cpp:423 #, c++-format msgid "Start an application on {} or select one to start streaming." msgstr "" "Démarrez une application sur {} ou depuis la liste pour commencer la " "transmission." -#: client/scenes/lobby_gui.cpp:544 +#: client/scenes/lobby_gui.cpp:546 msgid "Name" msgstr "Nom" -#: client/scenes/lobby_gui.cpp:555 +#: client/scenes/lobby_gui.cpp:557 msgid "Address" msgstr "Adresse" -#: client/scenes/lobby_gui.cpp:564 +#: client/scenes/lobby_gui.cpp:566 msgid "Port" msgstr "Port" -#: client/scenes/lobby_gui.cpp:572 +#: client/scenes/lobby_gui.cpp:574 msgid "TCP only" msgstr "TCP seulement" -#: client/scenes/lobby_gui.cpp:579 +#: client/scenes/lobby_gui.cpp:581 msgid "Cancel" msgstr "Annuler" -#: client/scenes/lobby_gui.cpp:593 +#: client/scenes/lobby_gui.cpp:595 msgid "Save" msgstr "Enregistrer" -#: client/scenes/lobby_gui.cpp:646 +#: client/scenes/lobby_gui.cpp:648 msgid "" "Start a WiVRn server on your\n" "local network" @@ -143,32 +143,45 @@ msgstr "" "Démarrez un serveur WiVRn sur\n" "le réseau local" -#: client/scenes/lobby_gui.cpp:678 +#: client/scenes/lobby_gui.cpp:680 msgid "Autoconnect" msgstr "Autoconnexion" -#: client/scenes/lobby_gui.cpp:704 +#: client/scenes/lobby_gui.cpp:706 msgid "Connect" msgstr "Connexion" -#: client/scenes/lobby_gui.cpp:714 client/wivrn_client.cpp:186 +#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186 msgid "Incompatible server version" msgstr "Version du serveur incompatible" -#: client/scenes/lobby_gui.cpp:716 +#: client/scenes/lobby_gui.cpp:718 msgid "Server not available" msgstr "Serveur non disponible" -#: client/scenes/lobby_gui.cpp:802 +#: client/scenes/lobby_gui.cpp:800 +msgctxt "language selection, replace with the name of the language" +msgid "English" +msgstr "Français" + +#: client/scenes/lobby_gui.cpp:814 +msgid "Language" +msgstr "Langue" + +#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816 +msgid "System language" +msgstr "Langue système" + +#: client/scenes/lobby_gui.cpp:841 msgid "Refresh rate" msgstr "Taux de rafraichissement" -#: client/scenes/lobby_gui.cpp:802 client/scenes/lobby_gui.cpp:804 +#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "Automatique" -#: client/scenes/lobby_gui.cpp:811 +#: client/scenes/lobby_gui.cpp:850 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -177,59 +190,59 @@ msgstr "" "des performances mesurées.\n" "Peut causer des clignotements lors du changement de fréquence." -#: client/scenes/lobby_gui.cpp:828 +#: client/scenes/lobby_gui.cpp:867 msgid "Minimum refresh rate" msgstr "Taux minimal" -#: client/scenes/lobby_gui.cpp:851 +#: client/scenes/lobby_gui.cpp:890 msgid "Resolution scale" msgstr "Échelle" -#: client/scenes/lobby_gui.cpp:855 client/scenes/lobby_gui.cpp:1101 +#: client/scenes/lobby_gui.cpp:894 #, c-format, c++-format msgid "%d%% - {}x{} per eye" msgstr "%d%% - {}x{} par œil" -#: client/scenes/lobby_gui.cpp:866 client/scenes/lobby_gui.cpp:1112 +#: client/scenes/lobby_gui.cpp:905 #, c++-format msgid "Resolution larger than {}x{} may not be supported by the headset" msgstr "Les résolutions plus grandes que {}x{} pourraient ne pas fonctionner" -#: client/scenes/lobby_gui.cpp:872 +#: client/scenes/lobby_gui.cpp:911 msgid "Enable microphone" msgstr "Activer le micro" -#: client/scenes/lobby_gui.cpp:881 +#: client/scenes/lobby_gui.cpp:920 msgid "Unprocessed Microphone Audio" msgstr "Utiliser les données brutes du micro" -#: client/scenes/lobby_gui.cpp:887 +#: client/scenes/lobby_gui.cpp:926 msgid "Force disable audio filters, such as noise cancellation" msgstr "Désactive les traitements tels que la suppression du bruit" -#: client/scenes/lobby_gui.cpp:894 +#: client/scenes/lobby_gui.cpp:933 msgid "Enable hand tracking" msgstr "Activer le suivi des mains" -#: client/scenes/lobby_gui.cpp:900 client/scenes/lobby_gui.cpp:912 -#: client/scenes/lobby_gui.cpp:924 client/scenes/lobby_gui.cpp:940 -#: client/scenes/lobby_gui.cpp:990 +#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951 +#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980 +#: client/scenes/lobby_gui.cpp:1025 msgid "This feature is not supported by your headset" msgstr "Cette fonctionnalité n'est pas supportée par le casque" -#: client/scenes/lobby_gui.cpp:906 +#: client/scenes/lobby_gui.cpp:945 msgid "Enable eye tracking" msgstr "Activer le suivi des yeux" -#: client/scenes/lobby_gui.cpp:918 +#: client/scenes/lobby_gui.cpp:957 msgid "Enable face tracking" msgstr "Activer le suivi du visage" -#: client/scenes/lobby_gui.cpp:931 +#: client/scenes/lobby_gui.cpp:971 msgid "Enable body tracking" msgstr "Activer le suivi du corps" -#: client/scenes/lobby_gui.cpp:947 +#: client/scenes/lobby_gui.cpp:985 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -240,11 +253,11 @@ msgstr "" "suivi des mouvements du casque.\n" "Sinon les positions seront déduites de celles des manettes et casque." -#: client/scenes/lobby_gui.cpp:960 +#: client/scenes/lobby_gui.cpp:995 msgid "Enable lower body tracking" msgstr "Activer le suivi du bas du corps" -#: client/scenes/lobby_gui.cpp:966 +#: client/scenes/lobby_gui.cpp:1001 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -255,11 +268,11 @@ msgstr "" "paramètres\n" "de suivi de mouvements du casque." -#: client/scenes/lobby_gui.cpp:969 +#: client/scenes/lobby_gui.cpp:1004 msgid "Enable hip tracking" msgstr "Activer le suivi des hanches" -#: client/scenes/lobby_gui.cpp:975 +#: client/scenes/lobby_gui.cpp:1010 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -267,15 +280,15 @@ msgstr "" "N'a d'effet que si le suivi du bas du corps est activé.\n" "Peut être utile si les hanches sont suivies via un autre moyen." -#: client/scenes/lobby_gui.cpp:983 +#: client/scenes/lobby_gui.cpp:1018 msgid "Enable video passthrough in lobby" msgstr "Activer la vue réelle dans l'accueil" -#: client/scenes/lobby_gui.cpp:994 +#: client/scenes/lobby_gui.cpp:1029 msgid "Enable in-stream window" msgstr "Activer la fenêtre WiVRn lors de la transmission" -#: client/scenes/lobby_gui.cpp:997 +#: client/scenes/lobby_gui.cpp:1032 msgid "" "Enables the configuration window to be shown while the game is streaming.\n" "If enabled, the window is activated by pressing both thumbsticks." @@ -285,15 +298,15 @@ msgstr "" "Lorsque activé, la fenêtre peut être affichée en appuyant sur les deux " "sticks." -#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:434 +#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445 msgid "OpenXR post-processing" msgstr "Post-traitement OpenXR" -#: client/scenes/lobby_gui.cpp:1015 client/scenes/stream_gui.cpp:438 +#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449 msgid "Supersampling" msgstr "Suréchantillonnage" -#: client/scenes/lobby_gui.cpp:1035 client/scenes/stream_gui.cpp:459 +#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -301,11 +314,11 @@ msgstr "" "Réduit le scintillement des contours à haut contraste.\n" "Utile quand la résolution d’entrée est haute comparée à l’écran du casque" -#: client/scenes/lobby_gui.cpp:1040 client/scenes/stream_gui.cpp:464 +#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475 msgid "Sharpening" msgstr "Affinage de netteté" -#: client/scenes/lobby_gui.cpp:1060 client/scenes/stream_gui.cpp:485 +#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -313,171 +326,125 @@ msgstr "" "Améliore la clarté des contours à haut contraste et réduit le flou.\n" "Utile quand la résolution d’entrée est basse comparée à l’écran du casque" -#: client/scenes/lobby_gui.cpp:1069 -msgid "Enable Snapdragon Game Super Resolution" -msgstr "Activer Snapdragon Game Super Resolution" - -#: client/scenes/lobby_gui.cpp:1077 -msgid "" -"On this headset, this setting has been fully superseded by the native " -"Sharpening setting above.\n" -"Only enable if you know what you're doing." -msgstr "" -"Sur ce casque, ce paramètre a été supplanté par le réglage natif d’affinage " -"de netteté ci-dessus.\n" -"N’activer que si vous savez ce que vous faites." - -#: client/scenes/lobby_gui.cpp:1079 -msgid "" -"Client-side upscaling and sharpening, adds a performance cost on the headset" -msgstr "" -"Mise à l’échelle et affinage de netteté, ajoute un coût en performances pour " -"le casque" - -#: client/scenes/lobby_gui.cpp:1097 -msgid "Upscaling factor" -msgstr "Échelle" - -#: client/scenes/lobby_gui.cpp:1116 -msgid "Use edge direction" -msgstr "Utiliser la direction de contours" - -#: client/scenes/lobby_gui.cpp:1122 -msgid "Adds an additional performance cost" -msgstr "Ajoute un coût additionnel en performances" - -#: client/scenes/lobby_gui.cpp:1127 -msgid "Edge threshold" -msgstr "Seuil de contour" - -#: client/scenes/lobby_gui.cpp:1134 client/scenes/lobby_gui.cpp:1143 -#, c++-format -msgid "Recommended: {:.1f}" -msgstr "Recommandé : {:.1f}" - -#: client/scenes/lobby_gui.cpp:1137 -msgid "Edge sharpness" -msgstr "Netteté de contour" - -#: client/scenes/lobby_gui.cpp:1239 client/scenes/lobby_gui.cpp:1247 -#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418 +#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199 +#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424 msgid "CPU time" msgstr "Temps CPU" -#: client/scenes/lobby_gui.cpp:1243 +#: client/scenes/lobby_gui.cpp:1195 msgid "CPU time [ms]" msgstr "Temps CPU [ms]" -#: client/scenes/lobby_gui.cpp:1253 client/scenes/lobby_gui.cpp:1261 -#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419 +#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213 +#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425 msgid "GPU time" msgstr "Temps GPU" -#: client/scenes/lobby_gui.cpp:1257 +#: client/scenes/lobby_gui.cpp:1209 msgid "GPU time [ms]" msgstr "Temps GPU [ms]" -#: client/scenes/lobby_gui.cpp:1300 +#: client/scenes/lobby_gui.cpp:1252 msgid "Enable the microphone?" msgstr "Activer le micro ?" -#: client/scenes/lobby_gui.cpp:1305 +#: client/scenes/lobby_gui.cpp:1257 msgid "Enable eye tracking?" msgstr "Activer le suivi des yeux ?" -#: client/scenes/lobby_gui.cpp:1310 +#: client/scenes/lobby_gui.cpp:1262 msgid "Enable face tracking?" msgstr "Activer le suivi du visage ?" -#: client/scenes/lobby_gui.cpp:1315 +#: client/scenes/lobby_gui.cpp:1267 msgid "Enable body tracking?" msgstr "Activer le suivi du corps ?" -#: client/scenes/lobby_gui.cpp:1323 +#: client/scenes/lobby_gui.cpp:1275 msgid "Welcome to WiVRn" msgstr "Bienvenue sur WiVRn" -#: client/scenes/lobby_gui.cpp:1347 +#: client/scenes/lobby_gui.cpp:1299 msgid "Yes" msgstr "Oui" -#: client/scenes/lobby_gui.cpp:1354 +#: client/scenes/lobby_gui.cpp:1306 msgid "No" msgstr "Non" -#: client/scenes/lobby_gui.cpp:1373 client/scenes/lobby_gui.cpp:2012 +#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972 msgid "Licenses" msgstr "Licences" -#: client/scenes/lobby_gui.cpp:1687 +#: client/scenes/lobby_gui.cpp:1650 msgid "Microphone is enabled" msgstr "Le micro est activé" -#: client/scenes/lobby_gui.cpp:1688 +#: client/scenes/lobby_gui.cpp:1651 msgid "Microphone is disabled" msgstr "Le micro est désactivé" -#: client/scenes/lobby_gui.cpp:1697 +#: client/scenes/lobby_gui.cpp:1660 msgid "Hand tracking is enabled" msgstr "Le suivi des mains est activé" -#: client/scenes/lobby_gui.cpp:1698 +#: client/scenes/lobby_gui.cpp:1661 msgid "Hand tracking is disabled" msgstr "Le suivi des mains est désactivé" -#: client/scenes/lobby_gui.cpp:1707 +#: client/scenes/lobby_gui.cpp:1670 msgid "Eye tracking is enabled" msgstr "Le suivi des yeux est activé" -#: client/scenes/lobby_gui.cpp:1708 +#: client/scenes/lobby_gui.cpp:1671 msgid "Eye tracking is disabled" msgstr "Le suivi des yeux est désactivé" -#: client/scenes/lobby_gui.cpp:1721 +#: client/scenes/lobby_gui.cpp:1681 msgid "Face tracking is enabled" msgstr "Le suivi du visage est activé" -#: client/scenes/lobby_gui.cpp:1722 +#: client/scenes/lobby_gui.cpp:1682 msgid "Face tracking is disabled" msgstr "Le suivi du visage est désactivé" -#: client/scenes/lobby_gui.cpp:1732 +#: client/scenes/lobby_gui.cpp:1692 msgid "Body tracking is enabled" msgstr "Le suivi du corps est activé" -#: client/scenes/lobby_gui.cpp:1733 +#: client/scenes/lobby_gui.cpp:1693 msgid "Body tracking is disabled" msgstr "Le suivi du corps est désactivé" -#: client/scenes/lobby_gui.cpp:1749 +#: client/scenes/lobby_gui.cpp:1709 msgid "Add server" msgstr "Ajouter un serveur" -#: client/scenes/lobby_gui.cpp:1994 +#: client/scenes/lobby_gui.cpp:1954 msgid "Server list" msgstr "Serveurs" -#: client/scenes/lobby_gui.cpp:1997 client/scenes/stream_gui.cpp:798 +#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822 msgid "Settings" msgstr "Paramètres" -#: client/scenes/lobby_gui.cpp:2000 +#: client/scenes/lobby_gui.cpp:1960 msgid "Post-processing" msgstr "Post-traitement" -#: client/scenes/lobby_gui.cpp:2004 +#: client/scenes/lobby_gui.cpp:1964 msgid "Debug" msgstr "Debug" -#: client/scenes/lobby_gui.cpp:2009 +#: client/scenes/lobby_gui.cpp:1969 msgid "About" msgstr "À propos" -#: client/scenes/lobby_gui.cpp:2015 +#: client/scenes/lobby_gui.cpp:1975 msgid "Exit" msgstr "Quitter" -#: client/scenes/lobby_gui.cpp:2032 +#: client/scenes/lobby_gui.cpp:1992 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -485,7 +452,7 @@ msgstr "" "Serrez la gâchette latérale ou pointez la paume\n" "vers le haut pour bouger la fenêtre principale" -#: client/scenes/lobby_gui.cpp:2034 +#: client/scenes/lobby_gui.cpp:1994 msgid "Press the grip button to move the main window" msgstr "Serrez la gâchette latérale pour bouger la fenêtre principale" @@ -501,11 +468,11 @@ msgstr "Copie" msgid "Network" msgstr "Réseau" -#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416 +#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422 msgid "Download" msgstr "Téléchargement" -#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417 +#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423 msgid "Upload" msgstr "Téléversement" @@ -546,66 +513,66 @@ msgstr "Affichage" msgid "Predicted" msgstr "Prédiction" -#: client/scenes/stream_gui.cpp:393 +#: client/scenes/stream_gui.cpp:395 #, c++-format msgid "Estimated motion to photons latency: {}ms" msgstr "Latence mouvement à photons estimée: {}ms" -#: client/scenes/stream_gui.cpp:396 +#: client/scenes/stream_gui.cpp:402 msgid "Press the grip button to move the window" msgstr "Serrez la gâchette latérale pour bouger la fenêtre" -#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:752 +#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776 msgid "Press both thumbsticks to display the WiVRn window" msgstr "Appuyez sur les deux sticks pour afficher la fenêtre de WiVRn" -#: client/scenes/stream_gui.cpp:420 +#: client/scenes/stream_gui.cpp:426 msgid "Motion to photon latency" msgstr "Latence mouvements à photons" -#: client/scenes/stream_gui.cpp:492 +#: client/scenes/stream_gui.cpp:503 msgid "Foveation center override" msgstr "Zone de fovéation manuelle" -#: client/scenes/stream_gui.cpp:495 +#: client/scenes/stream_gui.cpp:506 msgid "Enable" msgstr "Activer" -#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550 +#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561 #, c++-format msgid "Height {:.1f} deg" msgstr "Hauteur: {:.1f} deg" -#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551 +#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562 #, c++-format msgid "Distance {:.2f} m" msgstr "Distance {:.2f} m" -#: client/scenes/stream_gui.cpp:505 +#: client/scenes/stream_gui.cpp:516 msgid "Default" msgstr "Réinitialiser" -#: client/scenes/stream_gui.cpp:516 +#: client/scenes/stream_gui.cpp:527 msgid "Change" msgstr "Ajuster" -#: client/scenes/stream_gui.cpp:548 +#: client/scenes/stream_gui.cpp:559 msgid "Use the thumbsticks to move the foveation center" msgstr "Utiliser le stick pour bouger le centre de fovéation" -#: client/scenes/stream_gui.cpp:549 +#: client/scenes/stream_gui.cpp:560 msgid "Press A to save or B to cancel" msgstr "A pour sauvegarder, B pour annuler" -#: client/scenes/stream_gui.cpp:795 +#: client/scenes/stream_gui.cpp:819 msgid "Stats" msgstr "Statistiques" -#: client/scenes/stream_gui.cpp:804 +#: client/scenes/stream_gui.cpp:828 msgid "Statistics overlay" msgstr "Statistiques seules" -#: client/scenes/stream_gui.cpp:807 +#: client/scenes/stream_gui.cpp:831 msgid "Compact view" msgstr "Vue compacte" @@ -625,6 +592,44 @@ msgstr "Impossible de vérifier le code PIN" msgid "Pairing is disabled on server" msgstr "L'appairage est désactivé sur le serveur" +#~ msgid "Enable Snapdragon Game Super Resolution" +#~ msgstr "Activer Snapdragon Game Super Resolution" + +#~ msgid "" +#~ "On this headset, this setting has been fully superseded by the native " +#~ "Sharpening setting above.\n" +#~ "Only enable if you know what you're doing." +#~ msgstr "" +#~ "Sur ce casque, ce paramètre a été supplanté par le réglage natif " +#~ "d’affinage de netteté ci-dessus.\n" +#~ "N’activer que si vous savez ce que vous faites." + +#~ msgid "" +#~ "Client-side upscaling and sharpening, adds a performance cost on the " +#~ "headset" +#~ msgstr "" +#~ "Mise à l’échelle et affinage de netteté, ajoute un coût en performances " +#~ "pour le casque" + +#~ msgid "Upscaling factor" +#~ msgstr "Échelle" + +#~ msgid "Use edge direction" +#~ msgstr "Utiliser la direction de contours" + +#~ msgid "Adds an additional performance cost" +#~ msgstr "Ajoute un coût additionnel en performances" + +#~ msgid "Edge threshold" +#~ msgstr "Seuil de contour" + +#, c++-format +#~ msgid "Recommended: {:.1f}" +#~ msgstr "Recommandé : {:.1f}" + +#~ msgid "Edge sharpness" +#~ msgstr "Netteté de contour" + #~ msgid "Video stream interrupted" #~ msgstr "Flux vidéo interrompu" diff --git a/locale/it/wivrn.po b/locale/it/wivrn.po index cbf66960..1ca64375 100644 --- a/locale/it/wivrn.po +++ b/locale/it/wivrn.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn 0.15\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-08-12 13:35+0200\n" -"PO-Revision-Date: 2025-08-12 13:41+0200\n" +"POT-Creation-Date: 2025-09-18 00:05+0200\n" +"PO-Revision-Date: 2025-09-18 00:05+0200\n" "Last-Translator: Albano Battistella \n" "Language-Team: Italian <>\n" "Language: Italian\n" @@ -15,7 +15,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Gtranslator 48.0\n" -#: client/scene.cpp:74 +#: client/scene.cpp:72 msgid "No supported swapchain format" msgstr "Nessun formato swapchain supportato" @@ -42,98 +42,98 @@ msgstr "Impossibile connettersi a {} ({}): {}" msgid "Waiting for connection" msgstr "In attesa di connessione" -#: client/scenes/lobby_gui.cpp:230 +#: client/scenes/lobby_gui.cpp:232 msgctxt "openxr_post_processing" msgid "Normal" msgstr "Normale" -#: client/scenes/lobby_gui.cpp:233 +#: client/scenes/lobby_gui.cpp:235 msgctxt "openxr_post_processing" msgid "Quality" msgstr "Alta qualità" -#: client/scenes/lobby_gui.cpp:235 +#: client/scenes/lobby_gui.cpp:237 msgctxt "openxr_post_processing" msgid "Disabled" msgstr "Disattivato" -#: client/scenes/lobby_gui.cpp:243 client/scenes/lobby_gui.cpp:400 -#: client/scenes/stream_gui.cpp:814 +#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402 +#: client/scenes/stream_gui.cpp:838 msgid "Disconnect" msgstr "Sconnetti" -#: client/scenes/lobby_gui.cpp:264 client/scenes/stream_gui.cpp:810 +#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834 msgid "Close" msgstr "Chiudi" -#: client/scenes/lobby_gui.cpp:270 +#: client/scenes/lobby_gui.cpp:272 msgid "Connection" msgstr "Connessione" -#: client/scenes/lobby_gui.cpp:272 +#: client/scenes/lobby_gui.cpp:274 #, c++-format msgid "Connection to {}" msgstr "Connessione a {}" -#: client/scenes/lobby_gui.cpp:302 +#: client/scenes/lobby_gui.cpp:304 msgid "PIN" msgstr "PIN" -#: client/scenes/lobby_gui.cpp:324 +#: client/scenes/lobby_gui.cpp:326 msgid "Input the PIN displayed on the dashboard" msgstr "Digitare il PIN visibile sul server" -#: client/scenes/lobby_gui.cpp:395 +#: client/scenes/lobby_gui.cpp:397 msgid "Connected to WiVRn server" msgstr "Connesso al server WiVRn" -#: client/scenes/lobby_gui.cpp:397 +#: client/scenes/lobby_gui.cpp:399 #, c++-format msgid "Connected to {}" msgstr "Connesso a {}" -#: client/scenes/lobby_gui.cpp:407 +#: client/scenes/lobby_gui.cpp:409 msgid "Start an application on the server to start streaming." msgstr "Avvia un applicazione sul server per incominciare a trasmettere." -#: client/scenes/lobby_gui.cpp:419 +#: client/scenes/lobby_gui.cpp:421 msgid "Start an application on your computer or select one to start streaming." msgstr "" "Avvia un applicazione sul computer o scegli dalla lista per incominciare a " "trasmettere." -#: client/scenes/lobby_gui.cpp:421 +#: client/scenes/lobby_gui.cpp:423 #, c++-format msgid "Start an application on {} or select one to start streaming." msgstr "" "Avvia un applicazione su {} o scegli dalla lista per incominciare a " "trasmettere." -#: client/scenes/lobby_gui.cpp:544 +#: client/scenes/lobby_gui.cpp:546 msgid "Name" msgstr "Nome" -#: client/scenes/lobby_gui.cpp:555 +#: client/scenes/lobby_gui.cpp:557 msgid "Address" msgstr "Indirizzo" -#: client/scenes/lobby_gui.cpp:564 +#: client/scenes/lobby_gui.cpp:566 msgid "Port" msgstr "Porta" -#: client/scenes/lobby_gui.cpp:572 +#: client/scenes/lobby_gui.cpp:574 msgid "TCP only" msgstr "Solo TCP" -#: client/scenes/lobby_gui.cpp:579 +#: client/scenes/lobby_gui.cpp:581 msgid "Cancel" msgstr "Annulla" -#: client/scenes/lobby_gui.cpp:593 +#: client/scenes/lobby_gui.cpp:595 msgid "Save" msgstr "Salva" -#: client/scenes/lobby_gui.cpp:646 +#: client/scenes/lobby_gui.cpp:648 msgid "" "Start a WiVRn server on your\n" "local network" @@ -141,32 +141,45 @@ msgstr "" "Avvia un server WiVRn sulla\n" "rete locale" -#: client/scenes/lobby_gui.cpp:678 +#: client/scenes/lobby_gui.cpp:680 msgid "Autoconnect" msgstr "Connessione automatica" -#: client/scenes/lobby_gui.cpp:704 +#: client/scenes/lobby_gui.cpp:706 msgid "Connect" msgstr "Connetti" -#: client/scenes/lobby_gui.cpp:714 client/wivrn_client.cpp:186 +#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186 msgid "Incompatible server version" msgstr "Versione del server incompatibile" -#: client/scenes/lobby_gui.cpp:716 +#: client/scenes/lobby_gui.cpp:718 msgid "Server not available" msgstr "Server non disponibile" -#: client/scenes/lobby_gui.cpp:802 +#: client/scenes/lobby_gui.cpp:800 +msgctxt "language selection, replace with the name of the language" +msgid "English" +msgstr "Italiano" + +#: client/scenes/lobby_gui.cpp:814 +msgid "Language" +msgstr "Lingua" + +#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816 +msgid "System language" +msgstr "Lingua del sistema" + +#: client/scenes/lobby_gui.cpp:841 msgid "Refresh rate" msgstr "Frequenza di aggiornamento" -#: client/scenes/lobby_gui.cpp:802 client/scenes/lobby_gui.cpp:804 +#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "Automatica" -#: client/scenes/lobby_gui.cpp:811 +#: client/scenes/lobby_gui.cpp:850 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -175,60 +188,60 @@ msgstr "" "misurate dell'applicazione.\n" "Può causare un flash quando avviene il cambiamento." -#: client/scenes/lobby_gui.cpp:828 +#: client/scenes/lobby_gui.cpp:867 msgid "Minimum refresh rate" msgstr "Frequenza minima" -#: client/scenes/lobby_gui.cpp:851 +#: client/scenes/lobby_gui.cpp:890 msgid "Resolution scale" msgstr "Scala di risoluzione" -#: client/scenes/lobby_gui.cpp:855 client/scenes/lobby_gui.cpp:1101 +#: client/scenes/lobby_gui.cpp:894 #, c-format, c++-format msgid "%d%% - {}x{} per eye" msgstr "%d%% - {}x{} per occhio" -#: client/scenes/lobby_gui.cpp:866 client/scenes/lobby_gui.cpp:1112 +#: client/scenes/lobby_gui.cpp:905 #, c++-format msgid "Resolution larger than {}x{} may not be supported by the headset" msgstr "" "Le risoluzioni superiori a {}x{} potrebbero non essere supportate dal visore" -#: client/scenes/lobby_gui.cpp:872 +#: client/scenes/lobby_gui.cpp:911 msgid "Enable microphone" msgstr "Attiva il microfono" -#: client/scenes/lobby_gui.cpp:881 +#: client/scenes/lobby_gui.cpp:920 msgid "Unprocessed Microphone Audio" msgstr "Usare dati grezzi del microfono" -#: client/scenes/lobby_gui.cpp:887 +#: client/scenes/lobby_gui.cpp:926 msgid "Force disable audio filters, such as noise cancellation" msgstr "Disattiva gli effetti come la cancellazione del rumore" -#: client/scenes/lobby_gui.cpp:894 +#: client/scenes/lobby_gui.cpp:933 msgid "Enable hand tracking" msgstr "Abilita il tracciamento delle mani" -#: client/scenes/lobby_gui.cpp:900 client/scenes/lobby_gui.cpp:912 -#: client/scenes/lobby_gui.cpp:924 client/scenes/lobby_gui.cpp:940 -#: client/scenes/lobby_gui.cpp:990 +#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951 +#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980 +#: client/scenes/lobby_gui.cpp:1025 msgid "This feature is not supported by your headset" msgstr "Questa funzionalità non è supportata dal visore" -#: client/scenes/lobby_gui.cpp:906 +#: client/scenes/lobby_gui.cpp:945 msgid "Enable eye tracking" msgstr "Abilita il tracciamento oculare" -#: client/scenes/lobby_gui.cpp:918 +#: client/scenes/lobby_gui.cpp:957 msgid "Enable face tracking" msgstr "Abilita il tracciamento facciale" -#: client/scenes/lobby_gui.cpp:931 +#: client/scenes/lobby_gui.cpp:971 msgid "Enable body tracking" msgstr "Abilita il tracciamento del corpo" -#: client/scenes/lobby_gui.cpp:947 +#: client/scenes/lobby_gui.cpp:985 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -241,11 +254,11 @@ msgstr "" "controller e\n" "del visore." -#: client/scenes/lobby_gui.cpp:960 +#: client/scenes/lobby_gui.cpp:995 msgid "Enable lower body tracking" msgstr "Abilita il tracciamento del basso del corpo" -#: client/scenes/lobby_gui.cpp:966 +#: client/scenes/lobby_gui.cpp:1001 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -256,11 +269,11 @@ msgstr "" "impostazioni,\n" "sezione \"Tracking dei movimenti\"." -#: client/scenes/lobby_gui.cpp:969 +#: client/scenes/lobby_gui.cpp:1004 msgid "Enable hip tracking" msgstr "Abilitia il tracciamento delle anche" -#: client/scenes/lobby_gui.cpp:975 +#: client/scenes/lobby_gui.cpp:1010 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -269,15 +282,15 @@ msgstr "" "Può essere utile se un altro metodo viene usato per il tracciamento\n" "delle anche." -#: client/scenes/lobby_gui.cpp:983 +#: client/scenes/lobby_gui.cpp:1018 msgid "Enable video passthrough in lobby" msgstr "Abilita la visualizzazione reale in ingresso" -#: client/scenes/lobby_gui.cpp:994 +#: client/scenes/lobby_gui.cpp:1029 msgid "Enable in-stream window" msgstr "Attiva la finestra di WiVRn durante la trasmissione" -#: client/scenes/lobby_gui.cpp:997 +#: client/scenes/lobby_gui.cpp:1032 msgid "" "Enables the configuration window to be shown while the game is streaming.\n" "If enabled, the window is activated by pressing both thumbsticks." @@ -285,15 +298,15 @@ msgstr "" "Abilita la finestra di configurazione quando il gioco viene trasmesso.\n" "Se selezionato, la finestra può essere attivata premendo entrambi gli stick." -#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:434 +#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445 msgid "OpenXR post-processing" msgstr "Post-trattamento OpenXR" -#: client/scenes/lobby_gui.cpp:1015 client/scenes/stream_gui.cpp:438 +#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449 msgid "Supersampling" msgstr "Supersamping" -#: client/scenes/lobby_gui.cpp:1035 client/scenes/stream_gui.cpp:459 +#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -301,11 +314,11 @@ msgstr "" "Riduce i lampeggiamenti sui bordi ad alto contrasto.\n" "Utile quando la risoluzine d'entrata è alta in confronto a quella del visore" -#: client/scenes/lobby_gui.cpp:1040 client/scenes/stream_gui.cpp:464 +#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475 msgid "Sharpening" msgstr "Miglioramento della nitidezza" -#: client/scenes/lobby_gui.cpp:1060 client/scenes/stream_gui.cpp:485 +#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -314,168 +327,125 @@ msgstr "" "Utile quando la risoluzione d'entrate è bassa in contronto a quella del " "visore" -#: client/scenes/lobby_gui.cpp:1069 -msgid "Enable Snapdragon Game Super Resolution" -msgstr "Attivare Snapdragon Game Super Resolution" - -#: client/scenes/lobby_gui.cpp:1077 -msgid "" -"On this headset, this setting has been fully superseded by the native " -"Sharpening setting above.\n" -"Only enable if you know what you're doing." -msgstr "Su questo visore è consigliato usare il post-trattamento OpenXR." - -#: client/scenes/lobby_gui.cpp:1079 -msgid "" -"Client-side upscaling and sharpening, adds a performance cost on the headset" -msgstr "" -"Aumento della risoluzione e nitidezza sul visore, diminuisce le prestazioni " -"sul visore" - -#: client/scenes/lobby_gui.cpp:1097 -msgid "Upscaling factor" -msgstr "Aumento di risoluzione" - -#: client/scenes/lobby_gui.cpp:1116 -msgid "Use edge direction" -msgstr "Usare la direzione dei bordi" - -#: client/scenes/lobby_gui.cpp:1122 -msgid "Adds an additional performance cost" -msgstr "Riduce le prestazioni" - -#: client/scenes/lobby_gui.cpp:1127 -msgid "Edge threshold" -msgstr "Soglia dei bordi" - -#: client/scenes/lobby_gui.cpp:1134 client/scenes/lobby_gui.cpp:1143 -#, c++-format -msgid "Recommended: {:.1f}" -msgstr "Valore consigliato: {:.1f}" - -#: client/scenes/lobby_gui.cpp:1137 -msgid "Edge sharpness" -msgstr "Nitidezza dei bordi" - -#: client/scenes/lobby_gui.cpp:1239 client/scenes/lobby_gui.cpp:1247 -#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418 +#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199 +#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424 msgid "CPU time" msgstr "Tempo CPU" -#: client/scenes/lobby_gui.cpp:1243 +#: client/scenes/lobby_gui.cpp:1195 msgid "CPU time [ms]" msgstr "Tempo CPU [ms]" -#: client/scenes/lobby_gui.cpp:1253 client/scenes/lobby_gui.cpp:1261 -#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419 +#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213 +#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425 msgid "GPU time" msgstr "Tempo GPU" -#: client/scenes/lobby_gui.cpp:1257 +#: client/scenes/lobby_gui.cpp:1209 msgid "GPU time [ms]" msgstr "Tempo GPU [ms]" -#: client/scenes/lobby_gui.cpp:1300 +#: client/scenes/lobby_gui.cpp:1252 msgid "Enable the microphone?" msgstr "Attivare il microfono?" -#: client/scenes/lobby_gui.cpp:1305 +#: client/scenes/lobby_gui.cpp:1257 msgid "Enable eye tracking?" msgstr "Attivare il tracciamento oculare?" -#: client/scenes/lobby_gui.cpp:1310 +#: client/scenes/lobby_gui.cpp:1262 msgid "Enable face tracking?" msgstr "Attivare il tracciamento facciale?" -#: client/scenes/lobby_gui.cpp:1315 +#: client/scenes/lobby_gui.cpp:1267 msgid "Enable body tracking?" msgstr "Attivare il tracciamento del corpo?" -#: client/scenes/lobby_gui.cpp:1323 +#: client/scenes/lobby_gui.cpp:1275 msgid "Welcome to WiVRn" msgstr "Benvenuto su WiVRn" -#: client/scenes/lobby_gui.cpp:1347 +#: client/scenes/lobby_gui.cpp:1299 msgid "Yes" msgstr "Sì" -#: client/scenes/lobby_gui.cpp:1354 +#: client/scenes/lobby_gui.cpp:1306 msgid "No" msgstr "No" -#: client/scenes/lobby_gui.cpp:1373 client/scenes/lobby_gui.cpp:2012 +#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972 msgid "Licenses" msgstr "Licenze" -#: client/scenes/lobby_gui.cpp:1687 +#: client/scenes/lobby_gui.cpp:1650 msgid "Microphone is enabled" msgstr "Microfono attivo" -#: client/scenes/lobby_gui.cpp:1688 +#: client/scenes/lobby_gui.cpp:1651 msgid "Microphone is disabled" msgstr "Microfono disattivato" -#: client/scenes/lobby_gui.cpp:1697 +#: client/scenes/lobby_gui.cpp:1660 msgid "Hand tracking is enabled" msgstr "Tracciamento delle mani attivo" -#: client/scenes/lobby_gui.cpp:1698 +#: client/scenes/lobby_gui.cpp:1661 msgid "Hand tracking is disabled" msgstr "Tracciamento delle mani disattivato" -#: client/scenes/lobby_gui.cpp:1707 +#: client/scenes/lobby_gui.cpp:1670 msgid "Eye tracking is enabled" msgstr "Tracciamento oculare attivo" -#: client/scenes/lobby_gui.cpp:1708 +#: client/scenes/lobby_gui.cpp:1671 msgid "Eye tracking is disabled" msgstr "Tracciamento oculare disattivato" -#: client/scenes/lobby_gui.cpp:1721 +#: client/scenes/lobby_gui.cpp:1681 msgid "Face tracking is enabled" msgstr "Tracciamento facciale attivato" -#: client/scenes/lobby_gui.cpp:1722 +#: client/scenes/lobby_gui.cpp:1682 msgid "Face tracking is disabled" msgstr "Tracciamento facciale disattivato" -#: client/scenes/lobby_gui.cpp:1732 +#: client/scenes/lobby_gui.cpp:1692 msgid "Body tracking is enabled" msgstr "Tracciamento del corpo attivato" -#: client/scenes/lobby_gui.cpp:1733 +#: client/scenes/lobby_gui.cpp:1693 msgid "Body tracking is disabled" msgstr "Tracciamento del corpo disattivato" -#: client/scenes/lobby_gui.cpp:1749 +#: client/scenes/lobby_gui.cpp:1709 msgid "Add server" msgstr "Aggiungi server" -#: client/scenes/lobby_gui.cpp:1994 +#: client/scenes/lobby_gui.cpp:1954 msgid "Server list" msgstr "Elenco dei server" -#: client/scenes/lobby_gui.cpp:1997 client/scenes/stream_gui.cpp:798 +#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822 msgid "Settings" msgstr "Impostazioni" -#: client/scenes/lobby_gui.cpp:2000 +#: client/scenes/lobby_gui.cpp:1960 msgid "Post-processing" msgstr "Post-trattamento" -#: client/scenes/lobby_gui.cpp:2004 +#: client/scenes/lobby_gui.cpp:1964 msgid "Debug" msgstr "Debug" -#: client/scenes/lobby_gui.cpp:2009 +#: client/scenes/lobby_gui.cpp:1969 msgid "About" msgstr "Informazioni" -#: client/scenes/lobby_gui.cpp:2015 +#: client/scenes/lobby_gui.cpp:1975 msgid "Exit" msgstr "Esci" -#: client/scenes/lobby_gui.cpp:2032 +#: client/scenes/lobby_gui.cpp:1992 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -483,7 +453,7 @@ msgstr "" "Premi il pulsante laterale o punta il palmo della\n" "mano verso l'alto per spostare la finestra principale" -#: client/scenes/lobby_gui.cpp:2034 +#: client/scenes/lobby_gui.cpp:1994 msgid "Press the grip button to move the main window" msgstr "Premi il pulsante laterale per spostare la finestra principale" @@ -499,11 +469,11 @@ msgstr "Copia" msgid "Network" msgstr "Rete" -#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416 +#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422 msgid "Download" msgstr "Download" -#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417 +#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423 msgid "Upload" msgstr "Upload" @@ -544,66 +514,66 @@ msgstr "Visualizzato" msgid "Predicted" msgstr "Previsto" -#: client/scenes/stream_gui.cpp:393 +#: client/scenes/stream_gui.cpp:395 #, c++-format msgid "Estimated motion to photons latency: {}ms" msgstr "Latenza stimata da movimento a fotoni: {}ms" -#: client/scenes/stream_gui.cpp:396 +#: client/scenes/stream_gui.cpp:402 msgid "Press the grip button to move the window" msgstr "Premi il pulsante laterale per spostare la finestra" -#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:752 +#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776 msgid "Press both thumbsticks to display the WiVRn window" msgstr "Premi entrabli gli stick per mostrare la finestra di WiVRn" -#: client/scenes/stream_gui.cpp:420 +#: client/scenes/stream_gui.cpp:426 msgid "Motion to photon latency" msgstr "Latenza da movimento a fotoni" -#: client/scenes/stream_gui.cpp:492 +#: client/scenes/stream_gui.cpp:503 msgid "Foveation center override" msgstr "Centro di foveazione manuale" -#: client/scenes/stream_gui.cpp:495 +#: client/scenes/stream_gui.cpp:506 msgid "Enable" msgstr "Attiva" -#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550 +#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561 #, c++-format msgid "Height {:.1f} deg" msgstr "Altezza {:.1f} deg" -#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551 +#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562 #, c++-format msgid "Distance {:.2f} m" msgstr "Distanza {:.2f} m" -#: client/scenes/stream_gui.cpp:505 +#: client/scenes/stream_gui.cpp:516 msgid "Default" msgstr "Reimposta" -#: client/scenes/stream_gui.cpp:516 +#: client/scenes/stream_gui.cpp:527 msgid "Change" msgstr "Cambia" -#: client/scenes/stream_gui.cpp:548 +#: client/scenes/stream_gui.cpp:559 msgid "Use the thumbsticks to move the foveation center" msgstr "Usa gli stick per spostare il centro di foveazione" -#: client/scenes/stream_gui.cpp:549 +#: client/scenes/stream_gui.cpp:560 msgid "Press A to save or B to cancel" msgstr "A per salvare, B per annullare" -#: client/scenes/stream_gui.cpp:795 +#: client/scenes/stream_gui.cpp:819 msgid "Stats" msgstr "Statistiche" -#: client/scenes/stream_gui.cpp:804 +#: client/scenes/stream_gui.cpp:828 msgid "Statistics overlay" msgstr "Solo statistiche" -#: client/scenes/stream_gui.cpp:807 +#: client/scenes/stream_gui.cpp:831 msgid "Compact view" msgstr "Modalità compatta" @@ -623,6 +593,41 @@ msgstr "Impossibile verificare il PIN" msgid "Pairing is disabled on server" msgstr "L'associazione è disattivata sul server" +#~ msgid "Enable Snapdragon Game Super Resolution" +#~ msgstr "Attivare Snapdragon Game Super Resolution" + +#~ msgid "" +#~ "On this headset, this setting has been fully superseded by the native " +#~ "Sharpening setting above.\n" +#~ "Only enable if you know what you're doing." +#~ msgstr "Su questo visore è consigliato usare il post-trattamento OpenXR." + +#~ msgid "" +#~ "Client-side upscaling and sharpening, adds a performance cost on the " +#~ "headset" +#~ msgstr "" +#~ "Aumento della risoluzione e nitidezza sul visore, diminuisce le " +#~ "prestazioni sul visore" + +#~ msgid "Upscaling factor" +#~ msgstr "Aumento di risoluzione" + +#~ msgid "Use edge direction" +#~ msgstr "Usare la direzione dei bordi" + +#~ msgid "Adds an additional performance cost" +#~ msgstr "Riduce le prestazioni" + +#~ msgid "Edge threshold" +#~ msgstr "Soglia dei bordi" + +#, c++-format +#~ msgid "Recommended: {:.1f}" +#~ msgstr "Valore consigliato: {:.1f}" + +#~ msgid "Edge sharpness" +#~ msgstr "Nitidezza dei bordi" + #~ msgid "Video stream interrupted" #~ msgstr "Flusso video interrotto" From 5edc7f2f564aceec54425fa550d5728126f562ec Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 18 Sep 2025 13:41:32 +0200 Subject: [PATCH 35/52] Add language names source https://en.wikipedia.org/wiki/List_of_language_names --- locale/es/wivrn.po | 187 +++++++++++++------------ locale/ja/wivrn.po | 188 +++++++++++++------------ locale/pt_BR/wivrn.po | 285 +++++++++++++++++++------------------ locale/sk/wivrn.po | 319 ++++++++++++++++++++++-------------------- locale/tr/wivrn.po | 187 +++++++++++++------------ locale/zh_TW/wivrn.po | 190 +++++++++++++------------ 6 files changed, 714 insertions(+), 642 deletions(-) diff --git a/locale/es/wivrn.po b/locale/es/wivrn.po index b623e1c2..d6bf2844 100644 --- a/locale/es/wivrn.po +++ b/locale/es/wivrn.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn 0.15\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-09-10 22:23+0200\n" +"POT-Creation-Date: 2025-09-18 13:35+0200\n" "PO-Revision-Date: 2025-09-12 17:21+0200\n" "Last-Translator: Álvaro De Quinta \n" "Language-Team: Spanish\n" @@ -43,97 +43,97 @@ msgstr "No se puede conectar a {} ({}): {}" msgid "Waiting for connection" msgstr "Esperando conexión" -#: client/scenes/lobby_gui.cpp:231 +#: client/scenes/lobby_gui.cpp:232 msgctxt "openxr_post_processing" msgid "Normal" msgstr "Normal" -#: client/scenes/lobby_gui.cpp:234 +#: client/scenes/lobby_gui.cpp:235 msgctxt "openxr_post_processing" msgid "Quality" msgstr "Calidad" -#: client/scenes/lobby_gui.cpp:236 +#: client/scenes/lobby_gui.cpp:237 msgctxt "openxr_post_processing" msgid "Disabled" msgstr "Deshabilitado" -#: client/scenes/lobby_gui.cpp:244 client/scenes/lobby_gui.cpp:401 +#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402 #: client/scenes/stream_gui.cpp:838 msgid "Disconnect" msgstr "Desconectar" -#: client/scenes/lobby_gui.cpp:265 client/scenes/stream_gui.cpp:834 +#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834 msgid "Close" msgstr "Cerrar" -#: client/scenes/lobby_gui.cpp:271 +#: client/scenes/lobby_gui.cpp:272 msgid "Connection" msgstr "Conexión" -#: client/scenes/lobby_gui.cpp:273 +#: client/scenes/lobby_gui.cpp:274 #, c++-format msgid "Connection to {}" msgstr "Conexión a {}" -#: client/scenes/lobby_gui.cpp:303 +#: client/scenes/lobby_gui.cpp:304 msgid "PIN" msgstr "PIN" -#: client/scenes/lobby_gui.cpp:325 +#: client/scenes/lobby_gui.cpp:326 msgid "Input the PIN displayed on the dashboard" msgstr "Ingresa el PIN que se muestra en el panel de control" -#: client/scenes/lobby_gui.cpp:396 +#: client/scenes/lobby_gui.cpp:397 msgid "Connected to WiVRn server" msgstr "Conectado al servidor WiVRn" -#: client/scenes/lobby_gui.cpp:398 +#: client/scenes/lobby_gui.cpp:399 #, c++-format msgid "Connected to {}" msgstr "Connectado a {}" -#: client/scenes/lobby_gui.cpp:408 +#: client/scenes/lobby_gui.cpp:409 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/lobby_gui.cpp:420 +#: client/scenes/lobby_gui.cpp:421 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/lobby_gui.cpp:422 +#: client/scenes/lobby_gui.cpp:423 #, c++-format msgid "Start an application on {} or select one to start streaming." msgstr "" "Inicia una aplicación en {} o selecciona una para empezar la retransmisión" -#: client/scenes/lobby_gui.cpp:545 +#: client/scenes/lobby_gui.cpp:546 msgid "Name" msgstr "Nombre" -#: client/scenes/lobby_gui.cpp:556 +#: client/scenes/lobby_gui.cpp:557 msgid "Address" msgstr "Dirección" -#: client/scenes/lobby_gui.cpp:565 +#: client/scenes/lobby_gui.cpp:566 msgid "Port" msgstr "Puerto" -#: client/scenes/lobby_gui.cpp:573 +#: client/scenes/lobby_gui.cpp:574 msgid "TCP only" msgstr "Solo TCP" -#: client/scenes/lobby_gui.cpp:580 +#: client/scenes/lobby_gui.cpp:581 msgid "Cancel" msgstr "Cancelar" -#: client/scenes/lobby_gui.cpp:594 +#: client/scenes/lobby_gui.cpp:595 msgid "Save" msgstr "Guardar" -#: client/scenes/lobby_gui.cpp:647 +#: client/scenes/lobby_gui.cpp:648 msgid "" "Start a WiVRn server on your\n" "local network" @@ -141,32 +141,45 @@ msgstr "" "Inicia un servidor WiVRn en tu\n" "red local" -#: client/scenes/lobby_gui.cpp:679 +#: client/scenes/lobby_gui.cpp:680 msgid "Autoconnect" msgstr "Conexión automática" -#: client/scenes/lobby_gui.cpp:705 +#: client/scenes/lobby_gui.cpp:706 msgid "Connect" msgstr "Conectar" -#: client/scenes/lobby_gui.cpp:715 client/wivrn_client.cpp:186 +#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186 msgid "Incompatible server version" msgstr "Versión del servidor incompatible" -#: client/scenes/lobby_gui.cpp:717 +#: client/scenes/lobby_gui.cpp:718 msgid "Server not available" msgstr "Servidor no disponible" -#: client/scenes/lobby_gui.cpp:803 +#: client/scenes/lobby_gui.cpp:800 +msgctxt "language selection, replace with the name of the language" +msgid "English" +msgstr "Español" + +#: client/scenes/lobby_gui.cpp:814 +msgid "Language" +msgstr "" + +#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816 +msgid "System language" +msgstr "" + +#: client/scenes/lobby_gui.cpp:841 msgid "Refresh rate" msgstr "Frecuencia de actualización" -#: client/scenes/lobby_gui.cpp:803 client/scenes/lobby_gui.cpp:805 +#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "Automática" -#: client/scenes/lobby_gui.cpp:812 +#: client/scenes/lobby_gui.cpp:850 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -175,61 +188,61 @@ msgstr "" "aplicación.\n" "Puede causar parpadeos cuando ocurre un cambio." -#: client/scenes/lobby_gui.cpp:829 +#: client/scenes/lobby_gui.cpp:867 msgid "Minimum refresh rate" msgstr "Tasa mínima de refresco" -#: client/scenes/lobby_gui.cpp:852 +#: client/scenes/lobby_gui.cpp:890 msgid "Resolution scale" msgstr "Escala de resolución" -#: client/scenes/lobby_gui.cpp:856 +#: client/scenes/lobby_gui.cpp:894 #, c-format, c++-format msgid "%d%% - {}x{} per eye" msgstr "%d%% - {}x{} por ojo" -#: client/scenes/lobby_gui.cpp:867 +#: client/scenes/lobby_gui.cpp:905 #, c++-format msgid "Resolution larger than {}x{} may not be supported by the headset" msgstr "La resolución mayor que {}x{} podría no ser compatible con el visor" -#: client/scenes/lobby_gui.cpp:873 +#: client/scenes/lobby_gui.cpp:911 msgid "Enable microphone" msgstr "Activar micrófono" -#: client/scenes/lobby_gui.cpp:882 +#: client/scenes/lobby_gui.cpp:920 msgid "Unprocessed Microphone Audio" msgstr "Entrada de audio sin procesar" -#: client/scenes/lobby_gui.cpp:888 +#: client/scenes/lobby_gui.cpp:926 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:895 +#: client/scenes/lobby_gui.cpp:933 msgid "Enable hand tracking" msgstr "Activar seguimiento de manos" -#: client/scenes/lobby_gui.cpp:901 client/scenes/lobby_gui.cpp:913 -#: client/scenes/lobby_gui.cpp:925 client/scenes/lobby_gui.cpp:942 -#: client/scenes/lobby_gui.cpp:987 +#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951 +#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980 +#: client/scenes/lobby_gui.cpp:1025 msgid "This feature is not supported by your headset" msgstr "Esta función no es compatible con tu visor" -#: client/scenes/lobby_gui.cpp:907 +#: client/scenes/lobby_gui.cpp:945 msgid "Enable eye tracking" msgstr "Activar seguimiento ocular" -#: client/scenes/lobby_gui.cpp:919 +#: client/scenes/lobby_gui.cpp:957 msgid "Enable face tracking" msgstr "Activar seguimiento facial" -#: client/scenes/lobby_gui.cpp:933 +#: client/scenes/lobby_gui.cpp:971 msgid "Enable body tracking" msgstr "Habilitar seguimiento corporal" -#: client/scenes/lobby_gui.cpp:947 +#: client/scenes/lobby_gui.cpp:985 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -240,11 +253,11 @@ msgstr "" "si no el seguimiento corporal será medido por la posición de los controles y " "el visor" -#: client/scenes/lobby_gui.cpp:957 +#: client/scenes/lobby_gui.cpp:995 msgid "Enable lower body tracking" msgstr "Habilitar seguimiento de cintura para abajo" -#: client/scenes/lobby_gui.cpp:963 +#: client/scenes/lobby_gui.cpp:1001 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -255,11 +268,11 @@ msgstr "" "Requiere habilitar 'Seguimiento de manos y del cuerpo' en los ajustes de " "movimiento de Quest" -#: client/scenes/lobby_gui.cpp:966 +#: client/scenes/lobby_gui.cpp:1004 msgid "Enable hip tracking" msgstr "Habilitar seguimiento de cintura" -#: client/scenes/lobby_gui.cpp:972 +#: client/scenes/lobby_gui.cpp:1010 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -267,15 +280,15 @@ 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:980 +#: client/scenes/lobby_gui.cpp:1018 msgid "Enable video passthrough in lobby" msgstr "Activar video passthrough en el lobby" -#: client/scenes/lobby_gui.cpp:991 +#: client/scenes/lobby_gui.cpp:1029 msgid "Enable in-stream window" msgstr "Habilitar ventana mientras se juega" -#: client/scenes/lobby_gui.cpp:994 +#: client/scenes/lobby_gui.cpp:1032 msgid "" "Enables the configuration window to be shown while the game is streaming.\n" "If enabled, the window is activated by pressing both thumbsticks." @@ -283,15 +296,15 @@ 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:1008 client/scenes/stream_gui.cpp:445 +#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445 msgid "OpenXR post-processing" msgstr "Post-procesamiento de OpenXR" -#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:449 +#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449 msgid "Supersampling" msgstr "Sobremuestreo" -#: client/scenes/lobby_gui.cpp:1032 client/scenes/stream_gui.cpp:470 +#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -300,11 +313,11 @@ msgstr "" "Útil cuando la resolución de entrada es alta comparada con la pantalla del " "visor" -#: client/scenes/lobby_gui.cpp:1037 client/scenes/stream_gui.cpp:475 +#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475 msgid "Sharpening" msgstr "Nitidez" -#: client/scenes/lobby_gui.cpp:1057 client/scenes/stream_gui.cpp:496 +#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -313,125 +326,125 @@ msgstr "" "Útil cuando la resolución de entrada es baja comparada con la pantalla del " "visor" -#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161 +#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199 #: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424 msgid "CPU time" msgstr "Tiempo de CPU" -#: client/scenes/lobby_gui.cpp:1157 +#: client/scenes/lobby_gui.cpp:1195 msgid "CPU time [ms]" msgstr "Tiempo de CPU [ms]" -#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175 +#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213 #: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425 msgid "GPU time" msgstr "Tiempo de GPU" -#: client/scenes/lobby_gui.cpp:1171 +#: client/scenes/lobby_gui.cpp:1209 msgid "GPU time [ms]" msgstr "Tiempo de GPU [ms]" -#: client/scenes/lobby_gui.cpp:1214 +#: client/scenes/lobby_gui.cpp:1252 msgid "Enable the microphone?" msgstr "¿Habilitar micrófono?" -#: client/scenes/lobby_gui.cpp:1219 +#: client/scenes/lobby_gui.cpp:1257 msgid "Enable eye tracking?" msgstr "¿Habilitar seguimiento ocular?" -#: client/scenes/lobby_gui.cpp:1224 +#: client/scenes/lobby_gui.cpp:1262 msgid "Enable face tracking?" msgstr "¿Habilitar seguimiento facial?" -#: client/scenes/lobby_gui.cpp:1229 +#: client/scenes/lobby_gui.cpp:1267 msgid "Enable body tracking?" msgstr "¿Habilitar seguimiento corporal?" -#: client/scenes/lobby_gui.cpp:1237 +#: client/scenes/lobby_gui.cpp:1275 msgid "Welcome to WiVRn" msgstr "Bienvenido a WiVRn" -#: client/scenes/lobby_gui.cpp:1261 +#: client/scenes/lobby_gui.cpp:1299 msgid "Yes" msgstr "Sí" -#: client/scenes/lobby_gui.cpp:1268 +#: client/scenes/lobby_gui.cpp:1306 msgid "No" msgstr "No" -#: client/scenes/lobby_gui.cpp:1287 client/scenes/lobby_gui.cpp:1934 +#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972 msgid "Licenses" msgstr "Licencias" -#: client/scenes/lobby_gui.cpp:1612 +#: client/scenes/lobby_gui.cpp:1650 msgid "Microphone is enabled" msgstr "Micrófono activado" -#: client/scenes/lobby_gui.cpp:1613 +#: client/scenes/lobby_gui.cpp:1651 msgid "Microphone is disabled" msgstr "Micrófono desactivado" -#: client/scenes/lobby_gui.cpp:1622 +#: client/scenes/lobby_gui.cpp:1660 msgid "Hand tracking is enabled" msgstr "Seguimiento de manos activado" -#: client/scenes/lobby_gui.cpp:1623 +#: client/scenes/lobby_gui.cpp:1661 msgid "Hand tracking is disabled" msgstr "Seguimiento de manos desactivado" -#: client/scenes/lobby_gui.cpp:1632 +#: client/scenes/lobby_gui.cpp:1670 msgid "Eye tracking is enabled" msgstr "Seguimiento ocular activado" -#: client/scenes/lobby_gui.cpp:1633 +#: client/scenes/lobby_gui.cpp:1671 msgid "Eye tracking is disabled" msgstr "Seguimiento ocular desactivado" -#: client/scenes/lobby_gui.cpp:1643 +#: client/scenes/lobby_gui.cpp:1681 msgid "Face tracking is enabled" msgstr "Seguimiento facial activado" -#: client/scenes/lobby_gui.cpp:1644 +#: client/scenes/lobby_gui.cpp:1682 msgid "Face tracking is disabled" msgstr "Seguimiento facial desactivado" -#: client/scenes/lobby_gui.cpp:1654 +#: client/scenes/lobby_gui.cpp:1692 msgid "Body tracking is enabled" msgstr "Seguimiento corporal está habilitado" -#: client/scenes/lobby_gui.cpp:1655 +#: client/scenes/lobby_gui.cpp:1693 msgid "Body tracking is disabled" msgstr "Seguimiento corporal está deshabilitado" -#: client/scenes/lobby_gui.cpp:1671 +#: client/scenes/lobby_gui.cpp:1709 msgid "Add server" msgstr "Agregar servidor" -#: client/scenes/lobby_gui.cpp:1916 +#: client/scenes/lobby_gui.cpp:1954 msgid "Server list" msgstr "Lista de servidores" -#: client/scenes/lobby_gui.cpp:1919 client/scenes/stream_gui.cpp:822 +#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822 msgid "Settings" msgstr "Configuración" -#: client/scenes/lobby_gui.cpp:1922 +#: client/scenes/lobby_gui.cpp:1960 msgid "Post-processing" msgstr "Post-procesamiento" -#: client/scenes/lobby_gui.cpp:1926 +#: client/scenes/lobby_gui.cpp:1964 msgid "Debug" msgstr "Depuración" -#: client/scenes/lobby_gui.cpp:1931 +#: client/scenes/lobby_gui.cpp:1969 msgid "About" msgstr "Acerca de" -#: client/scenes/lobby_gui.cpp:1937 +#: client/scenes/lobby_gui.cpp:1975 msgid "Exit" msgstr "Salir" -#: client/scenes/lobby_gui.cpp:1954 +#: client/scenes/lobby_gui.cpp:1992 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -439,7 +452,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:1956 +#: client/scenes/lobby_gui.cpp:1994 msgid "Press the grip button to move the main window" msgstr "Pulsa el botón de agarre para mover la ventana principal" diff --git a/locale/ja/wivrn.po b/locale/ja/wivrn.po index ef105696..36a8e28d 100644 --- a/locale/ja/wivrn.po +++ b/locale/ja/wivrn.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn 0.16\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-09-12 21:34+0900\n" +"POT-Creation-Date: 2025-09-18 13:35+0200\n" "PO-Revision-Date: 2024-06-20 10:33+0900\n" "Last-Translator: Mitsuami Megane \n" "Language: Japanese\n" @@ -37,94 +37,94 @@ msgstr "{}に接続できませんでした:({}) {}" msgid "Waiting for connection" msgstr "接続を待っています" -#: client/scenes/lobby_gui.cpp:231 +#: client/scenes/lobby_gui.cpp:232 msgctxt "openxr_post_processing" msgid "Normal" msgstr "ノーマル" -#: client/scenes/lobby_gui.cpp:234 +#: client/scenes/lobby_gui.cpp:235 msgctxt "openxr_post_processing" msgid "Quality" msgstr "クオリティ" -#: client/scenes/lobby_gui.cpp:236 +#: client/scenes/lobby_gui.cpp:237 msgctxt "openxr_post_processing" msgid "Disabled" msgstr "無効" -#: client/scenes/lobby_gui.cpp:244 client/scenes/lobby_gui.cpp:401 +#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402 #: client/scenes/stream_gui.cpp:838 msgid "Disconnect" msgstr "切断する" -#: client/scenes/lobby_gui.cpp:265 client/scenes/stream_gui.cpp:834 +#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834 msgid "Close" msgstr "やめる" -#: client/scenes/lobby_gui.cpp:271 +#: client/scenes/lobby_gui.cpp:272 msgid "Connection" msgstr "接続" -#: client/scenes/lobby_gui.cpp:273 +#: client/scenes/lobby_gui.cpp:274 #, c++-format msgid "Connection to {}" msgstr "{}に接続中" -#: client/scenes/lobby_gui.cpp:303 +#: client/scenes/lobby_gui.cpp:304 msgid "PIN" msgstr "暗証番号" -#: client/scenes/lobby_gui.cpp:325 +#: client/scenes/lobby_gui.cpp:326 msgid "Input the PIN displayed on the dashboard" msgstr "パソコンで表示された暗証番号を入力してください" -#: client/scenes/lobby_gui.cpp:396 +#: client/scenes/lobby_gui.cpp:397 msgid "Connected to WiVRn server" msgstr "WiVRnサーバーに接続しました。" -#: client/scenes/lobby_gui.cpp:398 +#: client/scenes/lobby_gui.cpp:399 #, c++-format msgid "Connected to {}" msgstr "{}に接続しました。" -#: client/scenes/lobby_gui.cpp:408 +#: client/scenes/lobby_gui.cpp:409 msgid "Start an application on the server to start streaming." msgstr "VRアプリを起動してVRに入りましょう!" -#: client/scenes/lobby_gui.cpp:420 +#: client/scenes/lobby_gui.cpp:421 msgid "Start an application on your computer or select one to start streaming." msgstr "パソコンでVRアプリを起動するか、ここからアプリを選択しましょう。" -#: client/scenes/lobby_gui.cpp:422 +#: client/scenes/lobby_gui.cpp:423 #, c++-format msgid "Start an application on {} or select one to start streaming." msgstr "{}でVRアプリを起動するか、ここからアプリを選択しましょう。" -#: client/scenes/lobby_gui.cpp:545 +#: client/scenes/lobby_gui.cpp:546 msgid "Name" msgstr "表示名" -#: client/scenes/lobby_gui.cpp:556 +#: client/scenes/lobby_gui.cpp:557 msgid "Address" msgstr "アドレス" -#: client/scenes/lobby_gui.cpp:565 +#: client/scenes/lobby_gui.cpp:566 msgid "Port" msgstr "ポート番号" -#: client/scenes/lobby_gui.cpp:573 +#: client/scenes/lobby_gui.cpp:574 msgid "TCP only" msgstr "TCPのみを使用" -#: client/scenes/lobby_gui.cpp:580 +#: client/scenes/lobby_gui.cpp:581 msgid "Cancel" msgstr "やめる" -#: client/scenes/lobby_gui.cpp:594 +#: client/scenes/lobby_gui.cpp:595 msgid "Save" msgstr "保存する" -#: client/scenes/lobby_gui.cpp:647 +#: client/scenes/lobby_gui.cpp:648 msgid "" "Start a WiVRn server on your\n" "local network" @@ -132,32 +132,45 @@ msgstr "" "ローカルネットワークでWiVRnサーバーを\n" "起動してみて下さい" -#: client/scenes/lobby_gui.cpp:679 +#: client/scenes/lobby_gui.cpp:680 msgid "Autoconnect" msgstr "自動接続" -#: client/scenes/lobby_gui.cpp:705 +#: client/scenes/lobby_gui.cpp:706 msgid "Connect" msgstr "接続する" -#: client/scenes/lobby_gui.cpp:715 client/wivrn_client.cpp:186 +#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186 msgid "Incompatible server version" msgstr "互換性のないサーバーです" -#: client/scenes/lobby_gui.cpp:717 +#: client/scenes/lobby_gui.cpp:718 msgid "Server not available" msgstr "サーバーは利用不可です" -#: client/scenes/lobby_gui.cpp:803 +#: client/scenes/lobby_gui.cpp:800 +msgctxt "language selection, replace with the name of the language" +msgid "English" +msgstr "日本語" + +#: client/scenes/lobby_gui.cpp:814 +msgid "Language" +msgstr "" + +#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816 +msgid "System language" +msgstr "" + +#: client/scenes/lobby_gui.cpp:841 msgid "Refresh rate" msgstr "リフレッシュレート" -#: client/scenes/lobby_gui.cpp:803 client/scenes/lobby_gui.cpp:805 +#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "自動" -#: client/scenes/lobby_gui.cpp:812 +#: client/scenes/lobby_gui.cpp:850 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -165,60 +178,60 @@ msgstr "" "アプリケーションのパフォーマンスを基づいて自動的に設定します。\n" "変更時にチラツキが発生する可能性があります。" -#: client/scenes/lobby_gui.cpp:829 +#: client/scenes/lobby_gui.cpp:867 msgid "Minimum refresh rate" msgstr "最低リフレッシュレート" -#: client/scenes/lobby_gui.cpp:852 +#: client/scenes/lobby_gui.cpp:890 msgid "Resolution scale" msgstr "解像度" -#: client/scenes/lobby_gui.cpp:856 +#: client/scenes/lobby_gui.cpp:894 #, c-format, c++-format msgid "%d%% - {}x{} per eye" msgstr "%d%% - 目あたり{}x{}" -#: client/scenes/lobby_gui.cpp:867 +#: client/scenes/lobby_gui.cpp:905 #, c++-format msgid "Resolution larger than {}x{} may not be supported by the headset" msgstr "" "{}x{}以上の解像度は、お使いのヘッドセットではサポートされない場合があります。" -#: client/scenes/lobby_gui.cpp:873 +#: client/scenes/lobby_gui.cpp:911 msgid "Enable microphone" msgstr "マイクを有効する" -#: client/scenes/lobby_gui.cpp:882 +#: client/scenes/lobby_gui.cpp:920 msgid "Unprocessed Microphone Audio" msgstr "未処理のマイク音声" -#: client/scenes/lobby_gui.cpp:888 +#: client/scenes/lobby_gui.cpp:926 msgid "Force disable audio filters, such as noise cancellation" msgstr "ノイズ除去などのフィルターを無効化する" -#: client/scenes/lobby_gui.cpp:895 +#: client/scenes/lobby_gui.cpp:933 msgid "Enable hand tracking" msgstr "ハンドトラッキングを有効する" -#: client/scenes/lobby_gui.cpp:901 client/scenes/lobby_gui.cpp:913 -#: client/scenes/lobby_gui.cpp:925 client/scenes/lobby_gui.cpp:942 -#: client/scenes/lobby_gui.cpp:987 +#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951 +#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980 +#: client/scenes/lobby_gui.cpp:1025 msgid "This feature is not supported by your headset" msgstr "デバイスはこの機能をサポートしていません" -#: client/scenes/lobby_gui.cpp:907 +#: client/scenes/lobby_gui.cpp:945 msgid "Enable eye tracking" msgstr "アイトラッキングを有効する" -#: client/scenes/lobby_gui.cpp:919 +#: client/scenes/lobby_gui.cpp:957 msgid "Enable face tracking" msgstr "顔トラッキングを有効する" -#: client/scenes/lobby_gui.cpp:933 +#: client/scenes/lobby_gui.cpp:971 msgid "Enable body tracking" msgstr "ボディラッキングを有効する" -#: client/scenes/lobby_gui.cpp:947 +#: client/scenes/lobby_gui.cpp:985 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -229,11 +242,11 @@ msgstr "" "そうでなければ、トラッキングデータはHMDとコントローラーの情報から推測されるこ" "とになる。" -#: client/scenes/lobby_gui.cpp:957 +#: client/scenes/lobby_gui.cpp:995 msgid "Enable lower body tracking" msgstr "下半身トラッキングを有効する" -#: client/scenes/lobby_gui.cpp:963 +#: client/scenes/lobby_gui.cpp:1001 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -243,11 +256,11 @@ msgstr "" "Quest設定・動きのトラッキング・ジェスチャーコントロールとボディトラッキングを" "有効する必要がある。" -#: client/scenes/lobby_gui.cpp:966 +#: client/scenes/lobby_gui.cpp:1004 msgid "Enable hip tracking" msgstr "腰のトラッキングを有効する" -#: client/scenes/lobby_gui.cpp:972 +#: client/scenes/lobby_gui.cpp:1010 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -255,15 +268,15 @@ msgstr "" "下半身トラッキングが有効な場合に使用可能。\n" "腰トラッカーを持ってる方は無効にしましょう。" -#: client/scenes/lobby_gui.cpp:980 +#: client/scenes/lobby_gui.cpp:1018 msgid "Enable video passthrough in lobby" msgstr "ロビーでパススルーを有効する" -#: client/scenes/lobby_gui.cpp:991 +#: client/scenes/lobby_gui.cpp:1029 msgid "Enable in-stream window" msgstr "ストリーミング中の設定パネル" -#: client/scenes/lobby_gui.cpp:994 +#: client/scenes/lobby_gui.cpp:1032 msgid "" "Enables the configuration window to be shown while the game is streaming.\n" "If enabled, the window is activated by pressing both thumbsticks." @@ -271,15 +284,15 @@ msgstr "" "ストリーミング中にも設定パネルを表示できるようにします。\n" "両方のサムスティックを同時に押して切り替えることができます。" -#: client/scenes/lobby_gui.cpp:1008 client/scenes/stream_gui.cpp:445 +#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445 msgid "OpenXR post-processing" msgstr "OpenXRポストエフェクト" -#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:449 +#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449 msgid "Supersampling" msgstr "スーパーサンプリング" -#: client/scenes/lobby_gui.cpp:1032 client/scenes/stream_gui.cpp:470 +#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -287,11 +300,11 @@ msgstr "" "コントラストが高い部分のギザギザを低減する。\n" "ストリームの解像度は、HMDの解像度より高い場合は有用です。" -#: client/scenes/lobby_gui.cpp:1037 client/scenes/stream_gui.cpp:475 +#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475 msgid "Sharpening" msgstr "シャープ" -#: client/scenes/lobby_gui.cpp:1057 client/scenes/stream_gui.cpp:496 +#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -299,125 +312,125 @@ msgstr "" "ぼかしを低減し、コントラストが高い部分の鮮明度を向上する。\n" "ストリームの解像度は、HMDの解像度より低い場合に有用です。" -#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161 +#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199 #: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424 msgid "CPU time" msgstr "CPU使用時間" -#: client/scenes/lobby_gui.cpp:1157 +#: client/scenes/lobby_gui.cpp:1195 msgid "CPU time [ms]" msgstr "CPU使用時間、ミリ秒" -#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175 +#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213 #: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425 msgid "GPU time" msgstr "GPU使用時間" -#: client/scenes/lobby_gui.cpp:1171 +#: client/scenes/lobby_gui.cpp:1209 msgid "GPU time [ms]" msgstr "GPU使用時間、ミリ秒" -#: client/scenes/lobby_gui.cpp:1214 +#: client/scenes/lobby_gui.cpp:1252 msgid "Enable the microphone?" msgstr "マイクを有効にしますか?" -#: client/scenes/lobby_gui.cpp:1219 +#: client/scenes/lobby_gui.cpp:1257 msgid "Enable eye tracking?" msgstr "アイトラッキングを有効にしますか?" -#: client/scenes/lobby_gui.cpp:1224 +#: client/scenes/lobby_gui.cpp:1262 msgid "Enable face tracking?" msgstr "フェースラッキングを有効にしますか?" -#: client/scenes/lobby_gui.cpp:1229 +#: client/scenes/lobby_gui.cpp:1267 msgid "Enable body tracking?" msgstr "ボディトラッキングを有効にしますか?" -#: client/scenes/lobby_gui.cpp:1237 +#: client/scenes/lobby_gui.cpp:1275 msgid "Welcome to WiVRn" msgstr "WiVRnへようこそ!" -#: client/scenes/lobby_gui.cpp:1261 +#: client/scenes/lobby_gui.cpp:1299 msgid "Yes" msgstr "はい" -#: client/scenes/lobby_gui.cpp:1268 +#: client/scenes/lobby_gui.cpp:1306 msgid "No" msgstr "いいえ" -#: client/scenes/lobby_gui.cpp:1287 client/scenes/lobby_gui.cpp:1934 +#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972 msgid "Licenses" msgstr "ライセンス" -#: client/scenes/lobby_gui.cpp:1612 +#: client/scenes/lobby_gui.cpp:1650 msgid "Microphone is enabled" msgstr "マイクは有効です" -#: client/scenes/lobby_gui.cpp:1613 +#: client/scenes/lobby_gui.cpp:1651 msgid "Microphone is disabled" msgstr "マイクは無効です" -#: client/scenes/lobby_gui.cpp:1622 +#: client/scenes/lobby_gui.cpp:1660 msgid "Hand tracking is enabled" msgstr "ハンドトラッキングは有効です" -#: client/scenes/lobby_gui.cpp:1623 +#: client/scenes/lobby_gui.cpp:1661 msgid "Hand tracking is disabled" msgstr "ハンドラッキングは無効です" -#: client/scenes/lobby_gui.cpp:1632 +#: client/scenes/lobby_gui.cpp:1670 msgid "Eye tracking is enabled" msgstr "アイトラッキングは有効です" -#: client/scenes/lobby_gui.cpp:1633 +#: client/scenes/lobby_gui.cpp:1671 msgid "Eye tracking is disabled" msgstr "アイトラッキングは無効です" -#: client/scenes/lobby_gui.cpp:1643 +#: client/scenes/lobby_gui.cpp:1681 msgid "Face tracking is enabled" msgstr "フェーストラッキングは有効です" -#: client/scenes/lobby_gui.cpp:1644 +#: client/scenes/lobby_gui.cpp:1682 msgid "Face tracking is disabled" msgstr "フェーストラッキングは無効です" -#: client/scenes/lobby_gui.cpp:1654 +#: client/scenes/lobby_gui.cpp:1692 msgid "Body tracking is enabled" msgstr "ボディトラッキングは有効です" -#: client/scenes/lobby_gui.cpp:1655 +#: client/scenes/lobby_gui.cpp:1693 msgid "Body tracking is disabled" msgstr "ボディトラッキングは無効です" -#: client/scenes/lobby_gui.cpp:1671 +#: client/scenes/lobby_gui.cpp:1709 msgid "Add server" msgstr "サーバーを追加する" -#: client/scenes/lobby_gui.cpp:1916 +#: client/scenes/lobby_gui.cpp:1954 msgid "Server list" msgstr "サーバー" -#: client/scenes/lobby_gui.cpp:1919 client/scenes/stream_gui.cpp:822 +#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822 msgid "Settings" msgstr "設定" -#: client/scenes/lobby_gui.cpp:1922 +#: client/scenes/lobby_gui.cpp:1960 msgid "Post-processing" msgstr "ポストエフェクト" -#: client/scenes/lobby_gui.cpp:1926 +#: client/scenes/lobby_gui.cpp:1964 msgid "Debug" msgstr "デバッグ" -#: client/scenes/lobby_gui.cpp:1931 +#: client/scenes/lobby_gui.cpp:1969 msgid "About" msgstr "WiVRnについて" -#: client/scenes/lobby_gui.cpp:1937 +#: client/scenes/lobby_gui.cpp:1975 msgid "Exit" msgstr "完了" -#: client/scenes/lobby_gui.cpp:1954 +#: client/scenes/lobby_gui.cpp:1992 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -425,7 +438,7 @@ msgstr "" "メイン・パネルを動かすには、グリップを握るか、\n" "手のひらを上向きにしましょう。" -#: client/scenes/lobby_gui.cpp:1956 +#: client/scenes/lobby_gui.cpp:1994 msgid "Press the grip button to move the main window" msgstr "グリップを握ってパネルを動かしましょう。" @@ -564,4 +577,3 @@ msgstr "暗証番号を確認できませんでした" #: client/wivrn_client.cpp:182 msgid "Pairing is disabled on server" msgstr "このサーバーではペアリングが無効です" - diff --git a/locale/pt_BR/wivrn.po b/locale/pt_BR/wivrn.po index aa94b74a..5d034f93 100644 --- a/locale/pt_BR/wivrn.po +++ b/locale/pt_BR/wivrn.po @@ -11,18 +11,18 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-08-16 14:15+0200\n" +"POT-Creation-Date: 2025-09-18 13:35+0200\n" "PO-Revision-Date: 2025-08-17 20:58+0200\n" "Last-Translator: Claudio Sampaio \n" +"Language-Team: Brazilian 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: Gtranslator 48.0\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -"Language-Team: Brazilian Portuguese\n" -#: client/scene.cpp:74 +#: client/scene.cpp:72 msgid "No supported swapchain format" msgstr "Sem formato de cadeia de troca suportado" @@ -49,96 +49,96 @@ msgstr "Incapaz de conectar a {} ({}): {}" msgid "Waiting for connection" msgstr "Aguardando conexão" -#: client/scenes/lobby_gui.cpp:230 +#: client/scenes/lobby_gui.cpp:232 msgctxt "openxr_post_processing" msgid "Normal" msgstr "Normal" -#: client/scenes/lobby_gui.cpp:233 +#: client/scenes/lobby_gui.cpp:235 msgctxt "openxr_post_processing" msgid "Quality" msgstr "Qualidade" -#: client/scenes/lobby_gui.cpp:235 +#: client/scenes/lobby_gui.cpp:237 msgctxt "openxr_post_processing" msgid "Disabled" msgstr "Desabilitado" -#: client/scenes/lobby_gui.cpp:243 client/scenes/lobby_gui.cpp:400 -#: client/scenes/stream_gui.cpp:825 +#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402 +#: client/scenes/stream_gui.cpp:838 msgid "Disconnect" msgstr "Desconectar" -#: client/scenes/lobby_gui.cpp:264 client/scenes/stream_gui.cpp:821 +#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834 msgid "Close" msgstr "Fechar" -#: client/scenes/lobby_gui.cpp:270 +#: client/scenes/lobby_gui.cpp:272 msgid "Connection" msgstr "Conexão" -#: client/scenes/lobby_gui.cpp:272 +#: client/scenes/lobby_gui.cpp:274 #, c++-format msgid "Connection to {}" msgstr "Conexão a {}" -#: client/scenes/lobby_gui.cpp:302 +#: client/scenes/lobby_gui.cpp:304 msgid "PIN" msgstr "PIN" -#: client/scenes/lobby_gui.cpp:324 +#: client/scenes/lobby_gui.cpp:326 msgid "Input the PIN displayed on the dashboard" msgstr "Entre o PIN mostrado no painel" -#: client/scenes/lobby_gui.cpp:395 +#: client/scenes/lobby_gui.cpp:397 msgid "Connected to WiVRn server" msgstr "Conectado ao servidor WiVRn" -#: client/scenes/lobby_gui.cpp:397 +#: client/scenes/lobby_gui.cpp:399 #, c++-format msgid "Connected to {}" msgstr "Conectado a {}" -#: client/scenes/lobby_gui.cpp:407 +#: client/scenes/lobby_gui.cpp:409 msgid "Start an application on the server to start streaming." msgstr "Abra um aplicativo no servidor para iniciar o streaming." -#: client/scenes/lobby_gui.cpp:419 +#: client/scenes/lobby_gui.cpp:421 msgid "Start an application on your computer or select one to start streaming." msgstr "" "Abra um aplicativo no seu computador ou selecione um para iniciar o " "streaming." -#: client/scenes/lobby_gui.cpp:421 +#: client/scenes/lobby_gui.cpp:423 #, c++-format msgid "Start an application on {} or select one to start streaming." msgstr "Abra um aplicativo em {} ou selecione um para iniciar o streaming." -#: client/scenes/lobby_gui.cpp:544 +#: client/scenes/lobby_gui.cpp:546 msgid "Name" msgstr "Nome" -#: client/scenes/lobby_gui.cpp:555 +#: client/scenes/lobby_gui.cpp:557 msgid "Address" msgstr "Endereço" -#: client/scenes/lobby_gui.cpp:564 +#: client/scenes/lobby_gui.cpp:566 msgid "Port" msgstr "Porta" -#: client/scenes/lobby_gui.cpp:572 +#: client/scenes/lobby_gui.cpp:574 msgid "TCP only" msgstr "TCP somente" -#: client/scenes/lobby_gui.cpp:579 +#: client/scenes/lobby_gui.cpp:581 msgid "Cancel" msgstr "Cancelar" -#: client/scenes/lobby_gui.cpp:593 +#: client/scenes/lobby_gui.cpp:595 msgid "Save" msgstr "Salvar" -#: client/scenes/lobby_gui.cpp:646 +#: client/scenes/lobby_gui.cpp:648 msgid "" "Start a WiVRn server on your\n" "local network" @@ -146,32 +146,45 @@ msgstr "" "Inicie um servidor WiVRn em sua\n" "rede local" -#: client/scenes/lobby_gui.cpp:678 +#: client/scenes/lobby_gui.cpp:680 msgid "Autoconnect" msgstr "Autoconectar" -#: client/scenes/lobby_gui.cpp:704 +#: client/scenes/lobby_gui.cpp:706 msgid "Connect" msgstr "Conectar" -#: client/scenes/lobby_gui.cpp:714 client/wivrn_client.cpp:186 +#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186 msgid "Incompatible server version" msgstr "Versão de servidor incompatível" -#: client/scenes/lobby_gui.cpp:716 +#: client/scenes/lobby_gui.cpp:718 msgid "Server not available" msgstr "Servidor não disponível" -#: client/scenes/lobby_gui.cpp:802 +#: client/scenes/lobby_gui.cpp:800 +msgctxt "language selection, replace with the name of the language" +msgid "English" +msgstr "Português (Brasil)" + +#: client/scenes/lobby_gui.cpp:814 +msgid "Language" +msgstr "" + +#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816 +msgid "System language" +msgstr "" + +#: client/scenes/lobby_gui.cpp:841 msgid "Refresh rate" msgstr "Taxa de atualização" -#: client/scenes/lobby_gui.cpp:802 client/scenes/lobby_gui.cpp:804 +#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "Automático" -#: client/scenes/lobby_gui.cpp:811 +#: client/scenes/lobby_gui.cpp:850 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -179,60 +192,60 @@ 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:828 +#: client/scenes/lobby_gui.cpp:867 msgid "Minimum refresh rate" msgstr "Taxa de atualização mínima" -#: client/scenes/lobby_gui.cpp:851 +#: client/scenes/lobby_gui.cpp:890 msgid "Resolution scale" msgstr "Escala de resolução" -#: client/scenes/lobby_gui.cpp:855 client/scenes/lobby_gui.cpp:1101 +#: client/scenes/lobby_gui.cpp:894 #, c-format, c++-format msgid "%d%% - {}x{} per eye" msgstr "%d%% - {}x{} por olho" -#: client/scenes/lobby_gui.cpp:866 client/scenes/lobby_gui.cpp:1112 +#: client/scenes/lobby_gui.cpp:905 #, c++-format msgid "Resolution larger than {}x{} may not be supported by the headset" msgstr "Resolução maior que {}x{} pode não ser suportada pelo headset" -#: client/scenes/lobby_gui.cpp:872 +#: client/scenes/lobby_gui.cpp:911 msgid "Enable microphone" msgstr "Ativar microfone" -#: client/scenes/lobby_gui.cpp:881 +#: client/scenes/lobby_gui.cpp:920 msgid "Unprocessed Microphone Audio" msgstr "Áudio Não-processado de Microfone" -#: client/scenes/lobby_gui.cpp:887 +#: client/scenes/lobby_gui.cpp:926 msgid "Force disable audio filters, such as noise cancellation" msgstr "" "Força a desativação de filtros de áudio tais como cancelamento de ruído" -#: client/scenes/lobby_gui.cpp:894 +#: client/scenes/lobby_gui.cpp:933 msgid "Enable hand tracking" msgstr "Ativar rastreamento de mãos" -#: client/scenes/lobby_gui.cpp:900 client/scenes/lobby_gui.cpp:912 -#: client/scenes/lobby_gui.cpp:924 client/scenes/lobby_gui.cpp:940 -#: client/scenes/lobby_gui.cpp:990 +#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951 +#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980 +#: client/scenes/lobby_gui.cpp:1025 msgid "This feature is not supported by your headset" msgstr "Este recurso não é suportado pelo seu headset" -#: client/scenes/lobby_gui.cpp:906 +#: client/scenes/lobby_gui.cpp:945 msgid "Enable eye tracking" msgstr "Ativar rastreamento ocular" -#: client/scenes/lobby_gui.cpp:918 +#: client/scenes/lobby_gui.cpp:957 msgid "Enable face tracking" msgstr "Ativar rastreamento facial" -#: client/scenes/lobby_gui.cpp:931 +#: client/scenes/lobby_gui.cpp:971 msgid "Enable body tracking" msgstr "Ativar rastreamento corporal" -#: client/scenes/lobby_gui.cpp:947 +#: client/scenes/lobby_gui.cpp:985 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -244,11 +257,11 @@ msgstr "" "estimados\n" "com base nas posições do controle e do headset." -#: client/scenes/lobby_gui.cpp:960 +#: client/scenes/lobby_gui.cpp:995 msgid "Enable lower body tracking" msgstr "Ativar rastreamento corporal inferior" -#: client/scenes/lobby_gui.cpp:966 +#: client/scenes/lobby_gui.cpp:1001 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -259,11 +272,11 @@ msgstr "" "Requer que 'Rastreamento corporal e das mãos' esteja ativado nas\n" "configurações de Rastreamento de Movimento do Quest" -#: client/scenes/lobby_gui.cpp:969 +#: client/scenes/lobby_gui.cpp:1004 msgid "Enable hip tracking" msgstr "Ativar rastreamento de quadril" -#: client/scenes/lobby_gui.cpp:975 +#: client/scenes/lobby_gui.cpp:1010 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -271,15 +284,15 @@ msgstr "" "Só tem efeito com o rastreamento corporal inferior ativado\n" "Pode ser desejado ao usar outra fonte de rastreamento de quadril" -#: client/scenes/lobby_gui.cpp:983 +#: client/scenes/lobby_gui.cpp:1018 msgid "Enable video passthrough in lobby" msgstr "Habilitar repassagem de vídeo no lobby" -#: client/scenes/lobby_gui.cpp:994 +#: client/scenes/lobby_gui.cpp:1029 msgid "Enable in-stream window" msgstr "Habilitar janela na stream" -#: client/scenes/lobby_gui.cpp:997 +#: client/scenes/lobby_gui.cpp:1032 msgid "" "Enables the configuration window to be shown while the game is streaming.\n" "If enabled, the window is activated by pressing both thumbsticks." @@ -288,15 +301,15 @@ msgstr "" "streamado.\n" "Se habilitado, a janela é ativada clicando os dois joysticks simultaneamente." -#: client/scenes/lobby_gui.cpp:1011 client/scenes/stream_gui.cpp:445 +#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445 msgid "OpenXR post-processing" msgstr "Pós-processamento OpenXR" -#: client/scenes/lobby_gui.cpp:1015 client/scenes/stream_gui.cpp:449 +#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449 msgid "Supersampling" msgstr "Supersampling" -#: client/scenes/lobby_gui.cpp:1035 client/scenes/stream_gui.cpp:470 +#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -304,11 +317,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:1040 client/scenes/stream_gui.cpp:475 +#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475 msgid "Sharpening" msgstr "Aumento de nitidez" -#: client/scenes/lobby_gui.cpp:1060 client/scenes/stream_gui.cpp:496 +#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -316,171 +329,125 @@ msgstr "" "Melhora a clareza de arestas de alto contraste e minimiza o desfoque.\n" "Útil quando a resolução de entrada é baixa comparada ao display do headset" -#: client/scenes/lobby_gui.cpp:1069 -msgid "Enable Snapdragon Game Super Resolution" -msgstr "Habilitar Snapdragon Game Super Resolution" - -#: client/scenes/lobby_gui.cpp:1077 -msgid "" -"On this headset, this setting has been fully superseded by the native " -"Sharpening setting above.\n" -"Only enable if you know what you're doing." -msgstr "" -"Neste headset, este ajuste foi completamente supersedido pelo ajuste de " -"aumento de nitidez acima.\n" -"Somente habilite se souber o que está fazendo." - -#: client/scenes/lobby_gui.cpp:1079 -msgid "" -"Client-side upscaling and sharpening, adds a performance cost on the headset" -msgstr "" -"Upscaling e aumento de nitidez do lado do cliente, acrescenta um custo de " -"desempenho no headset" - -#: client/scenes/lobby_gui.cpp:1097 -msgid "Upscaling factor" -msgstr "Fator de upscaling" - -#: client/scenes/lobby_gui.cpp:1116 -msgid "Use edge direction" -msgstr "Usar direção da aresta" - -#: client/scenes/lobby_gui.cpp:1122 -msgid "Adds an additional performance cost" -msgstr "Acrescenta um custo de desempenho" - -#: client/scenes/lobby_gui.cpp:1127 -msgid "Edge threshold" -msgstr "Limite da aresta" - -#: client/scenes/lobby_gui.cpp:1134 client/scenes/lobby_gui.cpp:1143 -#, c++-format -msgid "Recommended: {:.1f}" -msgstr "Recomenadado: {:.1f}" - -#: client/scenes/lobby_gui.cpp:1137 -msgid "Edge sharpness" -msgstr "Nitidez da aresta" - -#: client/scenes/lobby_gui.cpp:1239 client/scenes/lobby_gui.cpp:1247 +#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199 #: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424 msgid "CPU time" msgstr "Tempo de CPU" -#: client/scenes/lobby_gui.cpp:1243 +#: client/scenes/lobby_gui.cpp:1195 msgid "CPU time [ms]" msgstr "Tempo de CPU [ms]" -#: client/scenes/lobby_gui.cpp:1253 client/scenes/lobby_gui.cpp:1261 +#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213 #: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425 msgid "GPU time" msgstr "Tempo de GPU" -#: client/scenes/lobby_gui.cpp:1257 +#: client/scenes/lobby_gui.cpp:1209 msgid "GPU time [ms]" msgstr "Tempo de GPU [ms]" -#: client/scenes/lobby_gui.cpp:1300 +#: client/scenes/lobby_gui.cpp:1252 msgid "Enable the microphone?" msgstr "Habilitar o microfone?" -#: client/scenes/lobby_gui.cpp:1305 +#: client/scenes/lobby_gui.cpp:1257 msgid "Enable eye tracking?" msgstr "Habilitar o rastreamento ocular?" -#: client/scenes/lobby_gui.cpp:1310 +#: client/scenes/lobby_gui.cpp:1262 msgid "Enable face tracking?" msgstr "Habilitar o rastreamento facial?" -#: client/scenes/lobby_gui.cpp:1315 +#: client/scenes/lobby_gui.cpp:1267 msgid "Enable body tracking?" msgstr "Habilitar o rastreamento corporal?" -#: client/scenes/lobby_gui.cpp:1323 +#: client/scenes/lobby_gui.cpp:1275 msgid "Welcome to WiVRn" msgstr "Bem vindo(a) ao WiVRn" -#: client/scenes/lobby_gui.cpp:1347 +#: client/scenes/lobby_gui.cpp:1299 msgid "Yes" msgstr "Sim" -#: client/scenes/lobby_gui.cpp:1354 +#: client/scenes/lobby_gui.cpp:1306 msgid "No" msgstr "Não" -#: client/scenes/lobby_gui.cpp:1373 client/scenes/lobby_gui.cpp:2012 +#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972 msgid "Licenses" msgstr "Licenças" -#: client/scenes/lobby_gui.cpp:1687 +#: client/scenes/lobby_gui.cpp:1650 msgid "Microphone is enabled" msgstr "O microfone está ativado" -#: client/scenes/lobby_gui.cpp:1688 +#: client/scenes/lobby_gui.cpp:1651 msgid "Microphone is disabled" msgstr "O microfone está desativado" -#: client/scenes/lobby_gui.cpp:1697 +#: client/scenes/lobby_gui.cpp:1660 msgid "Hand tracking is enabled" msgstr "O rastreamento de mãos está ativado" -#: client/scenes/lobby_gui.cpp:1698 +#: client/scenes/lobby_gui.cpp:1661 msgid "Hand tracking is disabled" msgstr "O rastreamento de mãos está desativado" -#: client/scenes/lobby_gui.cpp:1707 +#: client/scenes/lobby_gui.cpp:1670 msgid "Eye tracking is enabled" msgstr "O rastreamento ocular está ativado" -#: client/scenes/lobby_gui.cpp:1708 +#: client/scenes/lobby_gui.cpp:1671 msgid "Eye tracking is disabled" msgstr "O rastreamento ocular está desativado" -#: client/scenes/lobby_gui.cpp:1721 +#: client/scenes/lobby_gui.cpp:1681 msgid "Face tracking is enabled" msgstr "O rastreamento facial está ativado" -#: client/scenes/lobby_gui.cpp:1722 +#: client/scenes/lobby_gui.cpp:1682 msgid "Face tracking is disabled" msgstr "O rastreamento facial está desativado" -#: client/scenes/lobby_gui.cpp:1732 +#: client/scenes/lobby_gui.cpp:1692 msgid "Body tracking is enabled" msgstr "O rastreamento corporal está ativado" -#: client/scenes/lobby_gui.cpp:1733 +#: client/scenes/lobby_gui.cpp:1693 msgid "Body tracking is disabled" msgstr "O rastreamento corporal está desativado" -#: client/scenes/lobby_gui.cpp:1749 +#: client/scenes/lobby_gui.cpp:1709 msgid "Add server" msgstr "Adicionar servidor" -#: client/scenes/lobby_gui.cpp:1994 +#: client/scenes/lobby_gui.cpp:1954 msgid "Server list" msgstr "Lista de servidores" -#: client/scenes/lobby_gui.cpp:1997 client/scenes/stream_gui.cpp:809 +#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822 msgid "Settings" msgstr "Ajustes" -#: client/scenes/lobby_gui.cpp:2000 +#: client/scenes/lobby_gui.cpp:1960 msgid "Post-processing" msgstr "Pós-processamento" -#: client/scenes/lobby_gui.cpp:2004 +#: client/scenes/lobby_gui.cpp:1964 msgid "Debug" msgstr "Depurar" -#: client/scenes/lobby_gui.cpp:2009 +#: client/scenes/lobby_gui.cpp:1969 msgid "About" msgstr "Sobre" -#: client/scenes/lobby_gui.cpp:2015 +#: client/scenes/lobby_gui.cpp:1975 msgid "Exit" msgstr "Sair" -#: client/scenes/lobby_gui.cpp:2032 +#: client/scenes/lobby_gui.cpp:1992 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -488,7 +455,7 @@ msgstr "" "Pressione o botão de aderência ou coloque a palma da mão para cima\n" "para mover a janela principal" -#: client/scenes/lobby_gui.cpp:2034 +#: client/scenes/lobby_gui.cpp:1994 msgid "Press the grip button to move the main window" msgstr "Pressione o botão de aderência para mover a janela principal" @@ -558,7 +525,7 @@ msgstr "Movimento estimado para a latência de fótons: {}ms" 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:404 client/scenes/stream_gui.cpp:763 +#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776 msgid "Press both thumbsticks to display the WiVRn window" msgstr "Pressione ambos os thumbsticks para mostrar a janela do WiVRn" @@ -600,15 +567,15 @@ msgstr "Use os thumbsticks para mover o centro da foveação" msgid "Press A to save or B to cancel" msgstr "Pressione A para salvar ou B para cancelar" -#: client/scenes/stream_gui.cpp:806 +#: client/scenes/stream_gui.cpp:819 msgid "Stats" msgstr "Estatísticas" -#: client/scenes/stream_gui.cpp:815 +#: client/scenes/stream_gui.cpp:828 msgid "Statistics overlay" msgstr "Overlay de estatísticas" -#: client/scenes/stream_gui.cpp:818 +#: client/scenes/stream_gui.cpp:831 msgid "Compact view" msgstr "Visualização compacta" @@ -628,6 +595,44 @@ msgstr "Incapaz de verificar PIN" msgid "Pairing is disabled on server" msgstr "Pareamento está desabilitado no servidor" +#~ msgid "Enable Snapdragon Game Super Resolution" +#~ msgstr "Habilitar Snapdragon Game Super Resolution" + +#~ msgid "" +#~ "On this headset, this setting has been fully superseded by the native " +#~ "Sharpening setting above.\n" +#~ "Only enable if you know what you're doing." +#~ msgstr "" +#~ "Neste headset, este ajuste foi completamente supersedido pelo ajuste de " +#~ "aumento de nitidez acima.\n" +#~ "Somente habilite se souber o que está fazendo." + +#~ msgid "" +#~ "Client-side upscaling and sharpening, adds a performance cost on the " +#~ "headset" +#~ msgstr "" +#~ "Upscaling e aumento de nitidez do lado do cliente, acrescenta um custo de " +#~ "desempenho no headset" + +#~ msgid "Upscaling factor" +#~ msgstr "Fator de upscaling" + +#~ msgid "Use edge direction" +#~ msgstr "Usar direção da aresta" + +#~ msgid "Adds an additional performance cost" +#~ msgstr "Acrescenta um custo de desempenho" + +#~ msgid "Edge threshold" +#~ msgstr "Limite da aresta" + +#, c++-format +#~ msgid "Recommended: {:.1f}" +#~ msgstr "Recomenadado: {:.1f}" + +#~ msgid "Edge sharpness" +#~ msgstr "Nitidez da aresta" + #~ msgid "Video stream interrupted" #~ msgstr "Fluxo de vídeo interrompido" diff --git a/locale/sk/wivrn.po b/locale/sk/wivrn.po index 86a67a11..6a9082c8 100644 --- a/locale/sk/wivrn.po +++ b/locale/sk/wivrn.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-08-08 20:41+0200\n" +"POT-Creation-Date: 2025-09-18 13:35+0200\n" "PO-Revision-Date: 2025-08-08 22:08+0200\n" "Last-Translator: eps \n" "Language-Team: Slovak <>\n" @@ -18,7 +18,7 @@ msgstr "" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" "X-Generator: Lokalize 25.04.3\n" -#: client/scene.cpp:74 +#: client/scene.cpp:72 msgid "No supported swapchain format" msgstr "Žiadny podporovaný formát swapchainu" @@ -46,96 +46,96 @@ msgstr "Nie je možné sa pripojiť k {} ({}): {}" msgid "Waiting for connection" msgstr "Čaká sa na pripojenie" -#: client/scenes/lobby_gui.cpp:230 +#: client/scenes/lobby_gui.cpp:232 msgctxt "openxr_post_processing" msgid "Normal" msgstr "Normálna" -#: client/scenes/lobby_gui.cpp:233 +#: client/scenes/lobby_gui.cpp:235 msgctxt "openxr_post_processing" msgid "Quality" msgstr "Vyššia kvalita" -#: client/scenes/lobby_gui.cpp:235 +#: client/scenes/lobby_gui.cpp:237 msgctxt "openxr_post_processing" msgid "Disabled" msgstr "Vypnuté" -#: client/scenes/lobby_gui.cpp:243 client/scenes/lobby_gui.cpp:400 -#: client/scenes/stream_gui.cpp:812 +#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402 +#: client/scenes/stream_gui.cpp:838 msgid "Disconnect" msgstr "Odpojiť" -#: client/scenes/lobby_gui.cpp:264 client/scenes/stream_gui.cpp:808 +#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834 msgid "Close" msgstr "Zatvoriť" -#: client/scenes/lobby_gui.cpp:270 +#: client/scenes/lobby_gui.cpp:272 msgid "Connection" msgstr "Pripojenie" -#: client/scenes/lobby_gui.cpp:272 +#: client/scenes/lobby_gui.cpp:274 #, c++-format msgid "Connection to {}" msgstr "Pripojenie k {}" -#: client/scenes/lobby_gui.cpp:302 +#: client/scenes/lobby_gui.cpp:304 msgid "PIN" msgstr "PIN" -#: client/scenes/lobby_gui.cpp:324 +#: client/scenes/lobby_gui.cpp:326 msgid "Input the PIN displayed on the dashboard" msgstr "Zadajte PIN zobrazený v okne aplikácie" -#: client/scenes/lobby_gui.cpp:395 +#: client/scenes/lobby_gui.cpp:397 msgid "Connected to WiVRn server" msgstr "Pripojené k WiVRn serveru" -#: client/scenes/lobby_gui.cpp:397 +#: client/scenes/lobby_gui.cpp:399 #, c++-format msgid "Connected to {}" msgstr "Pripojené k {}" -#: client/scenes/lobby_gui.cpp:407 +#: client/scenes/lobby_gui.cpp:409 msgid "Start an application on the server to start streaming." msgstr "Na serveri spustite aplikáciu, aby sa začalo streamovanie." -#: client/scenes/lobby_gui.cpp:419 +#: client/scenes/lobby_gui.cpp:421 msgid "Start an application on your computer or select one to start streaming." msgstr "" "Na svojom počítači spustite aplikáciu alebo vyberte jednu na začatie " "streamovania." -#: client/scenes/lobby_gui.cpp:421 +#: client/scenes/lobby_gui.cpp:423 #, c++-format msgid "Start an application on {} or select one to start streaming." msgstr "Spustite aplikáciu na {} alebo jednu vyberte pre začatie streamovania." -#: client/scenes/lobby_gui.cpp:544 +#: client/scenes/lobby_gui.cpp:546 msgid "Name" msgstr "Názov" -#: client/scenes/lobby_gui.cpp:555 +#: client/scenes/lobby_gui.cpp:557 msgid "Address" msgstr "Adresa" -#: client/scenes/lobby_gui.cpp:564 +#: client/scenes/lobby_gui.cpp:566 msgid "Port" msgstr "Port" -#: client/scenes/lobby_gui.cpp:572 +#: client/scenes/lobby_gui.cpp:574 msgid "TCP only" msgstr "Iba TCP" -#: client/scenes/lobby_gui.cpp:579 +#: client/scenes/lobby_gui.cpp:581 msgid "Cancel" msgstr "Zrušiť" -#: client/scenes/lobby_gui.cpp:593 +#: client/scenes/lobby_gui.cpp:595 msgid "Save" msgstr "Uložiť" -#: client/scenes/lobby_gui.cpp:646 +#: client/scenes/lobby_gui.cpp:648 msgid "" "Start a WiVRn server on your\n" "local network" @@ -143,32 +143,45 @@ msgstr "" "Spustite WiVRn server na svojej\n" "lokálnej sieti" -#: client/scenes/lobby_gui.cpp:678 +#: client/scenes/lobby_gui.cpp:680 msgid "Autoconnect" msgstr "Automatické pripojenie" -#: client/scenes/lobby_gui.cpp:704 +#: client/scenes/lobby_gui.cpp:706 msgid "Connect" msgstr "Pripojiť" -#: client/scenes/lobby_gui.cpp:714 client/wivrn_client.cpp:186 +#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186 msgid "Incompatible server version" msgstr "Verzia servera nie je kompatibilná" -#: client/scenes/lobby_gui.cpp:716 +#: client/scenes/lobby_gui.cpp:718 msgid "Server not available" msgstr "Server nie je dostupný" -#: client/scenes/lobby_gui.cpp:802 +#: client/scenes/lobby_gui.cpp:800 +msgctxt "language selection, replace with the name of the language" +msgid "English" +msgstr "Slovenčina" + +#: client/scenes/lobby_gui.cpp:814 +msgid "Language" +msgstr "" + +#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816 +msgid "System language" +msgstr "" + +#: client/scenes/lobby_gui.cpp:841 msgid "Refresh rate" msgstr "Obnovovacia frekvencia" -#: client/scenes/lobby_gui.cpp:802 client/scenes/lobby_gui.cpp:804 +#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "Automaticky" -#: client/scenes/lobby_gui.cpp:811 +#: client/scenes/lobby_gui.cpp:850 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -176,60 +189,60 @@ msgstr "" "Vyber obnovovaciu frekvenciu podľa výkonu aplikácie.\n" "Pri zmene sa môže obraz trochu trhať." -#: client/scenes/lobby_gui.cpp:828 +#: client/scenes/lobby_gui.cpp:867 msgid "Minimum refresh rate" msgstr "Minimálna obnovovacia frekvencia" -#: client/scenes/lobby_gui.cpp:851 +#: client/scenes/lobby_gui.cpp:890 msgid "Resolution scale" msgstr "Rozlíšenie" -#: client/scenes/lobby_gui.cpp:855 client/scenes/lobby_gui.cpp:1094 +#: client/scenes/lobby_gui.cpp:894 #, c-format, c++-format msgid "%d%% - {}x{} per eye" msgstr "%d%% - {}x{} na oko" -#: client/scenes/lobby_gui.cpp:866 client/scenes/lobby_gui.cpp:1105 +#: client/scenes/lobby_gui.cpp:905 #, c++-format msgid "Resolution larger than {}x{} may not be supported by the headset" msgstr "Rozlíšenie vyžšie ako {}x{} nemusí byť podporované vašim headsetom" -#: client/scenes/lobby_gui.cpp:872 +#: client/scenes/lobby_gui.cpp:911 msgid "Enable microphone" msgstr "Zapnúť mikrofón" -#: client/scenes/lobby_gui.cpp:881 +#: client/scenes/lobby_gui.cpp:920 msgid "Unprocessed Microphone Audio" msgstr "Mikrofónu bez procesovaného zvuku" -#: client/scenes/lobby_gui.cpp:887 +#: client/scenes/lobby_gui.cpp:926 msgid "Force disable audio filters, such as noise cancellation" msgstr "" "Vynúťené vypnutie zvukových filtrov, ako napríklad potlačenie okolného hluku" -#: client/scenes/lobby_gui.cpp:894 +#: client/scenes/lobby_gui.cpp:933 msgid "Enable hand tracking" msgstr "Zapnúť sledovanie rúk" -#: client/scenes/lobby_gui.cpp:900 client/scenes/lobby_gui.cpp:912 -#: client/scenes/lobby_gui.cpp:924 client/scenes/lobby_gui.cpp:940 -#: client/scenes/lobby_gui.cpp:990 +#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951 +#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980 +#: client/scenes/lobby_gui.cpp:1025 msgid "This feature is not supported by your headset" msgstr "Táto funkcia nieje podporovaná vašim headsetom" -#: client/scenes/lobby_gui.cpp:906 +#: client/scenes/lobby_gui.cpp:945 msgid "Enable eye tracking" msgstr "Zapnúť sledovanie očí" -#: client/scenes/lobby_gui.cpp:918 +#: client/scenes/lobby_gui.cpp:957 msgid "Enable face tracking" msgstr "Zapnúť sledovanie tváre" -#: client/scenes/lobby_gui.cpp:931 +#: client/scenes/lobby_gui.cpp:971 msgid "Enable body tracking" msgstr "Zapnúť sledovanie tela" -#: client/scenes/lobby_gui.cpp:947 +#: client/scenes/lobby_gui.cpp:985 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -239,11 +252,11 @@ msgstr "" "tracking settings,\n" "inak dáta o pozícii tela budú odhadované podla pozície headsetu a ovládačov" -#: client/scenes/lobby_gui.cpp:960 +#: client/scenes/lobby_gui.cpp:995 msgid "Enable lower body tracking" msgstr "Zapnúť sledovanie spodnej části tela" -#: client/scenes/lobby_gui.cpp:966 +#: client/scenes/lobby_gui.cpp:1001 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -253,11 +266,11 @@ msgstr "" "Vyžaduje, aby bolo v nastaveniach Quest movement tracking povolené „Hand and " "body tracking“" -#: client/scenes/lobby_gui.cpp:969 +#: client/scenes/lobby_gui.cpp:1004 msgid "Enable hip tracking" msgstr "Povoliť sledovanie pása" -#: client/scenes/lobby_gui.cpp:975 +#: client/scenes/lobby_gui.cpp:1010 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -265,19 +278,29 @@ msgstr "" "Platí len pri zapnutom sledovaní dolnej časti tela\n" "Môže byť vhodné, ak sa používa iný zdroj sledovania pása" -#: client/scenes/lobby_gui.cpp:983 +#: client/scenes/lobby_gui.cpp:1018 msgid "Enable video passthrough in lobby" msgstr "Povoliť passthrough video v hlavnom menu" -#: client/scenes/lobby_gui.cpp:1004 client/scenes/stream_gui.cpp:434 +#: client/scenes/lobby_gui.cpp:1029 +msgid "Enable in-stream window" +msgstr "" + +#: client/scenes/lobby_gui.cpp:1032 +msgid "" +"Enables the configuration window to be shown while the game is streaming.\n" +"If enabled, the window is activated by pressing both thumbsticks." +msgstr "" + +#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445 msgid "OpenXR post-processing" msgstr "OpenXRPostprocesing" -#: client/scenes/lobby_gui.cpp:1008 client/scenes/stream_gui.cpp:438 +#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449 msgid "Supersampling" msgstr "Supersampling" -#: client/scenes/lobby_gui.cpp:1028 client/scenes/stream_gui.cpp:459 +#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -285,11 +308,11 @@ msgstr "" "Zníženie blikania pri okrajoch z vysokým kontrastom.\n" "Užitočné, keď je vstupné rozlíšenie vysoké v porovnaní s displejom headsetu" -#: client/scenes/lobby_gui.cpp:1033 client/scenes/stream_gui.cpp:464 +#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475 msgid "Sharpening" msgstr "Ostrosť" -#: client/scenes/lobby_gui.cpp:1053 client/scenes/stream_gui.cpp:485 +#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -297,171 +320,125 @@ msgstr "" "Zlepšuje jasnosť pri okrajoch z vysokým kontrastom a potlačuje rozmazanie.\n" "Užitočné, keď je vstupné rozlíšenie nízke v porovnaní s displejom headsetu" -#: client/scenes/lobby_gui.cpp:1062 -msgid "Enable Snapdragon Game Super Resolution" -msgstr "Zapnúť Snapdragon Game Super Resolution" - -#: client/scenes/lobby_gui.cpp:1070 -msgid "" -"On this headset, this setting has been fully superseded by the native " -"Sharpening setting above.\n" -"Only enable if you know what you're doing." -msgstr "" -"V tomto headsete bolo toto nastavenie plne nahradené vyššie uvedeným " -"natívnym nastavením doostrenia.\n" -"Zapnite ho, len ak viete, čo robíte." - -#: client/scenes/lobby_gui.cpp:1072 -msgid "" -"Client-side upscaling and sharpening, adds a performance cost on the headset" -msgstr "" -"Zvýšenie rozlíšenia a doostrenie na strane klienta zvyšuje náklady na výkon " -"headsetu" - -#: client/scenes/lobby_gui.cpp:1090 -msgid "Upscaling factor" -msgstr "Faktor upscalovania" - -#: client/scenes/lobby_gui.cpp:1109 -msgid "Use edge direction" -msgstr "Použitie smeru okrajov" - -#: client/scenes/lobby_gui.cpp:1115 -msgid "Adds an additional performance cost" -msgstr "Pridáva dodatočné náklady na výkon" - -#: client/scenes/lobby_gui.cpp:1120 -msgid "Edge threshold" -msgstr "Hraničná hodnota okrajov" - -#: client/scenes/lobby_gui.cpp:1127 client/scenes/lobby_gui.cpp:1136 -#, c++-format -msgid "Recommended: {:.1f}" -msgstr "Odporúčané: {:.1f}" - -#: client/scenes/lobby_gui.cpp:1130 -msgid "Edge sharpness" -msgstr "Ostrosť okrajov" - -#: client/scenes/lobby_gui.cpp:1232 client/scenes/lobby_gui.cpp:1240 -#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:418 +#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199 +#: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424 msgid "CPU time" msgstr "CPU odozva" -#: client/scenes/lobby_gui.cpp:1236 +#: client/scenes/lobby_gui.cpp:1195 msgid "CPU time [ms]" msgstr "CPU odozva [ms]" -#: client/scenes/lobby_gui.cpp:1246 client/scenes/lobby_gui.cpp:1254 -#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:419 +#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213 +#: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425 msgid "GPU time" msgstr "GPU odozva" -#: client/scenes/lobby_gui.cpp:1250 +#: client/scenes/lobby_gui.cpp:1209 msgid "GPU time [ms]" msgstr "GPU odozva [ms]" -#: client/scenes/lobby_gui.cpp:1293 +#: client/scenes/lobby_gui.cpp:1252 msgid "Enable the microphone?" msgstr "Zapnúť mikrofón?" -#: client/scenes/lobby_gui.cpp:1298 +#: client/scenes/lobby_gui.cpp:1257 msgid "Enable eye tracking?" msgstr "Povolenie sledovania očí?" -#: client/scenes/lobby_gui.cpp:1303 +#: client/scenes/lobby_gui.cpp:1262 msgid "Enable face tracking?" msgstr "Povolenie sledovania tváre?" -#: client/scenes/lobby_gui.cpp:1308 +#: client/scenes/lobby_gui.cpp:1267 msgid "Enable body tracking?" msgstr "Povoliť sledovanie tela?" -#: client/scenes/lobby_gui.cpp:1316 +#: client/scenes/lobby_gui.cpp:1275 msgid "Welcome to WiVRn" msgstr "Vitajte v WiVRn" -#: client/scenes/lobby_gui.cpp:1340 +#: client/scenes/lobby_gui.cpp:1299 msgid "Yes" msgstr "Áno" -#: client/scenes/lobby_gui.cpp:1347 +#: client/scenes/lobby_gui.cpp:1306 msgid "No" msgstr "Nie" -#: client/scenes/lobby_gui.cpp:1366 client/scenes/lobby_gui.cpp:2005 +#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972 msgid "Licenses" msgstr "Licencie" -#: client/scenes/lobby_gui.cpp:1680 +#: client/scenes/lobby_gui.cpp:1650 msgid "Microphone is enabled" msgstr "Mikrofón je zapnutý" -#: client/scenes/lobby_gui.cpp:1681 +#: client/scenes/lobby_gui.cpp:1651 msgid "Microphone is disabled" msgstr "Mikrofón je vypnutý" -#: client/scenes/lobby_gui.cpp:1690 +#: client/scenes/lobby_gui.cpp:1660 msgid "Hand tracking is enabled" msgstr "Sledovanie rúk je zapnuté" -#: client/scenes/lobby_gui.cpp:1691 +#: client/scenes/lobby_gui.cpp:1661 msgid "Hand tracking is disabled" msgstr "Sledovanie rúk je vypnuté" -#: client/scenes/lobby_gui.cpp:1700 +#: client/scenes/lobby_gui.cpp:1670 msgid "Eye tracking is enabled" msgstr "Sledovanie očí je zapnuté" -#: client/scenes/lobby_gui.cpp:1701 +#: client/scenes/lobby_gui.cpp:1671 msgid "Eye tracking is disabled" msgstr "Sledovanie očí je vypnuté" -#: client/scenes/lobby_gui.cpp:1714 +#: client/scenes/lobby_gui.cpp:1681 msgid "Face tracking is enabled" msgstr "Sledovanie tváre je zapnuté" -#: client/scenes/lobby_gui.cpp:1715 +#: client/scenes/lobby_gui.cpp:1682 msgid "Face tracking is disabled" msgstr "Sledovanie tváre je vypnuté" -#: client/scenes/lobby_gui.cpp:1725 +#: client/scenes/lobby_gui.cpp:1692 msgid "Body tracking is enabled" msgstr "Sledovanie tela je zapnuté" -#: client/scenes/lobby_gui.cpp:1726 +#: client/scenes/lobby_gui.cpp:1693 msgid "Body tracking is disabled" msgstr "Sledovanie tela je vypnuté" -#: client/scenes/lobby_gui.cpp:1742 +#: client/scenes/lobby_gui.cpp:1709 msgid "Add server" msgstr "Pridať server" -#: client/scenes/lobby_gui.cpp:1987 +#: client/scenes/lobby_gui.cpp:1954 msgid "Server list" msgstr "Zoznam serverov" -#: client/scenes/lobby_gui.cpp:1990 client/scenes/stream_gui.cpp:796 +#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822 msgid "Settings" msgstr "Nastavenia" -#: client/scenes/lobby_gui.cpp:1993 +#: client/scenes/lobby_gui.cpp:1960 msgid "Post-processing" msgstr "Postprocesing" -#: client/scenes/lobby_gui.cpp:1997 +#: client/scenes/lobby_gui.cpp:1964 msgid "Debug" msgstr "Ladenie" -#: client/scenes/lobby_gui.cpp:2002 +#: client/scenes/lobby_gui.cpp:1969 msgid "About" msgstr "O aplikácii" -#: client/scenes/lobby_gui.cpp:2008 +#: client/scenes/lobby_gui.cpp:1975 msgid "Exit" msgstr "Ukončiť" -#: client/scenes/lobby_gui.cpp:2025 +#: client/scenes/lobby_gui.cpp:1992 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -469,7 +446,7 @@ msgstr "" "Stlačte tlačidlo grip alebo zdvihnite dlaň\n" "pre presunutie hlavného okna" -#: client/scenes/lobby_gui.cpp:2027 +#: client/scenes/lobby_gui.cpp:1994 msgid "Press the grip button to move the main window" msgstr "Pre presunutie hlavného okna stlačte grip" @@ -485,11 +462,11 @@ msgstr "blitovanie" msgid "Network" msgstr "Sieť" -#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:416 +#: client/scenes/stream_gui.cpp:227 client/scenes/stream_gui.cpp:422 msgid "Download" msgstr "Prijímanie" -#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:417 +#: client/scenes/stream_gui.cpp:228 client/scenes/stream_gui.cpp:423 msgid "Upload" msgstr "Odosielanie" @@ -530,66 +507,66 @@ msgstr "Zobrazený" msgid "Predicted" msgstr "Odhadovaný" -#: client/scenes/stream_gui.cpp:393 +#: client/scenes/stream_gui.cpp:395 #, c++-format msgid "Estimated motion to photons latency: {}ms" msgstr "Odhadovaná odozva od pohybu po zobrazenie: {}ms" -#: client/scenes/stream_gui.cpp:396 +#: client/scenes/stream_gui.cpp:402 msgid "Press the grip button to move the window" msgstr "Pre presunutie okna stlačte grip" -#: client/scenes/stream_gui.cpp:398 client/scenes/stream_gui.cpp:750 +#: client/scenes/stream_gui.cpp:404 client/scenes/stream_gui.cpp:776 msgid "Press both thumbsticks to display the WiVRn window" msgstr "Pre zobrazenie WiVRn okna stlačte oba joysticky" -#: client/scenes/stream_gui.cpp:420 +#: client/scenes/stream_gui.cpp:426 msgid "Motion to photon latency" msgstr "Odozva od pohybu po zobrazenie" -#: client/scenes/stream_gui.cpp:492 +#: client/scenes/stream_gui.cpp:503 msgid "Foveation center override" msgstr "Prepísanie foveation centra" -#: client/scenes/stream_gui.cpp:495 +#: client/scenes/stream_gui.cpp:506 msgid "Enable" msgstr "Povoliť" -#: client/scenes/stream_gui.cpp:503 client/scenes/stream_gui.cpp:550 +#: client/scenes/stream_gui.cpp:514 client/scenes/stream_gui.cpp:561 #, c++-format msgid "Height {:.1f} deg" msgstr "Výška: {:.1f} deg" -#: client/scenes/stream_gui.cpp:504 client/scenes/stream_gui.cpp:551 +#: client/scenes/stream_gui.cpp:515 client/scenes/stream_gui.cpp:562 #, c++-format msgid "Distance {:.2f} m" msgstr "Vzdialenosť: {:.2f} m" -#: client/scenes/stream_gui.cpp:505 +#: client/scenes/stream_gui.cpp:516 msgid "Default" msgstr "Predvolené" -#: client/scenes/stream_gui.cpp:516 +#: client/scenes/stream_gui.cpp:527 msgid "Change" msgstr "Zmeniť" -#: client/scenes/stream_gui.cpp:548 +#: client/scenes/stream_gui.cpp:559 msgid "Use the thumbsticks to move the foveation center" msgstr "Pomocou joysticku nastavte foveation centrum" -#: client/scenes/stream_gui.cpp:549 +#: client/scenes/stream_gui.cpp:560 msgid "Press A to save or B to cancel" msgstr "Stlačte A pre uloženie alebo B pre zrušenie" -#: client/scenes/stream_gui.cpp:793 +#: client/scenes/stream_gui.cpp:819 msgid "Stats" msgstr "Štatistiky" -#: client/scenes/stream_gui.cpp:802 +#: client/scenes/stream_gui.cpp:828 msgid "Statistics overlay" msgstr "Štatistiky na obrazovke" -#: client/scenes/stream_gui.cpp:805 +#: client/scenes/stream_gui.cpp:831 msgid "Compact view" msgstr "Kompaktný vzhľad" @@ -608,3 +585,41 @@ msgstr "Nie je možné overiť PIN" #: client/wivrn_client.cpp:182 msgid "Pairing is disabled on server" msgstr "Párovanie je na serveri vypnuté" + +#~ msgid "Enable Snapdragon Game Super Resolution" +#~ msgstr "Zapnúť Snapdragon Game Super Resolution" + +#~ msgid "" +#~ "On this headset, this setting has been fully superseded by the native " +#~ "Sharpening setting above.\n" +#~ "Only enable if you know what you're doing." +#~ msgstr "" +#~ "V tomto headsete bolo toto nastavenie plne nahradené vyššie uvedeným " +#~ "natívnym nastavením doostrenia.\n" +#~ "Zapnite ho, len ak viete, čo robíte." + +#~ msgid "" +#~ "Client-side upscaling and sharpening, adds a performance cost on the " +#~ "headset" +#~ msgstr "" +#~ "Zvýšenie rozlíšenia a doostrenie na strane klienta zvyšuje náklady na " +#~ "výkon headsetu" + +#~ msgid "Upscaling factor" +#~ msgstr "Faktor upscalovania" + +#~ msgid "Use edge direction" +#~ msgstr "Použitie smeru okrajov" + +#~ msgid "Adds an additional performance cost" +#~ msgstr "Pridáva dodatočné náklady na výkon" + +#~ msgid "Edge threshold" +#~ msgstr "Hraničná hodnota okrajov" + +#, c++-format +#~ msgid "Recommended: {:.1f}" +#~ msgstr "Odporúčané: {:.1f}" + +#~ msgid "Edge sharpness" +#~ msgstr "Ostrosť okrajov" diff --git a/locale/tr/wivrn.po b/locale/tr/wivrn.po index a3f661fa..ec0520a6 100644 --- a/locale/tr/wivrn.po +++ b/locale/tr/wivrn.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-09-10 23:23+0300\n" +"POT-Creation-Date: 2025-09-18 13:35+0200\n" "PO-Revision-Date: 2025-09-12 17:35+0300\n" "Last-Translator: Hüseyin Fahri Uzun \n" "Language-Team: \n" @@ -45,97 +45,97 @@ msgstr "Bağlanılamıyor {} ({}): {}" msgid "Waiting for connection" msgstr "Bağlantı için bekleniyor" -#: client/scenes/lobby_gui.cpp:231 +#: client/scenes/lobby_gui.cpp:232 msgctxt "openxr_post_processing" msgid "Normal" msgstr "Normal" -#: client/scenes/lobby_gui.cpp:234 +#: client/scenes/lobby_gui.cpp:235 msgctxt "openxr_post_processing" msgid "Quality" msgstr "Kalite" -#: client/scenes/lobby_gui.cpp:236 +#: client/scenes/lobby_gui.cpp:237 msgctxt "openxr_post_processing" msgid "Disabled" msgstr "Devre dışı" -#: client/scenes/lobby_gui.cpp:244 client/scenes/lobby_gui.cpp:401 +#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402 #: client/scenes/stream_gui.cpp:838 msgid "Disconnect" msgstr "Bağlantıyı Kes" -#: client/scenes/lobby_gui.cpp:265 client/scenes/stream_gui.cpp:834 +#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834 msgid "Close" msgstr "Kapat" -#: client/scenes/lobby_gui.cpp:271 +#: client/scenes/lobby_gui.cpp:272 msgid "Connection" msgstr "Bağlantı" -#: client/scenes/lobby_gui.cpp:273 +#: client/scenes/lobby_gui.cpp:274 #, c++-format msgid "Connection to {}" msgstr "{} Bağlan" -#: client/scenes/lobby_gui.cpp:303 +#: client/scenes/lobby_gui.cpp:304 msgid "PIN" msgstr "PIN" -#: client/scenes/lobby_gui.cpp:325 +#: client/scenes/lobby_gui.cpp:326 msgid "Input the PIN displayed on the dashboard" msgstr "Gösterilen PIN'i gösterge paneline giriniz" -#: client/scenes/lobby_gui.cpp:396 +#: client/scenes/lobby_gui.cpp:397 msgid "Connected to WiVRn server" msgstr "WiVRn sunucusuna bağlanıldı" -#: client/scenes/lobby_gui.cpp:398 +#: client/scenes/lobby_gui.cpp:399 #, c++-format msgid "Connected to {}" msgstr "{} bağlanıldı" -#: client/scenes/lobby_gui.cpp:408 +#: client/scenes/lobby_gui.cpp:409 msgid "Start an application on the server to start streaming." msgstr "Sunucuda bir uygulama başlatarak akışa başlayın." -#: client/scenes/lobby_gui.cpp:420 +#: client/scenes/lobby_gui.cpp:421 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/lobby_gui.cpp:422 +#: client/scenes/lobby_gui.cpp:423 #, c++-format msgid "Start an application on {} or select one to start streaming." msgstr "" "{} üzerinde bir uygulama başlatın veya akış başlatmak için bir tane seçin." -#: client/scenes/lobby_gui.cpp:545 +#: client/scenes/lobby_gui.cpp:546 msgid "Name" msgstr "Ad" -#: client/scenes/lobby_gui.cpp:556 +#: client/scenes/lobby_gui.cpp:557 msgid "Address" msgstr "Adres" -#: client/scenes/lobby_gui.cpp:565 +#: client/scenes/lobby_gui.cpp:566 msgid "Port" msgstr "Port" -#: client/scenes/lobby_gui.cpp:573 +#: client/scenes/lobby_gui.cpp:574 msgid "TCP only" msgstr "Sadece TCP" -#: client/scenes/lobby_gui.cpp:580 +#: client/scenes/lobby_gui.cpp:581 msgid "Cancel" msgstr "İptal" -#: client/scenes/lobby_gui.cpp:594 +#: client/scenes/lobby_gui.cpp:595 msgid "Save" msgstr "Kaydet" -#: client/scenes/lobby_gui.cpp:647 +#: client/scenes/lobby_gui.cpp:648 msgid "" "Start a WiVRn server on your\n" "local network" @@ -143,32 +143,45 @@ msgstr "" "Yerel ağınızda\n" "bir WiVRn sunucusu başlatın" -#: client/scenes/lobby_gui.cpp:679 +#: client/scenes/lobby_gui.cpp:680 msgid "Autoconnect" msgstr "Oto Bağlan" -#: client/scenes/lobby_gui.cpp:705 +#: client/scenes/lobby_gui.cpp:706 msgid "Connect" msgstr "Bağlan" -#: client/scenes/lobby_gui.cpp:715 client/wivrn_client.cpp:186 +#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186 msgid "Incompatible server version" msgstr "Uyumsuz sunucu versiyonu" -#: client/scenes/lobby_gui.cpp:717 +#: client/scenes/lobby_gui.cpp:718 msgid "Server not available" msgstr "Sunucu mevcut değil" -#: client/scenes/lobby_gui.cpp:803 +#: client/scenes/lobby_gui.cpp:800 +msgctxt "language selection, replace with the name of the language" +msgid "English" +msgstr "Türkçe" + +#: client/scenes/lobby_gui.cpp:814 +msgid "Language" +msgstr "" + +#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816 +msgid "System language" +msgstr "" + +#: client/scenes/lobby_gui.cpp:841 msgid "Refresh rate" msgstr "Tazeleme oranı" -#: client/scenes/lobby_gui.cpp:803 client/scenes/lobby_gui.cpp:805 +#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "Otomatik" -#: client/scenes/lobby_gui.cpp:812 +#: client/scenes/lobby_gui.cpp:850 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -176,60 +189,60 @@ 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:829 +#: client/scenes/lobby_gui.cpp:867 msgid "Minimum refresh rate" msgstr "Minimum tazeleme oranı" -#: client/scenes/lobby_gui.cpp:852 +#: client/scenes/lobby_gui.cpp:890 msgid "Resolution scale" msgstr "Çözünürlük ölçeği" -#: client/scenes/lobby_gui.cpp:856 +#: client/scenes/lobby_gui.cpp:894 #, c-format, c++-format msgid "%d%% - {}x{} per eye" msgstr "göz başına %d%% - {}x{}" -#: client/scenes/lobby_gui.cpp:867 +#: client/scenes/lobby_gui.cpp:905 #, 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:873 +#: client/scenes/lobby_gui.cpp:911 msgid "Enable microphone" msgstr "Mikrofonu aktif et" -#: client/scenes/lobby_gui.cpp:882 +#: client/scenes/lobby_gui.cpp:920 msgid "Unprocessed Microphone Audio" msgstr "İşlenmemiş Mikrofon Sesi" -#: client/scenes/lobby_gui.cpp:888 +#: client/scenes/lobby_gui.cpp:926 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:895 +#: client/scenes/lobby_gui.cpp:933 msgid "Enable hand tracking" msgstr "El izlemeyi etkinleştir" -#: client/scenes/lobby_gui.cpp:901 client/scenes/lobby_gui.cpp:913 -#: client/scenes/lobby_gui.cpp:925 client/scenes/lobby_gui.cpp:942 -#: client/scenes/lobby_gui.cpp:987 +#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951 +#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980 +#: client/scenes/lobby_gui.cpp:1025 msgid "This feature is not supported by your headset" msgstr "Bu özellik gözlüğünüz tarafından desteklenmemektedir" -#: client/scenes/lobby_gui.cpp:907 +#: client/scenes/lobby_gui.cpp:945 msgid "Enable eye tracking" msgstr "Göz takibi aktif et" -#: client/scenes/lobby_gui.cpp:919 +#: client/scenes/lobby_gui.cpp:957 msgid "Enable face tracking" msgstr "Yüz takibi aktif et" -#: client/scenes/lobby_gui.cpp:933 +#: client/scenes/lobby_gui.cpp:971 msgid "Enable body tracking" msgstr "Vücut takibi aktif et" -#: client/scenes/lobby_gui.cpp:947 +#: client/scenes/lobby_gui.cpp:985 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -240,11 +253,11 @@ msgstr "" "aksi takdirde vücut verileri kontrol cihazı ve başlık konumlarından tahmin " "edilecektir" -#: client/scenes/lobby_gui.cpp:957 +#: client/scenes/lobby_gui.cpp:995 msgid "Enable lower body tracking" msgstr "Alt vücut izlemeyi etkinleştir" -#: client/scenes/lobby_gui.cpp:963 +#: client/scenes/lobby_gui.cpp:1001 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -254,11 +267,11 @@ msgstr "" "Quest hareket izleme ayarlarında 'El ve vücut izleme' özelliğinin " "etkinleştirilmesi gerekir" -#: client/scenes/lobby_gui.cpp:966 +#: client/scenes/lobby_gui.cpp:1004 msgid "Enable hip tracking" msgstr "Kalça izlemeyi etkinleştir" -#: client/scenes/lobby_gui.cpp:972 +#: client/scenes/lobby_gui.cpp:1010 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -266,15 +279,15 @@ 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:980 +#: client/scenes/lobby_gui.cpp:1018 msgid "Enable video passthrough in lobby" msgstr "Lobide video geçişini etkinleştir" -#: client/scenes/lobby_gui.cpp:991 +#: client/scenes/lobby_gui.cpp:1029 msgid "Enable in-stream window" msgstr "Akış penceresinde aktif et" -#: client/scenes/lobby_gui.cpp:994 +#: client/scenes/lobby_gui.cpp:1032 msgid "" "Enables the configuration window to be shown while the game is streaming.\n" "If enabled, the window is activated by pressing both thumbsticks." @@ -282,15 +295,15 @@ 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:1008 client/scenes/stream_gui.cpp:445 +#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445 msgid "OpenXR post-processing" msgstr "OpenXR işlem sonrası" -#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:449 +#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449 msgid "Supersampling" msgstr "Süper örnekleme" -#: client/scenes/lobby_gui.cpp:1032 client/scenes/stream_gui.cpp:470 +#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -298,11 +311,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:1037 client/scenes/stream_gui.cpp:475 +#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475 msgid "Sharpening" msgstr "Keskinleştirme" -#: client/scenes/lobby_gui.cpp:1057 client/scenes/stream_gui.cpp:496 +#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -310,125 +323,125 @@ 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:1153 client/scenes/lobby_gui.cpp:1161 +#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199 #: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424 msgid "CPU time" msgstr "CPU zamanı" -#: client/scenes/lobby_gui.cpp:1157 +#: client/scenes/lobby_gui.cpp:1195 msgid "CPU time [ms]" msgstr "CPU zamanı [ms]" -#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175 +#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213 #: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425 msgid "GPU time" msgstr "GPU zamanı" -#: client/scenes/lobby_gui.cpp:1171 +#: client/scenes/lobby_gui.cpp:1209 msgid "GPU time [ms]" msgstr "GPU zamanı [ms]" -#: client/scenes/lobby_gui.cpp:1214 +#: client/scenes/lobby_gui.cpp:1252 msgid "Enable the microphone?" msgstr "Mikrofonu aktif et?" -#: client/scenes/lobby_gui.cpp:1219 +#: client/scenes/lobby_gui.cpp:1257 msgid "Enable eye tracking?" msgstr "Göz takibi aktif et?" -#: client/scenes/lobby_gui.cpp:1224 +#: client/scenes/lobby_gui.cpp:1262 msgid "Enable face tracking?" msgstr "Yüz takibi aktif et?" -#: client/scenes/lobby_gui.cpp:1229 +#: client/scenes/lobby_gui.cpp:1267 msgid "Enable body tracking?" msgstr "Vücut takibi aktif et?" -#: client/scenes/lobby_gui.cpp:1237 +#: client/scenes/lobby_gui.cpp:1275 msgid "Welcome to WiVRn" msgstr "WiVRn'e hoş geldiniz" -#: client/scenes/lobby_gui.cpp:1261 +#: client/scenes/lobby_gui.cpp:1299 msgid "Yes" msgstr "Evet" -#: client/scenes/lobby_gui.cpp:1268 +#: client/scenes/lobby_gui.cpp:1306 msgid "No" msgstr "Hayır" -#: client/scenes/lobby_gui.cpp:1287 client/scenes/lobby_gui.cpp:1934 +#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972 msgid "Licenses" msgstr "Lisanslar" -#: client/scenes/lobby_gui.cpp:1612 +#: client/scenes/lobby_gui.cpp:1650 msgid "Microphone is enabled" msgstr "Mikrofon aktif" -#: client/scenes/lobby_gui.cpp:1613 +#: client/scenes/lobby_gui.cpp:1651 msgid "Microphone is disabled" msgstr "Mikrofon devre dışı" -#: client/scenes/lobby_gui.cpp:1622 +#: client/scenes/lobby_gui.cpp:1660 msgid "Hand tracking is enabled" msgstr "El takibi aktif" -#: client/scenes/lobby_gui.cpp:1623 +#: client/scenes/lobby_gui.cpp:1661 msgid "Hand tracking is disabled" msgstr "El takibi devre dışı" -#: client/scenes/lobby_gui.cpp:1632 +#: client/scenes/lobby_gui.cpp:1670 msgid "Eye tracking is enabled" msgstr "Göz takibi aktif" -#: client/scenes/lobby_gui.cpp:1633 +#: client/scenes/lobby_gui.cpp:1671 msgid "Eye tracking is disabled" msgstr "Göz takibi devre dışı" -#: client/scenes/lobby_gui.cpp:1643 +#: client/scenes/lobby_gui.cpp:1681 msgid "Face tracking is enabled" msgstr "Yüz takibi aktif" -#: client/scenes/lobby_gui.cpp:1644 +#: client/scenes/lobby_gui.cpp:1682 msgid "Face tracking is disabled" msgstr "Yüz takibi devre dışı" -#: client/scenes/lobby_gui.cpp:1654 +#: client/scenes/lobby_gui.cpp:1692 msgid "Body tracking is enabled" msgstr "Vücut takibi aktif" -#: client/scenes/lobby_gui.cpp:1655 +#: client/scenes/lobby_gui.cpp:1693 msgid "Body tracking is disabled" msgstr "Vücut takibi devre dışı" -#: client/scenes/lobby_gui.cpp:1671 +#: client/scenes/lobby_gui.cpp:1709 msgid "Add server" msgstr "Sunucu ekle" -#: client/scenes/lobby_gui.cpp:1916 +#: client/scenes/lobby_gui.cpp:1954 msgid "Server list" msgstr "Sunucu listesi" -#: client/scenes/lobby_gui.cpp:1919 client/scenes/stream_gui.cpp:822 +#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822 msgid "Settings" msgstr "Ayarlar" -#: client/scenes/lobby_gui.cpp:1922 +#: client/scenes/lobby_gui.cpp:1960 msgid "Post-processing" msgstr "İşlem sonrası" -#: client/scenes/lobby_gui.cpp:1926 +#: client/scenes/lobby_gui.cpp:1964 msgid "Debug" msgstr "Hata ayıklama" -#: client/scenes/lobby_gui.cpp:1931 +#: client/scenes/lobby_gui.cpp:1969 msgid "About" msgstr "Hakkında" -#: client/scenes/lobby_gui.cpp:1937 +#: client/scenes/lobby_gui.cpp:1975 msgid "Exit" msgstr "Çıkış" -#: client/scenes/lobby_gui.cpp:1954 +#: client/scenes/lobby_gui.cpp:1992 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -436,7 +449,7 @@ msgstr "" "Ana pencereyi hareket ettirmek için tutma düğmesine basın\n" "veya avucunuzu yukarı kaldırın" -#: client/scenes/lobby_gui.cpp:1956 +#: client/scenes/lobby_gui.cpp:1994 msgid "Press the grip button to move the main window" msgstr "Ana pencereyi hareket ettirmek için tutma düğmesine basın" diff --git a/locale/zh_TW/wivrn.po b/locale/zh_TW/wivrn.po index 0f0ae004..84cf9d3e 100644 --- a/locale/zh_TW/wivrn.po +++ b/locale/zh_TW/wivrn.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-09-14 10:48+0800\n" +"POT-Creation-Date: 2025-09-18 13:35+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Jayden Ha \n" "Language-Team: LANGUAGE \n" @@ -44,94 +44,94 @@ msgstr "無法連線至 {} ({}): {}" msgid "Waiting for connection" msgstr "等待連線" -#: client/scenes/lobby_gui.cpp:231 +#: client/scenes/lobby_gui.cpp:232 msgctxt "openxr_post_processing" msgid "Normal" msgstr "正常" -#: client/scenes/lobby_gui.cpp:234 +#: client/scenes/lobby_gui.cpp:235 msgctxt "openxr_post_processing" msgid "Quality" msgstr "畫質" -#: client/scenes/lobby_gui.cpp:236 +#: client/scenes/lobby_gui.cpp:237 msgctxt "openxr_post_processing" msgid "Disabled" msgstr "已停用" -#: client/scenes/lobby_gui.cpp:244 client/scenes/lobby_gui.cpp:401 +#: client/scenes/lobby_gui.cpp:245 client/scenes/lobby_gui.cpp:402 #: client/scenes/stream_gui.cpp:838 msgid "Disconnect" msgstr "中斷連線" -#: client/scenes/lobby_gui.cpp:265 client/scenes/stream_gui.cpp:834 +#: client/scenes/lobby_gui.cpp:266 client/scenes/stream_gui.cpp:834 msgid "Close" msgstr "關閉" -#: client/scenes/lobby_gui.cpp:271 +#: client/scenes/lobby_gui.cpp:272 msgid "Connection" msgstr "連線" -#: client/scenes/lobby_gui.cpp:273 +#: client/scenes/lobby_gui.cpp:274 #, c++-format msgid "Connection to {}" msgstr "連線至 {}" -#: client/scenes/lobby_gui.cpp:303 +#: client/scenes/lobby_gui.cpp:304 msgid "PIN" msgstr "PIN" -#: client/scenes/lobby_gui.cpp:325 +#: client/scenes/lobby_gui.cpp:326 msgid "Input the PIN displayed on the dashboard" msgstr "請輸入控制面板上顯示的 PIN 碼" -#: client/scenes/lobby_gui.cpp:396 +#: client/scenes/lobby_gui.cpp:397 msgid "Connected to WiVRn server" msgstr "已連線到 WiVRn 伺服器" -#: client/scenes/lobby_gui.cpp:398 +#: client/scenes/lobby_gui.cpp:399 #, c++-format msgid "Connected to {}" msgstr "已連線到 {}" -#: client/scenes/lobby_gui.cpp:408 +#: client/scenes/lobby_gui.cpp:409 msgid "Start an application on the server to start streaming." msgstr "在伺服器那邊啟動程式來開始串流。" -#: client/scenes/lobby_gui.cpp:420 +#: client/scenes/lobby_gui.cpp:421 msgid "Start an application on your computer or select one to start streaming." msgstr "在您的電腦上啟動應用程式,或是選擇一個來開始串流。" -#: client/scenes/lobby_gui.cpp:422 +#: client/scenes/lobby_gui.cpp:423 #, c++-format msgid "Start an application on {} or select one to start streaming." msgstr "在 {} 上啟動應用程式,或是選擇一個來開始串流。" -#: client/scenes/lobby_gui.cpp:545 +#: client/scenes/lobby_gui.cpp:546 msgid "Name" msgstr "名" -#: client/scenes/lobby_gui.cpp:556 +#: client/scenes/lobby_gui.cpp:557 msgid "Address" msgstr "伺服器位址" -#: client/scenes/lobby_gui.cpp:565 +#: client/scenes/lobby_gui.cpp:566 msgid "Port" msgstr "連接埠" -#: client/scenes/lobby_gui.cpp:573 +#: client/scenes/lobby_gui.cpp:574 msgid "TCP only" msgstr "僅限 TCP" -#: client/scenes/lobby_gui.cpp:580 +#: client/scenes/lobby_gui.cpp:581 msgid "Cancel" msgstr "取消" -#: client/scenes/lobby_gui.cpp:594 +#: client/scenes/lobby_gui.cpp:595 msgid "Save" msgstr "儲存" -#: client/scenes/lobby_gui.cpp:647 +#: client/scenes/lobby_gui.cpp:648 msgid "" "Start a WiVRn server on your\n" "local network" @@ -139,32 +139,45 @@ msgstr "" "在您的區域網路中啟動\n" "WiVRn 伺服器" -#: client/scenes/lobby_gui.cpp:679 +#: client/scenes/lobby_gui.cpp:680 msgid "Autoconnect" msgstr "自動連線" -#: client/scenes/lobby_gui.cpp:705 +#: client/scenes/lobby_gui.cpp:706 msgid "Connect" msgstr "連線" -#: client/scenes/lobby_gui.cpp:715 client/wivrn_client.cpp:186 +#: client/scenes/lobby_gui.cpp:716 client/wivrn_client.cpp:186 msgid "Incompatible server version" msgstr "伺服器版本不相容" -#: client/scenes/lobby_gui.cpp:717 +#: client/scenes/lobby_gui.cpp:718 msgid "Server not available" msgstr "無法使用伺服器" -#: client/scenes/lobby_gui.cpp:803 +#: client/scenes/lobby_gui.cpp:800 +msgctxt "language selection, replace with the name of the language" +msgid "English" +msgstr "漢語" + +#: client/scenes/lobby_gui.cpp:814 +msgid "Language" +msgstr "" + +#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816 +msgid "System language" +msgstr "" + +#: client/scenes/lobby_gui.cpp:841 msgid "Refresh rate" msgstr "刷新率" -#: client/scenes/lobby_gui.cpp:803 client/scenes/lobby_gui.cpp:805 +#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:843 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "自動" -#: client/scenes/lobby_gui.cpp:812 +#: client/scenes/lobby_gui.cpp:850 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -172,59 +185,59 @@ msgstr "" "根據測量的應用程式效能選擇刷新率。\n" "變更時可能會造成閃爍。" -#: client/scenes/lobby_gui.cpp:829 +#: client/scenes/lobby_gui.cpp:867 msgid "Minimum refresh rate" msgstr "最低刷新率" -#: client/scenes/lobby_gui.cpp:852 +#: client/scenes/lobby_gui.cpp:890 msgid "Resolution scale" msgstr "解析度縮放比例" -#: client/scenes/lobby_gui.cpp:856 +#: client/scenes/lobby_gui.cpp:894 #, c-format, c++-format msgid "%d%% - {}x{} per eye" msgstr "%d%% - 單眼 {}x{}" -#: client/scenes/lobby_gui.cpp:867 +#: client/scenes/lobby_gui.cpp:905 #, c++-format msgid "Resolution larger than {}x{} may not be supported by the headset" msgstr "解析度高於 {}x{} 可能不被頭戴式裝置支援" -#: client/scenes/lobby_gui.cpp:873 +#: client/scenes/lobby_gui.cpp:911 msgid "Enable microphone" msgstr "啟用麥克風" -#: client/scenes/lobby_gui.cpp:882 +#: client/scenes/lobby_gui.cpp:920 msgid "Unprocessed Microphone Audio" msgstr "未處理的麥克風音訊" -#: client/scenes/lobby_gui.cpp:888 +#: client/scenes/lobby_gui.cpp:926 msgid "Force disable audio filters, such as noise cancellation" msgstr "強制停用音訊濾波器,例如降噪" -#: client/scenes/lobby_gui.cpp:895 +#: client/scenes/lobby_gui.cpp:933 msgid "Enable hand tracking" msgstr "啟用手部追蹤" -#: client/scenes/lobby_gui.cpp:901 client/scenes/lobby_gui.cpp:913 -#: client/scenes/lobby_gui.cpp:925 client/scenes/lobby_gui.cpp:942 -#: client/scenes/lobby_gui.cpp:987 +#: client/scenes/lobby_gui.cpp:939 client/scenes/lobby_gui.cpp:951 +#: client/scenes/lobby_gui.cpp:963 client/scenes/lobby_gui.cpp:980 +#: client/scenes/lobby_gui.cpp:1025 msgid "This feature is not supported by your headset" msgstr "您的頭戴式裝置不支援此功能" -#: client/scenes/lobby_gui.cpp:907 +#: client/scenes/lobby_gui.cpp:945 msgid "Enable eye tracking" msgstr "啟用眼球追蹤" -#: client/scenes/lobby_gui.cpp:919 +#: client/scenes/lobby_gui.cpp:957 msgid "Enable face tracking" msgstr "啟用臉部追蹤" -#: client/scenes/lobby_gui.cpp:933 +#: client/scenes/lobby_gui.cpp:971 msgid "Enable body tracking" msgstr "啟用身體追蹤" -#: client/scenes/lobby_gui.cpp:947 +#: client/scenes/lobby_gui.cpp:985 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -233,11 +246,11 @@ msgstr "" "需要在 Quest 移動追蹤設定中啟用「手部和身體追蹤」,\n" "否則身體資料將根據控制器和頭戴式裝置的位置進行猜測" -#: client/scenes/lobby_gui.cpp:957 +#: client/scenes/lobby_gui.cpp:995 msgid "Enable lower body tracking" msgstr "啟用下半身追蹤" -#: client/scenes/lobby_gui.cpp:963 +#: client/scenes/lobby_gui.cpp:1001 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -246,11 +259,11 @@ msgstr "" "使用 Generative Legs 預估下半身關節位置\n" "需要在 Quest 移動追蹤設定中啟用「手部和身體追蹤」" -#: client/scenes/lobby_gui.cpp:966 +#: client/scenes/lobby_gui.cpp:1004 msgid "Enable hip tracking" msgstr "啟用臀部追蹤" -#: client/scenes/lobby_gui.cpp:972 +#: client/scenes/lobby_gui.cpp:1010 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -258,30 +271,31 @@ msgstr "" "僅在啟用下半身追蹤時生效\n" "在使用其他臀部追蹤時可能需要此功能" -#: client/scenes/lobby_gui.cpp:980 +#: client/scenes/lobby_gui.cpp:1018 msgid "Enable video passthrough in lobby" msgstr "在待機區啟用影像穿透 (Passthrough)" -#: client/scenes/lobby_gui.cpp:991 +#: client/scenes/lobby_gui.cpp:1029 msgid "Enable in-stream window" msgstr "啟用串流中視窗" -#: client/scenes/lobby_gui.cpp:994 +#: client/scenes/lobby_gui.cpp:1032 msgid "" "Enables the configuration window to be shown while the game is streaming.\n" "If enabled, the window is activated by pressing both thumbsticks." -msgstr "啟用在遊戲串流期間顯示配置視窗\n" +msgstr "" +"啟用在遊戲串流期間顯示配置視窗\n" "若啟用此功能,按下兩根搖桿後,將會顯示該視窗。" -#: client/scenes/lobby_gui.cpp:1008 client/scenes/stream_gui.cpp:445 +#: client/scenes/lobby_gui.cpp:1046 client/scenes/stream_gui.cpp:445 msgid "OpenXR post-processing" msgstr "OpenXR 後期處理" -#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:449 +#: client/scenes/lobby_gui.cpp:1050 client/scenes/stream_gui.cpp:449 msgid "Supersampling" msgstr "超取樣" -#: client/scenes/lobby_gui.cpp:1032 client/scenes/stream_gui.cpp:470 +#: client/scenes/lobby_gui.cpp:1070 client/scenes/stream_gui.cpp:470 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -289,11 +303,11 @@ msgstr "" "減少高對比邊緣的閃爍。\n" "當輸入解析度對於頭戴式顯示器來說很高時很有用" -#: client/scenes/lobby_gui.cpp:1037 client/scenes/stream_gui.cpp:475 +#: client/scenes/lobby_gui.cpp:1075 client/scenes/stream_gui.cpp:475 msgid "Sharpening" msgstr "銳利化" -#: client/scenes/lobby_gui.cpp:1057 client/scenes/stream_gui.cpp:496 +#: client/scenes/lobby_gui.cpp:1095 client/scenes/stream_gui.cpp:496 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -301,125 +315,125 @@ msgstr "" "改善高對比邊緣的清晰度並抵消模糊。\n" "當輸入解析度對於頭戴式顯示器來說較低時很有用" -#: client/scenes/lobby_gui.cpp:1153 client/scenes/lobby_gui.cpp:1161 +#: client/scenes/lobby_gui.cpp:1191 client/scenes/lobby_gui.cpp:1199 #: client/scenes/stream_gui.cpp:222 client/scenes/stream_gui.cpp:424 msgid "CPU time" msgstr "CPU 時間" -#: client/scenes/lobby_gui.cpp:1157 +#: client/scenes/lobby_gui.cpp:1195 msgid "CPU time [ms]" msgstr "CPU 時間 [ms]" -#: client/scenes/lobby_gui.cpp:1167 client/scenes/lobby_gui.cpp:1175 +#: client/scenes/lobby_gui.cpp:1205 client/scenes/lobby_gui.cpp:1213 #: client/scenes/stream_gui.cpp:224 client/scenes/stream_gui.cpp:425 msgid "GPU time" msgstr "GPU 時間" -#: client/scenes/lobby_gui.cpp:1171 +#: client/scenes/lobby_gui.cpp:1209 msgid "GPU time [ms]" msgstr "GPU 時間 [ms]" -#: client/scenes/lobby_gui.cpp:1214 +#: client/scenes/lobby_gui.cpp:1252 msgid "Enable the microphone?" msgstr "要啟用麥克風嗎?" -#: client/scenes/lobby_gui.cpp:1219 +#: client/scenes/lobby_gui.cpp:1257 msgid "Enable eye tracking?" msgstr "要啟用眼部追蹤嗎?" -#: client/scenes/lobby_gui.cpp:1224 +#: client/scenes/lobby_gui.cpp:1262 msgid "Enable face tracking?" msgstr "要啟用臉部追蹤嗎?" -#: client/scenes/lobby_gui.cpp:1229 +#: client/scenes/lobby_gui.cpp:1267 msgid "Enable body tracking?" msgstr "要啟用身體追蹤嗎?" -#: client/scenes/lobby_gui.cpp:1237 +#: client/scenes/lobby_gui.cpp:1275 msgid "Welcome to WiVRn" msgstr "歡迎使用 WiVRn" -#: client/scenes/lobby_gui.cpp:1261 +#: client/scenes/lobby_gui.cpp:1299 msgid "Yes" msgstr "是" -#: client/scenes/lobby_gui.cpp:1268 +#: client/scenes/lobby_gui.cpp:1306 msgid "No" msgstr "否" -#: client/scenes/lobby_gui.cpp:1287 client/scenes/lobby_gui.cpp:1934 +#: client/scenes/lobby_gui.cpp:1325 client/scenes/lobby_gui.cpp:1972 msgid "Licenses" msgstr "授權資訊" -#: client/scenes/lobby_gui.cpp:1612 +#: client/scenes/lobby_gui.cpp:1650 msgid "Microphone is enabled" msgstr "麥克風已啟用" -#: client/scenes/lobby_gui.cpp:1613 +#: client/scenes/lobby_gui.cpp:1651 msgid "Microphone is disabled" msgstr "麥克風已停用" -#: client/scenes/lobby_gui.cpp:1622 +#: client/scenes/lobby_gui.cpp:1660 msgid "Hand tracking is enabled" msgstr "手部追蹤已啟用" -#: client/scenes/lobby_gui.cpp:1623 +#: client/scenes/lobby_gui.cpp:1661 msgid "Hand tracking is disabled" msgstr "手部追蹤已停用" -#: client/scenes/lobby_gui.cpp:1632 +#: client/scenes/lobby_gui.cpp:1670 msgid "Eye tracking is enabled" msgstr "眼球追蹤已啟用" -#: client/scenes/lobby_gui.cpp:1633 +#: client/scenes/lobby_gui.cpp:1671 msgid "Eye tracking is disabled" msgstr "眼球追蹤已停用" -#: client/scenes/lobby_gui.cpp:1643 +#: client/scenes/lobby_gui.cpp:1681 msgid "Face tracking is enabled" msgstr "臉部追蹤已啟用" -#: client/scenes/lobby_gui.cpp:1644 +#: client/scenes/lobby_gui.cpp:1682 msgid "Face tracking is disabled" msgstr "臉部追蹤已停用" -#: client/scenes/lobby_gui.cpp:1654 +#: client/scenes/lobby_gui.cpp:1692 msgid "Body tracking is enabled" msgstr "身體追蹤已啟用" -#: client/scenes/lobby_gui.cpp:1655 +#: client/scenes/lobby_gui.cpp:1693 msgid "Body tracking is disabled" msgstr "身體追蹤已停用" -#: client/scenes/lobby_gui.cpp:1671 +#: client/scenes/lobby_gui.cpp:1709 msgid "Add server" msgstr "新增伺服器" -#: client/scenes/lobby_gui.cpp:1916 +#: client/scenes/lobby_gui.cpp:1954 msgid "Server list" msgstr "伺服器列表" -#: client/scenes/lobby_gui.cpp:1919 client/scenes/stream_gui.cpp:822 +#: client/scenes/lobby_gui.cpp:1957 client/scenes/stream_gui.cpp:822 msgid "Settings" msgstr "設定" -#: client/scenes/lobby_gui.cpp:1922 +#: client/scenes/lobby_gui.cpp:1960 msgid "Post-processing" msgstr "後期處理" -#: client/scenes/lobby_gui.cpp:1926 +#: client/scenes/lobby_gui.cpp:1964 msgid "Debug" msgstr "偵錯" -#: client/scenes/lobby_gui.cpp:1931 +#: client/scenes/lobby_gui.cpp:1969 msgid "About" msgstr "關於" -#: client/scenes/lobby_gui.cpp:1937 +#: client/scenes/lobby_gui.cpp:1975 msgid "Exit" msgstr "離開" -#: client/scenes/lobby_gui.cpp:1954 +#: client/scenes/lobby_gui.cpp:1992 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -427,7 +441,7 @@ msgstr "" "按下握把按鈕或手掌向上\n" "以移動主視窗" -#: client/scenes/lobby_gui.cpp:1956 +#: client/scenes/lobby_gui.cpp:1994 msgid "Press the grip button to move the main window" msgstr "按下握把按鈕以移動主視窗" From 1477120888f39a2b033c9b97b67c1fca7a0bc009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udio=20=27Patola=27=20Sampaio?= Date: Thu, 18 Sep 2025 16:53:03 +0200 Subject: [PATCH 36/52] updated pt_BR strings concerning language changes --- locale/pt_BR/wivrn-dashboard.po | 56 ++++++++++++++++----------------- locale/pt_BR/wivrn.po | 12 +++---- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/locale/pt_BR/wivrn-dashboard.po b/locale/pt_BR/wivrn-dashboard.po index 2c7eb6ad..504bb654 100644 --- a/locale/pt_BR/wivrn-dashboard.po +++ b/locale/pt_BR/wivrn-dashboard.po @@ -10,7 +10,7 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn-dashboard\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-08-09 22:47+0200\n" +"POT-Creation-Date: 2025-09-12 14:54+0200\n" "PO-Revision-Date: 2025-08-08 11:56-0300\n" "Last-Translator: myghi63 \n" "Language: pt_BR\n" @@ -459,19 +459,19 @@ msgctxt "encoder preset" msgid "Default preset" msgstr "Predefinição padrão" -#: dashboard/qml/SettingsPage.qml:145 +#: dashboard/qml/SettingsPage.qml:139 #, kde-format msgctxt "encoder preset" msgid "Low latency preset" msgstr "Predefinição de baixa latência" -#: dashboard/qml/SettingsPage.qml:170 +#: dashboard/qml/SettingsPage.qml:158 #, kde-format msgctxt "encoder preset" msgid "Safe preset" msgstr "Predefinição segura" -#: dashboard/qml/SettingsPage.qml:193 +#: dashboard/qml/SettingsPage.qml:181 #, kde-format msgid "" "To add a new encoder, split an existing encoder by clicking near an edge.\n" @@ -481,84 +481,84 @@ msgstr "" "perto de uma aresta.\n" "Arraste a aresta para redimensionar ou remover codificadores." -#: dashboard/qml/SettingsPage.qml:220 +#: dashboard/qml/SettingsPage.qml:208 #, kde-format msgid "Encoder:" msgstr "Codificador:" -#: dashboard/qml/SettingsPage.qml:229 +#: dashboard/qml/SettingsPage.qml:217 #, kde-format msgctxt "automatic encoder setup" msgid "Auto" msgstr "Auto" -#: dashboard/qml/SettingsPage.qml:234 +#: dashboard/qml/SettingsPage.qml:222 #, kde-format msgid "nvenc (NVIDIA GPUs)" msgstr "nvenc (GPUs NVIDIA)" -#: dashboard/qml/SettingsPage.qml:239 +#: dashboard/qml/SettingsPage.qml:227 #, kde-format msgid "vaapi (AMD and Intel GPUs)" msgstr "vaapi (GPUs AMD e Intel)" -#: dashboard/qml/SettingsPage.qml:244 +#: dashboard/qml/SettingsPage.qml:232 #, kde-format msgid "x264 (software encoding)" msgstr "x264 (codificação por software)" -#: dashboard/qml/SettingsPage.qml:249 +#: dashboard/qml/SettingsPage.qml:237 #, kde-format msgid "Vulkan (Vulkan Video)" msgstr "Vulkan (Vídeo Vulkan)" -#: dashboard/qml/SettingsPage.qml:272 +#: dashboard/qml/SettingsPage.qml:260 #, kde-format msgid "\"Auto\" will use hardware acceleration if it is available" msgstr "\"Auto\" usará aceleração de hardware se disponível" -#: dashboard/qml/SettingsPage.qml:278 +#: dashboard/qml/SettingsPage.qml:266 #, kde-format msgid "Codec:" msgstr "Codec:" -#: dashboard/qml/SettingsPage.qml:285 +#: dashboard/qml/SettingsPage.qml:273 #, kde-format msgctxt "automatic codec setup" msgid "Auto" msgstr "Auto" -#: dashboard/qml/SettingsPage.qml:289 +#: dashboard/qml/SettingsPage.qml:277 #, kde-format msgid "H.264" msgstr "H.264" -#: dashboard/qml/SettingsPage.qml:293 +#: dashboard/qml/SettingsPage.qml:281 #, kde-format msgid "H.265" msgstr "H.265" -#: dashboard/qml/SettingsPage.qml:297 +#: dashboard/qml/SettingsPage.qml:285 #, kde-format msgid "AV1" msgstr "AV1" -#: dashboard/qml/SettingsPage.qml:319 +#: dashboard/qml/SettingsPage.qml:307 #, kde-format msgid "Advanced options" msgstr "Opções avançadas" -#: dashboard/qml/SettingsPage.qml:325 +#: dashboard/qml/SettingsPage.qml:313 #, kde-format msgid "Enable debug window" msgstr "Ativar janela de depuração" -#: dashboard/qml/SettingsPage.qml:332 +#: dashboard/qml/SettingsPage.qml:320 #, kde-format msgid "Enable SteamVR tracked devices support" msgstr "Ativar suporte a dispositivos rastreados pelo SteamVR" -#: dashboard/qml/SettingsPage.qml:335 +#: dashboard/qml/SettingsPage.qml:323 #, kde-format msgid "" "Allows the use of lighthouse-based controllers and trackers.\n" @@ -571,44 +571,44 @@ msgstr "" "Os dispositivos precisam estar ligados antes de se conectar ao WiVRn.\n" "Uma ferramenta externa como o motoc é necessária para calibração." -#: dashboard/qml/SettingsPage.qml:343 +#: dashboard/qml/SettingsPage.qml:331 #, kde-format msgid "Custom adb location" msgstr "Caminho personalizado do adb" -#: dashboard/qml/SettingsPage.qml:354 +#: dashboard/qml/SettingsPage.qml:342 #, kde-format msgid "Adb location:" msgstr "Caminho do adb:" -#: dashboard/qml/SettingsPage.qml:363 +#: dashboard/qml/SettingsPage.qml:351 #, kde-format msgctxt "browse a file to choose the adb binary" msgid "Browse" msgstr "Navegar" -#: dashboard/qml/SettingsPage.qml:373 +#: dashboard/qml/SettingsPage.qml:361 #, kde-format msgid "Default" msgstr "Default" -#: dashboard/qml/SettingsPage.qml:387 +#: dashboard/qml/SettingsPage.qml:375 #, kde-format msgctxt "set a custom OpenVR compatibility library" msgid "Custom" msgstr "Personalizado" -#: dashboard/qml/SettingsPage.qml:392 +#: dashboard/qml/SettingsPage.qml:380 #, kde-format msgid "Disabled" msgstr "Desativado" -#: dashboard/qml/SettingsPage.qml:400 +#: dashboard/qml/SettingsPage.qml:388 #, kde-format msgid "OpenVR compatibility library:" msgstr "Biblioteca de compatibilidade OpenVR:" -#: dashboard/qml/SettingsPage.qml:426 +#: dashboard/qml/SettingsPage.qml:414 #, kde-format msgid "Library path, excluding bin/linux64/vrclient.so" msgstr "Caminho da biblioteca, excluindo bin/linux64/vrclient.so" diff --git a/locale/pt_BR/wivrn.po b/locale/pt_BR/wivrn.po index 5d034f93..6fa9c1d8 100644 --- a/locale/pt_BR/wivrn.po +++ b/locale/pt_BR/wivrn.po @@ -12,14 +12,14 @@ msgstr "" "Project-Id-Version: WiVRn\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2025-09-18 13:35+0200\n" -"PO-Revision-Date: 2025-08-17 20:58+0200\n" -"Last-Translator: Claudio Sampaio \n" -"Language-Team: Brazilian Portuguese\n" +"PO-Revision-Date: 2025-09-18 16:52+0200\n" +"Last-Translator: Claudio Sampaio (Patola) \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: Gtranslator 48.0\n" +"X-Generator: Lokalize 25.08.1\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: client/scene.cpp:72 @@ -169,11 +169,11 @@ msgstr "Português (Brasil)" #: client/scenes/lobby_gui.cpp:814 msgid "Language" -msgstr "" +msgstr "Linguagem" #: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816 msgid "System language" -msgstr "" +msgstr "Linguagem do Sistema" #: client/scenes/lobby_gui.cpp:841 msgid "Refresh rate" From 6ddde98714afc8ddaa9cae9ecba7b3dd95017d71 Mon Sep 17 00:00:00 2001 From: BlackCherryCat Date: Thu, 18 Sep 2025 17:36:13 +0200 Subject: [PATCH 37/52] Update es locale --- locale/es/wivrn.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/locale/es/wivrn.po b/locale/es/wivrn.po index d6bf2844..e73a2aa4 100644 --- a/locale/es/wivrn.po +++ b/locale/es/wivrn.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: WiVRn 0.15\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2025-09-18 13:35+0200\n" -"PO-Revision-Date: 2025-09-12 17:21+0200\n" +"PO-Revision-Date: 2025-09-18 17:35+0200\n" "Last-Translator: Álvaro De Quinta \n" "Language-Team: Spanish\n" "Language: es\n" @@ -164,11 +164,11 @@ msgstr "Español" #: client/scenes/lobby_gui.cpp:814 msgid "Language" -msgstr "" +msgstr "Idioma" #: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816 msgid "System language" -msgstr "" +msgstr "Idioma del sistema" #: client/scenes/lobby_gui.cpp:841 msgid "Refresh rate" From 98347fc8322cdad4a1f6ba83f24ac44c859741b7 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 19 Sep 2025 09:58:43 +0200 Subject: [PATCH 38/52] Request again OpenXR 1.1 --- client/xr/instance.cpp | 71 ++++++++++++++++++++++++++++++------------ 1 file changed, 51 insertions(+), 20 deletions(-) diff --git a/client/xr/instance.cpp b/client/xr/instance.cpp index 38687df0..8f49823f 100644 --- a/client/xr/instance.cpp +++ b/client/xr/instance.cpp @@ -44,10 +44,30 @@ static XrBool32 debug_callback( return XR_FALSE; } -static const std::map>> promoted_extensions = { +namespace +{ +struct version_info +{ + std::set> promoted_extensions; + std::set> removed_extensions; + bool shall_request(std::string_view extension) const + { + return not(promoted_extensions.contains(extension) or removed_extensions.contains(extension)); + } + static const std::map versions; + + static const version_info * get(XrVersion version) + { + auto it = versions.find(XR_MAKE_VERSION(XR_VERSION_MAJOR(version), XR_VERSION_MINOR(version), 0)); + if (it == versions.end()) + return nullptr; + return &it->second; + } +}; +const std::map version_info::versions = {{ + XR_MAKE_VERSION(1, 1, 0), { - XR_MAKE_VERSION(1, 1, 0), - { + .promoted_extensions = { XR_KHR_LOCATE_SPACES_EXTENSION_NAME, XR_KHR_MAINTENANCE1_EXTENSION_NAME, XR_EXT_HP_MIXED_REALITY_CONTROLLER_EXTENSION_NAME, @@ -56,44 +76,55 @@ static const std::map>> promot XR_EXT_SAMSUNG_ODYSSEY_CONTROLLER_EXTENSION_NAME, XR_EXT_UUID_EXTENSION_NAME, XR_BD_CONTROLLER_INTERACTION_EXTENSION_NAME, - XR_FB_TOUCH_CONTROLLER_PRO_EXTENSION_NAME, XR_HTC_VIVE_COSMOS_CONTROLLER_INTERACTION_EXTENSION_NAME, XR_HTC_VIVE_FOCUS3_CONTROLLER_INTERACTION_EXTENSION_NAME, - XR_META_TOUCH_CONTROLLER_PLUS_EXTENSION_NAME, XR_ML_ML2_CONTROLLER_INTERACTION_EXTENSION_NAME, XR_VARJO_QUAD_VIEWS_EXTENSION_NAME, }, + .removed_extensions = { + // Extensions that are included, but actually different + XR_FB_TOUCH_CONTROLLER_PRO_EXTENSION_NAME, + XR_META_TOUCH_CONTROLLER_PLUS_EXTENSION_NAME, + }, }, -}; +}}; -static bool is_promoted(XrVersion version, const char * extension) -{ - auto it = promoted_extensions.find(XR_MAKE_VERSION(XR_VERSION_MAJOR(version), XR_VERSION_MINOR(version), 0)); - if (it == promoted_extensions.end()) - return false; - return it->second.contains(extension); -} +} // namespace static std::pair create_instance(XrInstanceCreateInfo & info, std::vector & in_extensions) { XrResult res; for (XrVersion version: { + XR_API_VERSION_1_1, XR_API_VERSION_1_0, }) { std::vector extensions; - std::ranges::copy_if( - in_extensions, - std::back_inserter(extensions), - [version](const char * ext) { return not is_promoted(version, ext); }); info.applicationInfo.apiVersion = version; - info.enabledExtensionNames = extensions.data(); - info.enabledExtensionCount = extensions.size(); + auto v_info = version_info::get(version); + if (v_info) + { + std::ranges::copy_if( + in_extensions, + std::back_inserter(extensions), + [v_info](const char * ext) { return v_info->shall_request(ext); }); + info.enabledExtensionNames = extensions.data(); + info.enabledExtensionCount = extensions.size(); + } + else + { + info.enabledExtensionNames = in_extensions.data(); + info.enabledExtensionCount = in_extensions.size(); + } XrInstance inst; res = xrCreateInstance(&info, &inst); if (XR_SUCCEEDED(res)) { - std::swap(in_extensions, extensions); + if (v_info) + { + extensions.insert(extensions.end(), v_info->promoted_extensions.begin(), v_info->promoted_extensions.end()); + std::swap(in_extensions, extensions); + } return {version, inst}; } spdlog::info("Failed to create OpenXR instance version {}: {}", From 3e6c407406d2064f0d4a113d2c54a5ea0aae9cc6 Mon Sep 17 00:00:00 2001 From: mitsuami-megane <173323057+mitsuami-megane@users.noreply.github.com> Date: Sun, 21 Sep 2025 10:10:16 +0900 Subject: [PATCH 39/52] update ja locale --- locale/ja/wivrn-dashboard.po | 56 ++++++++++++++++++------------------ locale/ja/wivrn.po | 4 +-- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/locale/ja/wivrn-dashboard.po b/locale/ja/wivrn-dashboard.po index f0e5f9c4..edba2a86 100644 --- a/locale/ja/wivrn-dashboard.po +++ b/locale/ja/wivrn-dashboard.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn-dashboard\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-09-12 21:34+0900\n" +"POT-Creation-Date: 2025-09-21 10:05+0900\n" "PO-Revision-Date: 2025-04-10 07:14+0900\n" "Last-Translator: Mitsuami Megane \n" "Language-Team: Japanese <>\n" @@ -442,19 +442,19 @@ msgctxt "encoder preset" msgid "Default preset" msgstr "デフォルト・プリセット" -#: dashboard/qml/SettingsPage.qml:145 +#: dashboard/qml/SettingsPage.qml:139 #, kde-format msgctxt "encoder preset" msgid "Low latency preset" msgstr "低遅延プリセット" -#: dashboard/qml/SettingsPage.qml:170 +#: dashboard/qml/SettingsPage.qml:158 #, kde-format msgctxt "encoder preset" msgid "Safe preset" msgstr "安定プリセット" -#: dashboard/qml/SettingsPage.qml:193 +#: dashboard/qml/SettingsPage.qml:181 #, kde-format msgid "" "To add a new encoder, split an existing encoder by clicking near an edge.\n" @@ -464,84 +464,84 @@ msgstr "" "う。\n" "角を引っ張って大きさの調整をできます。大きさゼロで削除となります。" -#: dashboard/qml/SettingsPage.qml:220 +#: dashboard/qml/SettingsPage.qml:208 #, kde-format msgid "Encoder:" msgstr "エンコーダー" -#: dashboard/qml/SettingsPage.qml:229 +#: dashboard/qml/SettingsPage.qml:217 #, kde-format msgctxt "automatic encoder setup" msgid "Auto" msgstr "自動" -#: dashboard/qml/SettingsPage.qml:234 +#: dashboard/qml/SettingsPage.qml:222 #, kde-format msgid "nvenc (NVIDIA GPUs)" msgstr "nvenc (NVIDIA GPU)" -#: dashboard/qml/SettingsPage.qml:239 +#: dashboard/qml/SettingsPage.qml:227 #, kde-format msgid "vaapi (AMD and Intel GPUs)" msgstr "vaapi (AMDやIntel GPU)" -#: dashboard/qml/SettingsPage.qml:244 +#: dashboard/qml/SettingsPage.qml:232 #, kde-format msgid "x264 (software encoding)" msgstr "x264 (ソフトエンコード)" -#: dashboard/qml/SettingsPage.qml:249 +#: dashboard/qml/SettingsPage.qml:237 #, kde-format msgid "Vulkan (Vulkan Video)" msgstr "Vulkan (Vulkan Video)" -#: dashboard/qml/SettingsPage.qml:272 +#: dashboard/qml/SettingsPage.qml:260 #, kde-format msgid "\"Auto\" will use hardware acceleration if it is available" msgstr "「自動」で当システムにとって最も安定した設定を使用します。" -#: dashboard/qml/SettingsPage.qml:278 +#: dashboard/qml/SettingsPage.qml:266 #, kde-format msgid "Codec:" msgstr "コーデック" -#: dashboard/qml/SettingsPage.qml:285 +#: dashboard/qml/SettingsPage.qml:273 #, kde-format msgctxt "automatic codec setup" msgid "Auto" msgstr "自動" -#: dashboard/qml/SettingsPage.qml:289 +#: dashboard/qml/SettingsPage.qml:277 #, kde-format msgid "H.264" msgstr "H.264" -#: dashboard/qml/SettingsPage.qml:293 +#: dashboard/qml/SettingsPage.qml:281 #, kde-format msgid "H.265" msgstr "H.265" -#: dashboard/qml/SettingsPage.qml:297 +#: dashboard/qml/SettingsPage.qml:285 #, kde-format msgid "AV1" msgstr "AV1" -#: dashboard/qml/SettingsPage.qml:319 +#: dashboard/qml/SettingsPage.qml:307 #, kde-format msgid "Advanced options" msgstr "詳細設定" -#: dashboard/qml/SettingsPage.qml:325 +#: dashboard/qml/SettingsPage.qml:313 #, kde-format msgid "Enable debug window" msgstr "デバッグ・ウィンドウを表示する" -#: dashboard/qml/SettingsPage.qml:332 +#: dashboard/qml/SettingsPage.qml:320 #, kde-format msgid "Enable SteamVR tracked devices support" msgstr "SteamVR・ライトハウス・トラッキング" -#: dashboard/qml/SettingsPage.qml:335 +#: dashboard/qml/SettingsPage.qml:323 #, kde-format msgid "" "Allows the use of lighthouse-based controllers and trackers.\n" @@ -554,44 +554,44 @@ msgstr "" "すべてのデバイスの電源が入ってからHMDを接続しましょう。\n" "キャリブレーションはmotocなどのソフトウェアで行います。" -#: dashboard/qml/SettingsPage.qml:343 +#: dashboard/qml/SettingsPage.qml:331 #, kde-format msgid "Custom adb location" msgstr "特定なADBの場所" -#: dashboard/qml/SettingsPage.qml:354 +#: dashboard/qml/SettingsPage.qml:342 #, kde-format msgid "Adb location:" msgstr "ADBの場所:" -#: dashboard/qml/SettingsPage.qml:363 +#: dashboard/qml/SettingsPage.qml:351 #, kde-format msgctxt "browse a file to choose the adb binary" msgid "Browse" msgstr "検索する" -#: dashboard/qml/SettingsPage.qml:373 +#: dashboard/qml/SettingsPage.qml:361 #, kde-format msgid "Default" msgstr "デフォルト" -#: dashboard/qml/SettingsPage.qml:387 +#: dashboard/qml/SettingsPage.qml:375 #, kde-format msgctxt "set a custom OpenVR compatibility library" msgid "Custom" msgstr "カスタム" -#: dashboard/qml/SettingsPage.qml:392 +#: dashboard/qml/SettingsPage.qml:380 #, kde-format msgid "Disabled" msgstr "無し" -#: dashboard/qml/SettingsPage.qml:400 +#: dashboard/qml/SettingsPage.qml:388 #, kde-format msgid "OpenVR compatibility library:" msgstr "OpenVR実装ライブラリー" -#: dashboard/qml/SettingsPage.qml:426 +#: dashboard/qml/SettingsPage.qml:414 #, kde-format msgid "Library path, excluding bin/linux64/vrclient.so" msgstr "ライブラリーの場所(bin/linux64/vrclient.so 無し)" diff --git a/locale/ja/wivrn.po b/locale/ja/wivrn.po index 36a8e28d..6c99071e 100644 --- a/locale/ja/wivrn.po +++ b/locale/ja/wivrn.po @@ -155,11 +155,11 @@ msgstr "日本語" #: client/scenes/lobby_gui.cpp:814 msgid "Language" -msgstr "" +msgstr "言語" #: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:816 msgid "System language" -msgstr "" +msgstr "デバイス言語" #: client/scenes/lobby_gui.cpp:841 msgid "Refresh rate" From 6f696a92fbbe78fcd0dc5026b7f7a001188d4a86 Mon Sep 17 00:00:00 2001 From: Marc Meier Date: Mon, 22 Sep 2025 14:58:09 +0200 Subject: [PATCH 40/52] Add missing stdlib includes to improve portability (#499) --- common/utils/load_icon.cpp | 1 + dashboard/wivrn_server.cpp | 1 + server/driver/wivrn_foveation.cpp | 1 + server/driver/wivrn_foveation.h | 1 + server/encoder/encoder_settings.cpp | 1 + 5 files changed, 5 insertions(+) diff --git a/common/utils/load_icon.cpp b/common/utils/load_icon.cpp index a85fb9db..08dbfe17 100644 --- a/common/utils/load_icon.cpp +++ b/common/utils/load_icon.cpp @@ -20,6 +20,7 @@ #include #include +#include #include #include #include diff --git a/dashboard/wivrn_server.cpp b/dashboard/wivrn_server.cpp index 19f3219d..f03639ec 100644 --- a/dashboard/wivrn_server.cpp +++ b/dashboard/wivrn_server.cpp @@ -29,6 +29,7 @@ #include #include #include +#include #if WIVRN_CHECK_CAPSYSNICE #include diff --git a/server/driver/wivrn_foveation.cpp b/server/driver/wivrn_foveation.cpp index 747ef6e5..8670c7fd 100644 --- a/server/driver/wivrn_foveation.cpp +++ b/server/driver/wivrn_foveation.cpp @@ -28,6 +28,7 @@ #include "xrt/xrt_defines.h" #include +#include #include #include #include diff --git a/server/driver/wivrn_foveation.h b/server/driver/wivrn_foveation.h index e4951fde..9b84b19d 100644 --- a/server/driver/wivrn_foveation.h +++ b/server/driver/wivrn_foveation.h @@ -25,6 +25,7 @@ #include "xrt/xrt_device.h" #include "utils/singleton.h" +#include #include struct render_resources; diff --git a/server/encoder/encoder_settings.cpp b/server/encoder/encoder_settings.cpp index 7a383007..16464648 100644 --- a/server/encoder/encoder_settings.cpp +++ b/server/encoder/encoder_settings.cpp @@ -24,6 +24,7 @@ #include "video_encoder.h" #include "wivrn_packets.h" +#include #include #include #include From d8707e0b4cfe4ac7653ce424e4b4345651bb1156 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 22 Sep 2025 21:37:16 +0200 Subject: [PATCH 41/52] Add ~/.steam to flatpak permissions --- flatpak/io.github.wivrn.wivrn.yml.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flatpak/io.github.wivrn.wivrn.yml.in b/flatpak/io.github.wivrn.wivrn.yml.in index 3e5e1235..3bc9e92a 100644 --- a/flatpak/io.github.wivrn.wivrn.yml.in +++ b/flatpak/io.github.wivrn.wivrn.yml.in @@ -26,8 +26,9 @@ finish-args: # List applications from $XDG_DATA_DIRS - --filesystem=host-os:ro - --filesystem=xdg-data/applications:ro + # List Steam games - --filesystem=xdg-data/Steam:ro - # List flatpak Steam games + - --filesystem=~/.steam:ro - --filesystem=~/.var/app/com.valvesoftware.Steam:ro # Pipewire - --filesystem=xdg-run/pipewire-0 From 668a94bae01498183213d87dfea247f8a5f116c5 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 22 Sep 2025 22:05:00 +0200 Subject: [PATCH 42/52] Update OpenComposite (sync with flathub version) --- flatpak/io.github.wivrn.wivrn.yml.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flatpak/io.github.wivrn.wivrn.yml.in b/flatpak/io.github.wivrn.wivrn.yml.in index 3bc9e92a..abb34416 100644 --- a/flatpak/io.github.wivrn.wivrn.yml.in +++ b/flatpak/io.github.wivrn.wivrn.yml.in @@ -281,7 +281,7 @@ modules: sources: - type: git url: https://gitlab.com/znixian/OpenOVR.git - tag: 538639b86c5c71223f11040b09479e5c0a83078c + tag: cff07db75c4823afe93ed7027b03d5f7bc86f164 - name: xrizer buildsystem: simple From 13c7f8fbc25552dc6a98ae937c5e0751de125373 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 22 Sep 2025 09:50:25 +0200 Subject: [PATCH 43/52] Drop GNU c++ extensions --- CMakeLists.txt | 1 + server/driver/wivrn_session.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c3abbe2..6842a8fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,7 @@ set(CMAKE_POLICY_DEFAULT_CMP0069 NEW) set(CMAKE_POLICY_DEFAULT_CMP0077 NEW) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_STANDARD 23) set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) diff --git a/server/driver/wivrn_session.cpp b/server/driver/wivrn_session.cpp index 5229f1da..0144461b 100644 --- a/server/driver/wivrn_session.cpp +++ b/server/driver/wivrn_session.cpp @@ -350,7 +350,7 @@ xrt_result_t wivrn::wivrn_session::create_session(std::unique_ptrfeedback_csv.open(dump_file); } - self->thread = std::jthread(&wivrn_session::run, self.get()); + self->thread = std::jthread([s = self.get()](auto stop_token) { return s->run(stop_token); }); *out_xsysd = self.release(); return XRT_SUCCESS; } From 6e9afab96b7b8e58ecc9b94d975a4e9fdb257562 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 22 Sep 2025 22:55:17 +0200 Subject: [PATCH 44/52] Update Monado --- flake.nix | 2 +- monado-rev | 2 +- ...001-c-multi-early-wake-of-compositor.patch | 4 +- ...02-ipc-server-Always-listen-to-stdin.patch | 4 +- .../monado/0003-Use-extern-socket-fd.patch | 4 +- ...vironment-blend-mode-selection-logic.patch | 4 +- ...main-allow-custom-pacing-app-factory.patch | 82 ------------------- ... 0005-st-oxr-forward-0-refresh-rate.patch} | 4 +- ...6-Replace-distortion-with-foveation.patch} | 4 +- ...7-Limit-foveation-samples-per-pixel.patch} | 4 +- 10 files changed, 16 insertions(+), 98 deletions(-) delete mode 100644 patches/monado/0005-c-main-allow-custom-pacing-app-factory.patch rename patches/monado/{0006-st-oxr-forward-0-refresh-rate.patch => 0005-st-oxr-forward-0-refresh-rate.patch} (91%) rename patches/monado/{0007-Replace-distortion-with-foveation.patch => 0006-Replace-distortion-with-foveation.patch} (99%) rename patches/monado/{0008-Limit-foveation-samples-per-pixel.patch => 0007-Limit-foveation-samples-per-pixel.patch} (92%) diff --git a/flake.nix b/flake.nix index 1415ce51..ff79204d 100644 --- a/flake.nix +++ b/flake.nix @@ -44,7 +44,7 @@ # Keep in sync with CMakeLists.txt monado rev rev = builtins.readFile ./monado-rev; # Nix will output the correct hash when it doesn't match - hash = "sha256-DPIvJb23bK7SDjZr9mK0Wt6Zbo3Ari3Ar8TtPe5QgKY="; + hash = "sha256-K8DbHvyDmNwOxTxhTn9e/6++9wmY14ryVrqDOQCXcsw="; }; }; diff --git a/monado-rev b/monado-rev index dfe2e07c..63703cdc 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -7a4018e2d89151e60e562fac79eba90ca7a328d8 +c4417629ac099e24001bb50bd327b769901cbb0a diff --git a/patches/monado/0001-c-multi-early-wake-of-compositor.patch b/patches/monado/0001-c-multi-early-wake-of-compositor.patch index 73ebe4b2..d13bc098 100644 --- a/patches/monado/0001-c-multi-early-wake-of-compositor.patch +++ b/patches/monado/0001-c-multi-early-wake-of-compositor.patch @@ -1,7 +1,7 @@ -From 5a4505efc60c9252176b73775278b6f5b775fe8e Mon Sep 17 00:00:00 2001 +From 84758f77a11a31e144d2120a465a954287eb0f67 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 22 Oct 2024 15:23:19 +0200 -Subject: [PATCH 1/8] c/multi: early wake of compositor +Subject: [PATCH 1/7] c/multi: early wake of compositor --- .../compositor/multi/comp_multi_compositor.c | 14 +++++++++ diff --git a/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch b/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch index 8665fdaf..e8d6e001 100644 --- a/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch +++ b/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch @@ -1,7 +1,7 @@ -From e118393925294a3b57cbf149fdc28685b27aec94 Mon Sep 17 00:00:00 2001 +From b73d7a32daa626ae401543e1c3ed8fd8d8290f8d Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 2 Apr 2024 17:14:42 +0200 -Subject: [PATCH 2/8] ipc/server: Always listen to stdin +Subject: [PATCH 2/7] ipc/server: Always listen to stdin --- src/xrt/ipc/server/ipc_server_mainloop_linux.c | 2 +- diff --git a/patches/monado/0003-Use-extern-socket-fd.patch b/patches/monado/0003-Use-extern-socket-fd.patch index 65a3f826..ff7baad0 100644 --- a/patches/monado/0003-Use-extern-socket-fd.patch +++ b/patches/monado/0003-Use-extern-socket-fd.patch @@ -1,7 +1,7 @@ -From d4b4c209e9106edf5e6b1c3efbcac2b88364518b Mon Sep 17 00:00:00 2001 +From a85beae795aba8f82abab849e9e5c2ce74511357 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 8 Oct 2024 22:13:15 +0200 -Subject: [PATCH 3/8] Use extern socket fd +Subject: [PATCH 3/7] Use extern socket fd --- src/xrt/ipc/server/ipc_server_mainloop_linux.c | 8 ++++++++ diff --git a/patches/monado/0004-change-environment-blend-mode-selection-logic.patch b/patches/monado/0004-change-environment-blend-mode-selection-logic.patch index 6133b855..959f1639 100644 --- a/patches/monado/0004-change-environment-blend-mode-selection-logic.patch +++ b/patches/monado/0004-change-environment-blend-mode-selection-logic.patch @@ -1,7 +1,7 @@ -From a0eafb7370e319386bdd790059e2f13147706a9f Mon Sep 17 00:00:00 2001 +From f472a02f86bd98e0cb88847fd8c9104bbd5c74f5 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 4/8] change environment blend mode selection logic +Subject: [PATCH 4/7] change environment blend mode selection logic --- src/xrt/compositor/multi/comp_multi_system.c | 26 +++++++++++++------- diff --git a/patches/monado/0005-c-main-allow-custom-pacing-app-factory.patch b/patches/monado/0005-c-main-allow-custom-pacing-app-factory.patch deleted file mode 100644 index 640a7f9d..00000000 --- a/patches/monado/0005-c-main-allow-custom-pacing-app-factory.patch +++ /dev/null @@ -1,82 +0,0 @@ -From 406114aa32a71e04b43b44b0aec04472f9fa82c3 Mon Sep 17 00:00:00 2001 -From: Patrick Nicolas -Date: Thu, 27 Feb 2025 22:45:36 +0100 -Subject: [PATCH 5/8] c/main: allow custom pacing app factory - ---- - src/xrt/compositor/main/comp_compositor.c | 10 ++++++---- - src/xrt/compositor/main/comp_main_interface.h | 4 ++++ - src/xrt/targets/common/target_instance.c | 2 +- - 3 files changed, 11 insertions(+), 5 deletions(-) - -diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c -index 805683d70..8220808ff 100644 ---- a/src/xrt/compositor/main/comp_compositor.c -+++ b/src/xrt/compositor/main/comp_compositor.c -@@ -987,6 +987,7 @@ compositor_init_renderer(struct comp_compositor *c) - xrt_result_t - comp_main_create_system_compositor(struct xrt_device *xdev, - const struct comp_target_factory *ctf, -+ struct u_pacing_app_factory *upaf, - struct xrt_system_compositor **out_xsysc) - { - COMP_TRACE_MARKER(); -@@ -1187,10 +1188,11 @@ comp_main_create_system_compositor(struct xrt_device *xdev, - } - - // Standard app pacer. -- struct u_pacing_app_factory *upaf = NULL; -- xrt_result_t xret = u_pa_factory_create(&upaf); -- assert(xret == XRT_SUCCESS && upaf != NULL); -- (void)xret; -+ if (upaf == NULL) { -+ xrt_result_t xret = u_pa_factory_create(&upaf); -+ assert(xret == XRT_SUCCESS && upaf != NULL); -+ (void)xret; -+ } - - return comp_multi_create_system_compositor(&c->base.base, upaf, sys_info, !c->deferred_surface, out_xsysc); - } -diff --git a/src/xrt/compositor/main/comp_main_interface.h b/src/xrt/compositor/main/comp_main_interface.h -index 0f0678358..f60568b43 100644 ---- a/src/xrt/compositor/main/comp_main_interface.h -+++ b/src/xrt/compositor/main/comp_main_interface.h -@@ -15,6 +15,7 @@ - #include "xrt/xrt_compositor.h" - - struct comp_target_factory; -+struct u_pacing_app_factory; - - #ifdef __cplusplus - extern "C" { -@@ -31,11 +32,14 @@ extern "C" { - * @param xdev The head device - * @param ctf A compositor target factory to force the output device, must remain valid for the lifetime of the - * compositor. If NULL, factory is automatically selected -+ * @param upaf A pacing app factory to customize the application pacer, compositor takes ownership. -+ * If NULL, a default factory is used - * @param out_xsysc The output compositor - */ - xrt_result_t - comp_main_create_system_compositor(struct xrt_device *xdev, - const struct comp_target_factory *ctf, -+ struct u_pacing_app_factory *upaf, - struct xrt_system_compositor **out_xsysc); - - -diff --git a/src/xrt/targets/common/target_instance.c b/src/xrt/targets/common/target_instance.c -index 617561c37..e10ba8358 100644 ---- a/src/xrt/targets/common/target_instance.c -+++ b/src/xrt/targets/common/target_instance.c -@@ -109,7 +109,7 @@ t_instance_create_system(struct xrt_instance *xinst, - - #ifdef XRT_MODULE_COMPOSITOR_MAIN - if (xret == XRT_SUCCESS && xsysc == NULL) { -- xret = comp_main_create_system_compositor(head, NULL, &xsysc); -+ xret = comp_main_create_system_compositor(head, NULL, NULL, &xsysc); - } - #else - if (!use_null) { --- -2.51.0 - diff --git a/patches/monado/0006-st-oxr-forward-0-refresh-rate.patch b/patches/monado/0005-st-oxr-forward-0-refresh-rate.patch similarity index 91% rename from patches/monado/0006-st-oxr-forward-0-refresh-rate.patch rename to patches/monado/0005-st-oxr-forward-0-refresh-rate.patch index 88852ab8..11da7918 100644 --- a/patches/monado/0006-st-oxr-forward-0-refresh-rate.patch +++ b/patches/monado/0005-st-oxr-forward-0-refresh-rate.patch @@ -1,7 +1,7 @@ -From aa73e7d05747374760b22333495cde8c3d9d3f10 Mon Sep 17 00:00:00 2001 +From 7c01c47b2a1c4da040e0d25f4b9cb760ae88aa25 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 15 Mar 2025 22:19:48 +0100 -Subject: [PATCH 6/8] st/oxr: forward 0 refresh rate +Subject: [PATCH 5/7] st/oxr: forward 0 refresh rate --- src/xrt/state_trackers/oxr/oxr_api_session.c | 6 +----- diff --git a/patches/monado/0007-Replace-distortion-with-foveation.patch b/patches/monado/0006-Replace-distortion-with-foveation.patch similarity index 99% rename from patches/monado/0007-Replace-distortion-with-foveation.patch rename to patches/monado/0006-Replace-distortion-with-foveation.patch index b15553ab..9039fe7f 100644 --- a/patches/monado/0007-Replace-distortion-with-foveation.patch +++ b/patches/monado/0006-Replace-distortion-with-foveation.patch @@ -1,7 +1,7 @@ -From 3172d537740d2a334dbb009f63c6e6f039554181 Mon Sep 17 00:00:00 2001 +From 240edeee8136b72b0c108b39f9eb032138683a46 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 11 Sep 2024 22:56:29 +0200 -Subject: [PATCH 7/8] Replace distortion with foveation +Subject: [PATCH 6/7] Replace distortion with foveation --- src/xrt/compositor/CMakeLists.txt | 4 +- diff --git a/patches/monado/0008-Limit-foveation-samples-per-pixel.patch b/patches/monado/0007-Limit-foveation-samples-per-pixel.patch similarity index 92% rename from patches/monado/0008-Limit-foveation-samples-per-pixel.patch rename to patches/monado/0007-Limit-foveation-samples-per-pixel.patch index 4a85e429..38741648 100644 --- a/patches/monado/0008-Limit-foveation-samples-per-pixel.patch +++ b/patches/monado/0007-Limit-foveation-samples-per-pixel.patch @@ -1,7 +1,7 @@ -From 4de55a9bc2ab7d3931d38b6697268af5421c0328 Mon Sep 17 00:00:00 2001 +From db19f48adcc6e9395bf93a920623b48b86a9f378 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sun, 31 Aug 2025 17:05:49 +0200 -Subject: [PATCH 8/8] Limit foveation samples per pixel +Subject: [PATCH 7/7] Limit foveation samples per pixel --- src/xrt/compositor/shaders/distortion.comp | 12 +++++++++--- From e3356acc163ba7a93c062dbfa269645a2f29a79c Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 22 Sep 2025 23:05:08 +0200 Subject: [PATCH 45/52] Update Monado --- flake.nix | 2 +- monado-rev | 2 +- ...0008-vk-fix-video-encode-queue-index.patch | 24 +++++++++++++++++++ server/driver/wivrn_comp_target.cpp | 6 ++--- server/utils/wivrn_vk_bundle.cpp | 8 +++---- 5 files changed, 33 insertions(+), 9 deletions(-) create mode 100644 patches/monado/0008-vk-fix-video-encode-queue-index.patch diff --git a/flake.nix b/flake.nix index ff79204d..5a729387 100644 --- a/flake.nix +++ b/flake.nix @@ -44,7 +44,7 @@ # Keep in sync with CMakeLists.txt monado rev rev = builtins.readFile ./monado-rev; # Nix will output the correct hash when it doesn't match - hash = "sha256-K8DbHvyDmNwOxTxhTn9e/6++9wmY14ryVrqDOQCXcsw="; + hash = "sha256-f1lcFVH5Ww7v2Mjubtn8/nEnOsRt9gUhFeYgcSXSfeE="; }; }; diff --git a/monado-rev b/monado-rev index 63703cdc..c59bcf4e 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -c4417629ac099e24001bb50bd327b769901cbb0a +d5cf67f6aa259b2c4ebbc6fa3211e6dde51c8970 diff --git a/patches/monado/0008-vk-fix-video-encode-queue-index.patch b/patches/monado/0008-vk-fix-video-encode-queue-index.patch new file mode 100644 index 00000000..b8df231f --- /dev/null +++ b/patches/monado/0008-vk-fix-video-encode-queue-index.patch @@ -0,0 +1,24 @@ +From a17589c9f77a5e5c3a56685017115fe07f9fd9cc Mon Sep 17 00:00:00 2001 +From: Patrick Nicolas +Date: Mon, 22 Sep 2025 23:33:31 +0200 +Subject: [PATCH] vk: fix video encode queue index + +--- + src/xrt/auxiliary/vk/vk_bundle_init.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/xrt/auxiliary/vk/vk_bundle_init.c b/src/xrt/auxiliary/vk/vk_bundle_init.c +index 01ce0c2f1..c4c63b608 100644 +--- a/src/xrt/auxiliary/vk/vk_bundle_init.c ++++ b/src/xrt/auxiliary/vk/vk_bundle_init.c +@@ -1513,6 +1513,7 @@ vk_create_device(struct vk_bundle *vk, + vk->vkGetDeviceQueue(vk->device, vk->main_queue.family_index, 0, &vk->main_queue.queue); + #if defined(VK_KHR_video_encode_queue) + if (vk->encode_queue.family_index != VK_QUEUE_FAMILY_IGNORED) { ++ vk->encode_queue.index = 0; + vk->vkGetDeviceQueue(vk->device, vk->encode_queue.family_index, 0, &vk->encode_queue.queue); + } + #endif +-- +2.51.0 + diff --git a/server/driver/wivrn_comp_target.cpp b/server/driver/wivrn_comp_target.cpp index 46a0be4e..d3060ce5 100644 --- a/server/driver/wivrn_comp_target.cpp +++ b/server/driver/wivrn_comp_target.cpp @@ -305,7 +305,7 @@ static bool comp_wivrn_init_post_vulkan(struct comp_target * ct, uint32_t prefer cn->wivrn_bundle->device, { .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer, - .queueFamilyIndex = vk->queue_family_index, + .queueFamilyIndex = vk->main_queue.family_index, }); cn->wivrn_bundle->name(cn->command_pool, "comp target command pool"); } @@ -584,8 +584,8 @@ static VkResult comp_wivrn_present(struct comp_target * ct, .dstAccessMask = vk::AccessFlagBits::eMemoryWrite, .oldLayout = vk::ImageLayout::eTransferSrcOptimal, .newLayout = vk::ImageLayout::eVideoEncodeSrcKHR, - .srcQueueFamilyIndex = vk->queue_family_index, - .dstQueueFamilyIndex = vk->encode_queue_family_index, + .srcQueueFamilyIndex = vk->main_queue.family_index, + .dstQueueFamilyIndex = vk->encode_queue.family_index, .image = psc_image.image, .subresourceRange = {.aspectMask = vk::ImageAspectFlagBits::eColor, .baseMipLevel = 0, diff --git a/server/utils/wivrn_vk_bundle.cpp b/server/utils/wivrn_vk_bundle.cpp index 5d9b688a..088f77c3 100644 --- a/server/utils/wivrn_vk_bundle.cpp +++ b/server/utils/wivrn_vk_bundle.cpp @@ -89,11 +89,11 @@ wivrn::wivrn_vk_bundle::wivrn_vk_bundle(vk_bundle & vk, std::span .vulkanApiVersion = VK_MAKE_VERSION(1, 3, 0), // FIXME: sync with wivrn_session.cpp }, vk.has_EXT_debug_utils), - queue(device, vk.queue_family_index, vk.queue_index), - queue_family_index(vk.queue_family_index), + queue(device, vk.main_queue.family_index, vk.main_queue.index), + queue_family_index(vk.main_queue.family_index), #ifdef VK_KHR_video_encode_queue - encode_queue(make_queue(device, vk.encode_queue, vk.encode_queue_family_index, vk.encode_queue_index)), - encode_queue_family_index(vk.encode_queue_family_index), + encode_queue(make_queue(device, vk.encode_queue.queue, vk.encode_queue.family_index, vk.encode_queue.index)), + encode_queue_family_index(vk.encode_queue.family_index), #else encode_queue(nullptr), encode_queue_family_index(vk::QueueFamilyIgnored), From 8bc6a3f388672363f6a36f9a33da2d2d7f2881f0 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 22 Sep 2025 23:12:29 +0200 Subject: [PATCH 46/52] Update Monado --- flake.nix | 2 +- monado-rev | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 5a729387..93304fe4 100644 --- a/flake.nix +++ b/flake.nix @@ -44,7 +44,7 @@ # Keep in sync with CMakeLists.txt monado rev rev = builtins.readFile ./monado-rev; # Nix will output the correct hash when it doesn't match - hash = "sha256-f1lcFVH5Ww7v2Mjubtn8/nEnOsRt9gUhFeYgcSXSfeE="; + hash = "sha256-asb4uwuu+UEgznlOoAka+xG6Zj68lPHWiPN072LpTQQ="; }; }; diff --git a/monado-rev b/monado-rev index c59bcf4e..e38ace22 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -d5cf67f6aa259b2c4ebbc6fa3211e6dde51c8970 +62013b7403be3d9e6e8b983787331219f5925d0a From f159e58c12e802620a1596f364cb67bb7b878450 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 23 Sep 2025 16:36:56 +0200 Subject: [PATCH 47/52] Abbreviate pressure vessel variable in flatpak --- server/main.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/server/main.cpp b/server/main.cpp index 970e8260..fd5e6229 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -140,6 +140,20 @@ static void append_delim(std::string & to, std::string_view what, char delim) to += what; } +// search for the directory in path named needle +// with d = /a/b/c/d/e and needle = c +// return /a/b/c +// if it can't be found, return the full path +static std::filesystem::path find_dir(const std::filesystem::path & d, const std::filesystem::path & needle) +{ + for (auto copy = d; not copy.empty(); copy = copy.parent_path()) + { + if (copy.filename() == needle) + return copy; + } + return d; +} + static std::string steam_command() { std::string command; @@ -153,7 +167,7 @@ static std::string steam_command() if (p.starts_with("/usr")) append_delim(command, " VR_OVERRIDE=/run/host" + p, ' '); else if (p.starts_with("/var")) - append_delim(command, "PRESSURE_VESSEL_FILESYSTEMS_RW=" + p, ' '); + append_delim(command, "PRESSURE_VESSEL_FILESYSTEMS_RW=" + find_dir(p, "io.github.wivrn.wivrn").string(), ' '); } if (not command.empty()) From a193b4084cb8a071f19aa71a1e859c09a5a74dce Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 23 Sep 2025 18:01:33 +0200 Subject: [PATCH 48/52] Fix null byte written in json file --- client/scenes/lobby_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scenes/lobby_gui.cpp b/client/scenes/lobby_gui.cpp index 71e5a483..fce6fce7 100644 --- a/client/scenes/lobby_gui.cpp +++ b/client/scenes/lobby_gui.cpp @@ -135,7 +135,7 @@ static void InputText(const char * label, std::string & text, const ImVec2 & siz if (data->EventFlag == ImGuiInputTextFlags_CallbackResize) { assert(text.data() == data->Buf); - text.resize(data->BufTextLen + 1); + text.resize(data->BufTextLen); data->Buf = text.data(); } From 66ca73981d0c6c079b34566fa53a7a415c403611 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 24 Sep 2025 07:38:35 +0200 Subject: [PATCH 49/52] Fix tagged version download --- cmake/GitVersion.cmake | 1 - common/CMakeLists.txt | 1 - common/version.cpp.in | 11 +++++++++++ common/version.h | 2 ++ dashboard/apk_installer.cpp | 4 +--- server/main.cpp | 6 +++--- 6 files changed, 17 insertions(+), 8 deletions(-) diff --git a/cmake/GitVersion.cmake b/cmake/GitVersion.cmake index 5732ce39..431a7520 100644 --- a/cmake/GitVersion.cmake +++ b/cmake/GitVersion.cmake @@ -13,7 +13,6 @@ execute_process( if (GIT_DESC) string(STRIP ${GIT_DESC} GIT_DESC) - string(REGEX REPLACE "^v([0-9])" "\\1" GIT_DESC ${GIT_DESC}) message(STATUS "Setting version to ${GIT_DESC} from git") else() set(GIT_DESC v${CMAKE_PROJECT_VERSION}) diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index fa2db43c..96a2c7b7 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -7,7 +7,6 @@ else() endif() if (GIT_DESC) - string(REGEX REPLACE "^v([0-9])" "\\1" GIT_DESC ${GIT_DESC}) configure_file(version.cpp.in version.cpp) else () add_custom_target(wivrn-version ALL diff --git a/common/version.cpp.in b/common/version.cpp.in index 9cd7a709..06b78254 100644 --- a/common/version.cpp.in +++ b/common/version.cpp.in @@ -17,6 +17,9 @@ * along with this program. If not, see . */ +#include +#include + namespace wivrn { extern const char git_version[]; @@ -24,4 +27,12 @@ namespace wivrn extern const char git_commit[]; const char git_commit[] = "@GIT_COMMIT@"; + +const char* display_version() +{ + if (std::size(git_version) > 2 and git_version[0] == 'v' and isdigit(git_version[1])) + return git_version + 1; + else + return git_version; +} } diff --git a/common/version.h b/common/version.h index 4e33d8ea..77c60887 100644 --- a/common/version.h +++ b/common/version.h @@ -4,4 +4,6 @@ namespace wivrn { extern const char git_version[]; extern const char git_commit[]; + +const char * display_version(); } // namespace wivrn diff --git a/dashboard/apk_installer.cpp b/dashboard/apk_installer.cpp index df2f1568..288574d9 100644 --- a/dashboard/apk_installer.cpp +++ b/dashboard/apk_installer.cpp @@ -42,9 +42,7 @@ bool apk_installer::isTagged() const QString apk_installer::currentVersion() const { - if (wivrn::git_version[0] == 'v') - return &wivrn::git_version[1]; - return wivrn::git_version; + return wivrn::display_version(); } QCoro::Task<> apk_installer::doRefreshLatestVersion() diff --git a/server/main.cpp b/server/main.cpp index fd5e6229..9867dacc 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -354,7 +354,7 @@ void start_publishing() sprintf(protocol_string, "%016" PRIx64, wivrn::protocol_version); std::map TXT = { {"protocol", protocol_string}, - {"version", wivrn::git_version}, + {"version", wivrn::display_version()}, {"cookie", server_cookie()}, }; publisher.emplace(poll_api, hostname(), "_wivrn._tcp", wivrn::default_port, TXT); @@ -889,7 +889,7 @@ auto create_dbus_connection() int inner_main(int argc, char * argv[], bool show_instructions) { - std::cerr << "WiVRn " << wivrn::git_version << " starting" << std::endl; + std::cerr << "WiVRn " << wivrn::display_version() << " starting" << std::endl; if (show_instructions) { if (auto command = steam_command(); not command.empty()) @@ -998,7 +998,7 @@ int main(int argc, char * argv[]) if (*version_flag) { - std::cout << "WiVRn version " << wivrn::git_version << std::endl; + std::cout << "WiVRn version " << wivrn::display_version() << std::endl; return 0; } From 5873de80b896758f569b77f8df05f9302637ddc9 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 24 Sep 2025 19:21:20 +0200 Subject: [PATCH 50/52] Don't shard when using TCP --- server/driver/wivrn_connection.h | 5 +++++ server/driver/wivrn_session.h | 4 ++++ server/encoder/video_encoder.cpp | 6 ++++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/server/driver/wivrn_connection.h b/server/driver/wivrn_connection.h index e0b6296e..78b4e010 100644 --- a/server/driver/wivrn_connection.h +++ b/server/driver/wivrn_connection.h @@ -64,6 +64,11 @@ public: wivrn_connection(const wivrn_connection &) = delete; wivrn_connection & operator=(const wivrn_connection &) = delete; + bool has_stream() const + { + return stream; + } + bool is_active() { return active; diff --git a/server/driver/wivrn_session.h b/server/driver/wivrn_session.h index c7af5d5c..02e139b2 100644 --- a/server/driver/wivrn_session.h +++ b/server/driver/wivrn_session.h @@ -193,6 +193,10 @@ public: void operator()(to_monado::disconnect &&); void operator()(to_monado::set_bitrate &&); + bool has_stream() + { + return connection->has_stream(); + } template void send_stream(T && packet) { diff --git a/server/encoder/video_encoder.cpp b/server/encoder/video_encoder.cpp index 8bbaaffe..a45d084e 100644 --- a/server/encoder/video_encoder.cpp +++ b/server/encoder/video_encoder.cpp @@ -305,13 +305,15 @@ void video_encoder::SendData(std::span data, bool end_of_frame, bool co timing_info.send_begin = clock.to_headset(os_monotonic_get_ns()); } + ssize_t max_payload_size = cnx->has_stream() ? to_headset::video_stream_data_shard::max_payload_size : std::numeric_limits::max(); + shard.flags = to_headset::video_stream_data_shard::start_of_slice; auto begin = data.begin(); auto end = data.end(); while (begin != end) { - const size_t max_payload_size = std::max(0z, ssize_t(to_headset::video_stream_data_shard::max_payload_size) - ssize_t(serialized_size(shard.view_info))); - auto next = std::min(end, begin + max_payload_size); + const size_t payload_size = std::max(0z, max_payload_size - ssize_t(serialized_size(shard.view_info))); + auto next = std::min(end, begin + payload_size); if (next == end) { shard.flags |= to_headset::video_stream_data_shard::end_of_slice; From 1290a15b7fef08cb0b4b36f8727c0007a5d63ed7 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 24 Sep 2025 22:52:14 +0200 Subject: [PATCH 51/52] Fix fr typo --- locale/fr/wivrn-dashboard.po | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/locale/fr/wivrn-dashboard.po b/locale/fr/wivrn-dashboard.po index fdcfe332..dcb47e64 100644 --- a/locale/fr/wivrn-dashboard.po +++ b/locale/fr/wivrn-dashboard.po @@ -141,29 +141,29 @@ msgstr "Casques" #, kde-format msgid "Last connection: %1 second ago" msgid_plural "Last connection: %1 seconds ago" -msgstr[0] "Dernière connexion : il a y %1 seconde" -msgstr[1] "Dernière connexion : il a y %1 secondes" +msgstr[0] "Dernière connexion : il y a %1 seconde" +msgstr[1] "Dernière connexion : il y a %1 secondes" #: dashboard/qml/HeadsetsPage.qml:31 #, kde-format msgid "Last connection: %1 minute ago" msgid_plural "Last connection: %1 minutes ago" -msgstr[0] "Dernière connexion : il a y %1 minute" -msgstr[1] "Dernière connexion : il a y %1 minutes" +msgstr[0] "Dernière connexion : il y a %1 minute" +msgstr[1] "Dernière connexion : il y a %1 minutes" #: dashboard/qml/HeadsetsPage.qml:33 #, kde-format msgid "Last connection: %1 hour ago" msgid_plural "Last connection: %1 hours ago" -msgstr[0] "Dernière connexion : il a y %1 heure" -msgstr[1] "Dernière connexion : il a y %1 heures" +msgstr[0] "Dernière connexion : il y a %1 heure" +msgstr[1] "Dernière connexion : il y a %1 heures" #: dashboard/qml/HeadsetsPage.qml:35 #, kde-format msgid "Last connection: %1 day ago" msgid_plural "Last connection: %1 days ago" -msgstr[0] "Dernière connexion : il a y %1 jour" -msgstr[1] "Dernière connexion : il a y %1 jours" +msgstr[0] "Dernière connexion : il y a %1 jour" +msgstr[1] "Dernière connexion : il y a %1 jours" #: dashboard/qml/HeadsetsPage.qml:40 #, kde-format From 7861d508c788f44ecb9d6a8d1bef6d3df445ae34 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 24 Sep 2025 22:57:14 +0200 Subject: [PATCH 52/52] Fix double UTC offset --- server/driver/configuration.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/server/driver/configuration.cpp b/server/driver/configuration.cpp index 002dc5f0..678ff349 100644 --- a/server/driver/configuration.cpp +++ b/server/driver/configuration.cpp @@ -293,9 +293,6 @@ std::optional from_iso8601(const std::str if (strptime(timestamp.c_str(), "%FT%H:%M:%S%z", &t) == nullptr) return std::nullopt; - // Convert from local time to UTC - t.tm_sec += t.tm_gmtoff; - return std::chrono::system_clock::from_time_t(mktime(&t)); }