From eab4686fb178db31fd5037d5eaab52df007d1cff Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 3 Apr 2026 17:25:07 +0200 Subject: [PATCH 01/47] Don't crash on non existent properties --- client/hardware.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/hardware.cpp b/client/hardware.cpp index b51ba930..204f8a71 100644 --- a/client/hardware.cpp +++ b/client/hardware.cpp @@ -35,6 +35,8 @@ static std::string get_property(const char * property) { auto info = __system_property_find(property); std::string result; + if (not info) + return result; wrap_lambda cb = [&result](const char * name, const char * value, uint32_t serial) { result = value; }; From d1cbb730a277983f9d72a860074ac3a5bdf916b9 Mon Sep 17 00:00:00 2001 From: caszuu Date: Fri, 3 Apr 2026 19:26:34 +0200 Subject: [PATCH 02/47] don't send frames before a clock offset is found --- server/compositor/compositor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/compositor/compositor.cpp b/server/compositor/compositor.cpp index f1481ae9..a7a90135 100644 --- a/server/compositor/compositor.cpp +++ b/server/compositor/compositor.cpp @@ -266,7 +266,7 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) auto _ = vk.device.waitForFences(*fence, true, INT64_MAX); if (encode_request >= 0 // encoders have not picked up the previous frame - or layer_accum.layer_count == 0 or not session.connected()) + or layer_accum.layer_count == 0 or not session.connected() or not session.get_offset()) { comp_frame_clear_locked(&frame.rendering); return XRT_SUCCESS; From 3a6f4d0bdf446a77fbcc3dc0fb17ec8d92d96677 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 4 Apr 2026 09:02:29 +0200 Subject: [PATCH 03/47] Fix cylinder crop aspect ratio --- server/compositor/layer_squasher.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/compositor/layer_squasher.cpp b/server/compositor/layer_squasher.cpp index a98f5267..1dd9ef51 100644 --- a/server/compositor/layer_squasher.cpp +++ b/server/compositor/layer_squasher.cpp @@ -846,9 +846,6 @@ xrt_fov layer_squasher::do_cylinder_layer(const comp_layer & layer, false, &ubo.layers[cur_layer].post_transforms); - ubo.layers[cur_layer].cylinder_data.central_angle = c.central_angle; - ubo.layers[cur_layer].cylinder_data.aspect_ratio = c.aspect_ratio; - xrt_vec3 scale{1.f, 1.f, 1.f}; xrt_matrix_4x4 model; @@ -880,7 +877,7 @@ xrt_fov layer_squasher::do_cylinder_layer(const comp_layer & layer, math_matrix_4x4_multiply(&v, &quad_pose, &quad_pose); const float w = sin(c.central_angle / 2) * c.radius; - const float h = c.radius * c.central_angle / 2 * c.aspect_ratio; + const float h = c.radius * c.central_angle / (2 * c.aspect_ratio); const float d = c.radius * cos(c.central_angle / 2); std::array corners{ xrt_vec3{-w, -h, -c.radius}, From 2ede05dafb7681e3dde9c12609d65a4224a20da8 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 4 Apr 2026 09:36:59 +0200 Subject: [PATCH 04/47] Remove broken quads back face culling --- server/compositor/layer_squasher.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/compositor/layer_squasher.cpp b/server/compositor/layer_squasher.cpp index 1dd9ef51..e73f72ad 100644 --- a/server/compositor/layer_squasher.cpp +++ b/server/compositor/layer_squasher.cpp @@ -799,8 +799,6 @@ xrt_fov layer_squasher::do_quad_layer(const comp_layer & layer, .angle_right = -M_PI, .angle_up = -M_PI, .angle_down = M_PI}; - if (normal_view_space.z < 0) - return layer_fov; // back face is not visible for (auto & c: corners) { math_matrix_4x4_transform_vec3(&quad_pose, &c, &c); From 6c6519fab53073df83d7d10ce6b261c3902392b1 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 4 Apr 2026 13:24:32 +0200 Subject: [PATCH 05/47] Use VK_KHR_maintenance9 (drop queue transfer) --- server/compositor/compositor.cpp | 26 ++++++++++++++++++++++---- server/compositor/compositor.h | 1 + server/utils/wivrn_vk_bundle.cpp | 10 ++++++++++ server/utils/wivrn_vk_bundle.h | 3 +++ 4 files changed, 36 insertions(+), 4 deletions(-) diff --git a/server/compositor/compositor.cpp b/server/compositor/compositor.cpp index a7a90135..468b17aa 100644 --- a/server/compositor/compositor.cpp +++ b/server/compositor/compositor.cpp @@ -203,6 +203,22 @@ vk::Extent3D render_extent(const wivrn::from_headset::headset_info_packet & info }; } +bool get_implicit_transfer(wivrn::vk_bundle & vk) +{ + if (*vk.encode_queue == VK_NULL_HANDLE) + return false; +#ifdef VK_KHR_maintenance9 + if (std::get(vk.feat).maintenance9) + { + auto props = vk.physical_device.getQueueFamilyProperties2>(); + + auto to = std::get<1>(props[vk.queue_family_index]).optimalImageTransferToQueueFamilies; + return to & (1 << vk.encode_queue_family_index); + } +#endif + return false; +} + } // namespace namespace wivrn @@ -416,7 +432,7 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) continue; auto [transfer, sem] = encoder->present_image( images[i].image, - need_queue_transfer, + need_queue_transfer or implicit_transfer, images[i].cmd, info.frame_id); need_queue_transfer |= transfer; @@ -438,11 +454,12 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) vk::ImageMemoryBarrier2 video_barrier{ .srcStageMask = vk::PipelineStageFlagBits2KHR::eTransfer, .srcAccessMask = vk::AccessFlagBits2::eMemoryRead, - .dstStageMask = vk::PipelineStageFlagBits2KHR::eVideoEncodeKHR, + .dstStageMask = vk::PipelineStageFlagBits2KHR::eAllCommands, + .dstAccessMask = vk::AccessFlagBits2::eMemoryRead, .oldLayout = target_barrier.newLayout, .newLayout = vk::ImageLayout::eVideoEncodeSrcKHR, - .srcQueueFamilyIndex = vk.queue_family_index, - .dstQueueFamilyIndex = vk.encode_queue_family_index, + .srcQueueFamilyIndex = implicit_transfer ? vk::QueueFamilyIgnored : vk.queue_family_index, + .dstQueueFamilyIndex = implicit_transfer ? vk::QueueFamilyIgnored : vk.encode_queue_family_index, .image = images[i].image, .subresourceRange = { .aspectMask = vk::ImageAspectFlagBits::eColor, @@ -590,6 +607,7 @@ compositor::compositor(wivrn_session & session) : pacer(U_TIME_1S_IN_NS / refresh_rate), squasher(vk, render_extent(session.get_info())), foveation(vk, images[0].image.info().extent), + implicit_transfer(get_implicit_transfer(vk)), encoder_thread{[&](std::stop_token t) { encoder_work(t); }} { comp_base * c_base = this; diff --git a/server/compositor/compositor.h b/server/compositor/compositor.h index 3412008c..5a5bcb9e 100644 --- a/server/compositor/compositor.h +++ b/server/compositor/compositor.h @@ -79,6 +79,7 @@ private: wivrn::foveation foveation; std::array, 3> encoders; + const bool implicit_transfer; #ifdef __cpp_lib_atomic_lock_free_type_aliases using status_type = std::atomic_signed_lock_free; diff --git a/server/utils/wivrn_vk_bundle.cpp b/server/utils/wivrn_vk_bundle.cpp index 6dc79b88..7b95058b 100644 --- a/server/utils/wivrn_vk_bundle.cpp +++ b/server/utils/wivrn_vk_bundle.cpp @@ -249,6 +249,9 @@ wivrn::vk_bundle::vk_bundle() : #endif #ifdef VK_KHR_video_encode_intra_refresh VK_KHR_VIDEO_ENCODE_INTRA_REFRESH_EXTENSION_NAME, +#endif +#ifdef VK_KHR_maintenance9 + VK_KHR_MAINTENANCE_9_EXTENSION_NAME, #endif }; for (auto & ext: physical_device.enumerateDeviceExtensionProperties()) @@ -283,6 +286,13 @@ wivrn::vk_bundle::vk_bundle() : #endif } #endif +#ifdef VK_KHR_maintenance9 + if (has_device_ext(VK_KHR_MAINTENANCE_9_EXTENSION_NAME)) + { + std::get(feat).maintenance9 = + std::get(physical_device.getFeatures2()).maintenance9; + } +#endif // Enable features auto [phys_feat, phys_feat12, phys_feat13] = physical_device.getFeatures2(); diff --git a/server/utils/wivrn_vk_bundle.h b/server/utils/wivrn_vk_bundle.h index 69a9ea40..f56f028a 100644 --- a/server/utils/wivrn_vk_bundle.h +++ b/server/utils/wivrn_vk_bundle.h @@ -82,6 +82,9 @@ struct vk_bundle #ifdef VK_KHR_video_maintenance1 vk::PhysicalDeviceVideoMaintenance1FeaturesKHR, #endif +#ifdef VK_KHR_maintenance9 + vk::PhysicalDeviceMaintenance9FeaturesKHR, +#endif #ifdef VK_KHR_video_encode_intra_refresh vk::PhysicalDeviceVideoEncodeIntraRefreshFeaturesKHR, #endif From e7450df991be24c75bdc57649b4643b033c6caf2 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 9 Apr 2026 12:16:31 +0200 Subject: [PATCH 06/47] Reload interfaces if we don't have multicast or link --- client/scenes/lobby.cpp | 3 --- client/scenes/lobby.h | 2 -- client/wivrn_discover.cpp | 24 ++++++++++++++++++++---- client/wivrn_discover.h | 3 +++ 4 files changed, 23 insertions(+), 9 deletions(-) diff --git a/client/scenes/lobby.cpp b/client/scenes/lobby.cpp index 44430e7f..4d2ad1e9 100644 --- a/client/scenes/lobby.cpp +++ b/client/scenes/lobby.cpp @@ -1320,7 +1320,6 @@ void scenes::lobby::on_focused() std::ranges::sort(local_environments, std::less{}); setup_passthrough(); - multicast = application::get_wifi_lock().get_multicast_lock(); discover.emplace(); session.set_performance_level(XR_PERF_SETTINGS_DOMAIN_CPU_EXT, XR_PERF_SETTINGS_LEVEL_SUSTAINED_HIGH_EXT); @@ -1352,8 +1351,6 @@ void scenes::lobby::on_unfocused() left_hand.reset(); right_hand.reset(); face_tracker.emplace(); - - multicast.reset(); } void scenes::lobby::on_xr_event(const xr::event & event) diff --git a/client/scenes/lobby.h b/client/scenes/lobby.h index a8bd1a30..3b8aa535 100644 --- a/client/scenes/lobby.h +++ b/client/scenes/lobby.h @@ -27,7 +27,6 @@ #include "scenes/lobby_keyboard.h" #include "utils/mapped_file.h" #include "utils/thread_safe.h" -#include "wifi_lock.h" #include "wivrn_config.h" #include "wivrn_discover.h" #include "xr/face_tracker.h" @@ -51,7 +50,6 @@ class stream; class lobby : public scene_impl { std::optional discover; - wifi_lock::multicast multicast; std::string add_server_window_prettyname; std::string add_server_window_hostname; diff --git a/client/wivrn_discover.cpp b/client/wivrn_discover.cpp index e6dedf0d..dd2bb8ae 100644 --- a/client/wivrn_discover.cpp +++ b/client/wivrn_discover.cpp @@ -1,4 +1,6 @@ #include "wivrn_discover.h" + +#include "application.h" #include "mdns.h" #include "utils/named_thread.h" #include @@ -117,6 +119,7 @@ private: for (ifaddrs * i = addresses; i; i = i->ifa_next) { + spdlog::debug("address {} flags 0x{:x} required 0x{:x} forbidden 0x{:x}", uintptr_t(i->ifa_addr), i->ifa_flags, required_flags, forbidden_flags); if (i->ifa_addr == nullptr) continue; @@ -135,7 +138,7 @@ private: // Ignore link-local addresses if (saddr->sin6_scope_id) { - spdlog::trace("Ignoring link-local address {}", ip_address_to_string(i->ifa_addr)); + spdlog::debug("Ignoring link-local address {}", ip_address_to_string(i->ifa_addr)); continue; } static const unsigned char localhost[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}; @@ -154,9 +157,11 @@ private: } else { - spdlog::info("Cannot open socket bound to {}: {}", ip_address_to_string(i->ifa_addr), strerror(errno)); + spdlog::warn("Cannot open socket bound to {}: {}", ip_address_to_string(i->ifa_addr), strerror(errno)); } } + else + spdlog::debug("ignore localhost (IPv6)"); } else if (i->ifa_addr->sa_family == AF_INET) { @@ -177,9 +182,15 @@ private: } else { - spdlog::info("Cannot open socket bound to {}: {}", ip_address_to_string(i->ifa_addr), strerror(errno)); + spdlog::warn("Cannot open socket bound to {}: {}", ip_address_to_string(i->ifa_addr), strerror(errno)); } } + else + spdlog::debug("ignore localhost (IPv4)"); + } + else + { + spdlog::warn("unknown family {}", i->ifa_addr->sa_family); } } @@ -391,6 +402,9 @@ public: } } + if (pollfds.size() < 2) + open_client_sockets(5353); + log_query(record, service_name); std::array buffer; for (size_t i = 1; i < pollfds.size(); i++) @@ -567,7 +581,9 @@ void wivrn_discover::discover(std::string service_name) } wivrn_discover::wivrn_discover(std::string service_name) : - cache(std::make_unique()), dnssd_thread(utils::named_thread("dnssd_thread", &wivrn_discover::discover, this, service_name)) + multicast{application::get_wifi_lock().get_multicast_lock()}, + cache(std::make_unique()), + dnssd_thread(utils::named_thread("dnssd_thread", &wivrn_discover::discover, this, service_name)) { } diff --git a/client/wivrn_discover.h b/client/wivrn_discover.h index 97ec77f3..4d17d275 100644 --- a/client/wivrn_discover.h +++ b/client/wivrn_discover.h @@ -1,5 +1,7 @@ #pragma once +#include "wifi_lock.h" + #include #include #include @@ -32,6 +34,7 @@ public: static inline const std::chrono::milliseconds discover_period{5000}; private: + wifi_lock::multicast multicast; std::unique_ptr cache; std::thread dnssd_thread; From bf510a0f76ea4417985c6df2302ca4485d07733b Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 7 Apr 2026 19:40:15 +0200 Subject: [PATCH 07/47] Workaround sampling alpha between eyes --- client/scenes/stream_defoveator.cpp | 4 ++-- client/shaders/reprojection.glsl | 21 ++++++++++++++------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/client/scenes/stream_defoveator.cpp b/client/scenes/stream_defoveator.cpp index cfff322c..cdc846dc 100644 --- a/client/scenes/stream_defoveator.cpp +++ b/client/scenes/stream_defoveator.cpp @@ -104,7 +104,7 @@ stream_defoveator::pipeline_t & stream_defoveator::ensure_pipeline(size_t view, // pipeline layout vk::PushConstantRange pc_range{ - .stageFlags = vk::ShaderStageFlagBits::eVertex, + .stageFlags = vk::ShaderStageFlagBits::eVertex | vk::ShaderStageFlagBits::eFragment, .size = sizeof(vert_pc), }; @@ -431,7 +431,7 @@ void stream_defoveator::defoveate(vk::raii::CommandBuffer & command_buffer, command_buffer.beginRenderPass(begin_info, vk::SubpassContents::eInline); 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.pushConstants(*pipeline.layout, vk::ShaderStageFlagBits::eVertex | vk::ShaderStageFlagBits::eFragment, 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(); diff --git a/client/shaders/reprojection.glsl b/client/shaders/reprojection.glsl index a889e6bd..b404e19a 100644 --- a/client/shaders/reprojection.glsl +++ b/client/shaders/reprojection.glsl @@ -18,6 +18,12 @@ */ #version 450 +layout(push_constant) uniform pc +{ + ivec4 rgb_rect; + ivec4 a_rect; +}; + #ifdef VERT_SHADER layout (location = 0) in vec2 vPosition; @@ -25,12 +31,6 @@ layout (location = 1) in uvec2 vUV; 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); @@ -70,7 +70,14 @@ vec4 sRGB_to_linear_rgba(vec4 x) void main() { if (alpha == 1) - outColor = vec4(texture(rgb[0], inUV.xy).rgb, texture(rgb[1], inUV.zw).r); + { + // Avoid sampling between the eyes + vec2 a = inUV.zw; + float d = a.x - 0.5; + if (abs(d) *a_rect.z < 1) + a.x += (d > 0 ? 1 : -1) / float(a_rect.z); + outColor = vec4(texture(rgb[0], inUV.xy).rgb, texture(rgb[1], a).r); + } else outColor = texture(rgb[0], inUV.xy).rgba; From a63aba715521b7042adbbdd6678e3656e1b9fe81 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 9 Apr 2026 07:50:14 +0200 Subject: [PATCH 08/47] Smarter foveation subsampling --- server/compositor/shaders/foveation.comp | 49 +++++++++++------------- 1 file changed, 23 insertions(+), 26 deletions(-) diff --git a/server/compositor/shaders/foveation.comp b/server/compositor/shaders/foveation.comp index 7b805f4c..0a7bfbb4 100644 --- a/server/compositor/shaders/foveation.comp +++ b/server/compositor/shaders/foveation.comp @@ -22,7 +22,7 @@ #version 460 #extension GL_KHR_shader_subgroup_basic: require -#extension GL_KHR_shader_subgroup_shuffle: require +#extension GL_KHR_shader_subgroup_shuffle_relative: require layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in; @@ -75,23 +75,32 @@ void main() { uint iz = gl_GlobalInvocationID.z; - uint iy = gl_GlobalInvocationID.y; + // In order to know how subgroup are mapped, we have to do the swizzling ourselves + // in the work group, consider pixels in the following order: + // + // 0 1 4 5 8 9 12 13 + // 2 3 6 7 10 11 14 15 + // 16 17 20 21 24 25 28 29 + // 18 19 22 23 26 27 30 31 + // ... + + uint id = gl_SubgroupID * gl_SubgroupSize + gl_SubgroupInvocationID; + uint quad = id / 4; + id -= 4 * quad; + + uint iy = gl_WorkGroupID.y * gl_WorkGroupSize.y + 2 * uint(quad / (gl_WorkGroupSize.y / 2)) + id / 2; uint ymin = ubo.y[MAX_DIM * iz + iy]; uint ymax = ubo.y[MAX_DIM * iz + iy + 1]; - if (ymin == ymax) - return; if (ymin > ymax) { uint tmp = ymin; ymin = ymax; ymax = tmp; } - uint ix = gl_GlobalInvocationID.x; + uint ix = gl_WorkGroupID.x * gl_WorkGroupSize.x + 2 * (quad % (gl_WorkGroupSize.y / 2)) + (id % 2); uint xmin = ubo.x[MAX_DIM * iz + ix]; uint xmax = ubo.x[MAX_DIM * iz + ix + 1]; - if (xmin == xmax) - return; uint xstep = (xmax - xmin + MAX_SAMPLES - 1) / MAX_SAMPLES; uint ystep = (ymax - ymin + MAX_SAMPLES - 1) / MAX_SAMPLES; @@ -104,33 +113,21 @@ void main() ++count; } } - colour /= count; + colour /= max(count, 1); colour.xyz = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb)); imageStore(luma, ivec3(ix, iy, iz), vec4(colour.x)); - vec4 sum = colour; - for (uint i = 0 ; i < gl_SubgroupSize; ++i) - { - uvec3 other = subgroupShuffle(gl_GlobalInvocationID, i); - vec4 c = subgroupShuffle(colour, i); - if ( - other == gl_GlobalInvocationID + uvec3(1, 0, 0) - || other == gl_GlobalInvocationID + uvec3(0, 1, 0) - || other == gl_GlobalInvocationID + uvec3(1, 1, 0)) - { - sum += c; - } - } + vec4 sum = colour + subgroupShuffleDown(colour, 1) + subgroupShuffleDown(colour, 2) + subgroupShuffleDown(colour, 3); - if (ix %2 == 0 && iy %2 == 0) + if (id == 0) { // actual chroma - imageStore(chroma, ivec3(gl_GlobalInvocationID.xy/2, iz), vec4(sum.y, sum.z, 0, 0) / 4); + imageStore(chroma, ivec3(ix/2, iy/2, iz), vec4(sum.y, sum.z, 0, 0) / 4); // alpha in luma - ivec2 offset = ivec2(ubo.alpha_width * iz, 0); - imageStore(luma, ivec3(offset.xy + gl_GlobalInvocationID.xy/2, 2), vec4(sum.w, 0, 0, 0) / 4); - imageStore(chroma, ivec3(offset.xy + gl_GlobalInvocationID.xy/2, 2), vec4(0.5, 0.5, 0, 0)); + int offset = int(ubo.alpha_width * iz); + imageStore(luma, ivec3(offset + ix/2, iy/2, 2), vec4(sum.w, 0, 0, 0) / 4); + imageStore(chroma, ivec3(offset + ix/2, iy/2, 2), vec4(0.5, 0.5, 0, 0)); } } From e1f1e7b8005277df380baf39a8b108a6482037b8 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 9 Apr 2026 13:57:27 +0200 Subject: [PATCH 09/47] command line flag for debug gui --- server/main.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/server/main.cpp b/server/main.cpp index d551c392..55c5b680 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -193,6 +193,9 @@ std::unique_ptr children; bool quitting_main_loop; bool do_fork; bool do_active_runtime; +#if WIVRN_FEATURE_DEBUG_GUI +bool show_debug_gui; +#endif wivrn::service_publication publication; guint listener_watch; @@ -248,7 +251,7 @@ void start_server(configuration config) .udgci = { .window_title = "WiVRn", #if WIVRN_FEATURE_DEBUG_GUI - .open = config.debug_gui ? U_DEBUG_GUI_OPEN_ALWAYS : U_DEBUG_GUI_OPEN_AUTO, + .open = (config.debug_gui or show_debug_gui) ? U_DEBUG_GUI_OPEN_ALWAYS : U_DEBUG_GUI_OPEN_AUTO, #else .open = U_DEBUG_GUI_OPEN_NEVER, #endif @@ -1025,6 +1028,9 @@ int main(int argc, char * argv[]) auto no_fork = app.add_flag("--no-fork")->description("disable fork to serve connection")->group("Debug"); auto no_publish = app.add_flag("--no-publish-service")->description("disable publishing the service through avahi"); auto no_encrypt = app.add_flag("--no-encrypt")->description("disable encryption")->group("Debug"); +#if WIVRN_FEATURE_DEBUG_GUI + auto debug_gui = app.add_flag("--debug-gui")->description("show the debug GUI")->group("Debug"); +#endif CLI11_PARSE(app, argc, argv); @@ -1054,6 +1060,10 @@ int main(int argc, char * argv[]) else publication = configuration().publication; +#if WIVRN_FEATURE_DEBUG_GUI + show_debug_gui = bool(*debug_gui); +#endif + try { return inner_main(argc, argv, not *no_instructions); From 6db5b8aeb3817ff627f54c294a2ce46f29826540 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 9 Apr 2026 19:00:21 +0200 Subject: [PATCH 10/47] Fix VmaAllocationCreateInfo usage --- server/compositor/layer_squasher.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/compositor/layer_squasher.cpp b/server/compositor/layer_squasher.cpp index e73f72ad..a09e16ad 100644 --- a/server/compositor/layer_squasher.cpp +++ b/server/compositor/layer_squasher.cpp @@ -349,7 +349,9 @@ layer_squasher::layer_squasher(vk_bundle & vk, vk::Extent3D target_size) : } .get(), - VmaAllocationCreateInfo{}, + VmaAllocationCreateInfo{ + .usage = VMA_MEMORY_USAGE_AUTO, + }, "layer squasher target"}, render_view_srgb{make_view(vk, render_target, vk::ImageUsageFlagBits::eSampled, 0), make_view(vk, render_target, vk::ImageUsageFlagBits::eSampled, 1)}, render_view_unorm{make_view(vk, render_target, vk::ImageUsageFlagBits::eStorage, 0), make_view(vk, render_target, vk::ImageUsageFlagBits::eStorage, 1)}, From 2180ec57843013241d9e74a168517da536c91496 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 11 Apr 2026 08:03:42 +0200 Subject: [PATCH 11/47] Add directory picker for OpenVR library --- dashboard/qml/SettingsPage.qml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dashboard/qml/SettingsPage.qml b/dashboard/qml/SettingsPage.qml index 35755c2e..49bc7482 100644 --- a/dashboard/qml/SettingsPage.qml +++ b/dashboard/qml/SettingsPage.qml @@ -187,6 +187,14 @@ Kirigami.ScrollablePage { } } + Dialogs.FolderDialog{ + id: openvr_browse + onAccepted: { + currentFolder = selectedFolder + openvr_text.text = WivrnServer.host_path(new URL(selectedFolder).pathname); + openvr_text.text = openvr_text.text.replace(/\/linux64$/, "").replace(/\/bin$/, "") + } + } RowLayout { Kirigami.FormData.label: i18n("OpenVR compatibility library:") Layout.fillWidth: true @@ -211,6 +219,10 @@ Kirigami.ScrollablePage { } } } + onActivated: index => { + if (openvr_libs.get(index).is_custom && openvr_text.text == "") + openvr_browse.open() + } } Controls.TextField { id: openvr_text @@ -218,6 +230,11 @@ Kirigami.ScrollablePage { visible: !!openvr_combobox.model.get(openvr_combobox.currentIndex)?.is_custom Layout.fillWidth: true } + Controls.Button { + text: i18nc("browse to choose the OpenVR compatility to use", "Browse") + visible: openvr_text.visible + onClicked: openvr_browse.open() + } } } From 74e94c75e800d0e6461bc83f6a4d6dcda663f73a Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 11 Apr 2026 08:04:59 +0200 Subject: [PATCH 12/47] FR locale --- locale/fr/wivrn-dashboard.po | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/locale/fr/wivrn-dashboard.po b/locale/fr/wivrn-dashboard.po index 11257aaa..9a5389d3 100644 --- a/locale/fr/wivrn-dashboard.po +++ b/locale/fr/wivrn-dashboard.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn-dashboard\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-02-16 18:43+0100\n" -"PO-Revision-Date: 2026-02-16 21:47+0100\n" +"POT-Creation-Date: 2026-04-11 08:04+0200\n" +"PO-Revision-Date: 2026-04-11 08:04+0200\n" "Last-Translator: Guillaume Meunier \n" "Language-Team: French <>\n" "Language: French\n" @@ -468,19 +468,19 @@ msgstr "Dépannage" msgid "Version %1" msgstr "Version %1" -#: dashboard/qml/SelectGame.qml:14 +#: dashboard/qml/SelectGame.qml:12 #, kde-format msgctxt "don't start an application automatically" msgid "None" msgstr "Aucune" -#: dashboard/qml/SelectGame.qml:20 +#: dashboard/qml/SelectGame.qml:18 #, kde-format msgctxt "choose a custom application to start" msgid "Custom" msgstr "Personnalisé" -#: dashboard/qml/SelectGame.qml:72 +#: dashboard/qml/SelectGame.qml:70 #, kde-format msgctxt "browse a file to choose the application to start" msgid "Browse" @@ -620,16 +620,22 @@ msgstr "Personnalisé" msgid "Disabled" msgstr "Désactivé" -#: dashboard/qml/SettingsPage.qml:191 +#: dashboard/qml/SettingsPage.qml:199 #, kde-format msgid "OpenVR compatibility library:" msgstr "Compatibilité OpenVR :" -#: dashboard/qml/SettingsPage.qml:217 +#: dashboard/qml/SettingsPage.qml:229 #, kde-format msgid "Library path, excluding bin/linux64/vrclient.so" msgstr "Chemin de la bibliothèque, en enlevant bin/linux64/vrclient.so" +#: dashboard/qml/SettingsPage.qml:234 +#, kde-format +msgctxt "browse to choose the OpenVR compatility to use" +msgid "Browse" +msgstr "Parcourir" + #: dashboard/qml/SteamLaunchOptions.qml:8 #, kde-format msgid "" From fe414c445016c39c4b6dfc9f4ddd93d72e348334 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 4 Apr 2026 15:27:26 +0200 Subject: [PATCH 13/47] Remove image layout transitions --- server/compositor/compositor.cpp | 27 +++++++++++----------- server/compositor/foveation.cpp | 4 ++-- server/compositor/layer_squasher.cpp | 13 ++++++----- server/encoder/ffmpeg/video_encoder_va.cpp | 4 ++-- server/encoder/video_encoder_nvenc.cpp | 2 +- server/encoder/video_encoder_raw.cpp | 2 +- server/encoder/video_encoder_vulkan.cpp | 2 +- server/encoder/video_encoder_x264.cpp | 4 ++-- 8 files changed, 29 insertions(+), 29 deletions(-) diff --git a/server/compositor/compositor.cpp b/server/compositor/compositor.cpp index 468b17aa..72edad4b 100644 --- a/server/compositor/compositor.cpp +++ b/server/compositor/compositor.cpp @@ -356,6 +356,12 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) } } + vk::MemoryBarrier2 mem_barrier{ + .srcStageMask = vk::PipelineStageFlagBits2::eComputeShader, + .srcAccessMask = vk::AccessFlagBits2::eShaderStorageWrite, + .dstStageMask = vk::PipelineStageFlagBits2::eAllCommands, + .dstAccessMask = vk::AccessFlagBits2::eMemoryRead, + }; vk::ImageMemoryBarrier2 target_barrier{ .dstStageMask = vk::PipelineStageFlagBits2::eComputeShader, .dstAccessMask = vk::AccessFlagBits2::eShaderStorageWrite, @@ -372,6 +378,8 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) }; cmd.pipelineBarrier2({ + .memoryBarrierCount = 1, + .pMemoryBarriers = &mem_barrier, .imageMemoryBarrierCount = 1, .pImageMemoryBarriers = &target_barrier, }); @@ -392,19 +400,10 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) src_fov); if (std::ranges::any_of(encoders, &video_encoder::need_copy)) - { - target_barrier.srcAccessMask = target_barrier.dstAccessMask; - target_barrier.srcStageMask = target_barrier.dstStageMask; - target_barrier.oldLayout = target_barrier.newLayout; - target_barrier.dstAccessMask = vk::AccessFlagBits2::eTransferRead; - target_barrier.dstStageMask = vk::PipelineStageFlagBits2::eTransfer; - target_barrier.newLayout = vk::ImageLayout::eTransferSrcOptimal; - cmd.pipelineBarrier2({ - .imageMemoryBarrierCount = 1, - .pImageMemoryBarriers = &target_barrier, + .memoryBarrierCount = 1, + .pMemoryBarriers = &mem_barrier, }); - } cmd.end(); vk.device.resetFences(*fence); @@ -449,7 +448,7 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) }; #if WIVRN_USE_VULKAN_ENCODE - if (need_queue_transfer) + if (need_queue_transfer and not implicit_transfer) { vk::ImageMemoryBarrier2 video_barrier{ .srcStageMask = vk::PipelineStageFlagBits2KHR::eTransfer, @@ -458,8 +457,8 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) .dstAccessMask = vk::AccessFlagBits2::eMemoryRead, .oldLayout = target_barrier.newLayout, .newLayout = vk::ImageLayout::eVideoEncodeSrcKHR, - .srcQueueFamilyIndex = implicit_transfer ? vk::QueueFamilyIgnored : vk.queue_family_index, - .dstQueueFamilyIndex = implicit_transfer ? vk::QueueFamilyIgnored : vk.encode_queue_family_index, + .srcQueueFamilyIndex = vk.queue_family_index, + .dstQueueFamilyIndex = vk.encode_queue_family_index, .image = images[i].image, .subresourceRange = { .aspectMask = vk::ImageAspectFlagBits::eColor, diff --git a/server/compositor/foveation.cpp b/server/compositor/foveation.cpp index acf04671..af0647bd 100644 --- a/server/compositor/foveation.cpp +++ b/server/compositor/foveation.cpp @@ -591,12 +591,12 @@ std::array foveation::foveate( vk::DescriptorImageInfo{ .sampler = *sampler, .imageView = src[0], - .imageLayout = vk::ImageLayout::eShaderReadOnlyOptimal, + .imageLayout = vk::ImageLayout::eGeneral, }, vk::DescriptorImageInfo{ .sampler = *sampler, .imageView = src[1], - .imageLayout = vk::ImageLayout::eShaderReadOnlyOptimal, + .imageLayout = vk::ImageLayout::eGeneral, }, }; diff --git a/server/compositor/layer_squasher.cpp b/server/compositor/layer_squasher.cpp index a09e16ad..3ccef4c3 100644 --- a/server/compositor/layer_squasher.cpp +++ b/server/compositor/layer_squasher.cpp @@ -621,17 +621,18 @@ layer_squasher::do_layers( cmd.dispatch(w, h, 1); } - im_barrier.oldLayout = im_barrier.newLayout; - im_barrier.newLayout = vk::ImageLayout::eShaderReadOnlyOptimal; - im_barrier.srcAccessMask = im_barrier.dstAccessMask; - im_barrier.dstAccessMask = vk::AccessFlagBits::eShaderRead; + vk::MemoryBarrier mem_barrier{ + .srcAccessMask = vk::AccessFlagBits::eShaderWrite, + .dstAccessMask = vk::AccessFlagBits::eShaderRead, + }; + cmd.pipelineBarrier( vk::PipelineStageFlagBits::eComputeShader, vk::PipelineStageFlagBits::eComputeShader, {}, + mem_barrier, {}, - {}, - im_barrier); + {}); std::array rect; for (auto [v, r]: std::ranges::zip_view(viewports, rect)) diff --git a/server/encoder/ffmpeg/video_encoder_va.cpp b/server/encoder/ffmpeg/video_encoder_va.cpp index 5e0143db..87abfb02 100644 --- a/server/encoder/ffmpeg/video_encoder_va.cpp +++ b/server/encoder/ffmpeg/video_encoder_va.cpp @@ -445,7 +445,7 @@ std::pair video_encoder_va::present_image(vk::Image y_cbcr, cmd_buf.copyImage( y_cbcr, - vk::ImageLayout::eTransferSrcOptimal, + vk::ImageLayout::eGeneral, *in[slot].luma, vk::ImageLayout::eTransferDstOptimal, vk::ImageCopy{ @@ -466,7 +466,7 @@ std::pair video_encoder_va::present_image(vk::Image y_cbcr, cmd_buf.copyImage( y_cbcr, - vk::ImageLayout::eTransferSrcOptimal, + vk::ImageLayout::eGeneral, *in[slot].chroma, vk::ImageLayout::eTransferDstOptimal, vk::ImageCopy{ diff --git a/server/encoder/video_encoder_nvenc.cpp b/server/encoder/video_encoder_nvenc.cpp index 6835ed3b..28d75f37 100644 --- a/server/encoder/video_encoder_nvenc.cpp +++ b/server/encoder/video_encoder_nvenc.cpp @@ -400,7 +400,7 @@ std::pair video_encoder_nvenc::present_image(vk::Image y_cb { cmd_buf.copyImageToBuffer( y_cbcr, - vk::ImageLayout::eTransferSrcOptimal, + vk::ImageLayout::eGeneral, *in[slot].yuv, std::array{ vk::BufferImageCopy{ diff --git a/server/encoder/video_encoder_raw.cpp b/server/encoder/video_encoder_raw.cpp index 23605a41..4f3b9b86 100644 --- a/server/encoder/video_encoder_raw.cpp +++ b/server/encoder/video_encoder_raw.cpp @@ -94,7 +94,7 @@ std::pair wivrn::video_encoder_raw::present_image(vk::Image }; cmd_buf.copyImageToBuffer( y_cbcr, - vk::ImageLayout::eTransferSrcOptimal, + vk::ImageLayout::eGeneral, buffers[slot], std::span(regions.data(), stream_idx < 2 ? 2 : 1)); diff --git a/server/encoder/video_encoder_vulkan.cpp b/server/encoder/video_encoder_vulkan.cpp index ab06d457..1aa2597d 100644 --- a/server/encoder/video_encoder_vulkan.cpp +++ b/server/encoder/video_encoder_vulkan.cpp @@ -716,7 +716,7 @@ std::pair wivrn::video_encoder_vulkan::present_image(vk::Im cmd_buf.copyImage( y_cbcr, - vk::ImageLayout::eTransferSrcOptimal, + vk::ImageLayout::eGeneral, slot_item.tmp_image, vk::ImageLayout::eTransferDstOptimal, { diff --git a/server/encoder/video_encoder_x264.cpp b/server/encoder/video_encoder_x264.cpp index 6d7d0c17..3c056ef6 100644 --- a/server/encoder/video_encoder_x264.cpp +++ b/server/encoder/video_encoder_x264.cpp @@ -180,7 +180,7 @@ std::pair video_encoder_x264::present_image(vk::Image y_cbc { cmd_buf.copyImageToBuffer( y_cbcr, - vk::ImageLayout::eTransferSrcOptimal, + vk::ImageLayout::eGeneral, in[slot].luma, vk::BufferImageCopy{ .bufferRowLength = chroma_width * 2, @@ -196,7 +196,7 @@ std::pair video_encoder_x264::present_image(vk::Image y_cbc }}); cmd_buf.copyImageToBuffer( y_cbcr, - vk::ImageLayout::eTransferSrcOptimal, + vk::ImageLayout::eGeneral, in[slot].chroma, vk::BufferImageCopy{ .bufferRowLength = chroma_width, From ce83e8fb03b85e77d3efc4cb53c0f72f9f5ab599 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 7 Apr 2026 18:13:33 +0200 Subject: [PATCH 14/47] Major synchronization rework unify submit/post_submit encoder entrypoints encoders must now wait for their command completion use transfer queues for CPU -> GPU copy --- server/compositor/compositor.cpp | 241 ++++---- server/compositor/compositor.h | 8 +- server/compositor/foveation.cpp | 4 +- server/compositor/layer_squasher.cpp | 15 +- server/compositor/layer_squasher.h | 4 + server/encoder/encoder_settings.cpp | 5 +- server/encoder/ffmpeg/video_encoder_ffmpeg.h | 5 +- server/encoder/ffmpeg/video_encoder_va.cpp | 69 ++- server/encoder/ffmpeg/video_encoder_va.h | 7 +- server/encoder/video_encoder.cpp | 19 +- server/encoder/video_encoder.h | 34 +- server/encoder/video_encoder_nvenc.cpp | 59 +- server/encoder/video_encoder_nvenc.h | 5 +- server/encoder/video_encoder_raw.cpp | 97 +++- server/encoder/video_encoder_raw.h | 13 +- server/encoder/video_encoder_vulkan.cpp | 573 ++++++++----------- server/encoder/video_encoder_vulkan.h | 18 +- server/encoder/video_encoder_x264.cpp | 98 +++- server/encoder/video_encoder_x264.h | 8 +- server/target_instance_wivrn.cpp | 8 +- server/utils/wivrn_vk_bundle.cpp | 94 ++- server/utils/wivrn_vk_bundle.h | 18 +- 22 files changed, 785 insertions(+), 617 deletions(-) diff --git a/server/compositor/compositor.cpp b/server/compositor/compositor.cpp index 72edad4b..9d2e8ea9 100644 --- a/server/compositor/compositor.cpp +++ b/server/compositor/compositor.cpp @@ -33,6 +33,7 @@ #include "driver/wivrn_session.h" #include "encoder/video_encoder.h" +#include "inplace_vector.hpp" #include "utils/method.h" DEBUG_GET_ONCE_LOG_OPTION(log, "XRT_COMPOSITOR_LOG", U_LOGGING_INFO) @@ -128,11 +129,6 @@ std::array make_images(wivrn::vk_bundle & vk, vk::C } #endif - auto bufs = vk.device.allocateCommandBuffers({ - .commandPool = command_pool, - .commandBufferCount = 2, - }); - auto make_image = [&](int i) { vk::ImageViewUsageCreateInfo usage{ .usage = vk::ImageUsageFlagBits::eStorage, @@ -145,9 +141,6 @@ std::array make_images(wivrn::vk_bundle & vk, vk::C }; vk::Image vk_image{image}; return wivrn::compositor::image{ - .sem{vk.device, vk::SemaphoreCreateInfo{}}, - .fence{vk.device, vk::FenceCreateInfo{}}, - .cmd{std::move(bufs[i])}, .image{std::move(image)}, .view_y{ vk.device, @@ -182,15 +175,19 @@ std::array make_images(wivrn::vk_bundle & vk, vk::C return {make_image(0), make_image(1)}; } -vk::raii::Fence make_fence(wivrn::vk_bundle & vk, const char * name) +vk::raii::Semaphore make_semaphore(wivrn::vk_bundle & vk) { - vk::raii::Fence res{ + vk::raii::Semaphore res{ vk.device, - vk::FenceCreateInfo{ - .flags = vk::FenceCreateFlagBits::eSignaled, - }, + vk::StructureChain{ + vk::SemaphoreCreateInfo{}, + vk::SemaphoreTypeCreateInfo{ + .semaphoreType = vk::SemaphoreType::eTimeline, + }, + } + .get(), }; - vk.name(res, name); + vk.name(res, "compositor semaphore"); return res; } @@ -203,22 +200,6 @@ vk::Extent3D render_extent(const wivrn::from_headset::headset_info_packet & info }; } -bool get_implicit_transfer(wivrn::vk_bundle & vk) -{ - if (*vk.encode_queue == VK_NULL_HANDLE) - return false; -#ifdef VK_KHR_maintenance9 - if (std::get(vk.feat).maintenance9) - { - auto props = vk.physical_device.getQueueFamilyProperties2>(); - - auto to = std::get<1>(props[vk.queue_family_index]).optimalImageTransferToQueueFamilies; - return to & (1 << vk.encode_queue_family_index); - } -#endif - return false; -} - } // namespace namespace wivrn @@ -279,8 +260,6 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) U_LOG_IFL_D(log_level, "frame %ld commit %d layers", frame.rendering.id, layer_accum.layer_count); - auto _ = vk.device.waitForFences(*fence, true, INT64_MAX); - if (encode_request >= 0 // encoders have not picked up the previous frame or layer_accum.layer_count == 0 or not session.connected() or not session.get_offset()) { @@ -294,7 +273,6 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) comp_frame_clear_locked(&frame.rendering); return XRT_SUCCESS; } - assert(images[i].fence.getStatus() == vk::Result::eNotReady); auto & view_info = images[i].view_info; images[i].frame_index = frame.rendering.id; @@ -313,6 +291,8 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) std::array src_rect; std::array src_fov; + beman::inplace_vector::inplace_vector image_barriers; + // Check if we can pass a layer directly to foveation if (layer_accum.layer_count == 1 and (layer_accum.layers[0].data.type == XRT_LAYER_PROJECTION or @@ -354,35 +334,41 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) view_info.pose[view] = xrt_cast(poses[view]); view_info.fov[view] = xrt_cast(src_fov[view]); } + + image_barriers.push_back( + vk::ImageMemoryBarrier2{ + .srcStageMask = vk::PipelineStageFlagBits2::eComputeShader, + .srcAccessMask = vk::AccessFlagBits2::eShaderStorageWrite, + .dstStageMask = vk::PipelineStageFlagBits2::eComputeShader, + .dstAccessMask = vk::AccessFlagBits2::eShaderStorageRead, + .image = squasher.get_image(), + .subresourceRange = { + .aspectMask = vk::ImageAspectFlagBits::eColor, + .levelCount = 1, + .layerCount = vk::RemainingArrayLayers, + }, + }); } - vk::MemoryBarrier2 mem_barrier{ - .srcStageMask = vk::PipelineStageFlagBits2::eComputeShader, - .srcAccessMask = vk::AccessFlagBits2::eShaderStorageWrite, - .dstStageMask = vk::PipelineStageFlagBits2::eAllCommands, - .dstAccessMask = vk::AccessFlagBits2::eMemoryRead, - }; - vk::ImageMemoryBarrier2 target_barrier{ - .dstStageMask = vk::PipelineStageFlagBits2::eComputeShader, - .dstAccessMask = vk::AccessFlagBits2::eShaderStorageWrite, - .oldLayout = vk::ImageLayout::eUndefined, - .newLayout = vk::ImageLayout::eGeneral, - .image = images[i].image, - .subresourceRange = { - .aspectMask = vk::ImageAspectFlagBits::eColor, - .baseMipLevel = 0, - .levelCount = 1, - .baseArrayLayer = 0, - .layerCount = vk::RemainingArrayLayers, - }, - }; + image_barriers.push_back( + vk::ImageMemoryBarrier2{ + .dstStageMask = vk::PipelineStageFlagBits2::eComputeShader, + .dstAccessMask = vk::AccessFlagBits2::eShaderStorageWrite, + .oldLayout = vk::ImageLayout::eUndefined, + .newLayout = vk::ImageLayout::eGeneral, + .image = images[i].image, + .subresourceRange = { + .aspectMask = vk::ImageAspectFlagBits::eColor, + .levelCount = 1, + .layerCount = vk::RemainingArrayLayers, + }, + }); cmd.pipelineBarrier2({ - .memoryBarrierCount = 1, - .pMemoryBarriers = &mem_barrier, - .imageMemoryBarrierCount = 1, - .pImageMemoryBarriers = &target_barrier, + .imageMemoryBarrierCount = uint32_t(image_barriers.size()), + .pImageMemoryBarriers = image_barriers.data(), }); + image_barriers.clear(); if (session.get_info().eye_gaze) { @@ -399,100 +385,83 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) src_rect, src_fov); - if (std::ranges::any_of(encoders, &video_encoder::need_copy)) - cmd.pipelineBarrier2({ - .memoryBarrierCount = 1, - .pMemoryBarriers = &mem_barrier, - }); - cmd.end(); - - vk.device.resetFences(*fence); - { - std::unique_lock lock{vk.queue_mutex}; - vk.queue.submit( - vk::SubmitInfo{ - .commandBufferCount = 1, - .pCommandBuffers = &*cmd, - .signalSemaphoreCount = 1, - .pSignalSemaphores = &*images[i].sem, - }, - *fence); - } - - images[i].cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); - - auto info = pacer.present_to_info(frame.rendering.desired_present_time_ns); - - bool need_queue_transfer = false; - std::vector present_done_sem; for (auto & encoder: encoders) { if (encoder->stream_idx == 2 and not view_info.alpha) continue; - auto [transfer, sem] = encoder->present_image( - images[i].image, - need_queue_transfer or implicit_transfer, - images[i].cmd, - info.frame_id); - need_queue_transfer |= transfer; - if (sem) - present_done_sem.push_back(sem); + else if (encoder->need_transfer or encoder->target_queue == vk.queue_family_index) + { + image_barriers.push_back( + vk::ImageMemoryBarrier2{ + .srcStageMask = vk::PipelineStageFlagBits2KHR::eComputeShader, + .srcAccessMask = vk::AccessFlagBits2::eShaderStorageWrite, + .dstStageMask = vk::PipelineStageFlagBits2::eAllCommands, + .dstAccessMask = vk::AccessFlagBits2::eMemoryRead, + .srcQueueFamilyIndex = vk.queue_family_index, + .dstQueueFamilyIndex = encoder->target_queue, + .image = images[i].image, + .subresourceRange = {.aspectMask = vk::ImageAspectFlagBits::eColor, + .baseMipLevel = 0, + .levelCount = 1, + .baseArrayLayer = encoder->stream_idx, + .layerCount = 1}, + }); + } } - vk::PipelineStageFlags stages = vk::PipelineStageFlagBits::eAllCommands; + cmd.pipelineBarrier2({ + .imageMemoryBarrierCount = uint32_t(image_barriers.size()), + .pImageMemoryBarriers = image_barriers.data(), + }); - vk::SubmitInfo submit_info{ - .waitSemaphoreCount = 1, - .pWaitSemaphores = &*images[i].sem, - .pWaitDstStageMask = &stages, + cmd.end(); + + vk::SemaphoreSubmitInfo sem_info{ + .semaphore = *sem, + .value = ++sem_value, + .stageMask = vk::PipelineStageFlagBits2::eComputeShader, }; + images[i].sem_value = sem_value; -#if WIVRN_USE_VULKAN_ENCODE - if (need_queue_transfer and not implicit_transfer) { - vk::ImageMemoryBarrier2 video_barrier{ - .srcStageMask = vk::PipelineStageFlagBits2KHR::eTransfer, - .srcAccessMask = vk::AccessFlagBits2::eMemoryRead, - .dstStageMask = vk::PipelineStageFlagBits2KHR::eAllCommands, - .dstAccessMask = vk::AccessFlagBits2::eMemoryRead, - .oldLayout = target_barrier.newLayout, - .newLayout = vk::ImageLayout::eVideoEncodeSrcKHR, - .srcQueueFamilyIndex = vk.queue_family_index, - .dstQueueFamilyIndex = vk.encode_queue_family_index, - .image = images[i].image, - .subresourceRange = { - .aspectMask = vk::ImageAspectFlagBits::eColor, - .baseMipLevel = 0, - .levelCount = 1, - .baseArrayLayer = 0, - .layerCount = vk::RemainingArrayLayers, - }, + vk::CommandBufferSubmitInfo cmd_info{ + .commandBuffer = cmd, }; - images[i].cmd.pipelineBarrier2({ - .imageMemoryBarrierCount = 1, - .pImageMemoryBarriers = &video_barrier, + std::unique_lock lock{vk.queue_mutex}; + vk.queue.submit2(vk::SubmitInfo2{ + .commandBufferInfoCount = 1, + .pCommandBufferInfos = &cmd_info, + .signalSemaphoreInfoCount = 1, + .pSignalSemaphoreInfos = &sem_info, }); } - submit_info.setSignalSemaphores(present_done_sem); -#endif - images[i].cmd.end(); - submit_info.setCommandBuffers(*images[i].cmd); + auto info = pacer.present_to_info(frame.rendering.desired_present_time_ns); + + for (auto & encoder: encoders) { - std::unique_lock lock{vk.queue_mutex}; - vk.queue.submit(submit_info, *images[i].fence); - for (auto & encoder: encoders) - { - if (encoder->stream_idx == 2 and not view_info.alpha) - continue; - encoder->post_submit(); - } + if (encoder->stream_idx == 2 and not view_info.alpha) + continue; + encoder->present_image( + images[i].image, + sem_info, + info.frame_id); } auto j = encode_request.exchange(i); encode_request.notify_all(); assert(j == -1); + comp_frame_clear_locked(&frame.rendering); + + if (vk.device.waitSemaphores(vk::SemaphoreWaitInfo{ + .semaphoreCount = 1, + .pSemaphores = &*sem, + .pValues = &sem_value, + }, + U_TIME_1S_IN_NS) == vk::Result::eTimeout) + U_LOG_IFL_W(log_level, "compositor timeout"); + // Now is a good point to garbage collect. comp_swapchain_shared_garbage_collect(&cscs); @@ -542,9 +511,6 @@ void compositor::encoder_work(std::stop_token tok) assert(req < images.size()); auto & image = images[req]; - auto _ = vk.device.waitForFences(*image.fence, true, UINT64_MAX); - vk.device.resetFences(*image.fence); - try { for (auto & encoder: encoders) @@ -601,13 +567,11 @@ compositor::compositor(wivrn_session & session) : settings(get_encoder_settings(vk, session)), images{make_images(vk, cmd_pool, settings)}, cmd{std::move(vk.device.allocateCommandBuffers({.commandPool = *cmd_pool, .commandBufferCount = 1})[0])}, - fence{make_fence(vk, "compositor fence")}, + sem{make_semaphore(vk)}, refresh_rate(settings[0].fps), pacer(U_TIME_1S_IN_NS / refresh_rate), squasher(vk, render_extent(session.get_info())), - foveation(vk, images[0].image.info().extent), - implicit_transfer(get_implicit_transfer(vk)), - encoder_thread{[&](std::stop_token t) { encoder_work(t); }} + foveation(vk, images[0].image.info().extent) { comp_base * c_base = this; // Ensure we can safely cast pointers @@ -654,6 +618,9 @@ compositor::compositor(wivrn_session & session) : for (auto [i, settings]: std::ranges::enumerate_view(settings)) encoders[i] = video_encoder::create(vk, settings, i); send_video_stream_description(); + + // Start the thread after everything is initialized + encoder_thread = std::jthread{[&](std::stop_token t) { encoder_work(t); }}; } compositor::~compositor() diff --git a/server/compositor/compositor.h b/server/compositor/compositor.h index 5a5bcb9e..0ca0896e 100644 --- a/server/compositor/compositor.h +++ b/server/compositor/compositor.h @@ -49,14 +49,12 @@ public: struct image { std::atomic busy = false; - vk::raii::Semaphore sem; - vk::raii::Fence fence; - vk::raii::CommandBuffer cmd; image_allocation image; vk::raii::ImageView view_y; vk::raii::ImageView view_cbcr; to_headset::video_stream_data_shard::view_info_t view_info{}; uint64_t frame_index; + uint64_t sem_value = 0; }; private: @@ -69,7 +67,8 @@ private: std::array images; vk::raii::CommandBuffer cmd; - vk::raii::Fence fence; + vk::raii::Semaphore sem; + uint64_t sem_value = 0; std::atomic requested_refresh_rate; std::atomic refresh_rate; @@ -79,7 +78,6 @@ private: wivrn::foveation foveation; std::array, 3> encoders; - const bool implicit_transfer; #ifdef __cpp_lib_atomic_lock_free_type_aliases using status_type = std::atomic_signed_lock_free; diff --git a/server/compositor/foveation.cpp b/server/compositor/foveation.cpp index af0647bd..acf04671 100644 --- a/server/compositor/foveation.cpp +++ b/server/compositor/foveation.cpp @@ -591,12 +591,12 @@ std::array foveation::foveate( vk::DescriptorImageInfo{ .sampler = *sampler, .imageView = src[0], - .imageLayout = vk::ImageLayout::eGeneral, + .imageLayout = vk::ImageLayout::eShaderReadOnlyOptimal, }, vk::DescriptorImageInfo{ .sampler = *sampler, .imageView = src[1], - .imageLayout = vk::ImageLayout::eGeneral, + .imageLayout = vk::ImageLayout::eShaderReadOnlyOptimal, }, }; diff --git a/server/compositor/layer_squasher.cpp b/server/compositor/layer_squasher.cpp index 3ccef4c3..eab1360b 100644 --- a/server/compositor/layer_squasher.cpp +++ b/server/compositor/layer_squasher.cpp @@ -407,7 +407,7 @@ layer_squasher::do_layers( .subresourceRange = { .aspectMask = vk::ImageAspectFlagBits::eColor, .levelCount = 1, - .layerCount = vk::RemainingArrayLayers, + .layerCount = view_count, }, }; @@ -621,19 +621,6 @@ layer_squasher::do_layers( cmd.dispatch(w, h, 1); } - vk::MemoryBarrier mem_barrier{ - .srcAccessMask = vk::AccessFlagBits::eShaderWrite, - .dstAccessMask = vk::AccessFlagBits::eShaderRead, - }; - - cmd.pipelineBarrier( - vk::PipelineStageFlagBits::eComputeShader, - vk::PipelineStageFlagBits::eComputeShader, - {}, - mem_barrier, - {}, - {}); - std::array rect; for (auto [v, r]: std::ranges::zip_view(viewports, rect)) r = {.extent = {.w = int(v.w), .h = int(v.h)}}; diff --git a/server/compositor/layer_squasher.h b/server/compositor/layer_squasher.h index b2d84926..05f39319 100644 --- a/server/compositor/layer_squasher.h +++ b/server/compositor/layer_squasher.h @@ -68,6 +68,10 @@ public: const xrt_rect & min_size); std::array get_views(); + vk::Image get_image() + { + return render_target; + } uint32_t max_layers(const vk::PhysicalDeviceProperties &) const; diff --git a/server/encoder/encoder_settings.cpp b/server/encoder/encoder_settings.cpp index d79b4aaa..bdf8e722 100644 --- a/server/encoder/encoder_settings.cpp +++ b/server/encoder/encoder_settings.cpp @@ -183,8 +183,11 @@ class prober { if (*vk.encode_queue == VK_NULL_HANDLE) return false; - if (not std::get(vk.feat).timelineSemaphore) + if (not std::get(vk.feat).videoMaintenance1) + { + U_LOG_I("Cannot use vulkan video encode without VideoMaintenance1 feature"); return false; + } auto prop = vk.physical_device.getQueueFamilyProperties2>(); assert(vk.encode_queue_family_index < prop.size()); const auto flags = prop.at(vk.encode_queue_family_index).get().videoCodecOperations; diff --git a/server/encoder/ffmpeg/video_encoder_ffmpeg.h b/server/encoder/ffmpeg/video_encoder_ffmpeg.h index 75309324..5f9f7dfd 100644 --- a/server/encoder/ffmpeg/video_encoder_ffmpeg.h +++ b/server/encoder/ffmpeg/video_encoder_ffmpeg.h @@ -21,6 +21,7 @@ #include "encoder/video_encoder.h" #include "ffmpeg_helper.h" +#include "utils/wivrn_vk_bundle.h" namespace wivrn { @@ -37,8 +38,8 @@ public: }; protected: - video_encoder_ffmpeg(uint8_t stream_idx, const encoder_settings & settings) : - wivrn::video_encoder(stream_idx, settings, std::make_unique(), true) {} + video_encoder_ffmpeg(vk_bundle & vk, uint8_t stream_idx, const encoder_settings & settings) : + wivrn::video_encoder(vk, stream_idx, vk.queue_family_index, settings, std::make_unique(), true) {} virtual void push_frame(bool idr, uint8_t slot) = 0; diff --git a/server/encoder/ffmpeg/video_encoder_va.cpp b/server/encoder/ffmpeg/video_encoder_va.cpp index 87abfb02..d00d4c40 100644 --- a/server/encoder/ffmpeg/video_encoder_va.cpp +++ b/server/encoder/ffmpeg/video_encoder_va.cpp @@ -153,14 +153,36 @@ vk::Format drm_to_vulkan_fmt(uint32_t drm_fourcc, int bit_depth) return vulkan_drm_format_map.at(drm_fourcc); } +vk::raii::CommandPool make_cmd_pool(wivrn::vk_bundle & vk, uint8_t stream_idx) +{ + auto res = vk.device.createCommandPool(vk::CommandPoolCreateInfo{ + + .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer, + .queueFamilyIndex = vk.queue_family_index, + }); + vk.name(res, std::format("vaapi encoder {} command pool", stream_idx)); + return res; +} + } // namespace video_encoder_va::video_encoder_va(wivrn::vk_bundle & vk, const wivrn::encoder_settings & settings, uint8_t stream_idx) : - video_encoder_ffmpeg(stream_idx, settings), - synchronization2(std::get(vk.feat).synchronization2) + video_encoder_ffmpeg(vk, stream_idx, settings), + vk{vk}, + cmd_pool{make_cmd_pool(vk, stream_idx)} { + auto command_buffers = vk.device.allocateCommandBuffers( + {.commandPool = *cmd_pool, + .commandBufferCount = num_slots}); + for (size_t i = 0; i < num_slots; ++i) + { + in[i].cmd = std::move(command_buffers[i]); + in[i].fence = vk::raii::Fence(vk.device, + vk::FenceCreateInfo{.flags = vk::FenceCreateFlagBits::eSignaled}); + } + auto drm_hw_ctx = make_drm_hw_ctx(vk.physical_device, settings.device); AVBufferRef * tmp; int err = av_hwdevice_ctx_create_derived(&tmp, @@ -409,8 +431,14 @@ video_encoder_va::video_encoder_va(wivrn::vk_bundle & vk, } } -std::pair video_encoder_va::present_image(vk::Image y_cbcr, bool transferred, vk::raii::CommandBuffer & cmd_buf, uint8_t slot, uint64_t frame_index) +void video_encoder_va::present_image(vk::Image y_cbcr, vk::SemaphoreSubmitInfo compositor_sem, uint8_t slot, uint64_t) { + if (vk.device.waitForFences(*in[slot].fence, true, 1'000'000'000) == vk::Result::eTimeout) + { + U_LOG_E("Timeout on stream %d", stream_idx); + return; + } + std::array im_barriers = { vk::ImageMemoryBarrier{ .srcAccessMask = vk::AccessFlagBits::eNone, @@ -435,7 +463,12 @@ std::pair video_encoder_va::present_image(vk::Image y_cbcr, .layerCount = 1}, }, }; - cmd_buf.pipelineBarrier( + + auto & cmd = in[slot].cmd; + cmd.reset(); + cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); + + cmd.pipelineBarrier( vk::PipelineStageFlagBits::eAllCommands, vk::PipelineStageFlagBits::eTransfer, {}, @@ -443,7 +476,7 @@ std::pair video_encoder_va::present_image(vk::Image y_cbcr, nullptr, im_barriers); - cmd_buf.copyImage( + cmd.copyImage( y_cbcr, vk::ImageLayout::eGeneral, *in[slot].luma, @@ -464,7 +497,7 @@ std::pair video_encoder_va::present_image(vk::Image y_cbcr, .depth = 1, }}); - cmd_buf.copyImage( + cmd.copyImage( y_cbcr, vk::ImageLayout::eGeneral, *in[slot].chroma, @@ -493,18 +526,36 @@ std::pair video_encoder_va::present_image(vk::Image y_cbcr, b.newLayout = vk::ImageLayout::eGeneral; } - cmd_buf.pipelineBarrier( + cmd.pipelineBarrier( vk::PipelineStageFlagBits::eTransfer, - synchronization2 ? vk::PipelineStageFlagBits::eNone : vk::PipelineStageFlagBits::eAllCommands, + vk::PipelineStageFlagBits::eNone, {}, nullptr, nullptr, im_barriers); - return {false, nullptr}; + + cmd.end(); + + std::unique_lock lock(vk.queue_mutex); + vk::CommandBufferSubmitInfo cmd_info{ + .commandBuffer = *cmd, + }; + compositor_sem.stageMask = vk::PipelineStageFlagBits2::eTransfer; + + vk.device.resetFences(*in[slot].fence); + vk.queue.submit2(vk::SubmitInfo2{ + .waitSemaphoreInfoCount = 1, + .pWaitSemaphoreInfos = &compositor_sem, + .commandBufferInfoCount = 1, + .pCommandBufferInfos = &cmd_info, + }, + *in[slot].fence); } void video_encoder_va::push_frame(bool idr, uint8_t slot) { + if (vk.device.waitForFences(*in[slot].fence, true, 1'000'000'000) == vk::Result::eTimeout) + throw std::runtime_error("timeout"); auto & va_frame = in[slot].va_frame; va_frame->pict_type = idr ? AV_PICTURE_TYPE_I : AV_PICTURE_TYPE_P; int err = avcodec_send_frame(encoder_ctx.get(), va_frame.get()); diff --git a/server/encoder/ffmpeg/video_encoder_va.h b/server/encoder/ffmpeg/video_encoder_va.h index d2d5a27c..6d06df40 100644 --- a/server/encoder/ffmpeg/video_encoder_va.h +++ b/server/encoder/ffmpeg/video_encoder_va.h @@ -32,22 +32,25 @@ struct encoder_settings; class video_encoder_va : public video_encoder_ffmpeg { + vk_bundle & vk; + vk::raii::CommandPool cmd_pool; struct in_t { av_frame_ptr va_frame; av_frame_ptr drm_frame; + vk::raii::Fence fence = nullptr; + vk::raii::CommandBuffer cmd = nullptr; vk::raii::Image luma = nullptr; vk::raii::Image chroma = nullptr; std::vector mem; }; av_buffer_ptr drm_frame_ctx; std::array in; - bool synchronization2 = false; public: video_encoder_va(wivrn::vk_bundle &, const wivrn::encoder_settings & settings, uint8_t stream_index); - std::pair present_image(vk::Image y_cbcr, bool transferred, vk::raii::CommandBuffer & cmd_buf, uint8_t slot, uint64_t frame_index) override; + void present_image(vk::Image y_cbcr, vk::SemaphoreSubmitInfo info, uint8_t slot, uint64_t frame_index) override; protected: void push_frame(bool idr, uint8_t slot) override; diff --git a/server/encoder/video_encoder.cpp b/server/encoder/video_encoder.cpp index bd227586..97696cf8 100644 --- a/server/encoder/video_encoder.cpp +++ b/server/encoder/video_encoder.cpp @@ -185,11 +185,15 @@ std::unique_ptr video_encoder::create( return res; } -video_encoder::video_encoder(uint8_t stream_idx, +video_encoder::video_encoder(vk_bundle & vk, + uint8_t stream_idx, + uint32_t target_queue, const encoder_settings & settings, std::unique_ptr idr, bool async_send) : stream_idx(stream_idx), + target_queue(target_queue), + need_transfer(not vk.optimal_transfer(vk.queue_family_index, target_queue)), bitrate_multiplier(settings.bitrate_multiplier), shared_sender(async_send ? sender::get() : nullptr), idr(std::move(idr)), @@ -228,7 +232,7 @@ void video_encoder::set_framerate(float framerate) pending_framerate = framerate; } -std::pair video_encoder::present_image(vk::Image y_cbcr, bool transferred, vk::raii::CommandBuffer & cmd_buf, uint64_t frame_index) +void video_encoder::present_image(vk::Image y_cbcr, vk::SemaphoreSubmitInfo info, uint64_t frame_index) { // Wait for encoder to be done present_slot = (present_slot + 1) % num_slots; @@ -236,17 +240,10 @@ std::pair video_encoder::present_image(vk::Image y_cbcr, bo if (idr->should_skip(frame_index)) { state[present_slot] = skip; - return {false, nullptr}; + return; } state[present_slot] = busy; - return present_image(y_cbcr, transferred, cmd_buf, present_slot, frame_index); -} - -void video_encoder::post_submit() -{ - if (state[present_slot] == skip) - return; - post_submit(present_slot); + return present_image(y_cbcr, info, present_slot, frame_index); } void video_encoder::encode(wivrn_session & cnx, diff --git a/server/encoder/video_encoder.h b/server/encoder/video_encoder.h index 0a4bb002..58b4a72a 100644 --- a/server/encoder/video_encoder.h +++ b/server/encoder/video_encoder.h @@ -76,6 +76,8 @@ private: public: const uint8_t stream_idx; + const uint32_t target_queue; + const bool need_transfer; static const uint8_t num_slots = 2; const double bitrate_multiplier; @@ -115,23 +117,12 @@ public: const encoder_settings & settings, uint8_t stream_idx); - video_encoder(uint8_t stream_idx, const encoder_settings & settings, std::unique_ptr, bool async_send); + video_encoder(vk_bundle &, uint8_t stream_idx, uint32_t target_queue, const encoder_settings & settings, std::unique_ptr, bool async_send); virtual ~video_encoder(); - // true when present_image will perform a copy - // and requires the image to be in transfer src layout - virtual bool need_copy() const - { - return true; - } - - // return value: true if image should be transitioned to queue and layout for vulkan video encode - // semaphore to be signaled by the compositor - std::pair present_image(vk::Image y_cbcr, - bool transferred, - vk::raii::CommandBuffer & cmd_buf, - uint64_t frame_index); - void post_submit(); + void present_image(vk::Image y_cbcr, + vk::SemaphoreSubmitInfo sem_info, + uint64_t frame_index); void on_feedback(const from_headset::feedback &); void reset(); @@ -145,14 +136,13 @@ public: const to_headset::video_stream_data_shard::view_info_t & view_info, uint64_t frame_index); +protected: // called on present to submit command buffers for the image. - virtual std::pair present_image(vk::Image y_cbcr, - bool transferred, - vk::raii::CommandBuffer & cmd_buf, - uint8_t slot, - uint64_t frame_index) = 0; - // called after command buffer passed in present_image was submitted - virtual void post_submit(uint8_t slot) {} + virtual void present_image(vk::Image y_cbcr, + vk::SemaphoreSubmitInfo sem_info, + uint8_t slot, + uint64_t frame_index) = 0; + // called when command buffer finished executing virtual std::optional encode(uint8_t slot, uint64_t frame_index) = 0; diff --git a/server/encoder/video_encoder_nvenc.cpp b/server/encoder/video_encoder_nvenc.cpp index 28d75f37..d373ba5a 100644 --- a/server/encoder/video_encoder_nvenc.cpp +++ b/server/encoder/video_encoder_nvenc.cpp @@ -148,12 +148,24 @@ void video_encoder_nvenc::set_init_params_fps(float framerate) init_params.frameRateDen = 1; } +static vk::raii::CommandPool make_cmd_pool(wivrn::vk_bundle & vk, uint8_t stream_idx) +{ + auto res = vk.device.createCommandPool(vk::CommandPoolCreateInfo{ + + .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer, + .queueFamilyIndex = vk.queue_family_index, + }); + vk.name(res, std::format("nvenc encoder {} command pool", stream_idx)); + return res; +} + video_encoder_nvenc::video_encoder_nvenc( wivrn::vk_bundle & vk, const encoder_settings & settings, uint8_t stream_idx) : - video_encoder(stream_idx, settings, std::make_unique(), true), + video_encoder(vk, stream_idx, vk.queue_family_index, settings, std::make_unique(), true), vk(vk), + cmd_pool{make_cmd_pool(vk, stream_idx)}, shared_state(video_encoder_nvenc_shared_state::get()), fps(settings.fps), bitrate(settings.bitrate) @@ -164,6 +176,16 @@ video_encoder_nvenc::video_encoder_nvenc( assert(extent.width % 32 == 0); assert(extent.height % 32 == 0); + auto command_buffers = vk.device.allocateCommandBuffers( + {.commandPool = *cmd_pool, + .commandBufferCount = num_slots}); + for (size_t i = 0; i < num_slots; ++i) + { + in[i].cmd = std::move(command_buffers[i]); + in[i].fence = vk::raii::Fence(vk.device, + vk::FenceCreateInfo{.flags = vk::FenceCreateFlagBits::eSignaled}); + } + NV_ENC_OPEN_ENCODE_SESSION_EX_PARAMS session_params = { .version = NV_ENC_OPEN_ENCODE_SESSION_EX_PARAMS_VER, .deviceType = NV_ENC_DEVICE_TYPE_CUDA, @@ -396,9 +418,18 @@ video_encoder_nvenc::~video_encoder_nvenc() shared_state->fn.nvEncDestroyEncoder(session_handle); } -std::pair video_encoder_nvenc::present_image(vk::Image y_cbcr, bool transferred, vk::raii::CommandBuffer & cmd_buf, uint8_t slot, uint64_t) +void video_encoder_nvenc::present_image(vk::Image y_cbcr, vk::SemaphoreSubmitInfo compositor_sem, uint8_t slot, uint64_t) { - cmd_buf.copyImageToBuffer( + if (vk.device.waitForFences(*in[slot].fence, true, 1'000'000'000) == vk::Result::eTimeout) + { + U_LOG_E("Timeout on stream %d", stream_idx); + return; + } + auto & cmd = in[slot].cmd; + cmd.reset(); + cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); + + cmd.copyImageToBuffer( y_cbcr, vk::ImageLayout::eGeneral, *in[slot].yuv, @@ -429,12 +460,32 @@ std::pair video_encoder_nvenc::present_image(vk::Image y_cb .depth = 1, }, }}); + cmd.end(); - return {false, nullptr}; + std::unique_lock lock(vk.queue_mutex); + vk::CommandBufferSubmitInfo cmd_info{ + .commandBuffer = *cmd, + }; + compositor_sem.stageMask = vk::PipelineStageFlagBits2::eTransfer; + + vk.device.resetFences(*in[slot].fence); + vk.queue.submit2(vk::SubmitInfo2{ + .waitSemaphoreInfoCount = 1, + .pWaitSemaphoreInfos = &compositor_sem, + .commandBufferInfoCount = 1, + .pCommandBufferInfos = &cmd_info, + }, + *in[slot].fence); } std::optional video_encoder_nvenc::encode(uint8_t slot, uint64_t frame_index) { + if (vk.device.waitForFences(*in[slot].fence, true, 1'000'000'000) == vk::Result::eTimeout) + { + U_LOG_E("Timeout on stream %d", stream_idx); + return {}; + } + CU_CHECK(shared_state->cuda_fn->cuCtxPushCurrent(shared_state->cuda)); auto & idr_handler = ((default_idr_handler &)*idr); diff --git a/server/encoder/video_encoder_nvenc.h b/server/encoder/video_encoder_nvenc.h index 22a59230..13c421b4 100644 --- a/server/encoder/video_encoder_nvenc.h +++ b/server/encoder/video_encoder_nvenc.h @@ -34,6 +34,7 @@ class video_encoder_nvenc : public video_encoder { private: wivrn::vk_bundle & vk; + vk::raii::CommandPool cmd_pool; std::shared_ptr shared_state; @@ -44,6 +45,8 @@ private: struct in_t { + vk::raii::Fence fence = nullptr; + vk::raii::CommandBuffer cmd = nullptr; vk::raii::Buffer yuv = nullptr; vk::raii::DeviceMemory mem = nullptr; NV_ENC_REGISTERED_PTR nvenc_resource; @@ -61,7 +64,7 @@ public: video_encoder_nvenc(wivrn::vk_bundle & vk, const encoder_settings & settings, uint8_t stream_idx); ~video_encoder_nvenc(); - std::pair present_image(vk::Image y_cbcr, bool transferred, vk::raii::CommandBuffer & cmd_buf, uint8_t slot, uint64_t frame_index) override; + void present_image(vk::Image y_cbcr, vk::SemaphoreSubmitInfo info, uint8_t slot, uint64_t frame_index) override; std::optional encode(uint8_t slot, uint64_t frame_index) override; static std::array get_max_size(video_codec); diff --git a/server/encoder/video_encoder_raw.cpp b/server/encoder/video_encoder_raw.cpp index 4f3b9b86..5a9da432 100644 --- a/server/encoder/video_encoder_raw.cpp +++ b/server/encoder/video_encoder_raw.cpp @@ -19,6 +19,7 @@ #include "video_encoder_raw.h" #include "encoder/encoder_settings.h" +#include "util/u_logging.h" #include "utils/wivrn_vk_bundle.h" namespace @@ -33,13 +34,30 @@ public: return false; }; }; +vk::raii::CommandPool make_cmd_pool(wivrn::vk_bundle & vk, uint8_t stream_idx) +{ + auto res = vk.device.createCommandPool(vk::CommandPoolCreateInfo{ + + .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer, + .queueFamilyIndex = *vk.transfer_queue ? vk.transfer_queue_family_index : vk.queue_family_index, + }); + vk.name(res, std::format("raw encoder {} command pool", stream_idx)); + return res; +} } // namespace wivrn::video_encoder_raw::video_encoder_raw( wivrn::vk_bundle & vk, const encoder_settings & settings, uint8_t stream_idx) : - video_encoder(stream_idx, settings, std::make_unique(), true) + video_encoder(vk, + stream_idx, + *vk.transfer_queue ? vk.transfer_queue_family_index : vk.queue_family_index, + settings, + std::make_unique(), + true), + vk{vk}, + cmd_pool{make_cmd_pool(vk, stream_idx)} { if (settings.bit_depth != 8) throw std::runtime_error("Raw encoding is only supported for 8 bit"); @@ -47,9 +65,15 @@ wivrn::video_encoder_raw::video_encoder_raw( vk::DeviceSize buffer_size = extent.width * extent.height; if (stream_idx < 2) buffer_size += buffer_size / 2; - for (auto & slot: buffers) + + auto command_buffers = vk.device.allocateCommandBuffers( + {.commandPool = *cmd_pool, + .commandBufferCount = num_slots}); + + for (size_t i = 0; i < num_slots; ++i) { - slot = buffer_allocation( + in[i].cmd = std::move(command_buffers[i]); + in[i].buffer = buffer_allocation( vk.device, { .size = buffer_size, @@ -57,14 +81,46 @@ wivrn::video_encoder_raw::video_encoder_raw( }, { .flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT, - .usage = VMA_MEMORY_USAGE_AUTO, + .usage = VMA_MEMORY_USAGE_AUTO_PREFER_HOST, }, "raw stream buffer"); + in[i].fence = vk::raii::Fence(vk.device, + vk::FenceCreateInfo{.flags = vk::FenceCreateFlagBits::eSignaled}); } } -std::pair wivrn::video_encoder_raw::present_image(vk::Image y_cbcr, bool transferred, vk::raii::CommandBuffer & cmd_buf, uint8_t slot, uint64_t) +void wivrn::video_encoder_raw::present_image(vk::Image y_cbcr, vk::SemaphoreSubmitInfo compositor_sem, uint8_t slot, uint64_t) { + if (vk.device.waitForFences(*in[slot].fence, true, 1'000'000'000) == vk::Result::eTimeout) + { + U_LOG_E("Timeout on stream %d", stream_idx); + return; + } + + auto & cmd = in[slot].cmd; + cmd.reset(); + cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); + + if (need_transfer) + { + vk::ImageMemoryBarrier2 barrier{ + .dstStageMask = vk::PipelineStageFlagBits2KHR::eTransfer, + .dstAccessMask = vk::AccessFlagBits2::eTransferRead, + .srcQueueFamilyIndex = vk.queue_family_index, + .dstQueueFamilyIndex = target_queue, + .image = y_cbcr, + .subresourceRange = {.aspectMask = vk::ImageAspectFlagBits::eColor, + .baseMipLevel = 0, + .levelCount = 1, + .baseArrayLayer = stream_idx, + .layerCount = 1}, + }; + cmd.pipelineBarrier2({ + .imageMemoryBarrierCount = 1, + .pImageMemoryBarriers = &barrier, + }); + } + std::array regions{ vk::BufferImageCopy{ .imageSubresource = { @@ -92,19 +148,42 @@ std::pair wivrn::video_encoder_raw::present_image(vk::Image }, }, }; - cmd_buf.copyImageToBuffer( + cmd.copyImageToBuffer( y_cbcr, vk::ImageLayout::eGeneral, - buffers[slot], + in[slot].buffer, std::span(regions.data(), stream_idx < 2 ? 2 : 1)); - return {false, nullptr}; + + cmd.end(); + + std::unique_lock lock(*vk.transfer_queue ? vk.transfer_queue_mutex : vk.queue_mutex); + vk::CommandBufferSubmitInfo cmd_info{ + .commandBuffer = *cmd, + }; + compositor_sem.stageMask = vk::PipelineStageFlagBits2::eTransfer; + + vk.device.resetFences(*in[slot].fence); + (*vk.transfer_queue ? vk.transfer_queue : vk.queue) + .submit2(vk::SubmitInfo2{ + .waitSemaphoreInfoCount = 1, + .pWaitSemaphoreInfos = &compositor_sem, + .commandBufferInfoCount = 1, + .pCommandBufferInfos = &cmd_info, + }, + *in[slot].fence); } std::optional wivrn::video_encoder_raw::encode(uint8_t slot, uint64_t frame_id) { + if (vk.device.waitForFences(*in[slot].fence, true, 1'000'000'000) == vk::Result::eTimeout) + { + U_LOG_W("Timeout on stream %d", stream_idx); + return {}; + } + return wivrn::video_encoder::data{ .encoder = this, - .span = std::span((uint8_t *)buffers[slot].map(), buffers[slot].info().size), + .span = std::span((uint8_t *)in[slot].buffer.map(), in[slot].buffer.info().size), }; } diff --git a/server/encoder/video_encoder_raw.h b/server/encoder/video_encoder_raw.h index 416eb8a9..51c021da 100644 --- a/server/encoder/video_encoder_raw.h +++ b/server/encoder/video_encoder_raw.h @@ -28,12 +28,21 @@ namespace wivrn class video_encoder_raw : public video_encoder { - std::array buffers; + vk_bundle & vk; + vk::raii::CommandPool cmd_pool; + + struct in_t + { + vk::raii::Fence fence = nullptr; + vk::raii::CommandBuffer cmd = nullptr; + buffer_allocation buffer; + }; + std::array in; public: video_encoder_raw(wivrn::vk_bundle & vk, const encoder_settings & settings, uint8_t stream_idx); - std::pair present_image(vk::Image y_cbcr, bool transferred, vk::raii::CommandBuffer & cmd_buf, uint8_t slot, uint64_t frame_index) override; + void present_image(vk::Image y_cbcr, vk::SemaphoreSubmitInfo info, uint8_t slot, uint64_t frame_index) override; std::optional encode(uint8_t slot, uint64_t frame_id) override; }; diff --git a/server/encoder/video_encoder_vulkan.cpp b/server/encoder/video_encoder_vulkan.cpp index 1aa2597d..b511f9e2 100644 --- a/server/encoder/video_encoder_vulkan.cpp +++ b/server/encoder/video_encoder_vulkan.cpp @@ -124,6 +124,7 @@ public: return {ref_slot, &*slot}; } }; + } // namespace static uint32_t align(uint32_t value, uint32_t alignment) @@ -161,11 +162,16 @@ wivrn::video_encoder_vulkan::video_encoder_vulkan( const vk::VideoEncodeCapabilitiesKHR & in_encode_caps, uint8_t stream_idx, const encoder_settings & settings) : - video_encoder(stream_idx, settings, std::make_unique(), true), + video_encoder(vk, stream_idx, vk.encode_queue_family_index, settings, std::make_unique(), true), vk(vk), encode_caps(patch_capabilities(in_encode_caps)), num_dpb_slots(std::min(video_caps.maxDpbSlots, 16u)) { + if (not std::get(vk.feat).timelineSemaphore) + throw std::runtime_error("Cannot use vulkan video encode without timeline semaphores"); + if (not std::get(vk.feat).videoMaintenance1) + throw std::runtime_error("Cannot use vulkan video encode without VideoMaintenance1 feature"); + // Initialize Rate control U_LOG_D("Supported rate control modes: %s", vk::to_string(encode_caps.rateControlModes).c_str()); @@ -284,11 +290,11 @@ void wivrn::video_encoder_vulkan::init(const vk::VideoCapabilitiesKHR & video_ca { .usage = VMA_MEMORY_USAGE_AUTO, }, - "vulkan encoder DPB image"); + std::format("vulkan encoder {} DPB image", stream_idx)); } // Output buffer - for (auto & item: slot_data) + for (auto [i, item]: std::ranges::enumerate_view(slot_data)) { // very conservative bound size_t output_buffer_size = extent.width * extent.height * 3; @@ -305,9 +311,9 @@ void wivrn::video_encoder_vulkan::init(const vk::VideoCapabilitiesKHR & video_ca .flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT | VMA_ALLOCATION_CREATE_HOST_ACCESS_ALLOW_TRANSFER_INSTEAD_BIT, .usage = VMA_MEMORY_USAGE_AUTO, }, - "vulkan encode output buffer"); + std::format("vulkan encode {} output buffer {}", stream_idx, i)); - if (not(item.output_buffer.properties() & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT)) + if (not(item.output_buffer.properties() & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) or std::getenv("WIVRN_ASSUME_DGPU")) { U_LOG_D("Using staging buffer for vulkan encode output"); item.host_buffer = buffer_allocation( @@ -321,7 +327,7 @@ void wivrn::video_encoder_vulkan::init(const vk::VideoCapabilitiesKHR & video_ca .flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT, .usage = VMA_MEMORY_USAGE_AUTO_PREFER_HOST, }, - "vulkan encode host buffer"); + std::format("vulkan encode {} host buffer {}", stream_idx, i)); } } @@ -401,38 +407,6 @@ void wivrn::video_encoder_vulkan::init(const vk::VideoCapabilitiesKHR & video_ca .layerCount = 1}, }; - if (not std::get(vk.feat).videoMaintenance1) - { - image_view_template.subresourceRange.baseArrayLayer = 0; - for (size_t i = 0; i < num_slots; ++i) - { - slot_data[i].tmp_image = image_allocation( - vk.device, { - .pNext = &video_profile_list, - .imageType = vk::ImageType::e2D, - .format = picture_format.format, - .extent = { - .width = extent.width, - .height = extent.height, - .depth = 1, - }, - .mipLevels = 1, - .arrayLayers = 1, - .samples = vk::SampleCountFlagBits::e1, - .tiling = vk::ImageTiling::eOptimal, - .usage = vk::ImageUsageFlagBits::eTransferDst | vk::ImageUsageFlagBits::eVideoEncodeSrcKHR, - .sharingMode = vk::SharingMode::eExclusive, - }, - { - .usage = VMA_MEMORY_USAGE_AUTO, - }, - "vulkan encoder temporary image"); - image_view_template.image = vk::Image(slot_data[i].tmp_image); - slot_data[i].view = vk.device.createImageView(image_view_template); - vk.name(slot_data[i].view, "vulkan encoder temporary image view"); - } - } - auto & dpb = (dpb_state &)*idr; // DPB slot info @@ -466,7 +440,7 @@ void wivrn::video_encoder_vulkan::init(const vk::VideoCapabilitiesKHR & video_ca img_view_create_info.subresourceRange.baseArrayLayer = i; vk::raii::ImageView v(vk.device, img_view_create_info); vk::ImageView v1(*v); - vk.name(v, "vulkan encoder dpb view"); + vk.name(v, std::format("vulkan encoder {} dpb view {}", stream_idx, i)); dpb.items.push_back({ .image_view = std::move(v), .resource = { @@ -486,21 +460,20 @@ void wivrn::video_encoder_vulkan::init(const vk::VideoCapabilitiesKHR & video_ca }); } - // fence, semaphore - for (auto [i, item]: std::ranges::enumerate_view(slot_data)) + // semaphore + sem = vk.device.createSemaphore(vk::StructureChain{ + vk::SemaphoreCreateInfo{}, + vk::SemaphoreTypeCreateInfo{ + .semaphoreType = vk::SemaphoreType::eTimeline, + }} + .get()); + vk.name(sem, std::format("vulkan encoder {} semaphore", stream_idx)); + + // fences + for (size_t i = 0; i < num_slots; ++i) { - item.fence = vk.device.createFence({.flags = vk::FenceCreateFlagBits::eSignaled}); - item.wait_sem = vk.device.createSemaphore({}); - item.sem = vk.device.createSemaphore(vk::StructureChain{ - vk::SemaphoreCreateInfo{}, - vk::SemaphoreTypeCreateInfo{ - .semaphoreType = vk::SemaphoreType::eTimeline, - }, - } - .get()); - vk.name(item.fence, "vulkan encoder fence"); - vk.name(item.wait_sem, "vulkan encoder wait semaphore"); - vk.name(item.sem, "vulkan encoder complete semaphore"); + slot_data[i].fence = vk.device.createFence(vk::FenceCreateInfo{.flags = vk::FenceCreateFlagBits::eSignaled}); + vk.name(slot_data[i].fence, std::format("vulkan encoder {} fence {}", stream_idx, i)); } // query pool @@ -519,7 +492,7 @@ void wivrn::video_encoder_vulkan::init(const vk::VideoCapabilitiesKHR & video_ca }; query_pool = vk.device.createQueryPool(query_pool_create.get()); - vk.name(query_pool, "vulkan encoder query pool"); + vk.name(query_pool, std::format("vulkan encoder {} query pool", stream_idx)); } // command pools @@ -529,7 +502,7 @@ void wivrn::video_encoder_vulkan::init(const vk::VideoCapabilitiesKHR & video_ca .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer, .queueFamilyIndex = vk.encode_queue_family_index, }); - vk.name(video_command_pool, "vulkan encoder video command pool"); + vk.name(video_command_pool, std::format("vulkan encoder {} video command pool", stream_idx)); auto command_buffers = vk.device.allocateCommandBuffers( {.commandPool = *video_command_pool, @@ -538,26 +511,34 @@ void wivrn::video_encoder_vulkan::init(const vk::VideoCapabilitiesKHR & video_ca for (size_t i = 0; i < num_slots; ++i) { slot_data[i].video_cmd_buf = std::move(command_buffers[i]); - vk.name(slot_data[i].video_cmd_buf, "vulkan encoder video command buffer"); + vk.name(slot_data[i].video_cmd_buf, std::format("vulkan encoder {} video command buffer {}", stream_idx, i)); } - auto properties = vk.physical_device.getQueueFamilyProperties().at(vk.encode_queue_family_index); - if (not(properties.queueFlags & vk::QueueFlagBits::eTransfer)) + if (slot_data[0].host_buffer) { - transfer_command_pool = vk.device.createCommandPool( - vk::CommandPoolCreateInfo{ - .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer, - .queueFamilyIndex = vk.queue_family_index, - }); - vk.name(transfer_command_pool, "vulkan encoder transfer command pool"); - - auto command_buffers = vk.device.allocateCommandBuffers( - {.commandPool = *transfer_command_pool, - .commandBufferCount = num_slots}); - for (size_t i = 0; i < num_slots; ++i) + if (*vk.transfer_queue) { - slot_data[i].transfer_cmd_buf = std::move(command_buffers[i]); - vk.name(slot_data[i].transfer_cmd_buf, "vulkan encoder transfer command buffer"); + transfer_command_pool = vk.device.createCommandPool( + vk::CommandPoolCreateInfo{ + .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer, + .queueFamilyIndex = vk.transfer_queue_family_index, + }); + vk.name(transfer_command_pool, std::format("vulkan encoder {} transfer command pool", stream_idx)); + + auto command_buffers = vk.device.allocateCommandBuffers( + {.commandPool = *transfer_command_pool, + .commandBufferCount = num_slots}); + for (size_t i = 0; i < num_slots; ++i) + { + slot_data[i].transfer_cmd_buf = std::move(command_buffers[i]); + vk.name(slot_data[i].transfer_cmd_buf, std::format("vulkan encoder {} transfer command buffer {}", stream_idx, i)); + } + } + else + { + auto properties = vk.physical_device.getQueueFamilyProperties().at(vk.encode_queue_family_index); + if (not(properties.queueFlags & vk::QueueFlagBits::eTransfer)) + throw std::runtime_error("Incorrect vulkan queues for video encode support"); } } } @@ -576,222 +557,50 @@ std::vector wivrn::video_encoder_vulkan::get_encoded_parameters(void * return encoded; } -std::optional wivrn::video_encoder_vulkan::encode(uint8_t encode_slot, uint64_t frame_index) +void wivrn::video_encoder_vulkan::present_image(vk::Image y_cbcr, vk::SemaphoreSubmitInfo compositor_sem, uint8_t encode_slot, uint64_t frame_index) { auto & slot_item = slot_data[encode_slot]; - if (slot_item.idr) - send_idr_data(); - if (auto res = vk.device.waitForFences(*slot_item.fence, true, 1'000'000'000); - res != vk::Result::eSuccess) + if (vk.device.waitForFences(*slot_item.fence, true, 1'000'000'000) == vk::Result::eTimeout) { - throw std::runtime_error("wait for fences: " + vk::to_string(res)); + U_LOG_E("Timeout on stream %d", stream_idx); + return; } + slot_item.busy.wait(true); - auto [res, size] = query_pool.getResult(encode_slot, 1, 0, vk::QueryResultFlagBits::eWait); - if (res != vk::Result::eSuccess) - { - std::cerr << "device.getQueryPoolResults: " << vk::to_string(res) << std::endl; - } - - // We don't copy the whole buffer, but an estimate of how much we'll need - // If that wasn't enough, we have to issue a second copy command for the rest - if (slot_item.host_buffer and size > slot_item.copy_size) - { - U_LOG_D("additional copy needed: %ld", size - slot_item.copy_size); - const bool main_queue = *slot_item.transfer_cmd_buf; - // The encoded image is larger than expected, we need to copy some more data - vk::raii::CommandBuffer & cmd_buf = main_queue ? slot_item.transfer_cmd_buf : slot_item.video_cmd_buf; - - cmd_buf.reset(); - cmd_buf.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); - - cmd_buf.copyBuffer( - slot_item.output_buffer, - slot_item.host_buffer, - vk::BufferCopy{ - .srcOffset = slot_item.copy_size, - .dstOffset = slot_item.copy_size, - .size = size - slot_item.copy_size, - }); - - cmd_buf.end(); - - vk.device.resetFences(*slot_item.fence); - - { - std::unique_lock lock(main_queue ? vk.queue_mutex : vk.encode_queue_mutex); - auto & queue = main_queue ? vk.queue : vk.encode_queue; - queue.submit(vk::SubmitInfo{ - .commandBufferCount = 1, - .pCommandBuffers = &*cmd_buf, - }, - *slot_item.fence); - } - if (auto res = vk.device.waitForFences(*slot_item.fence, true, 1'000'000'000); - res != vk::Result::eSuccess) - { - throw std::runtime_error("wait for fences: " + vk::to_string(res)); - } - } - - void * mapped = slot_item.host_buffer ? slot_item.host_buffer.map() : slot_item.output_buffer.map(); - - return data{ - .encoder = this, - .span = std::span(((uint8_t *)mapped), size), - .mem = std::shared_ptr(&slot_item.busy, [](std::atomic_bool * busy) {*busy = false; busy->notify_all(); }), - .prefer_control = slot_item.idr, - }; -} - -std::pair wivrn::video_encoder_vulkan::present_image(vk::Image y_cbcr, bool transferred, vk::raii::CommandBuffer & cmd_buf, uint8_t encode_slot, uint64_t frame_index) -{ - auto & slot_item = slot_data[encode_slot]; auto & video_cmd_buf = slot_item.video_cmd_buf; video_cmd_buf.reset(); video_cmd_buf.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); - // If we encode from top left corner, encode from the source image directly - bool encode_direct = not slot_item.tmp_image; - vk::ImageView image_view; - if (encode_direct) + if (need_transfer) { - if (not transferred) - { - vk::ImageMemoryBarrier2 video_barrier{ - .srcStageMask = vk::PipelineStageFlagBits2KHR::eTransfer, - .dstStageMask = vk::PipelineStageFlagBits2KHR::eVideoEncodeKHR, - .dstAccessMask = vk::AccessFlagBits2::eVideoEncodeReadKHR, - .newLayout = vk::ImageLayout::eVideoEncodeSrcKHR, - .srcQueueFamilyIndex = vk.queue_family_index, - .dstQueueFamilyIndex = vk.encode_queue_family_index, - .image = y_cbcr, - .subresourceRange = {.aspectMask = vk::ImageAspectFlagBits::eColor, - .baseMipLevel = 0, - .levelCount = 1, - .baseArrayLayer = 0, - .layerCount = vk::RemainingArrayLayers}, - }; - video_cmd_buf.pipelineBarrier2({ - .imageMemoryBarrierCount = 1, - .pImageMemoryBarriers = &video_barrier, - }); - } - - auto it = image_views.find(VkImage(y_cbcr)); - if (it != image_views.end()) - image_view = *it->second; - else - { - image_view_template.image = y_cbcr; - image_view = *image_views.emplace(y_cbcr, vk.device.createImageView(image_view_template)).first->second; - } - } - else - { - vk::ImageMemoryBarrier barrier{ - .srcAccessMask = vk::AccessFlagBits::eNone, - .dstAccessMask = vk::AccessFlagBits::eTransferWrite, - .oldLayout = vk::ImageLayout::eUndefined, - .newLayout = vk::ImageLayout::eTransferDstOptimal, - .image = slot_item.tmp_image, - .subresourceRange = { - .aspectMask = vk::ImageAspectFlagBits::eColor, - .levelCount = 1, - .baseArrayLayer = 0, - .layerCount = 1, - }, - }; - - cmd_buf.pipelineBarrier( - vk::PipelineStageFlagBits::eNone, - vk::PipelineStageFlagBits::eTransfer, - vk::DependencyFlags{}, - {}, - {}, - barrier); - - cmd_buf.copyImage( - y_cbcr, - vk::ImageLayout::eGeneral, - slot_item.tmp_image, - vk::ImageLayout::eTransferDstOptimal, - { - vk::ImageCopy{ - .srcSubresource = { - .aspectMask = vk::ImageAspectFlagBits::ePlane0, - .baseArrayLayer = stream_idx, - .layerCount = 1, - }, - .dstSubresource = { - .aspectMask = vk::ImageAspectFlagBits::ePlane0, - .baseArrayLayer = 0, - .layerCount = 1, - }, - .extent = { - .width = extent.width, - .height = extent.height, - .depth = 1, - }, - }, - vk::ImageCopy{ - .srcSubresource = { - .aspectMask = vk::ImageAspectFlagBits::ePlane1, - .baseArrayLayer = stream_idx, - .layerCount = 1, - }, - .dstSubresource = { - .aspectMask = vk::ImageAspectFlagBits::ePlane1, - .baseArrayLayer = 0, - .layerCount = 1, - }, - .extent = { - .width = extent.width / 2, - .height = extent.height / 2, - .depth = 1, - }, - }, - }); - - barrier.srcAccessMask = barrier.dstAccessMask; - barrier.dstAccessMask = vk::AccessFlagBits::eNone; - barrier.srcQueueFamilyIndex = vk.queue_family_index; - barrier.dstQueueFamilyIndex = vk.encode_queue_family_index; - barrier.oldLayout = barrier.newLayout; - barrier.newLayout = vk::ImageLayout::eVideoEncodeSrcKHR; - - cmd_buf.pipelineBarrier( - vk::PipelineStageFlagBits::eTransfer, - vk::PipelineStageFlagBits::eNone, - vk::DependencyFlags{}, - {}, - {}, - barrier); - vk::ImageMemoryBarrier2 video_barrier{ - .srcStageMask = vk::PipelineStageFlagBits2KHR::eTransfer, - .srcAccessMask = vk::AccessFlagBits2::eMemoryWrite, .dstStageMask = vk::PipelineStageFlagBits2KHR::eVideoEncodeKHR, .dstAccessMask = vk::AccessFlagBits2::eVideoEncodeReadKHR, - .oldLayout = vk::ImageLayout::eTransferDstOptimal, - .newLayout = vk::ImageLayout::eVideoEncodeSrcKHR, .srcQueueFamilyIndex = vk.queue_family_index, - .dstQueueFamilyIndex = vk.encode_queue_family_index, - .image = slot_item.tmp_image, + .dstQueueFamilyIndex = target_queue, + .image = y_cbcr, .subresourceRange = {.aspectMask = vk::ImageAspectFlagBits::eColor, .baseMipLevel = 0, .levelCount = 1, - .baseArrayLayer = 0, + .baseArrayLayer = stream_idx, .layerCount = 1}, }; video_cmd_buf.pipelineBarrier2({ .imageMemoryBarrierCount = 1, .pImageMemoryBarriers = &video_barrier, }); - image_view = slot_item.view; + } + + auto it = image_views.find(VkImage(y_cbcr)); + if (it != image_views.end()) + image_view = *it->second; + else + { + image_view_template.image = y_cbcr; + image_view = *image_views.emplace(y_cbcr, vk.device.createImageView(image_view_template)).first->second; } video_cmd_buf.resetQueryPool(*query_pool, encode_slot, 1); @@ -888,7 +697,6 @@ std::pair wivrn::video_encoder_vulkan::present_image(vk::Im .pNext = &rate_control.value(), .flags = vk::VideoCodingControlFlagBitsKHR::eEncodeRateControl, }); - if (rate_control) slot_item.copy_size = (rate_control_layer.maxBitrate * rate_control_layer.frameRateDenominator) / rate_control_layer.frameRateNumerator; else @@ -928,112 +736,187 @@ std::pair wivrn::video_encoder_vulkan::present_image(vk::Im // When output buffer is not visible, we have to issue a transfer operation if (slot_item.host_buffer) { - vk::BufferMemoryBarrier2 barrier{ - .srcStageMask = vk::PipelineStageFlagBits2::eAllCommands, - .srcAccessMask = vk::AccessFlagBits2::eMemoryWrite, - .dstStageMask = vk::PipelineStageFlagBits2::eAllCommands, - .dstAccessMask = vk::AccessFlagBits2::eMemoryRead, - .srcQueueFamilyIndex = vk.encode_queue_family_index, - .dstQueueFamilyIndex = vk.encode_queue_family_index, - .buffer = slot_item.output_buffer, - .size = vk::WholeSize, - }; - - vk::raii::CommandBuffer * transfer_cmd_buf; if (*slot_item.transfer_cmd_buf) { - // We need to transfer the buffer on the main queue - barrier.dstQueueFamilyIndex = vk.queue_family_index; - transfer_cmd_buf = &slot_item.transfer_cmd_buf; + auto & cmd = slot_item.transfer_cmd_buf; + // transfer on a dedicated queue + cmd.reset(); + cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); - transfer_cmd_buf->reset(); - transfer_cmd_buf->begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); - transfer_cmd_buf->pipelineBarrier2({ - .bufferMemoryBarrierCount = 1, - .pBufferMemoryBarriers = &barrier, - }); + { + vk::BufferMemoryBarrier2 buf_barrier{ + .srcStageMask = vk::PipelineStageFlagBits2::eVideoEncodeKHR, + .srcAccessMask = vk::AccessFlagBits2::eMemoryWrite, + .dstStageMask = vk::PipelineStageFlagBits2::eTransfer, + .dstAccessMask = vk::AccessFlagBits2::eMemoryRead, + .srcQueueFamilyIndex = vk.encode_queue_family_index, + .dstQueueFamilyIndex = vk.transfer_queue_family_index, + .buffer = slot_item.output_buffer, + .size = slot_item.copy_size, + }; + vk::DependencyInfo dep_info{ + .bufferMemoryBarrierCount = 1, + .pBufferMemoryBarriers = &buf_barrier, + }; + video_cmd_buf.pipelineBarrier2(dep_info); + cmd.pipelineBarrier2(dep_info); + } + + cmd.copyBuffer( + slot_item.output_buffer, + slot_item.host_buffer, + vk::BufferCopy{ + .size = slot_item.copy_size, + }); + cmd.end(); } else - transfer_cmd_buf = &video_cmd_buf; - - video_cmd_buf.pipelineBarrier2({ - .bufferMemoryBarrierCount = 1, - .pBufferMemoryBarriers = &barrier, - }); - - transfer_cmd_buf->copyBuffer( - slot_item.output_buffer, - slot_item.host_buffer, - vk::BufferCopy{ - .size = slot_item.copy_size, - }); - - if (*slot_item.transfer_cmd_buf) - transfer_cmd_buf->end(); + { + // transfer on video queue + vk::MemoryBarrier2 mem_barrier{ + .srcStageMask = vk::PipelineStageFlagBits2::eVideoEncodeKHR, + .srcAccessMask = vk::AccessFlagBits2::eVideoEncodeWriteKHR, + .dstStageMask = vk::PipelineStageFlagBits2::eTransfer, + .dstAccessMask = vk::AccessFlagBits2::eTransferRead, + }; + video_cmd_buf.pipelineBarrier2({ + .memoryBarrierCount = 1, + .pMemoryBarriers = &mem_barrier, + }); + video_cmd_buf.copyBuffer( + slot_item.output_buffer, + slot_item.host_buffer, + vk::BufferCopy{ + .size = slot_item.copy_size, + }); + } } video_cmd_buf.end(); ++dpb.frame_num; - // If we encode directly from the source, request a transition to video queue - return {encode_direct, slot_item.wait_sem}; -} - -void wivrn::video_encoder_vulkan::post_submit(uint8_t slot) -{ - auto & slot_item = slot_data[slot]; - const auto & prev_slot = slot_data[(slot + num_slots - 1) % num_slots]; - slot_item.busy.wait(true); - slot_item.busy = true; - const bool need_transfer = *slot_item.transfer_cmd_buf and slot_item.host_buffer; - // Issue encode command, and if necessary transfer command vk.device.resetFences(*slot_item.fence); - std::array wait_sem_info{ - vk::SemaphoreSubmitInfo{ - .semaphore = *prev_slot.sem, - .value = prev_slot.sem_value, - .stageMask = vk::PipelineStageFlagBits2::eAllCommands, - }, - vk::SemaphoreSubmitInfo{ - .semaphore = *slot_item.wait_sem, - .stageMask = vk::PipelineStageFlagBits2::eAllCommands, - }, - }; - vk::SemaphoreSubmitInfo sem_info{ - .semaphore = slot_item.sem, - .value = ++slot_item.sem_value, - .stageMask = vk::PipelineStageFlagBits2::eAllCommands, - }; - vk::CommandBufferSubmitInfo cmd_info{ - .commandBuffer = slot_item.video_cmd_buf, - }; - { + vk::CommandBufferSubmitInfo cmd_info{ + .commandBuffer = slot_item.video_cmd_buf, + }; + compositor_sem.stageMask = vk::PipelineStageFlagBits2::eVideoEncodeKHR; + + vk::SemaphoreSubmitInfo signal_info{ + .semaphore = *sem, + .value = ++sem_value, + .stageMask = vk::PipelineStageFlagBits2::eVideoEncodeKHR, + }; + std::unique_lock lock(vk.encode_queue_mutex); vk.encode_queue.submit2( vk::SubmitInfo2{ - .waitSemaphoreInfoCount = wait_sem_info.size(), - .pWaitSemaphoreInfos = wait_sem_info.data(), + .waitSemaphoreInfoCount = 1, + .pWaitSemaphoreInfos = &compositor_sem, .commandBufferInfoCount = 1, .pCommandBufferInfos = &cmd_info, .signalSemaphoreInfoCount = 1, - .pSignalSemaphoreInfos = &sem_info, + .pSignalSemaphoreInfos = &signal_info, }, - need_transfer ? nullptr : *slot_item.fence); + *slot_item.transfer_cmd_buf ? nullptr : *slot_item.fence); } - if (need_transfer) + + if (*slot_item.transfer_cmd_buf) { - // caller already holds the lock vk::CommandBufferSubmitInfo cmd_info{ - .commandBuffer = slot_item.transfer_cmd_buf, + .commandBuffer = *slot_item.transfer_cmd_buf, }; - vk.queue.submit2(vk::SubmitInfo2{ - .waitSemaphoreInfoCount = 1, - .pWaitSemaphoreInfos = &sem_info, - .commandBufferInfoCount = 1, - .pCommandBufferInfos = &cmd_info, - }, - *slot_item.fence); + + vk::SemaphoreSubmitInfo wait_info{ + .semaphore = *sem, + .value = sem_value, + .stageMask = vk::PipelineStageFlagBits2::eTransfer, + }; + + std::unique_lock lock(vk.transfer_queue_mutex); + vk.transfer_queue.submit2(vk::SubmitInfo2{ + .waitSemaphoreInfoCount = 1, + .pWaitSemaphoreInfos = &wait_info, + .commandBufferInfoCount = 1, + .pCommandBufferInfos = &cmd_info, + }, + *slot_item.fence); } } + +std::optional wivrn::video_encoder_vulkan::encode(uint8_t encode_slot, uint64_t frame_index) +{ + auto & slot_item = slot_data[encode_slot]; + if (slot_item.idr) + send_idr_data(); + + if (vk.device.waitForFences(*slot_item.fence, true, 1'000'000'000) == vk::Result::eTimeout) + { + U_LOG_E("Timeout on stream %d", stream_idx); + return {}; + } + + auto [res, size] = query_pool.getResult(encode_slot, 1, 0, vk::QueryResultFlagBits::eWait); + if (res != vk::Result::eSuccess) + { + std::cerr << "device.getQueryPoolResults: " << vk::to_string(res) << std::endl; + } + + // We don't copy the whole buffer, but an estimate of how much we'll need + // If that wasn't enough, we have to issue a second copy command for the rest + if (slot_item.host_buffer and size > slot_item.copy_size) + { + U_LOG_D("additional copy needed: %ld", size - slot_item.copy_size); + const bool transfer_queue = *slot_item.transfer_cmd_buf; + // The encoded image is larger than expected, we need to copy some more data + vk::raii::CommandBuffer & cmd = transfer_queue ? slot_item.transfer_cmd_buf : slot_item.video_cmd_buf; + + cmd.reset(); + cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); + + cmd.copyBuffer( + slot_item.output_buffer, + slot_item.host_buffer, + vk::BufferCopy{ + .srcOffset = slot_item.copy_size, + .dstOffset = slot_item.copy_size, + .size = size - slot_item.copy_size, + }); + + cmd.end(); + + { + std::unique_lock lock(transfer_queue ? vk.transfer_queue_mutex : vk.encode_queue_mutex); + auto & queue = transfer_queue ? vk.transfer_queue : vk.encode_queue; + + vk::CommandBufferSubmitInfo cmd_info{ + .commandBuffer = *cmd, + }; + + vk.device.resetFences(*slot_item.fence); + queue.submit2(vk::SubmitInfo2{ + .commandBufferInfoCount = 1, + .pCommandBufferInfos = &cmd_info, + }, + *slot_item.fence); + } + + if (vk.device.waitForFences(*slot_item.fence, true, 1'000'000'000) == vk::Result::eTimeout) + { + U_LOG_E("Timeout on stream %d", stream_idx); + return {}; + } + } + + void * mapped = slot_item.host_buffer ? slot_item.host_buffer.map() : slot_item.output_buffer.map(); + + slot_item.busy = true; + return data{ + .encoder = this, + .span = std::span(((uint8_t *)mapped), size), + .mem = std::shared_ptr(&slot_item.busy, + [](auto * b) {*b = false;b->notify_all(); }), + .prefer_control = slot_item.idr, + }; +} diff --git a/server/encoder/video_encoder_vulkan.h b/server/encoder/video_encoder_vulkan.h index 59fa054b..e0d34dce 100644 --- a/server/encoder/video_encoder_vulkan.h +++ b/server/encoder/video_encoder_vulkan.h @@ -38,6 +38,9 @@ class video_encoder_vulkan : public video_encoder vk::raii::VideoSessionKHR video_session = nullptr; vk::raii::VideoSessionParametersKHR video_session_parameters = nullptr; + vk::raii::Semaphore sem = nullptr; + uint64_t sem_value = 0; + vk::raii::QueryPool query_pool = nullptr; vk::raii::CommandPool transfer_command_pool = nullptr; vk::raii::CommandPool video_command_pool = nullptr; @@ -47,19 +50,15 @@ class video_encoder_vulkan : public video_encoder std::unordered_map image_views; // for input images struct slot_item { - image_allocation tmp_image; // Used if we have an offset in the image to encode + vk::raii::Fence fence = nullptr; vk::raii::CommandBuffer video_cmd_buf = nullptr; vk::raii::CommandBuffer transfer_cmd_buf = nullptr; - vk::raii::Semaphore wait_sem = nullptr; - vk::raii::Semaphore sem = nullptr; - uint64_t sem_value = 0; - vk::raii::Fence fence = nullptr; vk::raii::ImageView view = nullptr; buffer_allocation output_buffer; buffer_allocation host_buffer; vk::DeviceSize copy_size; bool idr = false; - std::atomic_bool busy = false; + std::atomic busy = false; }; std::array slot_data; @@ -104,12 +103,7 @@ protected: virtual vk::ExtensionProperties std_header_version() = 0; public: - bool need_copy() const override - { - return slot_data[0].tmp_image; - } + void present_image(vk::Image y_cbcr, vk::SemaphoreSubmitInfo, uint8_t slot, uint64_t frame_index) override; std::optional encode(uint8_t slot, uint64_t frame_index) override; - std::pair present_image(vk::Image y_cbcr, bool transferred, vk::raii::CommandBuffer & cmd_buf, uint8_t slot, uint64_t frame_index) override; - void post_submit(uint8_t slot) override; }; } // namespace wivrn diff --git a/server/encoder/video_encoder_x264.cpp b/server/encoder/video_encoder_x264.cpp index 3c056ef6..2a30e9e6 100644 --- a/server/encoder/video_encoder_x264.cpp +++ b/server/encoder/video_encoder_x264.cpp @@ -86,11 +86,32 @@ void video_encoder_x264::InsertInPendingNal(pending_nal && nal) pending_nals.push_back(std::move(nal)); } +namespace +{ +vk::raii::CommandPool make_cmd_pool(wivrn::vk_bundle & vk, uint8_t stream_idx) +{ + auto res = vk.device.createCommandPool(vk::CommandPoolCreateInfo{ + + .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer, + .queueFamilyIndex = *vk.transfer_queue ? vk.transfer_queue_family_index : vk.queue_family_index, + }); + vk.name(res, std::format("x264 encoder {} command pool", stream_idx)); + return res; +} +} // namespace + video_encoder_x264::video_encoder_x264( wivrn::vk_bundle & vk, const encoder_settings & settings, uint8_t stream_idx) : - video_encoder(stream_idx, settings, std::make_unique(), false) + video_encoder(vk, + stream_idx, + *vk.transfer_queue ? vk.transfer_queue_family_index : vk.queue_family_index, + settings, + std::make_unique(), + false), + vk{vk}, + cmd_pool{make_cmd_pool(vk, stream_idx)} { if (settings.bit_depth != 8) throw std::runtime_error("x264 encoder only supports 8-bit encoding"); @@ -98,6 +119,17 @@ video_encoder_x264::video_encoder_x264( if (settings.codec != h264) U_LOG_W("requested x264 encoder with codec != h264"); + auto command_buffers = vk.device.allocateCommandBuffers( + {.commandPool = *cmd_pool, + .commandBufferCount = num_slots}); + + for (size_t i = 0; i < num_slots; ++i) + { + in[i].cmd = std::move(command_buffers[i]); + vk.name(in[i].cmd, std::format("x264 {} transfer command buffer {}", stream_idx, i)); + in[i].fence = vk::raii::Fence(vk.device, vk::FenceCreateInfo{.flags = vk::FenceCreateFlagBits::eSignaled}); + } + // encoder requires width and height to be even chroma_width = extent.width / 2; @@ -149,7 +181,7 @@ video_encoder_x264::video_encoder_x264( }, { .flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT, - .usage = VMA_MEMORY_USAGE_AUTO, + .usage = VMA_MEMORY_USAGE_AUTO_PREFER_HOST, }, "x264 luma buffer"); i.chroma = buffer_allocation( @@ -159,7 +191,7 @@ video_encoder_x264::video_encoder_x264( }, { .flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT, - .usage = VMA_MEMORY_USAGE_AUTO, + .usage = VMA_MEMORY_USAGE_AUTO_PREFER_HOST, }, "x264 chroma buffer"); @@ -176,9 +208,39 @@ video_encoder_x264::video_encoder_x264( } } -std::pair video_encoder_x264::present_image(vk::Image y_cbcr, bool transferred, vk::raii::CommandBuffer & cmd_buf, uint8_t slot, uint64_t) +void video_encoder_x264::present_image(vk::Image y_cbcr, vk::SemaphoreSubmitInfo compositor_sem, uint8_t slot, uint64_t) { - cmd_buf.copyImageToBuffer( + if (vk.device.waitForFences(*in[slot].fence, true, 1'000'000'000) == vk::Result::eTimeout) + { + U_LOG_E("Timeout on stream %d", stream_idx); + return; + } + + auto & cmd = in[slot].cmd; + cmd.reset(); + cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); + + if (need_transfer) + { + vk::ImageMemoryBarrier2 barrier{ + .dstStageMask = vk::PipelineStageFlagBits2KHR::eTransfer, + .dstAccessMask = vk::AccessFlagBits2::eTransferRead, + .srcQueueFamilyIndex = vk.queue_family_index, + .dstQueueFamilyIndex = target_queue, + .image = y_cbcr, + .subresourceRange = {.aspectMask = vk::ImageAspectFlagBits::eColor, + .baseMipLevel = 0, + .levelCount = 1, + .baseArrayLayer = stream_idx, + .layerCount = 1}, + }; + cmd.pipelineBarrier2({ + .imageMemoryBarrierCount = 1, + .pImageMemoryBarriers = &barrier, + }); + } + + cmd.copyImageToBuffer( y_cbcr, vk::ImageLayout::eGeneral, in[slot].luma, @@ -194,7 +256,7 @@ std::pair video_encoder_x264::present_image(vk::Image y_cbc .height = extent.height, .depth = 1, }}); - cmd_buf.copyImageToBuffer( + cmd.copyImageToBuffer( y_cbcr, vk::ImageLayout::eGeneral, in[slot].chroma, @@ -210,7 +272,24 @@ std::pair video_encoder_x264::present_image(vk::Image y_cbc .height = extent.height / 2, .depth = 1, }}); - return {false, nullptr}; + + cmd.end(); + + std::unique_lock lock(*vk.transfer_queue ? vk.transfer_queue_mutex : vk.queue_mutex); + vk::CommandBufferSubmitInfo cmd_info{ + .commandBuffer = *cmd, + }; + compositor_sem.stageMask = vk::PipelineStageFlagBits2::eTransfer; + + vk.device.resetFences(*in[slot].fence); + (*vk.transfer_queue ? vk.transfer_queue : vk.queue) + .submit2(vk::SubmitInfo2{ + .waitSemaphoreInfoCount = 1, + .pWaitSemaphoreInfos = &compositor_sem, + .commandBufferInfoCount = 1, + .pCommandBufferInfos = &cmd_info, + }, + *in[slot].fence); } std::optional video_encoder_x264::encode(uint8_t slot, uint64_t frame_index) @@ -253,6 +332,11 @@ std::optional video_encoder_x264::encode(uint8_t slot, uint } next_mb = 0; assert(pending_nals.empty()); + if (vk.device.waitForFences(*in[slot].fence, true, 1'000'000'000) == vk::Result::eTimeout) + { + U_LOG_E("Timeout on stream %d", stream_idx); + return {}; + } int size = x264_encoder_encode(enc, &nal, &num_nal, &pic, &pic_out); if (next_mb != num_mb) { diff --git a/server/encoder/video_encoder_x264.h b/server/encoder/video_encoder_x264.h index 98584da7..8832bb1a 100644 --- a/server/encoder/video_encoder_x264.h +++ b/server/encoder/video_encoder_x264.h @@ -38,8 +38,14 @@ class video_encoder_x264 : public video_encoder x264_picture_t pic_out = {}; + wivrn::vk_bundle & vk; + uint64_t sem_value = 0; // current value of the semaphore + vk::raii::CommandPool cmd_pool; + struct in_t { + vk::raii::Fence fence = nullptr; + vk::raii::CommandBuffer cmd = nullptr; x264_picture_t pic; buffer_allocation luma; buffer_allocation chroma; @@ -62,7 +68,7 @@ class video_encoder_x264 : public video_encoder public: video_encoder_x264(wivrn::vk_bundle & vk, const encoder_settings & settings, uint8_t stream_idx); - std::pair present_image(vk::Image y_cbcr, bool transferred, vk::raii::CommandBuffer & cmd_buf, uint8_t slot, uint64_t frame_index) override; + void present_image(vk::Image y_cbcr, vk::SemaphoreSubmitInfo, uint8_t slot, uint64_t frame_index) override; std::optional encode(uint8_t slot, uint64_t frame_index) override; diff --git a/server/target_instance_wivrn.cpp b/server/target_instance_wivrn.cpp index 66578ab4..e5f0810b 100644 --- a/server/target_instance_wivrn.cpp +++ b/server/target_instance_wivrn.cpp @@ -61,7 +61,10 @@ xrt_result_t instance::create_system( out_xspovrs, out_xsysc); if (res != XRT_SUCCESS) + { + ipc_server_stop(server); return res; + } session = (wivrn_session *)*out_xsysd; session->start(server); u_system_set_system_compositor(u_sys, *out_xsysc); @@ -88,11 +91,8 @@ instance::instance() : void instance::set_ipc_server(ipc_server * server) { this->server = server; - if (!server) - { - assert(session); + if (session and not server) session->stop(); - } } } // namespace wivrn diff --git a/server/utils/wivrn_vk_bundle.cpp b/server/utils/wivrn_vk_bundle.cpp index 7b95058b..a2bade9d 100644 --- a/server/utils/wivrn_vk_bundle.cpp +++ b/server/utils/wivrn_vk_bundle.cpp @@ -108,6 +108,32 @@ uint32_t select_queue(const std::vector & queues, vk: } return res; } + +int get_queue_index(const std::vector & queues, std::vector & infos, uint32_t family_index) +{ + if (family_index == vk::QueueFamilyIgnored) + return -1; + for (auto & info: infos) + { + if (info.queueFamilyIndex == family_index) + { + auto count = queues.at(family_index).queueCount; + if (info.queueCount == count) + { + U_LOG_W("Insufficient vulkan queues for family %d", family_index); + return -1; + } + return info.queueCount++; + } + } + static std::array prios{1.0, 1.0, 1.0}; + infos.push_back(vk::DeviceQueueCreateInfo{ + .queueFamilyIndex = family_index, + .queueCount = 1, + .pQueuePriorities = prios.data(), + }); + return 0; +} } // namespace wivrn::vk_bundle::vk_bundle() : @@ -116,6 +142,8 @@ wivrn::vk_bundle::vk_bundle() : device(nullptr), queue(nullptr), queue_family_index(vk::QueueFamilyIgnored), + transfer_queue(nullptr), + transfer_queue_family_index(vk::QueueFamilyIgnored), encode_queue(nullptr), encode_queue_family_index(vk::QueueFamilyIgnored), debug(nullptr) @@ -189,9 +217,10 @@ wivrn::vk_bundle::vk_bundle() : } // Select queue families + auto queues = physical_device.getQueueFamilyProperties(); { - auto queues = physical_device.getQueueFamilyProperties(); queue_family_index = select_queue(queues, vk::QueueFlagBits::eCompute); + transfer_queue_family_index = select_queue(queues, vk::QueueFlagBits::eTransfer); #if WIVRN_USE_VULKAN_ENCODE encode_queue_family_index = select_queue(queues, vk::QueueFlagBits::eVideoEncodeKHR); #endif @@ -262,29 +291,16 @@ wivrn::vk_bundle::vk_bundle() : float prio = 1.0; - std::vector queues_info = { - vk::DeviceQueueCreateInfo{ - .queueFamilyIndex = queue_family_index, - .queueCount = 1, - .pQueuePriorities = &prio, - }, - }; + std::vector queues_info; + int queue_index = get_queue_index(queues, queues_info, queue_family_index); + int transfer_queue_index = get_queue_index(queues, queues_info, transfer_queue_family_index); #if WIVRN_USE_VULKAN_ENCODE - if (encode_queue_family_index != vk::QueueFamilyIgnored) - { - queues_info.push_back( - vk::DeviceQueueCreateInfo{ - .queueFamilyIndex = encode_queue_family_index, - .queueCount = 1, - .pQueuePriorities = &prio, - }); - + int encode_queue_index = get_queue_index(queues, queues_info, encode_queue_family_index); #ifdef VK_KHR_video_maintenance1 - if (has_device_ext(VK_KHR_VIDEO_MAINTENANCE_1_EXTENSION_NAME)) - std::get(feat).videoMaintenance1 = - std::get(physical_device.getFeatures2()).videoMaintenance1; + if (has_device_ext(VK_KHR_VIDEO_MAINTENANCE_1_EXTENSION_NAME)) + std::get(feat).videoMaintenance1 = + std::get(physical_device.getFeatures2()).videoMaintenance1; #endif - } #endif #ifdef VK_KHR_maintenance9 if (has_device_ext(VK_KHR_MAINTENANCE_9_EXTENSION_NAME)) @@ -301,6 +317,11 @@ wivrn::vk_bundle::vk_bundle() : std::get(feat).timelineSemaphore = phys_feat12.timelineSemaphore; std::get(feat).synchronization2 = phys_feat13.synchronization2; + if (not phys_feat13.synchronization2) + throw std::runtime_error("GPU does not support Vulkan synchronization2 feature"); + if (not phys_feat12.timelineSemaphore) + throw std::runtime_error("GPU does not support Vulkan timeline semaphores"); + #ifdef VK_KHR_video_encode_intra_refresh if (has_device_ext(VK_KHR_VIDEO_ENCODE_INTRA_REFRESH_EXTENSION_NAME)) std::get(feat).videoEncodeIntraRefresh = std::get(physical_device.getFeatures2()).videoEncodeIntraRefresh; @@ -316,10 +337,19 @@ wivrn::vk_bundle::vk_bundle() : .ppEnabledExtensionNames = device_extensions.data(), }); - queue = device.getQueue(queue_family_index, 0); + queue = device.getQueue(queue_family_index, queue_index); + name(queue, "compute queue"); + if (transfer_queue_index >= 0) + { + transfer_queue = device.getQueue(transfer_queue_family_index, transfer_queue_index); + name(transfer_queue, "transfer queue"); + } #if WIVRN_USE_VULKAN_ENCODE - if (encode_queue_family_index != vk::QueueFamilyIgnored) - encode_queue = device.getQueue(encode_queue_family_index, 0); + if (encode_queue_index >= 0) + { + encode_queue = device.getQueue(encode_queue_family_index, encode_queue_index); + name(encode_queue, "encode queue"); + } #endif } @@ -368,6 +398,22 @@ bool wivrn::vk_bundle::has_device_ext(const char * ext) const return false; } +bool wivrn::vk_bundle::optimal_transfer(uint32_t from, uint32_t to) const +{ + if (from == vk::QueueFamilyIgnored or to == vk::QueueFamilyIgnored) + return false; +#ifdef VK_KHR_maintenance9 + if (std::get(feat).maintenance9) + { + auto props = physical_device.getQueueFamilyProperties2>(); + + auto to = std::get<1>(props[from]).optimalImageTransferToQueueFamilies; + return to & (1 << to); + } +#endif + return true; +} + vk::raii::ShaderModule wivrn::vk_bundle::load_shader(const char * name) { std::span spirv{::shaders.at(name)}; diff --git a/server/utils/wivrn_vk_bundle.h b/server/utils/wivrn_vk_bundle.h index f56f028a..0d0cb260 100644 --- a/server/utils/wivrn_vk_bundle.h +++ b/server/utils/wivrn_vk_bundle.h @@ -71,6 +71,10 @@ struct vk_bundle vk::raii::Queue queue; uint32_t queue_family_index; + std::mutex transfer_queue_mutex; + vk::raii::Queue transfer_queue; + uint32_t transfer_queue_family_index; + std::mutex encode_queue_mutex; vk::raii::Queue encode_queue; uint32_t encode_queue_family_index; @@ -99,18 +103,26 @@ struct vk_bundle uint32_t get_memory_type(uint32_t type_bits, vk::MemoryPropertyFlags memory_props); - template - void name(const T & handle, const char * value) + template + void name(const T & handle, U && value) { - return name(T::objectType, vk_handle(handle), value); + return name(T::objectType, vk_handle(handle), std::forward(value)); } bool has_instance_ext(const char *) const; bool has_device_ext(const char *) const; + // return true if optimal images do NOT require a transfer operation + // between those queues + bool optimal_transfer(uint32_t from_queue_family_index, uint32_t to_queue_family_index) const; + vk::raii::ShaderModule load_shader(const char * name); private: void name(vk::ObjectType, uint64_t handle, const char * value); + void name(vk::ObjectType t, uint64_t handle, const std::string & value) + { + return name(t, handle, value.c_str()); + } }; } // namespace wivrn From a70caa529e863f6ce77589fb27e7077171ff6d64 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 8 Apr 2026 14:42:36 +0200 Subject: [PATCH 15/47] Add compositor timings to debug GUI --- server/compositor/compositor.cpp | 44 +++++++++++++++++++++++++++++++- server/compositor/compositor.h | 21 +++++++++++++++ 2 files changed, 64 insertions(+), 1 deletion(-) diff --git a/server/compositor/compositor.cpp b/server/compositor/compositor.cpp index 9d2e8ea9..3080755b 100644 --- a/server/compositor/compositor.cpp +++ b/server/compositor/compositor.cpp @@ -205,6 +205,13 @@ vk::Extent3D render_extent(const wivrn::from_headset::headset_info_packet & info namespace wivrn { +void compositor::timings::add(float us) +{ + int index = this->index; + this->index = (this->index + 1) % values.size(); + values[index] = us; +} + xrt_result_t compositor::predict_frame(int64_t * out_frame_id, int64_t * out_wake_time_ns, int64_t * out_predicted_gpu_time_ns, @@ -286,6 +293,9 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) cmd.reset(); cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); + cmd.resetQueryPool(*query_pool, 0, 3); + cmd.writeTimestamp(vk::PipelineStageFlagBits::eTopOfPipe, *query_pool, 0); + bool flip_y = false; std::array src; std::array src_rect; @@ -340,7 +350,9 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) .srcStageMask = vk::PipelineStageFlagBits2::eComputeShader, .srcAccessMask = vk::AccessFlagBits2::eShaderStorageWrite, .dstStageMask = vk::PipelineStageFlagBits2::eComputeShader, - .dstAccessMask = vk::AccessFlagBits2::eShaderStorageRead, + .dstAccessMask = vk::AccessFlagBits2::eShaderSampledRead, + .oldLayout = vk::ImageLayout::eGeneral, + .newLayout = vk::ImageLayout::eShaderReadOnlyOptimal, .image = squasher.get_image(), .subresourceRange = { .aspectMask = vk::ImageAspectFlagBits::eColor, @@ -370,6 +382,8 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) }); image_barriers.clear(); + cmd.writeTimestamp(vk::PipelineStageFlagBits::eBottomOfPipe, *query_pool, 1); + if (session.get_info().eye_gaze) { auto now = os_monotonic_get_ns(); @@ -413,6 +427,7 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) .imageMemoryBarrierCount = uint32_t(image_barriers.size()), .pImageMemoryBarriers = image_barriers.data(), }); + cmd.writeTimestamp(vk::PipelineStageFlagBits::eBottomOfPipe, *query_pool, 2); cmd.end(); @@ -460,7 +475,25 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) .pValues = &sem_value, }, U_TIME_1S_IN_NS) == vk::Result::eTimeout) + { U_LOG_IFL_W(log_level, "compositor timeout"); + } + else + { + auto [res, ts] = query_pool.getResults( + 0, + 3, + 3 * sizeof(uint64_t), + sizeof(uint64_t), + vk::QueryResultFlagBits::e64 | vk::QueryResultFlagBits::eWait); + + if (res == vk::Result::eSuccess) + { + static const auto period = vk.physical_device.getProperties().limits.timestampPeriod; + squasher_times.add((ts[1] - ts[0]) * period / 1e3); + foveation_times.add((ts[2] - ts[1]) * period / 1e3); + } + } // Now is a good point to garbage collect. comp_swapchain_shared_garbage_collect(&cscs); @@ -564,6 +597,10 @@ compositor::compositor(wivrn_session & session) : .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer, .queueFamilyIndex = vk.queue_family_index, }), + query_pool(vk.device, vk::QueryPoolCreateInfo{ + .queryType = vk::QueryType::eTimestamp, + .queryCount = 3, + }), settings(get_encoder_settings(vk, session)), images{make_images(vk, cmd_pool, settings)}, cmd{std::move(vk.device.allocateCommandBuffers({.commandPool = *cmd_pool, .commandBufferCount = 1})[0])}, @@ -619,12 +656,17 @@ compositor::compositor(wivrn_session & session) : encoders[i] = video_encoder::create(vk, settings, i); send_video_stream_description(); + u_var_add_root(this, "Compositor", false); + u_var_add_f32_timing(this, &squasher_times.var, "layers processing"); + u_var_add_f32_timing(this, &foveation_times.var, "foveation"); + // Start the thread after everything is initialized encoder_thread = std::jthread{[&](std::stop_token t) { encoder_work(t); }}; } compositor::~compositor() { + u_var_remove_root(this); encoder_thread.request_stop(); encode_request = -2; encode_request.notify_all(); diff --git a/server/compositor/compositor.h b/server/compositor/compositor.h index 0ca0896e..40818c5e 100644 --- a/server/compositor/compositor.h +++ b/server/compositor/compositor.h @@ -58,10 +58,31 @@ public: }; private: + struct timings + { + std::array values{}; + int index = 0; + u_var_timing var{ + .values = { + .data = values.data(), + .index_ptr = &index, + .length = int(values.size()), + }, + .range = 1000, + .dynamic_rescale = true, + .unit = "µs", + }; + + void add(float us); + }; + const u_logging_level log_level; + timings squasher_times; + timings foveation_times; wivrn_session & session; vk_bundle vk; vk::raii::CommandPool cmd_pool; + vk::raii::QueryPool query_pool; std::array settings; From 9c3615dd0b4e766b73e34a35ae718efc8f50ceac Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 9 Apr 2026 13:47:21 +0200 Subject: [PATCH 16/47] Log GPU and queues on vulkan instance creation --- server/utils/wivrn_vk_bundle.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/server/utils/wivrn_vk_bundle.cpp b/server/utils/wivrn_vk_bundle.cpp index a2bade9d..554abfc4 100644 --- a/server/utils/wivrn_vk_bundle.cpp +++ b/server/utils/wivrn_vk_bundle.cpp @@ -293,9 +293,12 @@ wivrn::vk_bundle::vk_bundle() : std::vector queues_info; int queue_index = get_queue_index(queues, queues_info, queue_family_index); + U_LOG_D("queue index: %d", queue_index); int transfer_queue_index = get_queue_index(queues, queues_info, transfer_queue_family_index); + U_LOG_D("transfer queue index: %d", transfer_queue_index); #if WIVRN_USE_VULKAN_ENCODE int encode_queue_index = get_queue_index(queues, queues_info, encode_queue_family_index); + U_LOG_D("encode queue index: %d", encode_queue_index); #ifdef VK_KHR_video_maintenance1 if (has_device_ext(VK_KHR_VIDEO_MAINTENANCE_1_EXTENSION_NAME)) std::get(feat).videoMaintenance1 = @@ -360,6 +363,15 @@ wivrn::vk_bundle::vk_bundle() : .vulkanApiVersion = app_info.apiVersion, }, *debug != VK_NULL_HANDLE); + + auto prop = physical_device.getProperties(); + U_LOG_I("Vulkan instance created:\n" + "\tGPU: %s\n" + "\tqueue families: %d %d %d (main, encode, transfer)\n", + prop.deviceName.data(), + int32_t(queue_family_index), + int32_t(encode_queue_family_index), + int32_t(transfer_queue_family_index)); } uint32_t wivrn::vk_bundle::get_memory_type(uint32_t type_bits, vk::MemoryPropertyFlags memory_props) From d535f38938f30f738657526e854ae6975e73f0e2 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 10 Apr 2026 08:02:00 +0200 Subject: [PATCH 17/47] Reintroduce renderdoc support --- server/compositor/compositor.cpp | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/server/compositor/compositor.cpp b/server/compositor/compositor.cpp index 3080755b..6a318088 100644 --- a/server/compositor/compositor.cpp +++ b/server/compositor/compositor.cpp @@ -36,6 +36,31 @@ #include "inplace_vector.hpp" #include "utils/method.h" +#include "xrt/xrt_config_build.h" // IWYU pragma: keep +#ifdef XRT_FEATURE_RENDERDOC +#include "renderdoc_app.h" + +static auto renderdoc() +{ + auto x = []() { + RENDERDOC_API_1_5_0 * rdoc_api = nullptr; + const char * env = std::getenv("ENABLE_VULKAN_RENDERDOC_CAPTURE"); + if (not env or env != std::string_view("1")) + return rdoc_api; + void * mod = dlopen("librenderdoc.so", RTLD_NOW | RTLD_NOLOAD); + if (mod) + { + pRENDERDOC_GetAPI RENDERDOC_GetAPI = (pRENDERDOC_GetAPI)dlsym(mod, "RENDERDOC_GetAPI"); + XRT_MAYBE_UNUSED int ret = RENDERDOC_GetAPI(eRENDERDOC_API_Version_1_5_0, (void **)&rdoc_api); + assert(ret == 1); + } + return rdoc_api; + }; + static auto res = x(); + return res; +} +#endif + DEBUG_GET_ONCE_LOG_OPTION(log, "XRT_COMPOSITOR_LOG", U_LOGGING_INFO) namespace details @@ -281,6 +306,11 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) return XRT_SUCCESS; } +#ifdef XRT_FEATURE_RENDERDOC + if (auto r = renderdoc()) + r->StartFrameCapture(NULL, NULL); +#endif + auto & view_info = images[i].view_info; images[i].frame_index = frame.rendering.id; view_info = { @@ -467,6 +497,11 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) encode_request.notify_all(); assert(j == -1); +#ifdef XRT_FEATURE_RENDERDOC + if (auto r = renderdoc()) + r->EndFrameCapture(NULL, NULL); +#endif + comp_frame_clear_locked(&frame.rendering); if (vk.device.waitSemaphores(vk::SemaphoreWaitInfo{ From 6ab58430e245299fe651828e54ccddf1551cbcf9 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 10 Apr 2026 16:46:00 +0200 Subject: [PATCH 18/47] Mark command pools as transient --- server/compositor/compositor.cpp | 4 ++-- server/encoder/ffmpeg/video_encoder_va.cpp | 2 +- server/encoder/video_encoder_nvenc.cpp | 2 +- server/encoder/video_encoder_raw.cpp | 2 +- server/encoder/video_encoder_vulkan.cpp | 4 ++-- server/encoder/video_encoder_x264.cpp | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/server/compositor/compositor.cpp b/server/compositor/compositor.cpp index 6a318088..3da4fd4b 100644 --- a/server/compositor/compositor.cpp +++ b/server/compositor/compositor.cpp @@ -320,7 +320,7 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) session.dump_time("begin", frame.rendering.id, os_monotonic_get_ns()); - cmd.reset(); + cmd_pool.reset(); cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); cmd.resetQueryPool(*query_pool, 0, 3); @@ -629,7 +629,7 @@ compositor::compositor(wivrn_session & session) : log_level(debug_get_log_option_log()), session(session), cmd_pool(vk.device, vk::CommandPoolCreateInfo{ - .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer, + .flags = vk::CommandPoolCreateFlagBits::eTransient, .queueFamilyIndex = vk.queue_family_index, }), query_pool(vk.device, vk::QueryPoolCreateInfo{ diff --git a/server/encoder/ffmpeg/video_encoder_va.cpp b/server/encoder/ffmpeg/video_encoder_va.cpp index d00d4c40..88f4b828 100644 --- a/server/encoder/ffmpeg/video_encoder_va.cpp +++ b/server/encoder/ffmpeg/video_encoder_va.cpp @@ -157,7 +157,7 @@ vk::raii::CommandPool make_cmd_pool(wivrn::vk_bundle & vk, uint8_t stream_idx) { auto res = vk.device.createCommandPool(vk::CommandPoolCreateInfo{ - .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer, + .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer | vk::CommandPoolCreateFlagBits::eTransient, .queueFamilyIndex = vk.queue_family_index, }); vk.name(res, std::format("vaapi encoder {} command pool", stream_idx)); diff --git a/server/encoder/video_encoder_nvenc.cpp b/server/encoder/video_encoder_nvenc.cpp index d373ba5a..9ffd60ed 100644 --- a/server/encoder/video_encoder_nvenc.cpp +++ b/server/encoder/video_encoder_nvenc.cpp @@ -152,7 +152,7 @@ static vk::raii::CommandPool make_cmd_pool(wivrn::vk_bundle & vk, uint8_t stream { auto res = vk.device.createCommandPool(vk::CommandPoolCreateInfo{ - .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer, + .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer | vk::CommandPoolCreateFlagBits::eTransient, .queueFamilyIndex = vk.queue_family_index, }); vk.name(res, std::format("nvenc encoder {} command pool", stream_idx)); diff --git a/server/encoder/video_encoder_raw.cpp b/server/encoder/video_encoder_raw.cpp index 5a9da432..c0a7b561 100644 --- a/server/encoder/video_encoder_raw.cpp +++ b/server/encoder/video_encoder_raw.cpp @@ -38,7 +38,7 @@ vk::raii::CommandPool make_cmd_pool(wivrn::vk_bundle & vk, uint8_t stream_idx) { auto res = vk.device.createCommandPool(vk::CommandPoolCreateInfo{ - .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer, + .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer | vk::CommandPoolCreateFlagBits::eTransient, .queueFamilyIndex = *vk.transfer_queue ? vk.transfer_queue_family_index : vk.queue_family_index, }); vk.name(res, std::format("raw encoder {} command pool", stream_idx)); diff --git a/server/encoder/video_encoder_vulkan.cpp b/server/encoder/video_encoder_vulkan.cpp index b511f9e2..299a98b3 100644 --- a/server/encoder/video_encoder_vulkan.cpp +++ b/server/encoder/video_encoder_vulkan.cpp @@ -499,7 +499,7 @@ void wivrn::video_encoder_vulkan::init(const vk::VideoCapabilitiesKHR & video_ca { video_command_pool = vk.device.createCommandPool( vk::CommandPoolCreateInfo{ - .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer, + .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer | vk::CommandPoolCreateFlagBits::eTransient, .queueFamilyIndex = vk.encode_queue_family_index, }); vk.name(video_command_pool, std::format("vulkan encoder {} video command pool", stream_idx)); @@ -520,7 +520,7 @@ void wivrn::video_encoder_vulkan::init(const vk::VideoCapabilitiesKHR & video_ca { transfer_command_pool = vk.device.createCommandPool( vk::CommandPoolCreateInfo{ - .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer, + .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer | vk::CommandPoolCreateFlagBits::eTransient, .queueFamilyIndex = vk.transfer_queue_family_index, }); vk.name(transfer_command_pool, std::format("vulkan encoder {} transfer command pool", stream_idx)); diff --git a/server/encoder/video_encoder_x264.cpp b/server/encoder/video_encoder_x264.cpp index 2a30e9e6..2f520181 100644 --- a/server/encoder/video_encoder_x264.cpp +++ b/server/encoder/video_encoder_x264.cpp @@ -92,7 +92,7 @@ vk::raii::CommandPool make_cmd_pool(wivrn::vk_bundle & vk, uint8_t stream_idx) { auto res = vk.device.createCommandPool(vk::CommandPoolCreateInfo{ - .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer, + .flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer | vk::CommandPoolCreateFlagBits::eTransient, .queueFamilyIndex = *vk.transfer_queue ? vk.transfer_queue_family_index : vk.queue_family_index, }); vk.name(res, std::format("x264 encoder {} command pool", stream_idx)); From b3479eb4180858c9720f740866fefc187687d1c7 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 10 Apr 2026 17:09:19 +0200 Subject: [PATCH 19/47] Remove vkResetCommandBuffer --- server/encoder/ffmpeg/video_encoder_va.cpp | 1 - server/encoder/video_encoder_nvenc.cpp | 1 - server/encoder/video_encoder_raw.cpp | 1 - server/encoder/video_encoder_vulkan.cpp | 3 --- server/encoder/video_encoder_x264.cpp | 1 - 5 files changed, 7 deletions(-) diff --git a/server/encoder/ffmpeg/video_encoder_va.cpp b/server/encoder/ffmpeg/video_encoder_va.cpp index 88f4b828..e59482f7 100644 --- a/server/encoder/ffmpeg/video_encoder_va.cpp +++ b/server/encoder/ffmpeg/video_encoder_va.cpp @@ -465,7 +465,6 @@ void video_encoder_va::present_image(vk::Image y_cbcr, vk::SemaphoreSubmitInfo c }; auto & cmd = in[slot].cmd; - cmd.reset(); cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); cmd.pipelineBarrier( diff --git a/server/encoder/video_encoder_nvenc.cpp b/server/encoder/video_encoder_nvenc.cpp index 9ffd60ed..f9e76220 100644 --- a/server/encoder/video_encoder_nvenc.cpp +++ b/server/encoder/video_encoder_nvenc.cpp @@ -426,7 +426,6 @@ void video_encoder_nvenc::present_image(vk::Image y_cbcr, vk::SemaphoreSubmitInf return; } auto & cmd = in[slot].cmd; - cmd.reset(); cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); cmd.copyImageToBuffer( diff --git a/server/encoder/video_encoder_raw.cpp b/server/encoder/video_encoder_raw.cpp index c0a7b561..563c84b3 100644 --- a/server/encoder/video_encoder_raw.cpp +++ b/server/encoder/video_encoder_raw.cpp @@ -98,7 +98,6 @@ void wivrn::video_encoder_raw::present_image(vk::Image y_cbcr, vk::SemaphoreSubm } auto & cmd = in[slot].cmd; - cmd.reset(); cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); if (need_transfer) diff --git a/server/encoder/video_encoder_vulkan.cpp b/server/encoder/video_encoder_vulkan.cpp index 299a98b3..4230028a 100644 --- a/server/encoder/video_encoder_vulkan.cpp +++ b/server/encoder/video_encoder_vulkan.cpp @@ -569,7 +569,6 @@ void wivrn::video_encoder_vulkan::present_image(vk::Image y_cbcr, vk::SemaphoreS slot_item.busy.wait(true); auto & video_cmd_buf = slot_item.video_cmd_buf; - video_cmd_buf.reset(); video_cmd_buf.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); vk::ImageView image_view; @@ -740,7 +739,6 @@ void wivrn::video_encoder_vulkan::present_image(vk::Image y_cbcr, vk::SemaphoreS { auto & cmd = slot_item.transfer_cmd_buf; // transfer on a dedicated queue - cmd.reset(); cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); { @@ -872,7 +870,6 @@ std::optional wivrn::video_encoder_vulkan::encode(ui // The encoded image is larger than expected, we need to copy some more data vk::raii::CommandBuffer & cmd = transfer_queue ? slot_item.transfer_cmd_buf : slot_item.video_cmd_buf; - cmd.reset(); cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); cmd.copyBuffer( diff --git a/server/encoder/video_encoder_x264.cpp b/server/encoder/video_encoder_x264.cpp index 2f520181..afc154d5 100644 --- a/server/encoder/video_encoder_x264.cpp +++ b/server/encoder/video_encoder_x264.cpp @@ -217,7 +217,6 @@ void video_encoder_x264::present_image(vk::Image y_cbcr, vk::SemaphoreSubmitInfo } auto & cmd = in[slot].cmd; - cmd.reset(); cmd.begin({.flags = vk::CommandBufferUsageFlagBits::eOneTimeSubmit}); if (need_transfer) From 9bb39c4809f8658223e6d90335394861eb7bf59e Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 11 Apr 2026 16:41:23 +0200 Subject: [PATCH 20/47] Drop staging buffer for foveation --- server/compositor/foveation.cpp | 24 +++--------------------- server/compositor/foveation.h | 1 - 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/server/compositor/foveation.cpp b/server/compositor/foveation.cpp index acf04671..614355dc 100644 --- a/server/compositor/foveation.cpp +++ b/server/compositor/foveation.cpp @@ -384,8 +384,8 @@ foveation::foveation(wivrn::vk_bundle & bundle, vk::Extent3D foveated_size) : .usage = vk::BufferUsageFlagBits::eTransferDst | vk::BufferUsageFlagBits::eStorageBuffer, }, VmaAllocationCreateInfo{ - .flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT | VMA_ALLOCATION_CREATE_HOST_ACCESS_ALLOW_TRANSFER_INSTEAD_BIT, - .usage = VMA_MEMORY_USAGE_AUTO, + .flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT, + .usage = VMA_MEMORY_USAGE_AUTO_PREFER_DEVICE, }, "foveation storage buffer"), sampler(make_sampler(bundle)), @@ -400,21 +400,6 @@ foveation::foveation(wivrn::vk_bundle & bundle, vk::Extent3D foveated_size) : })[0] .release()) { - if (not(gpu_buffer.properties() & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT)) - { - host_buffer = buffer_allocation( - bundle.device, - { - .size = gpu_buffer.info().size, - .usage = vk::BufferUsageFlagBits::eTransferSrc, - }, - { - .flags = VMA_ALLOCATION_CREATE_HOST_ACCESS_RANDOM_BIT, - .usage = VMA_MEMORY_USAGE_AUTO_PREFER_HOST, - }, - "foveation staging buffer"); - } - bundle.name(descriptor_set, "foveation descriptor set"); } @@ -515,9 +500,6 @@ void foveation::update_ubo( std::abs(last.manual_foveation.distance - manual_foveation.distance) < 0.0005) return; - if (host_buffer) - cmd.copyBuffer(host_buffer, gpu_buffer, vk::BufferCopy{.size = sizeof(ubo_data)}); - last = { .gaze = gaze, .flip_y = flip_y, @@ -529,7 +511,7 @@ void foveation::update_ubo( compute_params(); - auto ubo = host_buffer ? host_buffer.data() : gpu_buffer.data(); + auto ubo = gpu_buffer.data(); ubo->alpha_width = foveated_size.width / 2; for (size_t view = 0; view < 2; ++view) { diff --git a/server/compositor/foveation.h b/server/compositor/foveation.h index 3a320ab6..57c3d216 100644 --- a/server/compositor/foveation.h +++ b/server/compositor/foveation.h @@ -51,7 +51,6 @@ class foveation std::array params; buffer_allocation gpu_buffer; - buffer_allocation host_buffer; vk::raii::Sampler sampler; vk::raii::DescriptorSetLayout ds_layout; From 1f6e237f21d6dcef7c6f805046e0c3b5fff40373 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 11 Apr 2026 16:48:39 +0200 Subject: [PATCH 21/47] Only write alpha if useful --- server/compositor/compositor.cpp | 3 ++- server/compositor/foveation.cpp | 8 ++++++-- server/compositor/foveation.h | 3 ++- server/compositor/shaders/foveation.comp | 12 ++++++++---- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/server/compositor/compositor.cpp b/server/compositor/compositor.cpp index 3da4fd4b..714bf5a1 100644 --- a/server/compositor/compositor.cpp +++ b/server/compositor/compositor.cpp @@ -427,7 +427,8 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) flip_y, src, src_rect, - src_fov); + src_fov, + view_info.alpha); for (auto & encoder: encoders) { diff --git a/server/compositor/foveation.cpp b/server/compositor/foveation.cpp index 614355dc..8aa4506d 100644 --- a/server/compositor/foveation.cpp +++ b/server/compositor/foveation.cpp @@ -42,6 +42,7 @@ struct ubo_data uint32_t x[XRT_MAX_VIEWS * RENDER_FOVEATION_BUFFER_DIMENSIONS]; uint32_t y[XRT_MAX_VIEWS * RENDER_FOVEATION_BUFFER_DIMENSIONS]; uint32_t alpha_width; + VkBool32 alpha; }; vk::raii::Sampler make_sampler(wivrn::vk_bundle & vk) @@ -512,7 +513,6 @@ void foveation::update_ubo( compute_params(); auto ubo = gpu_buffer.data(); - ubo->alpha_width = foveated_size.width / 2; for (size_t view = 0; view < 2; ++view) { bool flip = false; @@ -565,9 +565,13 @@ std::array foveation::foveate( bool flip_y, std::array src, std::array src_rect, - std::array src_fov) + std::array src_fov, + bool alpha) { update_ubo(cmd, flip_y, src_rect, src_fov); + auto ubo = gpu_buffer.data(); + ubo->alpha_width = foveated_size.width / 2; + ubo->alpha = alpha; std::array src_image_info{ vk::DescriptorImageInfo{ diff --git a/server/compositor/foveation.h b/server/compositor/foveation.h index 57c3d216..139a6a19 100644 --- a/server/compositor/foveation.h +++ b/server/compositor/foveation.h @@ -96,6 +96,7 @@ public: bool flip_y, std::array src, std::array src_rect, - std::array src_fov); + std::array src_fov, + bool alpha); }; } // namespace wivrn diff --git a/server/compositor/shaders/foveation.comp b/server/compositor/shaders/foveation.comp index 0a7bfbb4..ffc7822c 100644 --- a/server/compositor/shaders/foveation.comp +++ b/server/compositor/shaders/foveation.comp @@ -37,6 +37,7 @@ layout(set = 0, binding = 1, std430) buffer restrict Config uint y[2*MAX_DIM]; // output parameters uint alpha_width; + bool alpha; } ubo; layout(set = 0, binding = 2) uniform writeonly restrict image2DArray luma; @@ -125,9 +126,12 @@ void main() // actual chroma imageStore(chroma, ivec3(ix/2, iy/2, iz), vec4(sum.y, sum.z, 0, 0) / 4); - // alpha in luma - int offset = int(ubo.alpha_width * iz); - imageStore(luma, ivec3(offset + ix/2, iy/2, 2), vec4(sum.w, 0, 0, 0) / 4); - imageStore(chroma, ivec3(offset + ix/2, iy/2, 2), vec4(0.5, 0.5, 0, 0)); + if (ubo.alpha) + { + // alpha in luma + int offset = int(ubo.alpha_width * iz); + imageStore(luma, ivec3(offset + ix/2, iy/2, 2), vec4(sum.w, 0, 0, 0) / 4); + imageStore(chroma, ivec3(offset + ix/2, iy/2, 2), vec4(0.5, 0.5, 0, 0)); + } } } From 19c528547974d2f49f5b8b784478fdd4529cc4c3 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sun, 12 Apr 2026 15:36:25 +0200 Subject: [PATCH 22/47] Respect NVIDIA constraints for vulkan encode input Images can't have mutable flag for vulkan encode on NVIDIA, perform a copy instead, as they allow transfer dst. --- server/encoder/video_encoder_vulkan.cpp | 200 ++++++++++++++++++++++-- server/encoder/video_encoder_vulkan.h | 1 + server/utils/wivrn_vk_bundle.cpp | 2 +- 3 files changed, 186 insertions(+), 17 deletions(-) diff --git a/server/encoder/video_encoder_vulkan.cpp b/server/encoder/video_encoder_vulkan.cpp index 4230028a..3bc951bd 100644 --- a/server/encoder/video_encoder_vulkan.cpp +++ b/server/encoder/video_encoder_vulkan.cpp @@ -19,8 +19,10 @@ #include "video_encoder_vulkan.h" #include "encoder/encoder_settings.h" +#include "inplace_vector.hpp" #include "util/u_logging.h" #include "utils/wivrn_vk_bundle.h" + #include #include #include @@ -259,6 +261,62 @@ void wivrn::video_encoder_vulkan::init(const vk::VideoCapabilitiesKHR & video_ca vk::to_string(picture_format.format) + " for encoder input image"); + if (not((picture_format.imageCreateFlags & vk::ImageCreateFlagBits::eMutableFormat) and + (picture_format.imageCreateFlags & vk::ImageCreateFlagBits::eExtendedUsage))) + { + // NVIDIA case: we can't use the same image for shaders and encode + if (not(picture_format.imageUsageFlags & vk::ImageUsageFlagBits::eTransferDst)) + throw std::runtime_error("Missing image flags for vulkan video encode"); + + // NVIDIA has this flag while AMD has mutable flag on images, we don't have to + // care for transfer on main queue + if (not(vk.physical_device.getQueueFamilyProperties().at(vk.encode_queue_family_index).queueFlags & vk::QueueFlagBits::eTransfer)) + throw std::runtime_error("Vulkan encode queue is missing transfer capability"); + + tmp_image = image_allocation( + vk.device, + vk::StructureChain{ + vk::ImageCreateInfo{ + .imageType = vk::ImageType::e2D, + .format = picture_format.format, + .extent = { + .width = extent.width, + .height = extent.height, + .depth = 1, + }, + .mipLevels = 1, + .arrayLayers = num_slots, + .usage = vk::ImageUsageFlagBits::eVideoEncodeSrcKHR | vk::ImageUsageFlagBits::eTransferDst, + }, + vk::VideoProfileListInfoKHR{ + .profileCount = 1, + .pProfiles = &video_profile, + }, + } + .get(), + VmaAllocationCreateInfo{ + .usage = VMA_MEMORY_USAGE_AUTO, + }, + std::format("vulkan encoder {} temporary image", stream_idx)); + + for (auto [i, item]: std::ranges::enumerate_view(slot_data)) + { + item.view = vk::raii::ImageView( + vk.device, + vk::ImageViewCreateInfo{ + .image = tmp_image, + .viewType = vk::ImageViewType::e2D, + .format = picture_format.format, + .subresourceRange = { + .aspectMask = vk::ImageAspectFlagBits::eColor, + .levelCount = 1, + .baseArrayLayer = uint32_t(i), + .layerCount = 1}, + }); + vk.name(item.view, std::format("vulkan encoder {} view {}", stream_idx, i)); + } + } + // Decode picture buffer (DPB) images vk::VideoFormatPropertiesKHR reference_picture_format = select_video_format( vk.physical_device, @@ -573,33 +631,144 @@ void wivrn::video_encoder_vulkan::present_image(vk::Image y_cbcr, vk::SemaphoreS vk::ImageView image_view; - if (need_transfer) + if (tmp_image) { - vk::ImageMemoryBarrier2 video_barrier{ - .dstStageMask = vk::PipelineStageFlagBits2KHR::eVideoEncodeKHR, - .dstAccessMask = vk::AccessFlagBits2::eVideoEncodeReadKHR, - .srcQueueFamilyIndex = vk.queue_family_index, - .dstQueueFamilyIndex = target_queue, - .image = y_cbcr, + assert(slot_item.view); + image_view = slot_item.view; + compositor_sem.stageMask = vk::PipelineStageFlagBits2::eCopy; + + beman::inplace_vector::inplace_vector im_barriers; + vk::ImageLayout y_cbcr_layout{vk::ImageLayout::eGeneral}; + if (need_transfer) + { + im_barriers.push_back(vk::ImageMemoryBarrier2{ + .dstStageMask = vk::PipelineStageFlagBits2KHR::eCopy, + .dstAccessMask = vk::AccessFlagBits2::eTransferRead, + .oldLayout = y_cbcr_layout, + .newLayout = vk::ImageLayout::eTransferSrcOptimal, + .srcQueueFamilyIndex = vk.queue_family_index, + .dstQueueFamilyIndex = target_queue, + .image = y_cbcr, + .subresourceRange = {.aspectMask = vk::ImageAspectFlagBits::eColor, + .baseMipLevel = 0, + .levelCount = 1, + .baseArrayLayer = stream_idx, + .layerCount = 1}, + }); + y_cbcr_layout = vk::ImageLayout::eTransferSrcOptimal; + } + im_barriers.push_back(vk::ImageMemoryBarrier2{ + .dstStageMask = vk::PipelineStageFlagBits2KHR::eCopy, + .dstAccessMask = vk::AccessFlagBits2::eTransferWrite, + .oldLayout = vk::ImageLayout::eUndefined, + .newLayout = vk::ImageLayout::eTransferDstOptimal, + .image = tmp_image, .subresourceRange = {.aspectMask = vk::ImageAspectFlagBits::eColor, .baseMipLevel = 0, .levelCount = 1, - .baseArrayLayer = stream_idx, + .baseArrayLayer = encode_slot, + .layerCount = 1}, + }); + + video_cmd_buf.pipelineBarrier2({ + .imageMemoryBarrierCount = uint32_t(im_barriers.size()), + .pImageMemoryBarriers = im_barriers.data(), + }); + + video_cmd_buf.copyImage( + y_cbcr, + y_cbcr_layout, + tmp_image, + vk::ImageLayout::eTransferDstOptimal, + std::array{ + vk::ImageCopy{ + .srcSubresource = { + .aspectMask = vk::ImageAspectFlagBits::ePlane0, + .baseArrayLayer = stream_idx, + .layerCount = 1, + }, + .dstSubresource = { + .aspectMask = vk::ImageAspectFlagBits::ePlane0, + .baseArrayLayer = encode_slot, + .layerCount = 1, + }, + .extent = { + .width = extent.width, + .height = extent.height, + .depth = 1, + }, + }, + vk::ImageCopy{ + .srcSubresource = { + .aspectMask = vk::ImageAspectFlagBits::ePlane1, + .baseArrayLayer = stream_idx, + .layerCount = 1, + }, + .dstSubresource = { + .aspectMask = vk::ImageAspectFlagBits::ePlane1, + .baseArrayLayer = encode_slot, + .layerCount = 1, + }, + .extent = { + .width = extent.width / 2, + .height = extent.height / 2, + .depth = 1, + }, + }, + }); + + vk::ImageMemoryBarrier2 tmp_image_barrier{ + .srcStageMask = vk::PipelineStageFlagBits2KHR::eTransfer, + .srcAccessMask = vk::AccessFlagBits2::eTransferWrite, + .dstStageMask = vk::PipelineStageFlagBits2KHR::eVideoEncodeKHR, + .dstAccessMask = vk::AccessFlagBits2::eVideoEncodeReadKHR, + .oldLayout = vk::ImageLayout::eTransferDstOptimal, + .newLayout = vk::ImageLayout::eVideoEncodeSrcKHR, + .image = tmp_image, + .subresourceRange = {.aspectMask = vk::ImageAspectFlagBits::eColor, + .baseMipLevel = 0, + .levelCount = 1, + .baseArrayLayer = encode_slot, .layerCount = 1}, }; video_cmd_buf.pipelineBarrier2({ .imageMemoryBarrierCount = 1, - .pImageMemoryBarriers = &video_barrier, + .pImageMemoryBarriers = &tmp_image_barrier, }); } - - auto it = image_views.find(VkImage(y_cbcr)); - if (it != image_views.end()) - image_view = *it->second; else { - image_view_template.image = y_cbcr; - image_view = *image_views.emplace(y_cbcr, vk.device.createImageView(image_view_template)).first->second; + compositor_sem.stageMask = vk::PipelineStageFlagBits2::eVideoEncodeKHR; + if (need_transfer) + { + vk::ImageMemoryBarrier2 video_barrier{ + .dstStageMask = vk::PipelineStageFlagBits2KHR::eVideoEncodeKHR, + .dstAccessMask = vk::AccessFlagBits2::eVideoEncodeReadKHR, + .oldLayout = vk::ImageLayout::eGeneral, + .newLayout = vk::ImageLayout::eVideoEncodeSrcKHR, + .srcQueueFamilyIndex = vk.queue_family_index, + .dstQueueFamilyIndex = target_queue, + .image = y_cbcr, + .subresourceRange = {.aspectMask = vk::ImageAspectFlagBits::eColor, + .baseMipLevel = 0, + .levelCount = 1, + .baseArrayLayer = stream_idx, + .layerCount = 1}, + }; + video_cmd_buf.pipelineBarrier2({ + .imageMemoryBarrierCount = 1, + .pImageMemoryBarriers = &video_barrier, + }); + } + + auto it = image_views.find(VkImage(y_cbcr)); + if (it != image_views.end()) + image_view = *it->second; + else + { + image_view_template.image = y_cbcr; + image_view = *image_views.emplace(y_cbcr, vk.device.createImageView(image_view_template)).first->second; + } } video_cmd_buf.resetQueryPool(*query_pool, encode_slot, 1); @@ -799,7 +968,6 @@ void wivrn::video_encoder_vulkan::present_image(vk::Image y_cbcr, vk::SemaphoreS vk::CommandBufferSubmitInfo cmd_info{ .commandBuffer = slot_item.video_cmd_buf, }; - compositor_sem.stageMask = vk::PipelineStageFlagBits2::eVideoEncodeKHR; vk::SemaphoreSubmitInfo signal_info{ .semaphore = *sem, diff --git a/server/encoder/video_encoder_vulkan.h b/server/encoder/video_encoder_vulkan.h index e0d34dce..2c36648d 100644 --- a/server/encoder/video_encoder_vulkan.h +++ b/server/encoder/video_encoder_vulkan.h @@ -45,6 +45,7 @@ class video_encoder_vulkan : public video_encoder vk::raii::CommandPool transfer_command_pool = nullptr; vk::raii::CommandPool video_command_pool = nullptr; + image_allocation tmp_image; vk::ImageViewUsageCreateInfo image_view_template_next; vk::ImageViewCreateInfo image_view_template; std::unordered_map image_views; // for input images diff --git a/server/utils/wivrn_vk_bundle.cpp b/server/utils/wivrn_vk_bundle.cpp index 554abfc4..87ad0f17 100644 --- a/server/utils/wivrn_vk_bundle.cpp +++ b/server/utils/wivrn_vk_bundle.cpp @@ -412,7 +412,7 @@ bool wivrn::vk_bundle::has_device_ext(const char * ext) const bool wivrn::vk_bundle::optimal_transfer(uint32_t from, uint32_t to) const { - if (from == vk::QueueFamilyIgnored or to == vk::QueueFamilyIgnored) + if (from == vk::QueueFamilyIgnored or to == vk::QueueFamilyIgnored or from == to) return false; #ifdef VK_KHR_maintenance9 if (std::get(feat).maintenance9) From 8f3f2d490045e3a29cf7d2aa49711503af0c7a39 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sun, 12 Apr 2026 23:40:27 +0200 Subject: [PATCH 23/47] Don't use extension for stream scale/bias --- client/scenes/stream.cpp | 63 +++++++++++++++-------------- client/scenes/stream_defoveator.cpp | 6 +++ client/scenes/stream_defoveator.h | 2 + client/shaders/reprojection.glsl | 17 ++++++++ 4 files changed, 57 insertions(+), 31 deletions(-) diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index 2486e4b7..0917153b 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -977,10 +977,39 @@ void scenes::stream::render(const XrFrameState & frame_state) } } assert(swapchain); - // defoveate the image + // defoveate the image, apply scale/bias int image_index = swapchain.acquire(); swapchain.wait(); - defoveator->defoveate(command_buffer, foveation, images, image_index); + + switch (gui_status) + { + case stream_tab::hidden: + case stream_tab::bitrate_settings: + case stream_tab::foveation_settings: + case stream_tab::compact: + case stream_tab::overlay_only: + dimming = dimming - frame_state.predictedDisplayPeriod / (1e9 * constants::stream::fade_duration); + break; + case stream_tab::stats: + case stream_tab::settings: + case stream_tab::applications: + case stream_tab::application_launcher: + dimming = dimming + frame_state.predictedDisplayPeriod / (1e9 * constants::stream::fade_duration); + break; + } + + dimming = std::clamp(dimming, 0, 1); + float x = dimming * dimming * (3 - 2 * dimming); // Easing function + + const float scale = std::lerp(1, constants::stream::dimming_scale, x); + const float bias = std::lerp(0, constants::stream::dimming_bias, x); + + defoveator->defoveate(command_buffer, + foveation, + images, + {scale, scale, scale, 1.}, + {bias, bias, bias, 0.}, + image_index); command_buffer.writeTimestamp(vk::PipelineStageFlagBits::eBottomOfPipe, *query_pool, 1); @@ -1043,38 +1072,10 @@ void scenes::stream::render(const XrFrameState & frame_state) }; } add_projection_layer( - XR_COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT, + use_alpha ? XR_COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT : 0, application::space(xr::spaces::world), layer_view); - if (composition_layer_color_scale_bias_supported) - { - switch (gui_status) - { - case stream_tab::hidden: - case stream_tab::bitrate_settings: - case stream_tab::foveation_settings: - case stream_tab::compact: - case stream_tab::overlay_only: - dimming = dimming - frame_state.predictedDisplayPeriod / (1e9 * constants::stream::fade_duration); - break; - case stream_tab::stats: - case stream_tab::settings: - case stream_tab::applications: - case stream_tab::application_launcher: - dimming = dimming + frame_state.predictedDisplayPeriod / (1e9 * constants::stream::fade_duration); - break; - } - - dimming = std::clamp(dimming, 0, 1); - float x = dimming * dimming * (3 - 2 * dimming); // Easing function - - float scale = std::lerp(1, constants::stream::dimming_scale, x); - float bias = std::lerp(0, constants::stream::dimming_bias, x); - - set_color_scale_bias({scale, scale, scale, 1}, {bias, bias, bias, 0}); - } - if (const configuration::openxr_post_processing_settings openxr_post_processing = application::get_config().openxr_post_processing; (openxr_post_processing.sharpening | openxr_post_processing.super_sampling) > 0) set_layer_settings(openxr_post_processing.sharpening | openxr_post_processing.super_sampling); diff --git a/client/scenes/stream_defoveator.cpp b/client/scenes/stream_defoveator.cpp index cdc846dc..d15c3b7c 100644 --- a/client/scenes/stream_defoveator.cpp +++ b/client/scenes/stream_defoveator.cpp @@ -43,6 +43,8 @@ struct vert_pc { glm::ivec4 rgb_rect; glm::ivec4 a_rect; + std::array scale; + std::array bias; }; void stream_defoveator::ensure_vertices(size_t num_vertices) @@ -304,6 +306,8 @@ static size_t required_vertices(const wivrn::to_headset::foveation_parameter & p void stream_defoveator::defoveate(vk::raii::CommandBuffer & command_buffer, const std::array & foveation, const std::array & inputs, + std::array scale, + std::array bias, int destination) { if (destination < 0 || destination >= (int)output_images.size()) @@ -424,6 +428,8 @@ void stream_defoveator::defoveate(vk::raii::CommandBuffer & command_buffer, input.rect_a.offset.y, input.rect_a.extent.width, input.rect_a.extent.height), + .scale = scale, + .bias = bias, }; device.updateDescriptorSets(descriptor_writes, {}); diff --git a/client/scenes/stream_defoveator.h b/client/scenes/stream_defoveator.h index dbb9893b..f99dae14 100644 --- a/client/scenes/stream_defoveator.h +++ b/client/scenes/stream_defoveator.h @@ -87,6 +87,8 @@ public: vk::raii::CommandBuffer & command_buffer, const std::array & foveation, const std::array & inputs, + std::array scale, + std::array bias, int destination); static XrExtent2Di defoveated_size(const wivrn::to_headset::foveation_parameter &); diff --git a/client/shaders/reprojection.glsl b/client/shaders/reprojection.glsl index b404e19a..6d6bbbfb 100644 --- a/client/shaders/reprojection.glsl +++ b/client/shaders/reprojection.glsl @@ -22,6 +22,8 @@ layout(push_constant) uniform pc { ivec4 rgb_rect; ivec4 a_rect; + vec4 scale; + vec4 bias; }; #ifdef VERT_SHADER @@ -85,6 +87,21 @@ void main() { outColor = sRGB_to_linear_rgba(outColor); } + + if (alpha == 0) + { + outColor = outColor * scale + bias; + } + else if (outColor.a < 0.02) + { + outColor = vec4(0); + } + else + { + outColor.rgb /= outColor.a; + outColor = outColor * scale + bias; + outColor.rgb *= outColor.a; + } } #endif From 51947c3aa1f67b2136743fd392aa351130d699ee Mon Sep 17 00:00:00 2001 From: abb128 Date: Fri, 17 Apr 2026 17:42:22 +0300 Subject: [PATCH 24/47] Fix null pointer dereference in start_application (#878) --- server/start_application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/start_application.cpp b/server/start_application.cpp index 499655ae..8aeedfbd 100644 --- a/server/start_application.cpp +++ b/server/start_application.cpp @@ -155,7 +155,7 @@ void forked_children::start_application(const std::vector & args, c if (path) tmp.push_back("--directory=" + *path); } - else + else if (path) { try { From c2a234d48aa739bd927e8e31c5425f37327d4a13 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 9 Apr 2026 20:03:03 +0200 Subject: [PATCH 25/47] Update monado fix u_builders.h -> target_builder_helpers.h --- flake.nix | 2 +- monado-rev | 2 +- server/CMakeLists.txt | 1 + server/driver/wivrn_session.cpp | 11 ++++++----- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index f2cf658b..79e690f9 100644 --- a/flake.nix +++ b/flake.nix @@ -58,7 +58,7 @@ # Keep in sync with CMakeLists.txt monado rev rev = lib.strings.trim (builtins.readFile ./monado-rev); # Nix will output the correct hash when it doesn't match - hash = "sha256-M0SQMu1rgY++a+4r0DK//ralFEO5w7I3UrgLecoLO+A="; + hash = "sha256-z3WdVsoodQczeUaMZP7M6UhWlKW30IJbpix8M0MCHc8="; }; }; diff --git a/monado-rev b/monado-rev index 5462f9a8..e6e21fea 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -ef152c973b94a313e1ba9552162818b5151ac671 +734f3f569ac8a82500cdd25c8d822680705f8ef5 diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt index 9ee517ca..b3486c87 100644 --- a/server/CMakeLists.txt +++ b/server/CMakeLists.txt @@ -232,6 +232,7 @@ if (WIVRN_BUILD_SERVER) comp_render comp_util ipc_server + target_helpers xrt-external-openxr xrt-interfaces diff --git a/server/driver/wivrn_session.cpp b/server/driver/wivrn_session.cpp index 6859a1a5..fa6430ef 100644 --- a/server/driver/wivrn_session.cpp +++ b/server/driver/wivrn_session.cpp @@ -25,9 +25,6 @@ #include "configuration.h" #include "driver/app_pacer.h" #include "server/ipc_server.h" -#include "util/u_builders.h" -#include "util/u_logging.h" -#include "util/u_system.h" #include "utils/load_icon.h" #include "utils/method.h" #include "utils/scoped_lock.h" @@ -40,12 +37,16 @@ #include "wivrn_generic_tracker.h" #include "wivrn_htc_face_tracker.h" #include "wivrn_ipc.h" - #include "wivrn_packets.h" #include "xr/to_string.h" + +#include "target_builder_helpers.h" +#include "util/u_logging.h" +#include "util/u_system.h" #include "xrt/xrt_defines.h" #include "xrt/xrt_device.h" #include "xrt/xrt_session.h" + #include #include #include @@ -292,7 +293,7 @@ xrt_result_t wivrn::wivrn_session::create_session(std::unique_ptrsystem_compositor = *out_xsysc; - u_builder_create_space_overseer_legacy( + t_builder_create_space_overseer_legacy( &self->xrt_system.broadcast, &self->hmd, self->static_roles.eyes, From 1f23c81cd5d51506fe2bc67d3c1ee51ddc11f7c9 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 9 Apr 2026 20:31:54 +0200 Subject: [PATCH 26/47] Update monado fix xdev -> static_xdev rename --- flake.nix | 2 +- monado-rev | 2 +- server/driver/wivrn_session.cpp | 66 ++++++++++++++++----------------- 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/flake.nix b/flake.nix index 79e690f9..9ef23eed 100644 --- a/flake.nix +++ b/flake.nix @@ -58,7 +58,7 @@ # Keep in sync with CMakeLists.txt monado rev rev = lib.strings.trim (builtins.readFile ./monado-rev); # Nix will output the correct hash when it doesn't match - hash = "sha256-z3WdVsoodQczeUaMZP7M6UhWlKW30IJbpix8M0MCHc8="; + hash = "sha256-Y/aTn6lRafPAuRhTWHOVnZ0xCZVfeD2mmOJ5p2jG8L8="; }; }; diff --git a/monado-rev b/monado-rev index e6e21fea..3f7c0920 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -734f3f569ac8a82500cdd25c8d822680705f8ef5 +29eaac3e172992cfc0b87c8e57b5c9c28d4ce155 diff --git a/server/driver/wivrn_session.cpp b/server/driver/wivrn_session.cpp index fa6430ef..0d28133a 100644 --- a/server/driver/wivrn_session.cpp +++ b/server/driver/wivrn_session.cpp @@ -110,18 +110,18 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr connection throw; } - static_roles.head = xdevs[xdev_count++] = &hmd; + static_roles.head = static_xdevs[static_xdev_count++] = &hmd; if (hmd.supported.face_tracking) static_roles.face = &hmd; - roles.left = left_controller_index = xdev_count++; - static_roles.hand_tracking.unobstructed.left = xdevs[left_controller_index] = &left_controller; - xdevs[left_hand_interaction_index = xdev_count++] = &left_hand_interaction; + roles.left = left_controller_index = static_xdev_count++; + static_roles.hand_tracking.unobstructed.left = static_xdevs[left_controller_index] = &left_controller; + static_xdevs[left_hand_interaction_index = static_xdev_count++] = &left_hand_interaction; - roles.right = right_controller_index = xdev_count++; - static_roles.hand_tracking.unobstructed.right = xdevs[right_controller_index] = &right_controller; - xdevs[right_hand_interaction_index = xdev_count++] = &right_hand_interaction; + roles.right = right_controller_index = static_xdev_count++; + static_roles.hand_tracking.unobstructed.right = static_xdevs[right_controller_index] = &right_controller; + static_xdevs[right_hand_interaction_index = static_xdev_count++] = &right_hand_interaction; #if WIVRN_FEATURE_STEAMVR_LIGHTHOUSE auto use_steamvr_lh = configuration().use_steamvr_lh || std::getenv("WIVRN_USE_STEAMVR_LH"); @@ -135,31 +135,31 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr connection U_LOG_W("====================="); if (steamvr_lh_create_devices(nullptr, &lhdevs) == XRT_SUCCESS) { - for (int i = 0; i < lhdevs->xdev_count; i++) + for (int i = 0; i < lhdevs->static_xdev_count; i++) { - auto lhdev = lhdevs->xdevs[i]; + auto lhdev = lhdevs->static_xdevs[i]; switch (lhdev->device_type) { case XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER: - roles.left = xdev_count; + roles.left = static_xdev_count; static_roles.hand_tracking.unobstructed.left = nullptr; static_roles.hand_tracking.conforming.left = lhdev; break; case XRT_DEVICE_TYPE_RIGHT_HAND_CONTROLLER: - roles.right = xdev_count; + roles.right = static_xdev_count; static_roles.hand_tracking.unobstructed.right = nullptr; static_roles.hand_tracking.conforming.right = lhdev; break; case XRT_DEVICE_TYPE_ANY_HAND_CONTROLLER: if (roles.left == left_controller_index) { - roles.left = xdev_count; + roles.left = static_xdev_count; static_roles.hand_tracking.unobstructed.left = nullptr; static_roles.hand_tracking.conforming.left = lhdev; } else if (roles.right == right_controller_index) { - roles.right = xdev_count; + roles.right = static_xdev_count; static_roles.hand_tracking.unobstructed.right = nullptr; static_roles.hand_tracking.conforming.right = lhdev; } @@ -167,7 +167,7 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr connection default: break; } - xdevs[xdev_count++] = lhdev; + static_xdevs[static_xdev_count++] = lhdev; } } } @@ -175,16 +175,16 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr connection if (get_info().eye_gaze || is_forced_extension("EXT_eye_gaze_interaction")) { // The tracker space needs to be attached to the head pose once the space overseer is created - xdevs[xdev_count++] = static_roles.eyes = &eye_tracker.emplace(*this); + static_xdevs[static_xdev_count++] = static_roles.eyes = &eye_tracker.emplace(*this); } auto face = get_info().face_tracking; if (face == from_headset::face_type::android || is_forced_extension("ANDROID_face_tracking")) - xdevs[xdev_count++] = static_roles.face = &android_face_tracker.emplace(&hmd, *this); + static_xdevs[static_xdev_count++] = static_roles.face = &android_face_tracker.emplace(&hmd, *this); else if (face == from_headset::face_type::fb2 || is_forced_extension("FB_face_tracking2")) - xdevs[xdev_count++] = static_roles.face = &fb_face2_tracker.emplace(&hmd, *this); + static_xdevs[static_xdev_count++] = static_roles.face = &fb_face2_tracker.emplace(&hmd, *this); else if (face == wivrn::from_headset::face_type::htc || is_forced_extension("HTC_facial_tracking")) - xdevs[xdev_count++] = static_roles.face = &htc_face_tracker.emplace(&hmd, *this); + static_xdevs[static_xdev_count++] = static_roles.face = &htc_face_tracker.emplace(&hmd, *this); auto num_generic_trackers = get_info().num_generic_trackers; if (num_generic_trackers > 0) @@ -196,35 +196,35 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr connection from_headset::body_tracking::max_tracked_poses); num_generic_trackers = from_headset::body_tracking::max_tracked_poses; } - if (num_generic_trackers + xdev_count > std::size(xdevs)) + if (num_generic_trackers + static_xdev_count > std::size(static_xdevs)) { U_LOG_W("Too many generic trackers: %d, only %lu will be active", num_generic_trackers, - std::size(xdevs) - xdev_count); - num_generic_trackers = std::size(xdevs) - xdev_count; + std::size(static_xdevs) - static_xdev_count); + num_generic_trackers = std::size(static_xdevs) - static_xdev_count; } U_LOG_I("Creating %d generic trackers", num_generic_trackers); for (int i = 0; i < num_generic_trackers; ++i) - xdevs[xdev_count++] = &generic_trackers.emplace_back(i, &hmd, *this); + static_xdevs[static_xdev_count++] = &generic_trackers.emplace_back(i, &hmd, *this); } #if WIVRN_FEATURE_SOLARXR - uint32_t num_devs = solarxr_device_create_xdevs(static_cast(hmd).tracking_origin, &xdevs[xdev_count], ARRAY_SIZE(xdevs) - xdev_count); + uint32_t num_devs = solarxr_device_create_xdevs(static_cast(hmd).tracking_origin, &static_xdevs[static_xdev_count], ARRAY_SIZE(static_xdevs) - static_xdev_count); if (num_devs != 0) { - static_roles.body = xdevs[xdev_count]; - solarxr_device_set_feeder_devices(static_roles.body, xdevs, xdev_count); + static_roles.body = static_xdevs[static_xdev_count]; + solarxr_device_set_feeder_devices(static_roles.body, static_xdevs, static_xdev_count); } - xdev_count += num_devs; + static_xdev_count += num_devs; #endif if (roles.left >= 0) - roles.left_profile = xdevs[roles.left]->name; + roles.left_profile = static_xdevs[roles.left]->name; if (roles.right >= 0) - roles.right_profile = xdevs[roles.right]->name; + roles.right_profile = static_xdevs[roles.right]->name; if (roles.gamepad >= 0) - roles.gamepad_profile = xdevs[roles.gamepad]->name; + roles.gamepad_profile = static_xdevs[roles.gamepad]->name; if (auto system_name = get_info().system_name; !system_name.empty()) { @@ -256,9 +256,9 @@ wivrn_session::~wivrn_session() solarxr_device_clear_feeder_devices(static_roles.body); #endif - for (size_t i = 0; i < ARRAY_SIZE(xdevs); i++) + for (size_t i = 0; i < ARRAY_SIZE(static_xdevs); i++) { - xrt_device_destroy(&xdevs[i]); + xrt_device_destroy(&static_xdevs[i]); } connection->shutdown(); @@ -300,8 +300,8 @@ xrt_result_t wivrn::wivrn_session::create_session(std::unique_ptrleft_controller, &self->right_controller, nullptr, - self->xdevs, - self->xdev_count, + self->static_xdevs, + self->static_xdev_count, false, false, out_xspovrs); From 6aa7c9759a4f381cc675c4ffcd0fbb37755e26c3 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 9 Apr 2026 20:49:03 +0200 Subject: [PATCH 27/47] Update monado fix u_system -> b_system rename --- flake.nix | 2 +- monado-rev | 2 +- server/CMakeLists.txt | 1 + server/driver/wivrn_session.cpp | 6 +++--- server/driver/wivrn_session.h | 8 ++++---- server/target_instance_wivrn.cpp | 6 +++--- 6 files changed, 13 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index 9ef23eed..08af714c 100644 --- a/flake.nix +++ b/flake.nix @@ -58,7 +58,7 @@ # Keep in sync with CMakeLists.txt monado rev rev = lib.strings.trim (builtins.readFile ./monado-rev); # Nix will output the correct hash when it doesn't match - hash = "sha256-Y/aTn6lRafPAuRhTWHOVnZ0xCZVfeD2mmOJ5p2jG8L8="; + hash = "sha256-PZGOzjmpGv2OO+PXggWQxT15Obz7xUZXz0L9cGNu9eU="; }; }; diff --git a/monado-rev b/monado-rev index 3f7c0920..9e8a95b5 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -29eaac3e172992cfc0b87c8e57b5c9c28d4ce155 +27d363459487bb63443eb215157ac3ce0b42fce6 diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt index b3486c87..066c8ede 100644 --- a/server/CMakeLists.txt +++ b/server/CMakeLists.txt @@ -228,6 +228,7 @@ if (WIVRN_BUILD_SERVER) aux_os aux_util aux_vk + base comp_multi comp_render comp_util diff --git a/server/driver/wivrn_session.cpp b/server/driver/wivrn_session.cpp index 0d28133a..ae05a52c 100644 --- a/server/driver/wivrn_session.cpp +++ b/server/driver/wivrn_session.cpp @@ -40,9 +40,9 @@ #include "wivrn_packets.h" #include "xr/to_string.h" +#include "b_system.h" #include "target_builder_helpers.h" #include "util/u_logging.h" -#include "util/u_system.h" #include "xrt/xrt_defines.h" #include "xrt/xrt_device.h" #include "xrt/xrt_session.h" @@ -75,7 +75,7 @@ bool is_forced_extension(const char * ext_name) return strstr(val, ext_name); } -wivrn::wivrn_session::wivrn_session(std::unique_ptr connection, u_system & system) : +wivrn::wivrn_session::wivrn_session(std::unique_ptr connection, b_system & system) : xrt_system_devices{ .get_roles = method_pointer<&wivrn_session::get_roles>, .feature_inc = method_pointer<&wivrn_session::feature_inc>, @@ -265,7 +265,7 @@ wivrn_session::~wivrn_session() } xrt_result_t wivrn::wivrn_session::create_session(std::unique_ptr connection, - u_system & system, + b_system & system, xrt_system_devices ** out_xsysd, xrt_space_overseer ** out_xspovrs, xrt_system_compositor ** out_xsysc) diff --git a/server/driver/wivrn_session.h b/server/driver/wivrn_session.h index a92c411f..0ee96567 100644 --- a/server/driver/wivrn_session.h +++ b/server/driver/wivrn_session.h @@ -45,8 +45,8 @@ #include #include +struct b_system; struct ipc_server; -struct u_system; struct xrt_space_overseer; struct xrt_system_compositor; union xrt_session_event; @@ -70,7 +70,7 @@ class wivrn_session : public xrt_system_devices wivrn::compositor compositor; pacing_app_factory app_pacers; - u_system & xrt_system; + b_system & xrt_system; ipc_server * mnd_ipc_server; xrt_space_overseer * space_overseer; xrt_system_compositor * system_compositor; @@ -115,14 +115,14 @@ class wivrn_session : public xrt_system_devices std::jthread net_thread; std::jthread worker_thread; - wivrn_session(std::unique_ptr connection, u_system &); + wivrn_session(std::unique_ptr connection, b_system &); public: using base_t = xrt_system_devices; ~wivrn_session(); static xrt_result_t create_session(std::unique_ptr connection, - u_system & system, + b_system & system, xrt_system_devices ** out_xsysd, xrt_space_overseer ** out_xspovrs, xrt_system_compositor ** out_xsysc); diff --git a/server/target_instance_wivrn.cpp b/server/target_instance_wivrn.cpp index e5f0810b..e10c846c 100644 --- a/server/target_instance_wivrn.cpp +++ b/server/target_instance_wivrn.cpp @@ -23,7 +23,7 @@ #include "xrt/xrt_instance.h" #include "xrt/xrt_system.h" -#include "util/u_system.h" +#include "b_system.h" #include "util/u_trace_marker.h" #include @@ -50,7 +50,7 @@ xrt_result_t instance::create_system( assert(*out_xsysd == NULL); assert(out_xsysc == NULL || *out_xsysc == NULL); assert(server); - auto u_sys = u_system_create(); + auto u_sys = b_system_create(); *out_xsys = &u_sys->base; struct xrt_system_compositor * xsysc = NULL; @@ -67,7 +67,7 @@ xrt_result_t instance::create_system( } session = (wivrn_session *)*out_xsysd; session->start(server); - u_system_set_system_compositor(u_sys, *out_xsysc); + b_system_set_system_compositor(u_sys, *out_xsysc); return res; } From cf602beefb28dfda8a83fb89b4c81618ab48c044 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 9 Apr 2026 23:20:10 +0200 Subject: [PATCH 28/47] Update monado move view_config from sys_info to callback --- flake.nix | 2 +- monado-rev | 2 +- ...001-c-multi-early-wake-of-compositor.patch | 14 ++--- .../monado/0002-Use-extern-socket-fd.patch | 8 +-- ...vironment-blend-mode-selection-logic.patch | 4 +- .../0004-st-oxr-forward-0-refresh-rate.patch | 6 +- ..._lh-prevent-crash-on-vive-pro2-WiVRn.patch | 6 +- ...entDataInteractionProfileChanged-whe.patch | 4 +- .../monado/0007-don-t-verify-GL-stuff.patch | 2 +- .../0008-configure-u_git_tag-in-WiVRn.patch | 6 +- server/compositor/compositor.cpp | 63 ++++++++++++------- server/compositor/compositor.h | 4 ++ server/driver/wivrn_session.cpp | 2 +- 13 files changed, 71 insertions(+), 52 deletions(-) diff --git a/flake.nix b/flake.nix index 08af714c..a7099f2d 100644 --- a/flake.nix +++ b/flake.nix @@ -58,7 +58,7 @@ # Keep in sync with CMakeLists.txt monado rev rev = lib.strings.trim (builtins.readFile ./monado-rev); # Nix will output the correct hash when it doesn't match - hash = "sha256-PZGOzjmpGv2OO+PXggWQxT15Obz7xUZXz0L9cGNu9eU="; + hash = "sha256-OCQmmnHw5TsEq1LAqG8WwJvRFh1K7gcFIM7MUL+I4Zw="; }; }; diff --git a/monado-rev b/monado-rev index 9e8a95b5..00b98a4a 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -27d363459487bb63443eb215157ac3ce0b42fce6 +4b00cbbba8f5675ceb31edad2a04bc2aca48b8e8 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 090586ca..a7c3a034 100644 --- a/patches/monado/0001-c-multi-early-wake-of-compositor.patch +++ b/patches/monado/0001-c-multi-early-wake-of-compositor.patch @@ -1,4 +1,4 @@ -From 0fe5a8e72f2ba178e155d2ab87e79f34294248dd Mon Sep 17 00:00:00 2001 +From 56bc78165b70a84e40bfc22ca5c2b95b0612d0cd 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 @@ -36,10 +36,10 @@ index 1fc135ce4..25b64aca8 100644 static void * diff --git a/src/xrt/compositor/multi/comp_multi_private.h b/src/xrt/compositor/multi/comp_multi_private.h -index 3351defa4..e8f0c8295 100644 +index 0e777f442..d39b8d76d 100644 --- a/src/xrt/compositor/multi/comp_multi_private.h +++ b/src/xrt/compositor/multi/comp_multi_private.h -@@ -359,6 +359,10 @@ struct multi_system_compositor +@@ -364,6 +364,10 @@ struct multi_system_compositor */ struct os_mutex list_and_timing_lock; @@ -51,7 +51,7 @@ index 3351defa4..e8f0c8295 100644 { int64_t predicted_display_time_ns; diff --git a/src/xrt/compositor/multi/comp_multi_system.c b/src/xrt/compositor/multi/comp_multi_system.c -index 4db923457..80cbbbc26 100644 +index e673afcb0..cf07a2d1c 100644 --- a/src/xrt/compositor/multi/comp_multi_system.c +++ b/src/xrt/compositor/multi/comp_multi_system.c @@ -24,6 +24,8 @@ @@ -109,7 +109,7 @@ index 4db923457..80cbbbc26 100644 // Now we know the diff, broadcast to pacers. broadcast_timings_to_pacers(msc, predicted_display_time_ns, predicted_display_period_ns, diff_ns); -@@ -721,6 +733,8 @@ system_compositor_destroy(struct xrt_system_compositor *xsc) +@@ -731,6 +743,8 @@ system_compositor_destroy(struct xrt_system_compositor *xsc) xrt_comp_native_destroy(&msc->xcn); os_mutex_destroy(&msc->list_and_timing_lock); @@ -118,8 +118,8 @@ index 4db923457..80cbbbc26 100644 free(msc); } -@@ -775,6 +789,8 @@ comp_multi_create_system_compositor(struct xrt_compositor_native *xcn, - msc->sessions.state = do_warm_start ? MULTI_SYSTEM_STATE_INIT_WARM_START : MULTI_SYSTEM_STATE_STOPPED; +@@ -788,6 +802,8 @@ comp_multi_create_system_compositor(struct xrt_compositor_native *xcn, + msc->get_view_config_callback = get_view_config_callback; os_mutex_init(&msc->list_and_timing_lock); + os_mutex_init(&msc->wake_mutex); diff --git a/patches/monado/0002-Use-extern-socket-fd.patch b/patches/monado/0002-Use-extern-socket-fd.patch index ab912784..43cfa7f2 100644 --- a/patches/monado/0002-Use-extern-socket-fd.patch +++ b/patches/monado/0002-Use-extern-socket-fd.patch @@ -1,4 +1,4 @@ -From c0019c2e8822db5efa7d6baf51b9773cc7bdc537 Mon Sep 17 00:00:00 2001 +From 8d323aae4c6436644e62a8e50f536672e09e7df1 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 8 Oct 2024 22:13:15 +0200 Subject: [PATCH 2/8] Use extern socket fd @@ -8,10 +8,10 @@ Subject: [PATCH 2/8] Use extern socket fd 1 file changed, 8 insertions(+) diff --git a/src/xrt/ipc/server/ipc_server_mainloop_linux.c b/src/xrt/ipc/server/ipc_server_mainloop_linux.c -index 777a31e96..9235375e6 100644 +index a0bef3dde..453dd38ca 100644 --- a/src/xrt/ipc/server/ipc_server_mainloop_linux.c +++ b/src/xrt/ipc/server/ipc_server_mainloop_linux.c -@@ -49,6 +49,8 @@ +@@ -50,6 +50,8 @@ #endif @@ -20,7 +20,7 @@ index 777a31e96..9235375e6 100644 /* * * Static functions. -@@ -57,6 +59,12 @@ +@@ -58,6 +60,12 @@ static int get_systemd_socket(struct ipc_server_mainloop *ml, int *out_fd) { diff --git a/patches/monado/0003-change-environment-blend-mode-selection-logic.patch b/patches/monado/0003-change-environment-blend-mode-selection-logic.patch index 26b27c99..07a25723 100644 --- a/patches/monado/0003-change-environment-blend-mode-selection-logic.patch +++ b/patches/monado/0003-change-environment-blend-mode-selection-logic.patch @@ -1,4 +1,4 @@ -From 004623b9038b3043365061e77a0e3cc430fb2dd9 Mon Sep 17 00:00:00 2001 +From 021c00d87dc8a956984a255c651658f4b6f76cc6 Mon Sep 17 00:00:00 2001 From: galister <85970-galister@users.noreply.gitlab.freedesktop.org> Date: Sat, 23 Nov 2024 02:42:12 +0900 Subject: [PATCH 3/8] change environment blend mode selection logic @@ -8,7 +8,7 @@ Subject: [PATCH 3/8] change environment blend mode selection logic 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/src/xrt/compositor/multi/comp_multi_system.c b/src/xrt/compositor/multi/comp_multi_system.c -index 80cbbbc26..4a397d7ec 100644 +index cf07a2d1c..417964770 100644 --- a/src/xrt/compositor/multi/comp_multi_system.c +++ b/src/xrt/compositor/multi/comp_multi_system.c @@ -233,23 +233,31 @@ find_active_blend_mode(struct multi_compositor **overlay_sorted_clients, size_t diff --git a/patches/monado/0004-st-oxr-forward-0-refresh-rate.patch b/patches/monado/0004-st-oxr-forward-0-refresh-rate.patch index a41c91f6..0bb85561 100644 --- a/patches/monado/0004-st-oxr-forward-0-refresh-rate.patch +++ b/patches/monado/0004-st-oxr-forward-0-refresh-rate.patch @@ -1,4 +1,4 @@ -From c0d86e77f011f0d75f17e5c30fb20bbf166dfc08 Mon Sep 17 00:00:00 2001 +From acd0e5bd5845f43fe443f70d54ae2df27bbec823 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 15 Mar 2025 22:19:48 +0100 Subject: [PATCH 4/8] st/oxr: forward 0 refresh rate @@ -9,10 +9,10 @@ Subject: [PATCH 4/8] st/oxr: forward 0 refresh rate 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c -index 3364aaead..deec90a73 100644 +index 0d35fcb42..b54a8f048 100644 --- a/src/xrt/compositor/main/comp_compositor.c +++ b/src/xrt/compositor/main/comp_compositor.c -@@ -377,7 +377,7 @@ compositor_request_display_refresh_rate(struct xrt_compositor *xc, float display +@@ -380,7 +380,7 @@ compositor_request_display_refresh_rate(struct xrt_compositor *xc, float display if (c->target && c->target->request_refresh_rate) { xrt_result_t result = comp_target_request_refresh_rate(c->target, display_refresh_rate_hz); // Assume refresh rate change is immediate diff --git a/patches/monado/0005-d-steamvr_lh-prevent-crash-on-vive-pro2-WiVRn.patch b/patches/monado/0005-d-steamvr_lh-prevent-crash-on-vive-pro2-WiVRn.patch index cc4449af..4281422d 100644 --- a/patches/monado/0005-d-steamvr_lh-prevent-crash-on-vive-pro2-WiVRn.patch +++ b/patches/monado/0005-d-steamvr_lh-prevent-crash-on-vive-pro2-WiVRn.patch @@ -1,4 +1,4 @@ -From 80007ab047cb486e78eb0527dc97de56574bc8e2 Mon Sep 17 00:00:00 2001 +From f592eb8af17a15b8cd6a20c308ee0f254c88463f Mon Sep 17 00:00:00 2001 From: no name Date: Sun, 28 Sep 2025 11:33:10 +0200 Subject: [PATCH 5/8] d/steamvr_lh: prevent crash on vive pro2/WiVRn @@ -8,10 +8,10 @@ Subject: [PATCH 5/8] d/steamvr_lh: prevent crash on vive pro2/WiVRn 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp -index 0fbe4f563..dc9e3d3a5 100644 +index 5c36e4e89..b77288bd0 100644 --- a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp +++ b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp -@@ -954,7 +954,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out +@@ -956,7 +956,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out // Include the HMD if (svrs->ctx->hmd) { diff --git a/patches/monado/0006-st-oxr-push-XrEventDataInteractionProfileChanged-whe.patch b/patches/monado/0006-st-oxr-push-XrEventDataInteractionProfileChanged-whe.patch index 8647ab8f..6f2ddf83 100644 --- a/patches/monado/0006-st-oxr-push-XrEventDataInteractionProfileChanged-whe.patch +++ b/patches/monado/0006-st-oxr-push-XrEventDataInteractionProfileChanged-whe.patch @@ -1,4 +1,4 @@ -From 659f5782066f77bb027accfcfe9ac4a810d27903 Mon Sep 17 00:00:00 2001 +From e013455ead67f79e18afc5a6bbb453caae76dac9 Mon Sep 17 00:00:00 2001 From: Sapphire Date: Fri, 7 Nov 2025 20:41:16 -0600 Subject: [PATCH 6/8] st/oxr: push XrEventDataInteractionProfileChanged when @@ -9,7 +9,7 @@ Subject: [PATCH 6/8] st/oxr: push XrEventDataInteractionProfileChanged when 1 file changed, 3 deletions(-) diff --git a/src/xrt/state_trackers/oxr/actions/oxr_input.c b/src/xrt/state_trackers/oxr/actions/oxr_input.c -index 51ae13b05..192833639 100644 +index 2bd3ea009..93659ba35 100644 --- a/src/xrt/state_trackers/oxr/actions/oxr_input.c +++ b/src/xrt/state_trackers/oxr/actions/oxr_input.c @@ -1932,9 +1932,6 @@ session_update_action_bindings(struct oxr_logger *log, diff --git a/patches/monado/0007-don-t-verify-GL-stuff.patch b/patches/monado/0007-don-t-verify-GL-stuff.patch index 724d81a6..4c646633 100644 --- a/patches/monado/0007-don-t-verify-GL-stuff.patch +++ b/patches/monado/0007-don-t-verify-GL-stuff.patch @@ -1,4 +1,4 @@ -From 5dbb5983ab7f5ec1204ff8fe932519c0df7feeed Mon Sep 17 00:00:00 2001 +From 6834120e579093e2f2bfa0d4269a051e7047b9ee Mon Sep 17 00:00:00 2001 From: no name Date: Sun, 25 Jan 2026 10:09:10 +0100 Subject: [PATCH 7/8] don't verify GL stuff diff --git a/patches/monado/0008-configure-u_git_tag-in-WiVRn.patch b/patches/monado/0008-configure-u_git_tag-in-WiVRn.patch index 48c27feb..ac68552e 100644 --- a/patches/monado/0008-configure-u_git_tag-in-WiVRn.patch +++ b/patches/monado/0008-configure-u_git_tag-in-WiVRn.patch @@ -1,4 +1,4 @@ -From 11fdc5a904db55867ed567bbc89ee5207e5741f0 Mon Sep 17 00:00:00 2001 +From c28b6f2c536e1a0db93389f050cf61a506b286e4 Mon Sep 17 00:00:00 2001 From: no name Date: Fri, 20 Mar 2026 16:51:18 +0100 Subject: [PATCH 8/8] configure u_git_tag in WiVRn @@ -8,7 +8,7 @@ Subject: [PATCH 8/8] configure u_git_tag in WiVRn 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/xrt/auxiliary/util/CMakeLists.txt b/src/xrt/auxiliary/util/CMakeLists.txt -index d45cd60c9..ec0d45434 100644 +index a30c3c5a6..983d44f04 100644 --- a/src/xrt/auxiliary/util/CMakeLists.txt +++ b/src/xrt/auxiliary/util/CMakeLists.txt @@ -10,11 +10,6 @@ @@ -23,7 +23,7 @@ index d45cd60c9..ec0d45434 100644 add_library( aux_util STATIC u_autoexpgain.c -@@ -118,7 +113,7 @@ add_library( +@@ -116,7 +111,7 @@ add_library( u_worker.cpp u_worker.h u_worker.hpp diff --git a/server/compositor/compositor.cpp b/server/compositor/compositor.cpp index 714bf5a1..cf966ee7 100644 --- a/server/compositor/compositor.cpp +++ b/server/compositor/compositor.cpp @@ -556,6 +556,42 @@ xrt_result_t compositor::request_display_refresh_rate(float hz) return XRT_SUCCESS; } +xrt_result_t compositor::get_view_config( + xrt_compositor_native * self, + xrt_view_type view_type, + xrt_view_config * out_view_config) +{ + const auto & session = reinterpret_cast(self)->session; + const auto extent = render_extent(session.get_info()); + switch (view_type) + { + case XRT_VIEW_TYPE_MONO: + return XRT_ERROR_UNSUPPORTED_VIEW_TYPE; + case XRT_VIEW_TYPE_STEREO: + *out_view_config = { + .view_type = XRT_VIEW_TYPE_STEREO, + .view_count = 2, + .views = {}}; + for (auto & view: std::span(out_view_config->views, out_view_config->view_count)) + { + view = { + .recommended = { + .width_pixels = extent.width, + .height_pixels = extent.height, + .sample_count = 1, + }, + .max = { + .width_pixels = extent.width * 2u, + .height_pixels = extent.height * 2u, + .sample_count = 1, + }, + }; + } + return XRT_SUCCESS; + } + return XRT_ERROR_UNSUPPORTED_VIEW_TYPE; +} + int compositor::acquire_image() { for (auto [i, image]: std::ranges::enumerate_view(images)) @@ -717,13 +753,9 @@ xrt_system_compositor_info compositor::sys_info() const const auto & info = session.get_info(); auto [prop, dev_id] = vk.physical_device.getProperties2(); xrt_system_compositor_info res{ - .view_config_count = 1, - .view_configs = { - { - .view_type = XRT_VIEW_TYPE_STEREO, - .view_count = 2, - .views = {}, - }, + .view_type_count = 1, + .view_types = { + XRT_VIEW_TYPE_STEREO, }, .max_layers = squasher.max_layers(prop.properties), .supported_blend_modes = { @@ -738,23 +770,6 @@ xrt_system_compositor_info compositor::sys_info() const std::ranges::copy(dev_id.deviceUUID, res.compositor_vk_deviceUUID.data); std::ranges::copy(dev_id.deviceUUID, res.client_vk_deviceUUID.data); std::ranges::copy(std::span(info.available_refresh_rates).subspan(0, res.refresh_rate_count), res.refresh_rates_hz); - - const auto extent = render_extent(info); - for (auto & view: std::span(res.view_configs[0].views, res.view_configs[0].view_count)) - { - view = { - .recommended = { - .width_pixels = extent.width, - .height_pixels = extent.height, - .sample_count = 1, - }, - .max = { - .width_pixels = extent.width * 2u, - .height_pixels = extent.height * 2u, - .sample_count = 1, - }, - }; - } return res; } diff --git a/server/compositor/compositor.h b/server/compositor/compositor.h index 40818c5e..204dd641 100644 --- a/server/compositor/compositor.h +++ b/server/compositor/compositor.h @@ -149,6 +149,10 @@ private: public: xrt_result_t request_display_refresh_rate(float display_refresh_rate_hz); + static xrt_result_t get_view_config(xrt_compositor_native *, + xrt_view_type view_type, + xrt_view_config * out_view_config); + private: void destroy() { diff --git a/server/driver/wivrn_session.cpp b/server/driver/wivrn_session.cpp index ae05a52c..38c91595 100644 --- a/server/driver/wivrn_session.cpp +++ b/server/driver/wivrn_session.cpp @@ -285,7 +285,7 @@ xrt_result_t wivrn::wivrn_session::create_session(std::unique_ptrcompositor.sys_info()}; - auto xret = comp_multi_create_system_compositor(&self->compositor.base, &self->app_pacers, &sys_info, false, out_xsysc); + auto xret = comp_multi_create_system_compositor(&self->compositor.base, &self->app_pacers, &compositor::get_view_config, &sys_info, false, out_xsysc); if (xret != XRT_SUCCESS) { U_LOG_E("Failed to create system compositor: %s", u_str_xrt_result(xret)); From 542b38365f3846d45799da3c28f03f57b8ebe5f5 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 10 Apr 2026 09:03:48 +0200 Subject: [PATCH 29/47] Update monado, add chroma key support --- flake.nix | 2 +- monado-rev | 2 +- server/compositor/layer_squasher.cpp | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index a7099f2d..0318cdbd 100644 --- a/flake.nix +++ b/flake.nix @@ -58,7 +58,7 @@ # Keep in sync with CMakeLists.txt monado rev rev = lib.strings.trim (builtins.readFile ./monado-rev); # Nix will output the correct hash when it doesn't match - hash = "sha256-OCQmmnHw5TsEq1LAqG8WwJvRFh1K7gcFIM7MUL+I4Zw="; + hash = "sha256-8Nw743DvjUkrV3iGyQQoPMm5rx6rPKaAxl5I0iJKBdM="; }; }; diff --git a/monado-rev b/monado-rev index 00b98a4a..0c2a030c 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -4b00cbbba8f5675ceb31edad2a04bc2aca48b8e8 +e2af28aed583cddd1aae7492ab32be9db20a9e3a diff --git a/server/compositor/layer_squasher.cpp b/server/compositor/layer_squasher.cpp index eab1360b..b461d2ad 100644 --- a/server/compositor/layer_squasher.cpp +++ b/server/compositor/layer_squasher.cpp @@ -679,6 +679,21 @@ xrt_fov layer_squasher::do_projection_layer( ubo.layers[cur_layer].image_info.depth_image_index = cur_image++; } + // Chroma key - per layer settings + const xrt_layer_chroma_key_data & ck = (layer_data.type == XRT_LAYER_PROJECTION_DEPTH) + ? layer_data.depth.chroma_key + : layer_data.proj.chroma_key; + ubo.layers[cur_layer].chroma_key = { + .hsv_min_h = ck.hsv_min.h, + .hsv_min_s = ck.hsv_min.s, + .hsv_min_v = ck.hsv_min.v, + .hsv_max_h = ck.hsv_max.h, + .hsv_max_s = ck.hsv_max.s, + .hsv_max_v = ck.hsv_max.v, + .curve = ck.curve, + .despill = ck.despill, + }; + set_post_transform_rect( &layer_data, &vd.sub.norm_rect, From ecc2b196097af93bb6bda2346b5e73d29c5c56b9 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 18 Apr 2026 11:49:51 +0200 Subject: [PATCH 30/47] Use the qcoro module from the runtime --- flatpak/io.github.wivrn.wivrn.yml.in | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/flatpak/io.github.wivrn.wivrn.yml.in b/flatpak/io.github.wivrn.wivrn.yml.in index 2dba63b6..8ad94b4b 100644 --- a/flatpak/io.github.wivrn.wivrn.yml.in +++ b/flatpak/io.github.wivrn.wivrn.yml.in @@ -256,16 +256,6 @@ modules: cleanup: - '*' - - name: qcoro - buildsystem: cmake-ninja - config-opts: - - -DQCORO_BUILD_EXAMPLES=OFF - - -DQCORO_BUILD_TESTING=OFF - sources: - - type: git - url: https://github.com/qcoro/qcoro.git - tag: v0.11.0 - - name: opencomposite buildsystem: cmake-ninja build-options: From 00f0553dc765ef87813d9a9ab769ae67055d28f1 Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Fri, 3 Apr 2026 18:16:19 +0900 Subject: [PATCH 31/47] add option for half fps --- client/configuration.cpp | 4 ++++ client/configuration.h | 1 + client/scenes/lobby_gui.cpp | 19 ++++++++++++++++--- client/scenes/stream.cpp | 1 + client/scenes/stream_gui.cpp | 22 +++++++++++++++++++--- common/wivrn_packets.h | 1 + server/driver/wivrn_session.cpp | 23 ++++++++++++++++++----- 7 files changed, 60 insertions(+), 11 deletions(-) diff --git a/client/configuration.cpp b/client/configuration.cpp index 44473194..ef801f02 100644 --- a/client/configuration.cpp +++ b/client/configuration.cpp @@ -241,6 +241,9 @@ configuration::configuration(xr::system & system, xr::session & session) if (auto val = root["high_power_mode"]; val.is_bool()) high_power_mode = val.get_bool(); + if (auto val = root["fps_divider"]; val.is_uint64()) + fps_divider = (uint32_t)val.get_uint64(); + if (auto val = root["extended_config"]; val.is_bool()) extended_config = val.get_bool(); } @@ -329,6 +332,7 @@ void configuration::save() json << ",\"locale\":" << json_string(locale); json << ",\"environment_model\":" << json_string(environment_model); json << ",\"high_power_mode\":" << std::boolalpha << high_power_mode; + json << ",\"fps_divider\":" << fps_divider; json << ",\"extended_config\":" << std::boolalpha << extended_config; json << "}"; } diff --git a/client/configuration.h b/client/configuration.h index 4bf7870e..90b5bc30 100644 --- a/client/configuration.h +++ b/client/configuration.h @@ -81,6 +81,7 @@ public: float override_foveation_distance = 3; bool high_power_mode; + uint32_t fps_divider = 1; // Allow unsafe config values bool extended_config = false; diff --git a/client/scenes/lobby_gui.cpp b/client/scenes/lobby_gui.cpp index e449f469..b4ce3808 100644 --- a/client/scenes/lobby_gui.cpp +++ b/client/scenes/lobby_gui.cpp @@ -619,23 +619,36 @@ void scenes::lobby::gui_settings() const auto & refresh_rates = session.get_refresh_rates(); if (not refresh_rates.empty()) { - float active_rate = config.preferred_refresh_rate; - if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? fmt::format("{}", active_rate).c_str() : _cS("automatic refresh rate", "Automatic"))) + float active_rate = config.preferred_refresh_rate / config.fps_divider; + if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? config.fps_divider == 1 ? fmt::format("{} (Native)", active_rate).c_str() : fmt::format("{} ({} with space warp)", active_rate, config.preferred_refresh_rate).c_str() : _cS("automatic refresh rate", "Automatic"))) { if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), active_rate == 0, ImGuiSelectableFlags_SelectOnRelease)) { session.set_refresh_rate(0); config.preferred_refresh_rate = 0; + config.fps_divider = 1; config.save(); } if (ImGui::IsItemHovered()) imgui_ctx->tooltip(_("Select refresh rate based on measured application performance.\nMay cause flicker when a change happens.")); for (float rate: refresh_rates) { - if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == active_rate, ImGuiSelectableFlags_SelectOnRelease)) + if (ImGui::Selectable(fmt::format("{} (Native)", rate).c_str(), rate == active_rate, ImGuiSelectableFlags_SelectOnRelease)) { session.set_refresh_rate(rate); config.preferred_refresh_rate = rate; + config.fps_divider = 1; + config.save(); + } + } + for (float rate: refresh_rates) + { + float effective_rate = rate / 2; + if (ImGui::Selectable(fmt::format("{} ({} with space warp)", effective_rate, rate).c_str(), effective_rate == active_rate, ImGuiSelectableFlags_SelectOnRelease)) + { + session.set_refresh_rate(rate); + config.preferred_refresh_rate = rate; + config.fps_divider = 2; config.save(); } } diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index 0917153b..15183e8e 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -233,6 +233,7 @@ std::shared_ptr scenes::stream::create(std::unique_ptrsession.get_refresh_rates(); info.settings.preferred_refresh_rate = config.preferred_refresh_rate; + info.settings.fps_divider = config.fps_divider; info.settings.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0); } diff --git a/client/scenes/stream_gui.cpp b/client/scenes/stream_gui.cpp index b425c862..b200d01c 100644 --- a/client/scenes/stream_gui.cpp +++ b/client/scenes/stream_gui.cpp @@ -387,10 +387,12 @@ static void send_settings_changed_packet(xr::session & session, wivrn_session * { packet.preferred_refresh_rate = config.preferred_refresh_rate; packet.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0); + packet.fps_divider = config.fps_divider; } else { packet.preferred_refresh_rate = predicted_display_period; + packet.fps_divider = config.fps_divider; } network->send_control(std::move(packet)); } @@ -408,12 +410,13 @@ void scenes::stream::gui_settings(float predicted_display_period) const auto & refresh_rates = session.get_refresh_rates(); if (not refresh_rates.empty()) { - float active_rate = config.preferred_refresh_rate; - if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? fmt::format("{}", active_rate).c_str() : _cS("automatic refresh rate", "Automatic"))) + float active_rate = config.preferred_refresh_rate / config.fps_divider; + if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? config.fps_divider == 1 ? fmt::format("{} (Native)", active_rate).c_str() : fmt::format("{} ({} with space warp)", active_rate, config.preferred_refresh_rate).c_str() : _cS("automatic refresh rate", "Automatic"))) { if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), active_rate == 0, ImGuiSelectableFlags_SelectOnRelease)) { config.preferred_refresh_rate = 0; + config.fps_divider = 1; send_settings_changed_packet(session, network_session.get(), config, predicted_display_period); config.save(); } @@ -421,10 +424,23 @@ void scenes::stream::gui_settings(float predicted_display_period) imgui_ctx->tooltip(_("Select refresh rate based on measured application performance.\nMay cause flicker when a change happens.")); for (float rate: refresh_rates) { - if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == active_rate, ImGuiSelectableFlags_SelectOnRelease)) + if (ImGui::Selectable(fmt::format("{} (Native)", rate).c_str(), rate == active_rate, ImGuiSelectableFlags_SelectOnRelease)) { session.set_refresh_rate(rate); config.preferred_refresh_rate = rate; + config.fps_divider = 1; + send_settings_changed_packet(session, network_session.get(), config, predicted_display_period); + config.save(); + } + } + for (float rate: refresh_rates) + { + float effective_rate = rate / 2; + if (ImGui::Selectable(fmt::format("{} ({} with space warp)", effective_rate, rate).c_str(), effective_rate == active_rate, ImGuiSelectableFlags_SelectOnRelease)) + { + session.set_refresh_rate(rate); + config.preferred_refresh_rate = rate; + config.fps_divider = 2; send_settings_changed_packet(session, network_session.get(), config, predicted_display_period); config.save(); } diff --git a/common/wivrn_packets.h b/common/wivrn_packets.h index 965b32ba..348270be 100644 --- a/common/wivrn_packets.h +++ b/common/wivrn_packets.h @@ -240,6 +240,7 @@ struct settings_changed // for automatic float minimum_refresh_rate; + uint32_t fps_divider = 1; uint32_t bitrate_bps; }; diff --git a/server/driver/wivrn_session.cpp b/server/driver/wivrn_session.cpp index 38c91595..8e1f60bf 100644 --- a/server/driver/wivrn_session.cpp +++ b/server/driver/wivrn_session.cpp @@ -443,7 +443,7 @@ float wivrn_session::default_rate() { auto s = settings.lock(); if (s->preferred_refresh_rate) - return s->preferred_refresh_rate; + return s->preferred_refresh_rate / s->fps_divider; return headset_info.available_refresh_rates.back(); } @@ -464,11 +464,21 @@ void wivrn_session::operator()(from_headset::headset_info_packet &&) void wivrn_session::operator()(const from_headset::settings_changed & settings) { - *this->settings.lock() = settings; + auto locked = this->settings.lock(); + auto old = std::exchange(*locked, settings); if (settings.bitrate_bps != 0) compositor.set_bitrate(settings.bitrate_bps); + if (settings.preferred_refresh_rate != 0) + { + auto old_effective = old.preferred_refresh_rate / old.fps_divider; + auto new_effective = settings.preferred_refresh_rate / settings.fps_divider; + + if (new_effective != old_effective) + compositor.set_refresh_rate(new_effective); + } + wivrn_ipc_socket_monado->send(std::move(settings)); } @@ -756,13 +766,16 @@ void wivrn_session::operator()(from_headset::user_presence_changed && event) void wivrn_session::operator()(from_headset::refresh_rate_changed && event) { - compositor.set_refresh_rate(event.to); + auto locked = settings.lock(); + auto old_effective = event.from / locked->fps_divider; + auto new_effective = event.to / locked->fps_divider; + compositor.set_refresh_rate(new_effective); push_event( { .display = { .type = XRT_SESSION_EVENT_DISPLAY_REFRESH_RATE_CHANGE, - .from_display_refresh_rate_hz = event.from, - .to_display_refresh_rate_hz = event.to, + .from_display_refresh_rate_hz = old_effective, + .to_display_refresh_rate_hz = new_effective, }, }); } From 3f732a70f86dd0cf1f0f7cccdc4277519618ef37 Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Fri, 17 Apr 2026 17:02:51 +0900 Subject: [PATCH 32/47] omit "native" on refresh rate labels --- client/scenes/lobby_gui.cpp | 4 ++-- client/scenes/stream_gui.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/scenes/lobby_gui.cpp b/client/scenes/lobby_gui.cpp index b4ce3808..7734343f 100644 --- a/client/scenes/lobby_gui.cpp +++ b/client/scenes/lobby_gui.cpp @@ -620,7 +620,7 @@ void scenes::lobby::gui_settings() if (not refresh_rates.empty()) { float active_rate = config.preferred_refresh_rate / config.fps_divider; - if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? config.fps_divider == 1 ? fmt::format("{} (Native)", active_rate).c_str() : fmt::format("{} ({} with space warp)", active_rate, config.preferred_refresh_rate).c_str() : _cS("automatic refresh rate", "Automatic"))) + if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? config.fps_divider == 1 ? fmt::format("{}", active_rate).c_str() : fmt::format("{} ({} with space warp)", active_rate, config.preferred_refresh_rate).c_str() : _cS("automatic refresh rate", "Automatic"))) { if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), active_rate == 0, ImGuiSelectableFlags_SelectOnRelease)) { @@ -633,7 +633,7 @@ void scenes::lobby::gui_settings() imgui_ctx->tooltip(_("Select refresh rate based on measured application performance.\nMay cause flicker when a change happens.")); for (float rate: refresh_rates) { - if (ImGui::Selectable(fmt::format("{} (Native)", rate).c_str(), rate == active_rate, ImGuiSelectableFlags_SelectOnRelease)) + if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == active_rate, ImGuiSelectableFlags_SelectOnRelease)) { session.set_refresh_rate(rate); config.preferred_refresh_rate = rate; diff --git a/client/scenes/stream_gui.cpp b/client/scenes/stream_gui.cpp index b200d01c..39eea869 100644 --- a/client/scenes/stream_gui.cpp +++ b/client/scenes/stream_gui.cpp @@ -411,7 +411,7 @@ void scenes::stream::gui_settings(float predicted_display_period) if (not refresh_rates.empty()) { float active_rate = config.preferred_refresh_rate / config.fps_divider; - if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? config.fps_divider == 1 ? fmt::format("{} (Native)", active_rate).c_str() : fmt::format("{} ({} with space warp)", active_rate, config.preferred_refresh_rate).c_str() : _cS("automatic refresh rate", "Automatic"))) + if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? config.fps_divider == 1 ? fmt::format("{}", active_rate).c_str() : fmt::format("{} ({} with space warp)", active_rate, config.preferred_refresh_rate).c_str() : _cS("automatic refresh rate", "Automatic"))) { if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), active_rate == 0, ImGuiSelectableFlags_SelectOnRelease)) { @@ -424,7 +424,7 @@ void scenes::stream::gui_settings(float predicted_display_period) imgui_ctx->tooltip(_("Select refresh rate based on measured application performance.\nMay cause flicker when a change happens.")); for (float rate: refresh_rates) { - if (ImGui::Selectable(fmt::format("{} (Native)", rate).c_str(), rate == active_rate, ImGuiSelectableFlags_SelectOnRelease)) + if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == active_rate, ImGuiSelectableFlags_SelectOnRelease)) { session.set_refresh_rate(rate); config.preferred_refresh_rate = rate; From 72dca53617e69fba831e67ac5188d3e6897d4884 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 17 Apr 2026 13:03:32 +0200 Subject: [PATCH 33/47] Add _cF translation macro --- client/utils/i18n.h | 1 + tools/check_po.py | 2 ++ tools/update_messages.sh | 1 + 3 files changed, 4 insertions(+) diff --git a/client/utils/i18n.h b/client/utils/i18n.h index 9fe9ccb8..ce7046a2 100644 --- a/client/utils/i18n.h +++ b/client/utils/i18n.h @@ -23,6 +23,7 @@ #define _(x) boost::locale::gettext(x) #define _F(x) fmt::runtime(boost::locale::gettext(x)) +#define _cF(c, x) fmt::runtime(boost::locale::pgettext(c, x)) #define _S(x) boost::locale::gettext(x).c_str() #define _C(c, x) boost::locale::pgettext(c, x) #define _cS(c, x) _C(c, x).c_str() diff --git a/tools/check_po.py b/tools/check_po.py index 3878b71a..6a9f0220 100755 --- a/tools/check_po.py +++ b/tools/check_po.py @@ -54,7 +54,9 @@ if __name__ == "__main__": "--c++", "--from-code=UTF-8", "--keyword=_:1,1t", "--keyword=_S:1,1t", + "--keyword=_C:1c,2,2t", "--keyword=_cS:1c,2,2t", + "--keyword=_cF:1c,2,2t", "--keyword=_F:1,1t", "--keyword=gettext_noop:1,1t", "--output", client_pot, diff --git a/tools/update_messages.sh b/tools/update_messages.sh index 4831f4f9..3994ebbe 100755 --- a/tools/update_messages.sh +++ b/tools/update_messages.sh @@ -11,6 +11,7 @@ xgettext \ --keyword=_S:1,1t \ --keyword=_C:1c,2,2t \ --keyword=_cS:1c,2,2t \ + --keyword=_cF:1c,2,2t \ --keyword=_F:1,1t \ --keyword=gettext_noop:1,1t \ --output=$WIVRN_CLIENT_POT \ From f57b5bc5fc790d4438778ad35fdea903b89a9b90 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 17 Apr 2026 10:43:40 +0200 Subject: [PATCH 34/47] Factorize refresh rate settings GUI --- client/scenes/gui_common.cpp | 117 +++++++++++++++++++++++++++++++++++ client/scenes/gui_common.h | 44 +++++++++++++ client/scenes/lobby_gui.cpp | 63 +------------------ client/scenes/stream_gui.cpp | 67 +------------------- 4 files changed, 166 insertions(+), 125 deletions(-) create mode 100644 client/scenes/gui_common.cpp create mode 100644 client/scenes/gui_common.h diff --git a/client/scenes/gui_common.cpp b/client/scenes/gui_common.cpp new file mode 100644 index 00000000..550ff8a4 --- /dev/null +++ b/client/scenes/gui_common.cpp @@ -0,0 +1,117 @@ +/* + * WiVRn VR streaming + * Copyright (C) 2022-2026 Guillaume Meunier + * Copyright (C) 2022-2026 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 "gui_common.h" + +#include "configuration.h" +#include "render/imgui_impl.h" +#include "utils/i18n.h" + +#include "xr/instance.h" +#include "xr/session.h" + +#include "imgui.h" +#include "imgui_internal.h" + +namespace wivrn::gui +{ + +std::string rate_label(float rate, uint32_t divider) +{ + if (rate == 0) + return _C("automatic refresh rate", "Automatic"); + if (divider == 1) + return fmt::format("{}", rate); + + return fmt::format(_cF("refresh rate selection, with reprojection", "{} ({} with space warp)"), rate / divider, rate); +} + +bool refresh_rate( + xr::instance & instance, + xr::session & session, + imgui_context & imgui_ctx, + configuration & config) +{ + if (not instance.has_extension(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME)) + return false; + + const auto & refresh_rates = session.get_refresh_rates(); + if (refresh_rates.empty()) + return false; + + bool changed = false; + if (ImGui::BeginCombo( + _S("Refresh rate"), + rate_label(config.preferred_refresh_rate, config.fps_divider).c_str())) + { + if (ImGui::Selectable( + _cS("automatic refresh rate", "Automatic"), + config.preferred_refresh_rate == 0, + ImGuiSelectableFlags_SelectOnRelease)) + { + config.preferred_refresh_rate = 0; + config.fps_divider = 1; + config.save(); + changed = true; + } + if (ImGui::IsItemHovered()) + imgui_ctx.tooltip(_("Select refresh rate based on measured application performance.\n" + "May cause flicker when a change happens.")); + + for (uint32_t divider: {1, 2}) + { + for (float rate: refresh_rates) + { + if (ImGui::Selectable( + rate_label(rate, divider).c_str(), + rate == config.preferred_refresh_rate and divider == config.fps_divider, + ImGuiSelectableFlags_SelectOnRelease)) + { + session.set_refresh_rate(rate); + config.preferred_refresh_rate = rate; + config.fps_divider = divider; + config.save(); + changed = true; + } + } + } + ImGui::EndCombo(); + } + imgui_ctx.vibrate_on_hover(); + + if (config.preferred_refresh_rate == 0 and refresh_rates.size() > 2) + { + float min_rate = config.minimum_refresh_rate.value_or(refresh_rates.front()); + if (ImGui::BeginCombo(_S("Minimum refresh rate"), fmt::format("{}", min_rate).c_str())) + { + for (float rate: refresh_rates | std::views::take(refresh_rates.size() - 1)) + { + if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == config.minimum_refresh_rate, ImGuiSelectableFlags_SelectOnRelease)) + { + config.minimum_refresh_rate = rate; + config.save(); + } + } + ImGui::EndCombo(); + } + imgui_ctx.vibrate_on_hover(); + } + return changed; +} +} // namespace wivrn::gui diff --git a/client/scenes/gui_common.h b/client/scenes/gui_common.h new file mode 100644 index 00000000..5475207b --- /dev/null +++ b/client/scenes/gui_common.h @@ -0,0 +1,44 @@ +/* + * WiVRn VR streaming + * Copyright (C) 2022-2026 Guillaume Meunier + * Copyright (C) 2022-2026 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 + +class configuration; +class imgui_context; + +namespace xr +{ +class instance; +class session; +} // namespace xr + +namespace wivrn +{ + +namespace gui +{ + +bool refresh_rate( + xr::instance & instance, + xr::session & session, + imgui_context & imgui_ctx, + configuration & config); + +} +} // namespace wivrn diff --git a/client/scenes/lobby_gui.cpp b/client/scenes/lobby_gui.cpp index 7734343f..2a5c3af9 100644 --- a/client/scenes/lobby_gui.cpp +++ b/client/scenes/lobby_gui.cpp @@ -25,6 +25,7 @@ #include "application.h" #include "configuration.h" #include "constants.h" +#include "gui_common.h" #include "imgui.h" #include "lobby.h" #include "scenes/stream.h" // IWYU pragma: keep @@ -614,67 +615,7 @@ void scenes::lobby::gui_settings() imgui_ctx->vibrate_on_hover(); } - if (instance.has_extension(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME)) - { - const auto & refresh_rates = session.get_refresh_rates(); - if (not refresh_rates.empty()) - { - float active_rate = config.preferred_refresh_rate / config.fps_divider; - if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? config.fps_divider == 1 ? fmt::format("{}", active_rate).c_str() : fmt::format("{} ({} with space warp)", active_rate, config.preferred_refresh_rate).c_str() : _cS("automatic refresh rate", "Automatic"))) - { - if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), active_rate == 0, ImGuiSelectableFlags_SelectOnRelease)) - { - session.set_refresh_rate(0); - config.preferred_refresh_rate = 0; - config.fps_divider = 1; - config.save(); - } - if (ImGui::IsItemHovered()) - imgui_ctx->tooltip(_("Select refresh rate based on measured application performance.\nMay cause flicker when a change happens.")); - for (float rate: refresh_rates) - { - if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == active_rate, ImGuiSelectableFlags_SelectOnRelease)) - { - session.set_refresh_rate(rate); - config.preferred_refresh_rate = rate; - config.fps_divider = 1; - config.save(); - } - } - for (float rate: refresh_rates) - { - float effective_rate = rate / 2; - if (ImGui::Selectable(fmt::format("{} ({} with space warp)", effective_rate, rate).c_str(), effective_rate == active_rate, ImGuiSelectableFlags_SelectOnRelease)) - { - session.set_refresh_rate(rate); - config.preferred_refresh_rate = rate; - config.fps_divider = 2; - config.save(); - } - } - ImGui::EndCombo(); - } - imgui_ctx->vibrate_on_hover(); - - if (active_rate == 0 and refresh_rates.size() > 2) - { - float min_rate = config.minimum_refresh_rate.value_or(refresh_rates.front()); - if (ImGui::BeginCombo(_S("Minimum refresh rate"), fmt::format("{}", min_rate).c_str())) - { - for (float rate: refresh_rates | std::views::take(refresh_rates.size() - 1)) - { - if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == config.minimum_refresh_rate, ImGuiSelectableFlags_SelectOnRelease)) - { - config.minimum_refresh_rate = rate; - config.save(); - } - } - ImGui::EndCombo(); - } - imgui_ctx->vibrate_on_hover(); - } - } - } + gui::refresh_rate(instance, session, *imgui_ctx, config); // Render resolution { diff --git a/client/scenes/stream_gui.cpp b/client/scenes/stream_gui.cpp index 39eea869..feb96e6c 100644 --- a/client/scenes/stream_gui.cpp +++ b/client/scenes/stream_gui.cpp @@ -23,6 +23,7 @@ #include "application.h" #include "constants.h" +#include "gui_common.h" #include "imgui.h" #include "imgui_internal.h" #include "implot.h" @@ -405,70 +406,8 @@ void scenes::stream::gui_settings(float predicted_display_period) ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(20, 20)); - if (instance.has_extension(XR_FB_DISPLAY_REFRESH_RATE_EXTENSION_NAME)) - { - const auto & refresh_rates = session.get_refresh_rates(); - if (not refresh_rates.empty()) - { - float active_rate = config.preferred_refresh_rate / config.fps_divider; - if (ImGui::BeginCombo(_S("Refresh rate"), active_rate ? config.fps_divider == 1 ? fmt::format("{}", active_rate).c_str() : fmt::format("{} ({} with space warp)", active_rate, config.preferred_refresh_rate).c_str() : _cS("automatic refresh rate", "Automatic"))) - { - if (ImGui::Selectable(_cS("automatic refresh rate", "Automatic"), active_rate == 0, ImGuiSelectableFlags_SelectOnRelease)) - { - config.preferred_refresh_rate = 0; - config.fps_divider = 1; - send_settings_changed_packet(session, network_session.get(), config, predicted_display_period); - config.save(); - } - if (ImGui::IsItemHovered()) - imgui_ctx->tooltip(_("Select refresh rate based on measured application performance.\nMay cause flicker when a change happens.")); - for (float rate: refresh_rates) - { - if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == active_rate, ImGuiSelectableFlags_SelectOnRelease)) - { - session.set_refresh_rate(rate); - config.preferred_refresh_rate = rate; - config.fps_divider = 1; - send_settings_changed_packet(session, network_session.get(), config, predicted_display_period); - config.save(); - } - } - for (float rate: refresh_rates) - { - float effective_rate = rate / 2; - if (ImGui::Selectable(fmt::format("{} ({} with space warp)", effective_rate, rate).c_str(), effective_rate == active_rate, ImGuiSelectableFlags_SelectOnRelease)) - { - session.set_refresh_rate(rate); - config.preferred_refresh_rate = rate; - config.fps_divider = 2; - send_settings_changed_packet(session, network_session.get(), config, predicted_display_period); - config.save(); - } - } - ImGui::EndCombo(); - } - imgui_ctx->vibrate_on_hover(); - - if (active_rate == 0 and refresh_rates.size() > 2) - { - float min_rate = config.minimum_refresh_rate.value_or(refresh_rates.front()); - if (ImGui::BeginCombo(_S("Minimum refresh rate"), fmt::format("{}", min_rate).c_str())) - { - for (float rate: refresh_rates | std::views::take(refresh_rates.size() - 1)) - { - if (ImGui::Selectable(fmt::format("{}", rate).c_str(), rate == config.minimum_refresh_rate, ImGuiSelectableFlags_SelectOnRelease)) - { - config.minimum_refresh_rate = rate; - send_settings_changed_packet(session, network_session.get(), config, predicted_display_period); - config.save(); - } - } - ImGui::EndCombo(); - } - imgui_ctx->vibrate_on_hover(); - } - } - } + if (gui::refresh_rate(instance, session, *imgui_ctx, config)) + send_settings_changed_packet(session, network_session.get(), config, predicted_display_period); { const auto text = _("Bitrate:"); From 71a9793f9a2ec375c72eb7a3a7aa412152a3ab0f Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 17 Apr 2026 11:14:41 +0200 Subject: [PATCH 35/47] Fix refresh_rate/period when ext is not present --- client/scenes/stream_gui.cpp | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/client/scenes/stream_gui.cpp b/client/scenes/stream_gui.cpp index feb96e6c..694adf99 100644 --- a/client/scenes/stream_gui.cpp +++ b/client/scenes/stream_gui.cpp @@ -380,21 +380,14 @@ void scenes::stream::gui_compact_view() static void send_settings_changed_packet(xr::session & session, wivrn_session * network, const configuration & config, float predicted_display_period) { - const auto & refresh_rates = session.get_refresh_rates(); from_headset::settings_changed packet{ .bitrate_bps = config.bitrate_bps, + .preferred_refresh_rate = config.preferred_refresh_rate, + .minimum_refresh_rate = config.minimum_refresh_rate.value_or(0), + .fps_divider = config.fps_divider, }; - if (not refresh_rates.empty()) - { - packet.preferred_refresh_rate = config.preferred_refresh_rate; - packet.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0); - packet.fps_divider = config.fps_divider; - } - else - { - packet.preferred_refresh_rate = predicted_display_period; - packet.fps_divider = config.fps_divider; - } + if (session.get_refresh_rates().empty()) + packet.preferred_refresh_rate = 1 / predicted_display_period; network->send_control(std::move(packet)); } From 6d072e30cd246510007bbd48634e5fe8cbaacb77 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 17 Apr 2026 11:30:58 +0200 Subject: [PATCH 36/47] Simplify some preferred refresh rate logic --- client/scenes/stream.cpp | 2 +- client/scenes/stream_gui.cpp | 10 ++++------ server/compositor/compositor.cpp | 3 ++- server/driver/wivrn_session.cpp | 10 ++-------- 4 files changed, 9 insertions(+), 16 deletions(-) diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index 15183e8e..70af6748 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -233,9 +233,9 @@ std::shared_ptr scenes::stream::create(std::unique_ptrsession.get_refresh_rates(); info.settings.preferred_refresh_rate = config.preferred_refresh_rate; - info.settings.fps_divider = config.fps_divider; info.settings.minimum_refresh_rate = config.minimum_refresh_rate.value_or(0); } + info.settings.fps_divider = config.fps_divider; if (info.available_refresh_rates.empty()) { diff --git a/client/scenes/stream_gui.cpp b/client/scenes/stream_gui.cpp index 694adf99..dcceadb9 100644 --- a/client/scenes/stream_gui.cpp +++ b/client/scenes/stream_gui.cpp @@ -378,16 +378,14 @@ void scenes::stream::gui_compact_view() } } -static void send_settings_changed_packet(xr::session & session, wivrn_session * network, const configuration & config, float predicted_display_period) +static void send_settings_changed_packet(xr::session & session, wivrn_session * network, const configuration & config) { from_headset::settings_changed packet{ - .bitrate_bps = config.bitrate_bps, .preferred_refresh_rate = config.preferred_refresh_rate, .minimum_refresh_rate = config.minimum_refresh_rate.value_or(0), .fps_divider = config.fps_divider, + .bitrate_bps = config.bitrate_bps, }; - if (session.get_refresh_rates().empty()) - packet.preferred_refresh_rate = 1 / predicted_display_period; network->send_control(std::move(packet)); } @@ -400,7 +398,7 @@ void scenes::stream::gui_settings(float predicted_display_period) ImGui::PushStyleVar(ImGuiStyleVar_ItemSpacing, ImVec2(20, 20)); if (gui::refresh_rate(instance, session, *imgui_ctx, config)) - send_settings_changed_packet(session, network_session.get(), config, predicted_display_period); + send_settings_changed_packet(session, network_session.get(), config); { const auto text = _("Bitrate:"); @@ -551,7 +549,7 @@ void scenes::stream::gui_bitrate_settings(float predicted_display_period) next_gui_status = stream_tab::settings; } - send_settings_changed_packet(session, network_session.get(), application::get_config(), predicted_display_period); + send_settings_changed_packet(session, network_session.get(), application::get_config()); } void scenes::stream::gui_foveation_settings(float predicted_display_period) diff --git a/server/compositor/compositor.cpp b/server/compositor/compositor.cpp index cf966ee7..ab18b6e7 100644 --- a/server/compositor/compositor.cpp +++ b/server/compositor/compositor.cpp @@ -781,8 +781,9 @@ void compositor::set_bitrate(uint32_t bitrate) void compositor::set_refresh_rate(float hz) { + if (refresh_rate.exchange(hz) == hz) + return; U_LOG_IFL_D(log_level, "Refresh rate change from %.0f to %.0f", refresh_rate.load(), hz); - refresh_rate = hz; pacer.set_frame_duration(U_TIME_1S_IN_NS / hz); for (auto & encoder: encoders) encoder->set_framerate(hz); diff --git a/server/driver/wivrn_session.cpp b/server/driver/wivrn_session.cpp index 8e1f60bf..5d9403bd 100644 --- a/server/driver/wivrn_session.cpp +++ b/server/driver/wivrn_session.cpp @@ -465,19 +465,13 @@ void wivrn_session::operator()(from_headset::headset_info_packet &&) void wivrn_session::operator()(const from_headset::settings_changed & settings) { auto locked = this->settings.lock(); - auto old = std::exchange(*locked, settings); + *locked = settings; if (settings.bitrate_bps != 0) compositor.set_bitrate(settings.bitrate_bps); if (settings.preferred_refresh_rate != 0) - { - auto old_effective = old.preferred_refresh_rate / old.fps_divider; - auto new_effective = settings.preferred_refresh_rate / settings.fps_divider; - - if (new_effective != old_effective) - compositor.set_refresh_rate(new_effective); - } + compositor.set_refresh_rate(settings.preferred_refresh_rate / settings.fps_divider); wivrn_ipc_socket_monado->send(std::move(settings)); } From 10387b9b001106bf3a0d5bd2fcf0e1ca13d87953 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 17 Apr 2026 11:47:50 +0200 Subject: [PATCH 37/47] Separate framerate/refresh rate --- server/compositor/compositor.cpp | 16 ++++++++++------ server/compositor/compositor.h | 8 ++++---- server/driver/wivrn_session.cpp | 16 +++++++--------- server/driver/wivrn_session.h | 2 +- server/encoder/encoder_settings.cpp | 2 +- 5 files changed, 23 insertions(+), 21 deletions(-) diff --git a/server/compositor/compositor.cpp b/server/compositor/compositor.cpp index ab18b6e7..8699bb8a 100644 --- a/server/compositor/compositor.cpp +++ b/server/compositor/compositor.cpp @@ -539,7 +539,10 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle) xrt_result_t compositor::get_display_refresh_rate(float * hz) { - *hz = refresh_rate; + auto settings = session.get_settings(); + // there should not be rounding errors, hz must be one of the available refresh rates + *hz = frame_rate * settings->fps_divider; + assert(std::ranges::contains(session.headset_info_packet.available_refresh_rates, *hz)); return XRT_SUCCESS; } @@ -547,6 +550,7 @@ xrt_result_t compositor::request_display_refresh_rate(float hz) { try { + requested_refresh_rate = hz; session.send_control(to_headset::refresh_rate_change{.fps = hz}); } catch (std::exception & e) @@ -677,8 +681,8 @@ compositor::compositor(wivrn_session & session) : images{make_images(vk, cmd_pool, settings)}, cmd{std::move(vk.device.allocateCommandBuffers({.commandPool = *cmd_pool, .commandBufferCount = 1})[0])}, sem{make_semaphore(vk)}, - refresh_rate(settings[0].fps), - pacer(U_TIME_1S_IN_NS / refresh_rate), + frame_rate(settings[0].fps), + pacer(U_TIME_1S_IN_NS / frame_rate), squasher(vk, render_extent(session.get_info())), foveation(vk, images[0].image.info().extent) { @@ -779,11 +783,11 @@ void compositor::set_bitrate(uint32_t bitrate) encoder->set_bitrate(bitrate); } -void compositor::set_refresh_rate(float hz) +void compositor::set_framerate(float hz) { - if (refresh_rate.exchange(hz) == hz) + if (frame_rate.exchange(hz) == hz) return; - U_LOG_IFL_D(log_level, "Refresh rate change from %.0f to %.0f", refresh_rate.load(), hz); + U_LOG_IFL_D(log_level, "Framerate change from %.0f to %.0f", frame_rate.load(), hz); pacer.set_frame_duration(U_TIME_1S_IN_NS / hz); for (auto & encoder: encoders) encoder->set_framerate(hz); diff --git a/server/compositor/compositor.h b/server/compositor/compositor.h index 204dd641..790c1573 100644 --- a/server/compositor/compositor.h +++ b/server/compositor/compositor.h @@ -92,7 +92,7 @@ private: uint64_t sem_value = 0; std::atomic requested_refresh_rate; - std::atomic refresh_rate; + std::atomic frame_rate; wivrn::pacer pacer; layer_squasher squasher; @@ -182,11 +182,11 @@ public: return requested_refresh_rate; } - float get_refresh_rate() const + float get_framerate() const { - return refresh_rate; + return frame_rate; } - void set_refresh_rate(float hz); + void set_framerate(float hz); void set_bitrate(uint32_t); void update_tracking(const from_headset::tracking &); diff --git a/server/driver/wivrn_session.cpp b/server/driver/wivrn_session.cpp index 5d9403bd..f0d5eaba 100644 --- a/server/driver/wivrn_session.cpp +++ b/server/driver/wivrn_session.cpp @@ -396,8 +396,8 @@ void wivrn_session::resume_session() send_control(to_headset::feature_control{to_headset::feature_control::hid_input, true}); { - float target_fps = default_rate(); - auto current_fps = compositor.get_refresh_rate(); + float target_fps = default_fps(); + auto current_fps = compositor.get_framerate(); if (target_fps != current_fps) { @@ -439,7 +439,7 @@ bool wivrn_session::connected() return connection->is_active(); } -float wivrn_session::default_rate() +float wivrn_session::default_fps() { auto s = settings.lock(); if (s->preferred_refresh_rate) @@ -471,7 +471,7 @@ void wivrn_session::operator()(const from_headset::settings_changed & settings) compositor.set_bitrate(settings.bitrate_bps); if (settings.preferred_refresh_rate != 0) - compositor.set_refresh_rate(settings.preferred_refresh_rate / settings.fps_divider); + compositor.set_framerate(settings.preferred_refresh_rate / settings.fps_divider); wivrn_ipc_socket_monado->send(std::move(settings)); } @@ -761,15 +761,13 @@ void wivrn_session::operator()(from_headset::user_presence_changed && event) void wivrn_session::operator()(from_headset::refresh_rate_changed && event) { auto locked = settings.lock(); - auto old_effective = event.from / locked->fps_divider; - auto new_effective = event.to / locked->fps_divider; - compositor.set_refresh_rate(new_effective); + compositor.set_framerate(event.from / locked->fps_divider); push_event( { .display = { .type = XRT_SESSION_EVENT_DISPLAY_REFRESH_RATE_CHANGE, - .from_display_refresh_rate_hz = old_effective, - .to_display_refresh_rate_hz = new_effective, + .from_display_refresh_rate_hz = event.from, + .to_display_refresh_rate_hz = event.to, }, }); } diff --git a/server/driver/wivrn_session.h b/server/driver/wivrn_session.h index 0ee96567..366dfc75 100644 --- a/server/driver/wivrn_session.h +++ b/server/driver/wivrn_session.h @@ -140,7 +140,7 @@ public: return headset_info; }; - float default_rate(); + float default_fps(); locked get_settings() { diff --git a/server/encoder/encoder_settings.cpp b/server/encoder/encoder_settings.cpp index bdf8e722..a487a148 100644 --- a/server/encoder/encoder_settings.cpp +++ b/server/encoder/encoder_settings.cpp @@ -284,7 +284,7 @@ std::array get_encoder_settings(wivrn::vk_bundle & bundle, for (auto [src, dst]: std::ranges::zip_view(config.encoders, res)) { - dst.fps = session.default_rate(); + dst.fps = session.default_fps(); dst.options = src.options; dst.device = src.device; From 28505f0e61172a08e6bef882cc35d7336a9c668b Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 17 Apr 2026 12:57:21 +0200 Subject: [PATCH 38/47] fr, it locales --- locale/fr/wivrn.po | 601 ++++++++++++++++++++-------------------- locale/it/wivrn.po | 670 ++++++++++++++++++++------------------------- 2 files changed, 588 insertions(+), 683 deletions(-) diff --git a/locale/fr/wivrn.po b/locale/fr/wivrn.po index 79343551..063f7b32 100644 --- a/locale/fr/wivrn.po +++ b/locale/fr/wivrn.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn 0.15\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-02-27 16:09+0100\n" -"PO-Revision-Date: 2026-02-27 16:12+0100\n" +"POT-Creation-Date: 2026-04-17 13:02+0200\n" +"PO-Revision-Date: 2026-04-17 13:02+0200\n" "Last-Translator: Guillaume Meunier \n" "Language-Team: French <>\n" "Language: French\n" @@ -21,192 +21,49 @@ msgstr "" msgid "No supported swapchain format" msgstr "Aucun format de swapchain supporté" -#: client/scenes/app_launcher.cpp:127 +#: client/scenes/app_launcher.cpp:119 msgid "Connected to WiVRn server" msgstr "Connecté au serveur WiVRn" -#: client/scenes/app_launcher.cpp:129 +#: client/scenes/app_launcher.cpp:121 #, c++-format msgid "Connected to {}" msgstr "Connecté à {}" -#: client/scenes/app_launcher.cpp:135 +#: client/scenes/app_launcher.cpp:127 msgid "Start an application on the server to start streaming." msgstr "" "Démarrez une application sur le serveur pour commencer la transmission." -#: client/scenes/app_launcher.cpp:145 +#: client/scenes/app_launcher.cpp:137 msgid "Start an application on your computer or select one to start streaming." msgstr "" "Démarrez une application sur le serveur ou depuis la liste pour commencer la " "transmission." -#: client/scenes/app_launcher.cpp:147 +#: client/scenes/app_launcher.cpp:139 #, 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.cpp:230 -msgid "Incompatible WiVRn server: no protocol field in TXT" -msgstr "Serveur WiVRn incompatible : pas de champ protocol dans le TXT" - -#: client/scenes/lobby.cpp:233 -#, c++-format -msgid "Incompatible WiVRn server protocol (client: {}, server: {})" -msgstr "" -"Version du protocole WiVRn du serveur incompatible (client : {}, serveur : " -"{})" - -#: client/scenes/lobby.cpp:248 -#, c++-format -msgid "Cannot resolve hostname: {}" -msgstr "Impossible de résoudre le nom : {}" - -#: client/scenes/lobby.cpp:335 client/scenes/lobby.cpp:341 -#, c++-format -msgid "Cannot connect to {} ({}): {}" -msgstr "Impossible de se connecter à {} ({}) : {}" - -#: client/scenes/lobby.cpp:424 -msgid "Waiting for connection" -msgstr "Attente de connexion" - -#: client/scenes/lobby.cpp:1316 -msgid "Passthrough" -msgstr "Vue réelle" - -#: client/scenes/lobby.cpp:1328 -msgid "Default environment" -msgstr "Environnement par défaut" - -#: client/scenes/lobby_gui.cpp:101 -msgctxt "openxr_post_processing" -msgid "Normal" -msgstr "Normal" - -#: client/scenes/lobby_gui.cpp:104 -msgctxt "openxr_post_processing" -msgid "Quality" -msgstr "Qualité" - -#: client/scenes/lobby_gui.cpp:106 -msgctxt "openxr_post_processing" -msgid "Disabled" -msgstr "Désactivé" - -#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254 -#: client/scenes/stream_gui.cpp:1026 -msgid "Disconnect" -msgstr "Déconnecter" - -#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264 -#: client/scenes/lobby_gui_customize.cpp:753 -#: client/scenes/lobby_gui_customize.cpp:844 -#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022 -msgid "Close" -msgstr "Fermer" - -#: client/scenes/lobby_gui.cpp:140 -msgid "Connection" -msgstr "Connexion en cours" - -#: client/scenes/lobby_gui.cpp:142 -#, c++-format -msgid "Connection to {}" -msgstr "Connexion à {}" - -#: client/scenes/lobby_gui.cpp:172 -msgid "PIN" -msgstr "Code PIN" - -#: client/scenes/lobby_gui.cpp:194 -msgid "Input the PIN displayed on the dashboard" -msgstr "Entrez le code PIN affiché sur le tableau de bord" - -#: client/scenes/lobby_gui.cpp:282 -msgid "Disconnected" -msgstr "Connexion terminée" - -#: client/scenes/lobby_gui.cpp:284 -#, c++-format -msgid "Disconnected from {}" -msgstr "Connexion à {} terminée" - -#: client/scenes/lobby_gui.cpp:316 -msgid "Name" -msgstr "Nom" - -#: client/scenes/lobby_gui.cpp:327 -msgid "Address" -msgstr "Adresse" - -#: client/scenes/lobby_gui.cpp:336 -msgid "Port" -msgstr "Port" - -#: client/scenes/lobby_gui.cpp:344 -msgid "TCP only" -msgstr "TCP seulement" - -#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655 -#: client/scenes/stream_gui.cpp:978 -msgid "Cancel" -msgstr "Annuler" - -#: client/scenes/lobby_gui.cpp:365 -msgid "Save" -msgstr "Enregistrer" - -#: client/scenes/lobby_gui.cpp:418 -msgid "" -"Start a WiVRn server on your\n" -"local network" -msgstr "" -"Démarrez un serveur WiVRn sur\n" -"le réseau local" - -#: client/scenes/lobby_gui.cpp:450 -msgid "Autoconnect" -msgstr "Autoconnexion" - -#: client/scenes/lobby_gui.cpp:476 -msgid "Connect" -msgstr "Connexion" - -#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186 -msgid "Incompatible server version" -msgstr "Version du serveur incompatible" - -#: client/scenes/lobby_gui.cpp:488 -msgid "Server not available" -msgstr "Serveur non disponible" - -#: client/scenes/lobby_gui.cpp:581 -msgctxt "language selection, replace with the name of the language" -msgid "English" -msgstr "Français" - -#: client/scenes/lobby_gui.cpp:595 -msgid "Language" -msgstr "Langue" - -#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597 -msgid "System language" -msgstr "Langue système" - -#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412 -msgid "Refresh rate" -msgstr "Taux de rafraichissement" - -#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625 -#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414 +#: client/scenes/gui_common.cpp:38 client/scenes/gui_common.cpp:64 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "Automatique" -#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421 +#: client/scenes/gui_common.cpp:42 +#, c++-format +msgctxt "refresh rate selection, with reprojection" +msgid "{} ({} with space warp)" +msgstr "{} ({} avec reprojection)" + +#: client/scenes/gui_common.cpp:60 +msgid "Refresh rate" +msgstr "Taux de rafraichissement" + +#: client/scenes/gui_common.cpp:74 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -215,38 +72,182 @@ msgstr "" "des performances mesurées.\n" "Peut causer des clignotements lors du changement de fréquence." -#: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439 +#: client/scenes/gui_common.cpp:101 msgid "Minimum refresh rate" msgstr "Taux minimal" -#: client/scenes/lobby_gui.cpp:675 -msgid "Foveation level" -msgstr "Niveau de fovéation" +#: client/scenes/lobby.cpp:221 +msgid "Incompatible WiVRn server: no protocol field in TXT" +msgstr "Serveur WiVRn incompatible : pas de champ protocol dans le TXT" -#: client/scenes/lobby_gui.cpp:698 +#: client/scenes/lobby.cpp:224 +#, c++-format +msgid "Incompatible WiVRn server protocol (client: {}, server: {})" +msgstr "" +"Version du protocole WiVRn du serveur incompatible (client : {}, serveur : " +"{})" + +#: client/scenes/lobby.cpp:239 +#, c++-format +msgid "Cannot resolve hostname: {}" +msgstr "Impossible de résoudre le nom : {}" + +#: client/scenes/lobby.cpp:326 client/scenes/lobby.cpp:332 +#, c++-format +msgid "Cannot connect to {} ({}): {}" +msgstr "Impossible de se connecter à {} ({}) : {}" + +#: client/scenes/lobby.cpp:410 +msgid "Waiting for connection" +msgstr "Attente de connexion" + +#: client/scenes/lobby.cpp:1298 +msgid "Passthrough" +msgstr "Vue réelle" + +#: client/scenes/lobby.cpp:1310 +msgid "Default environment" +msgstr "Environnement par défaut" + +#: client/scenes/lobby_gui.cpp:102 +msgctxt "openxr_post_processing" +msgid "Normal" +msgstr "Normal" + +#: client/scenes/lobby_gui.cpp:105 +msgctxt "openxr_post_processing" +msgid "Quality" +msgstr "Qualité" + +#: client/scenes/lobby_gui.cpp:107 +msgctxt "openxr_post_processing" +msgid "Disabled" +msgstr "Désactivé" + +#: client/scenes/lobby_gui.cpp:115 client/scenes/lobby_gui.cpp:255 +#: client/scenes/stream_gui.cpp:973 +msgid "Disconnect" +msgstr "Déconnecter" + +#: client/scenes/lobby_gui.cpp:135 client/scenes/lobby_gui.cpp:265 +#: client/scenes/lobby_gui_customize.cpp:752 +#: client/scenes/lobby_gui_customize.cpp:843 +#: client/scenes/lobby_gui_customize.cpp:899 client/scenes/stream_gui.cpp:969 +msgid "Close" +msgstr "Fermer" + +#: client/scenes/lobby_gui.cpp:141 +msgid "Connection" +msgstr "Connexion en cours" + +#: client/scenes/lobby_gui.cpp:143 +#, c++-format +msgid "Connection to {}" +msgstr "Connexion à {}" + +#: client/scenes/lobby_gui.cpp:173 +msgid "PIN" +msgstr "Code PIN" + +#: client/scenes/lobby_gui.cpp:195 +msgid "Input the PIN displayed on the dashboard" +msgstr "Entrez le code PIN affiché sur le tableau de bord" + +#: client/scenes/lobby_gui.cpp:283 +msgid "Disconnected" +msgstr "Connexion terminée" + +#: client/scenes/lobby_gui.cpp:285 +#, c++-format +msgid "Disconnected from {}" +msgstr "Connexion à {} terminée" + +#: client/scenes/lobby_gui.cpp:317 +msgid "Name" +msgstr "Nom" + +#: client/scenes/lobby_gui.cpp:328 +msgid "Address" +msgstr "Adresse" + +#: client/scenes/lobby_gui.cpp:337 +msgid "Port" +msgstr "Port" + +#: client/scenes/lobby_gui.cpp:345 +msgid "TCP only" +msgstr "TCP seulement" + +#: client/scenes/lobby_gui.cpp:352 client/scenes/lobby_gui_customize.cpp:654 +#: client/scenes/stream_gui.cpp:924 +msgid "Cancel" +msgstr "Annuler" + +#: client/scenes/lobby_gui.cpp:366 +msgid "Save" +msgstr "Enregistrer" + +#: client/scenes/lobby_gui.cpp:419 +msgid "" +"Start a WiVRn server on your\n" +"local network" +msgstr "" +"Démarrez un serveur WiVRn sur\n" +"le réseau local" + +#: client/scenes/lobby_gui.cpp:451 +msgid "Autoconnect" +msgstr "Autoconnexion" + +#: client/scenes/lobby_gui.cpp:477 +msgid "Connect" +msgstr "Connexion" + +#: client/scenes/lobby_gui.cpp:487 client/wivrn_client.cpp:186 +msgid "Incompatible server version" +msgstr "Version du serveur incompatible" + +#: client/scenes/lobby_gui.cpp:489 +msgid "Server not available" +msgstr "Serveur non disponible" + +#: client/scenes/lobby_gui.cpp:582 +msgctxt "language selection, replace with the name of the language" +msgid "English" +msgstr "Français" + +#: client/scenes/lobby_gui.cpp:596 +msgid "Language" +msgstr "Langue" + +#: client/scenes/lobby_gui.cpp:596 client/scenes/lobby_gui.cpp:598 +msgid "System language" +msgstr "Langue système" + +#: client/scenes/lobby_gui.cpp:627 msgid "Render resolution" msgstr "Résolution de rendu" -#: client/scenes/lobby_gui.cpp:702 +#: client/scenes/lobby_gui.cpp:631 #, c-format, c++-format msgid "{}%% - {}x{} per eye" msgstr "{} %% - {}x{} par œil" -#: client/scenes/lobby_gui.cpp:713 +#: client/scenes/lobby_gui.cpp:642 #, 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:723 +#: client/scenes/lobby_gui.cpp:652 msgid "Foveated encoding" msgstr "Fovéation d'encodage" -#: client/scenes/lobby_gui.cpp:727 +#: client/scenes/lobby_gui.cpp:656 #, c-format, c++-format msgid "{}%%" msgstr "{} %%" -#: client/scenes/lobby_gui.cpp:740 +#: client/scenes/lobby_gui.cpp:669 msgid "" "Higher values focus image quality where you look at,\n" "improving latency, power efficiency and quality." @@ -255,7 +256,7 @@ msgstr "" "porte le regard, ce qui diminue la latence, réduit la\n" "consommation d'énergie et améliore la qualité." -#: client/scenes/lobby_gui.cpp:743 +#: client/scenes/lobby_gui.cpp:672 msgid "" "Higher values focus image quality at the center,\n" "improving latency, power efficiency and quality." @@ -264,88 +265,88 @@ msgstr "" "de l'image, ce qui diminue la latence, réduit la\n" "consommation d'énergie et améliore la qualité." -#: client/scenes/lobby_gui.cpp:752 +#: client/scenes/lobby_gui.cpp:681 msgctxt "Codec" msgid "Automatic" msgstr "Automatique" -#: client/scenes/lobby_gui.cpp:756 +#: client/scenes/lobby_gui.cpp:685 msgctxt "Codec" msgid "H.264" msgstr "H.264" -#: client/scenes/lobby_gui.cpp:758 +#: client/scenes/lobby_gui.cpp:687 msgctxt "Codec" msgid "H.265" msgstr "H.265" -#: client/scenes/lobby_gui.cpp:760 +#: client/scenes/lobby_gui.cpp:689 msgctxt "Codec" msgid "AV1" msgstr "AV1" -#: client/scenes/lobby_gui.cpp:768 +#: client/scenes/lobby_gui.cpp:697 msgid "Codec" msgstr "Codec" -#: client/scenes/lobby_gui.cpp:796 +#: client/scenes/lobby_gui.cpp:725 msgid "10-bit" msgstr "10 bits" -#: client/scenes/lobby_gui.cpp:812 +#: client/scenes/lobby_gui.cpp:741 msgid "Bitrate" msgstr "Débit" -#: client/scenes/lobby_gui.cpp:816 +#: client/scenes/lobby_gui.cpp:745 #, c++-format msgid "{}Mbit/s" msgstr "{} Mbit/s" -#: client/scenes/lobby_gui.cpp:827 +#: client/scenes/lobby_gui.cpp:756 msgid "High power mode" msgstr "Mode haute consommation" -#: client/scenes/lobby_gui.cpp:830 +#: client/scenes/lobby_gui.cpp:759 msgid "Increase power usage to allow higher resolution and refresh rate" msgstr "" "Augmente la consommation d'énergie pour permettre une résolution\n" "et une fréquence de rafraîchissement plus élevées" -#: client/scenes/lobby_gui.cpp:836 +#: client/scenes/lobby_gui.cpp:765 msgid "Enable microphone" msgstr "Activer le micro" -#: client/scenes/lobby_gui.cpp:845 +#: client/scenes/lobby_gui.cpp:774 msgid "Unprocessed Microphone Audio" msgstr "Utiliser les données brutes du micro" -#: client/scenes/lobby_gui.cpp:851 +#: client/scenes/lobby_gui.cpp:780 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:858 +#: client/scenes/lobby_gui.cpp:787 msgid "Enable hand tracking" msgstr "Activer le suivi des mains" -#: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875 -#: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900 -#: client/scenes/lobby_gui_customize.cpp:640 +#: client/scenes/lobby_gui.cpp:793 client/scenes/lobby_gui.cpp:804 +#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:829 +#: client/scenes/lobby_gui_customize.cpp:639 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:869 +#: client/scenes/lobby_gui.cpp:798 msgid "Enable eye tracking" msgstr "Activer le suivi des yeux" -#: client/scenes/lobby_gui.cpp:880 +#: client/scenes/lobby_gui.cpp:809 msgid "Enable face tracking" msgstr "Activer le suivi du visage" -#: client/scenes/lobby_gui.cpp:892 +#: client/scenes/lobby_gui.cpp:821 msgid "Enable body tracking" msgstr "Activer le suivi du corps" -#: client/scenes/lobby_gui.cpp:905 +#: client/scenes/lobby_gui.cpp:834 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -356,11 +357,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:915 +#: client/scenes/lobby_gui.cpp:844 msgid "Enable lower body tracking" msgstr "Activer le suivi du bas du corps" -#: client/scenes/lobby_gui.cpp:921 +#: client/scenes/lobby_gui.cpp:850 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -371,11 +372,11 @@ msgstr "" "paramètres\n" "de suivi de mouvements du casque." -#: client/scenes/lobby_gui.cpp:924 +#: client/scenes/lobby_gui.cpp:853 msgid "Enable hip tracking" msgstr "Activer le suivi des hanches" -#: client/scenes/lobby_gui.cpp:930 +#: client/scenes/lobby_gui.cpp:859 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -383,11 +384,11 @@ 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:939 +#: client/scenes/lobby_gui.cpp:868 msgid "Enable in-stream window" msgstr "Activer la fenêtre WiVRn lors de la transmission" -#: client/scenes/lobby_gui.cpp:942 +#: client/scenes/lobby_gui.cpp:871 msgid "" "Enables the configuration window to be shown while the game is streaming.\n" "If enabled, the window is activated by pressing both thumbsticks." @@ -397,25 +398,25 @@ msgstr "" "Lorsque activé, la fenêtre peut être affichée en appuyant sur les deux " "sticks." -#: client/scenes/lobby_gui.cpp:946 +#: client/scenes/lobby_gui.cpp:875 msgid "Extended configuration values" msgstr "Valeurs de configuration étendues" -#: client/scenes/lobby_gui.cpp:949 +#: client/scenes/lobby_gui.cpp:878 msgid "Allows unsafe configuration values, use at your own risk." msgstr "" "Permet d'utiliser des limites plus hautes,\n" "peut ne pas fonctionner correctement." -#: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473 +#: client/scenes/lobby_gui.cpp:892 client/scenes/stream_gui.cpp:419 msgid "OpenXR post-processing" msgstr "Post-traitement OpenXR" -#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477 +#: client/scenes/lobby_gui.cpp:896 client/scenes/stream_gui.cpp:423 msgid "Supersampling" msgstr "Suréchantillonnage" -#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498 +#: client/scenes/lobby_gui.cpp:916 client/scenes/stream_gui.cpp:444 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -423,11 +424,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:992 client/scenes/stream_gui.cpp:503 +#: client/scenes/lobby_gui.cpp:921 client/scenes/stream_gui.cpp:449 msgid "Sharpening" msgstr "Affinage de netteté" -#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524 +#: client/scenes/lobby_gui.cpp:941 client/scenes/stream_gui.cpp:470 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -435,129 +436,129 @@ 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:1196 client/scenes/lobby_gui.cpp:1204 -#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371 +#: client/scenes/lobby_gui.cpp:1125 client/scenes/lobby_gui.cpp:1133 +#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:372 msgid "CPU time" msgstr "Temps CPU" -#: client/scenes/lobby_gui.cpp:1200 +#: client/scenes/lobby_gui.cpp:1129 msgid "CPU time [ms]" msgstr "Temps CPU [ms]" -#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218 -#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372 +#: client/scenes/lobby_gui.cpp:1139 client/scenes/lobby_gui.cpp:1147 +#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:373 msgid "GPU time" msgstr "Temps GPU" -#: client/scenes/lobby_gui.cpp:1214 +#: client/scenes/lobby_gui.cpp:1143 msgid "GPU time [ms]" msgstr "Temps GPU [ms]" -#: client/scenes/lobby_gui.cpp:1278 +#: client/scenes/lobby_gui.cpp:1207 msgid "Enable the microphone?" msgstr "Activer le micro ?" -#: client/scenes/lobby_gui.cpp:1283 +#: client/scenes/lobby_gui.cpp:1212 msgid "Enable eye tracking?" msgstr "Activer le suivi des yeux ?" -#: client/scenes/lobby_gui.cpp:1288 +#: client/scenes/lobby_gui.cpp:1217 msgid "Enable face tracking?" msgstr "Activer le suivi du visage ?" -#: client/scenes/lobby_gui.cpp:1293 +#: client/scenes/lobby_gui.cpp:1222 msgid "Enable body tracking?" msgstr "Activer le suivi du corps ?" -#: client/scenes/lobby_gui.cpp:1301 +#: client/scenes/lobby_gui.cpp:1230 msgid "Welcome to WiVRn" msgstr "Bienvenue sur WiVRn" -#: client/scenes/lobby_gui.cpp:1329 +#: client/scenes/lobby_gui.cpp:1258 msgid "Yes" msgstr "Oui" -#: client/scenes/lobby_gui.cpp:1336 +#: client/scenes/lobby_gui.cpp:1265 msgid "No" msgstr "Non" -#: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001 +#: client/scenes/lobby_gui.cpp:1284 client/scenes/lobby_gui.cpp:1930 msgid "Licenses" msgstr "Licences" -#: client/scenes/lobby_gui.cpp:1631 +#: client/scenes/lobby_gui.cpp:1560 msgid "Microphone is enabled" msgstr "Le micro est activé" -#: client/scenes/lobby_gui.cpp:1632 +#: client/scenes/lobby_gui.cpp:1561 msgid "Microphone is disabled" msgstr "Le micro est désactivé" -#: client/scenes/lobby_gui.cpp:1641 +#: client/scenes/lobby_gui.cpp:1570 msgid "Hand tracking is enabled" msgstr "Le suivi des mains est activé" -#: client/scenes/lobby_gui.cpp:1642 +#: client/scenes/lobby_gui.cpp:1571 msgid "Hand tracking is disabled" msgstr "Le suivi des mains est désactivé" -#: client/scenes/lobby_gui.cpp:1651 +#: client/scenes/lobby_gui.cpp:1580 msgid "Eye tracking is enabled" msgstr "Le suivi des yeux est activé" -#: client/scenes/lobby_gui.cpp:1652 +#: client/scenes/lobby_gui.cpp:1581 msgid "Eye tracking is disabled" msgstr "Le suivi des yeux est désactivé" -#: client/scenes/lobby_gui.cpp:1662 +#: client/scenes/lobby_gui.cpp:1591 msgid "Face tracking is enabled" msgstr "Le suivi du visage est activé" -#: client/scenes/lobby_gui.cpp:1663 +#: client/scenes/lobby_gui.cpp:1592 msgid "Face tracking is disabled" msgstr "Le suivi du visage est désactivé" -#: client/scenes/lobby_gui.cpp:1677 +#: client/scenes/lobby_gui.cpp:1606 msgid "Body tracking is enabled" msgstr "Le suivi du corps est activé" -#: client/scenes/lobby_gui.cpp:1678 +#: client/scenes/lobby_gui.cpp:1607 msgid "Body tracking is disabled" msgstr "Le suivi du corps est désactivé" -#: client/scenes/lobby_gui.cpp:1694 +#: client/scenes/lobby_gui.cpp:1623 msgid "Add server" msgstr "Ajouter un serveur" -#: client/scenes/lobby_gui.cpp:1980 +#: client/scenes/lobby_gui.cpp:1909 msgid "Server list" msgstr "Serveurs" -#: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007 +#: client/scenes/lobby_gui.cpp:1912 client/scenes/stream_gui.cpp:954 msgid "Settings" msgstr "Paramètres" -#: client/scenes/lobby_gui.cpp:1986 +#: client/scenes/lobby_gui.cpp:1915 msgid "Post-processing" msgstr "Post-traitement" -#: client/scenes/lobby_gui.cpp:1989 +#: client/scenes/lobby_gui.cpp:1918 msgid "Customize" msgstr "Personnaliser" -#: client/scenes/lobby_gui.cpp:1993 +#: client/scenes/lobby_gui.cpp:1922 msgid "Debug" msgstr "Debug" -#: client/scenes/lobby_gui.cpp:1998 +#: client/scenes/lobby_gui.cpp:1927 msgid "About" msgstr "À propos" -#: client/scenes/lobby_gui.cpp:2004 +#: client/scenes/lobby_gui.cpp:1933 msgid "Exit" msgstr "Quitter" -#: client/scenes/lobby_gui.cpp:2021 +#: client/scenes/lobby_gui.cpp:1950 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -565,7 +566,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:2023 +#: client/scenes/lobby_gui.cpp:1952 msgid "Press the grip button to move the main window" msgstr "Serrez la gâchette latérale pour bouger la fenêtre principale" @@ -578,38 +579,38 @@ msgstr "Environnement chargé localement" msgid "Locally loaded environment ({})" msgstr "Environnement chargé localement ({})" -#: client/scenes/lobby_gui_customize.cpp:300 +#: client/scenes/lobby_gui_customize.cpp:299 #, c++-format msgid "Cannot load local environment: {}" msgstr "Impossible de charger l'environnement local ({})" -#: client/scenes/lobby_gui_customize.cpp:333 +#: client/scenes/lobby_gui_customize.cpp:332 #, c++-format msgid "Cannot load environment list: {}" msgstr "Impossible de charger la liste d'environnements: {}" -#: client/scenes/lobby_gui_customize.cpp:463 +#: client/scenes/lobby_gui_customize.cpp:462 #, c++-format msgid "Author: {}" msgstr "Auteur : {}" -#: client/scenes/lobby_gui_customize.cpp:467 +#: client/scenes/lobby_gui_customize.cpp:466 #, c++-format msgid "Size: {:.1f} MB" msgstr "Taille: {:.1f} Mo" -#: client/scenes/lobby_gui_customize.cpp:547 +#: client/scenes/lobby_gui_customize.cpp:546 msgid "Delete this model" msgstr "Supprimer ce modèle" -#: client/scenes/lobby_gui_customize.cpp:583 -#: client/scenes/lobby_gui_customize.cpp:789 +#: client/scenes/lobby_gui_customize.cpp:582 +#: client/scenes/lobby_gui_customize.cpp:788 #, c++-format msgid "HTTP error {} when downloading {}" msgstr "Erreur HTTP {} lors du téléchargement de {}" -#: client/scenes/lobby_gui_customize.cpp:591 -#: client/scenes/lobby_gui_customize.cpp:797 +#: client/scenes/lobby_gui_customize.cpp:590 +#: client/scenes/lobby_gui_customize.cpp:796 #, c++-format msgid "" "Curl error when downloading {}\n" @@ -618,186 +619,186 @@ msgstr "" "Erreur curl lors du téléchargement de {}\n" "{} : {}" -#: client/scenes/lobby_gui_customize.cpp:652 +#: client/scenes/lobby_gui_customize.cpp:651 #, c++-format msgid "Really delete {}?" msgstr "Supprimer {} ?" -#: client/scenes/lobby_gui_customize.cpp:656 +#: client/scenes/lobby_gui_customize.cpp:655 msgid "Delete" msgstr "Supprimer" -#: client/scenes/lobby_gui_customize.cpp:737 +#: client/scenes/lobby_gui_customize.cpp:736 #, c++-format msgid "Cannot load environment: {}" msgstr "Impossible de charger l'environnement : {}" -#: client/scenes/lobby_gui_customize.cpp:745 +#: client/scenes/lobby_gui_customize.cpp:744 msgid "Loading environment" msgstr "Chargement de l'environnement" -#: client/scenes/lobby_gui_customize.cpp:824 +#: client/scenes/lobby_gui_customize.cpp:823 msgid "Download more environments" msgstr "Télécharger plus d'environnements" -#: client/scenes/lobby_gui_customize.cpp:832 +#: client/scenes/lobby_gui_customize.cpp:831 msgid "Open local glTF model" msgstr "Ouvrir un modèle glTF local" -#: client/scenes/stream_gui.cpp:175 +#: client/scenes/stream_gui.cpp:176 msgid "Defoveate" msgstr "Défovéation" -#: client/scenes/stream_gui.cpp:177 +#: client/scenes/stream_gui.cpp:178 msgid "Network" msgstr "Réseau" -#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369 +#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370 msgid "Download" msgstr "Téléchargement" -#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370 +#: client/scenes/stream_gui.cpp:179 client/scenes/stream_gui.cpp:371 msgid "Upload" msgstr "Téléversement" -#: client/scenes/stream_gui.cpp:247 +#: client/scenes/stream_gui.cpp:248 #, c++-format msgid "Decoder {}" msgstr "Décodeur {}" -#: client/scenes/stream_gui.cpp:259 +#: client/scenes/stream_gui.cpp:260 msgid "Timings [ms]" msgstr "Durées [ms]" -#: client/scenes/stream_gui.cpp:319 +#: client/scenes/stream_gui.cpp:320 msgid "Encode" msgstr "Encodage" -#: client/scenes/stream_gui.cpp:320 +#: client/scenes/stream_gui.cpp:321 msgid "Send" msgstr "Envoi" -#: client/scenes/stream_gui.cpp:321 +#: client/scenes/stream_gui.cpp:322 msgid "Receive" msgstr "Réception" -#: client/scenes/stream_gui.cpp:322 +#: client/scenes/stream_gui.cpp:323 msgid "Decode" msgstr "Décodage" -#: client/scenes/stream_gui.cpp:323 +#: client/scenes/stream_gui.cpp:324 msgid "Blitted" msgstr "Copie" -#: client/scenes/stream_gui.cpp:324 +#: client/scenes/stream_gui.cpp:325 msgid "Displayed" msgstr "Affichage" -#: client/scenes/stream_gui.cpp:325 +#: client/scenes/stream_gui.cpp:326 msgid "Predicted" msgstr "Prédiction" -#: client/scenes/stream_gui.cpp:344 +#: client/scenes/stream_gui.cpp:345 #, c++-format msgid "Estimated motion to photons latency: {}ms" msgstr "Latence mouvement à photons estimée : {} ms" -#: client/scenes/stream_gui.cpp:349 +#: client/scenes/stream_gui.cpp:350 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:351 client/scenes/stream_gui.cpp:738 +#: client/scenes/stream_gui.cpp:352 client/scenes/stream_gui.cpp:684 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:373 +#: client/scenes/stream_gui.cpp:374 msgid "Motion to photon latency" msgstr "Latence mouvements à photons" -#: client/scenes/stream_gui.cpp:458 +#: client/scenes/stream_gui.cpp:404 msgid "Bitrate:" msgstr "Débit :" -#: client/scenes/stream_gui.cpp:468 +#: client/scenes/stream_gui.cpp:414 msgid "Click to adjust bitrate" msgstr "Cliquez pour modifier le débit" -#: client/scenes/stream_gui.cpp:532 +#: client/scenes/stream_gui.cpp:478 msgid "Foveation center override" msgstr "Zone de fovéation manuelle" -#: client/scenes/stream_gui.cpp:535 +#: client/scenes/stream_gui.cpp:481 msgid "Enable" msgstr "Activer" -#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614 +#: client/scenes/stream_gui.cpp:489 client/scenes/stream_gui.cpp:560 #, c++-format msgid "Height {:.1f} deg" msgstr "Hauteur : {:.1f} deg" -#: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615 +#: client/scenes/stream_gui.cpp:490 client/scenes/stream_gui.cpp:561 #, c++-format msgid "Distance {:.2f} m" msgstr "Distance {:.2f} m" -#: client/scenes/stream_gui.cpp:545 +#: client/scenes/stream_gui.cpp:491 msgid "Default" msgstr "Réinitialiser" -#: client/scenes/stream_gui.cpp:556 +#: client/scenes/stream_gui.cpp:502 msgid "Change" msgstr "Ajuster" -#: client/scenes/stream_gui.cpp:588 +#: client/scenes/stream_gui.cpp:534 msgid "Use the right thumbstick to adjust the bitrate" msgstr "Utilisez le stick droit pour modifier le débit" -#: client/scenes/stream_gui.cpp:589 +#: client/scenes/stream_gui.cpp:535 msgid "Press A to go back" msgstr "Appuyez sur A pour revenir" -#: client/scenes/stream_gui.cpp:590 +#: client/scenes/stream_gui.cpp:536 #, c++-format msgid "Bitrate: {}Mbit/s" msgstr "Débit : {} MBit/s" -#: client/scenes/stream_gui.cpp:612 +#: client/scenes/stream_gui.cpp:558 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:613 +#: client/scenes/stream_gui.cpp:559 msgid "Press A to save or B to cancel" msgstr "A pour sauvegarder, B pour annuler" -#: client/scenes/stream_gui.cpp:671 +#: client/scenes/stream_gui.cpp:617 msgid "Running XR applications:" msgstr "Applications XR lancées :" -#: client/scenes/stream_gui.cpp:688 +#: client/scenes/stream_gui.cpp:634 msgid "Overlays" msgstr "Surcouches" -#: client/scenes/stream_gui.cpp:727 +#: client/scenes/stream_gui.cpp:673 msgid "Request to quit, may be ignored by the application" msgstr "Demande de quitter, peut être ignoré par l'application" -#: client/scenes/stream_gui.cpp:993 +#: client/scenes/stream_gui.cpp:940 msgid "Applications" msgstr "Applications" -#: client/scenes/stream_gui.cpp:996 +#: client/scenes/stream_gui.cpp:943 msgid "Start" msgstr "Démarrer" -#: client/scenes/stream_gui.cpp:1010 +#: client/scenes/stream_gui.cpp:957 msgid "Stats" msgstr "Statistiques" -#: client/scenes/stream_gui.cpp:1016 +#: client/scenes/stream_gui.cpp:963 msgid "Statistics overlay" msgstr "Statistiques seules" -#: client/scenes/stream_gui.cpp:1019 +#: client/scenes/stream_gui.cpp:966 msgid "Compact view" msgstr "Vue compacte" @@ -816,15 +817,3 @@ msgstr "Impossible de vérifier le code PIN" #: client/wivrn_client.cpp:182 msgid "Pairing is disabled on server" msgstr "L'appairage est désactivé sur le serveur" - -#~ msgid "Stream resolution" -#~ msgstr "Résolution d'encodage" - -#~ msgid "Resolution scale" -#~ msgstr "Échelle" - -#~ msgid "Reproject" -#~ msgstr "Reprojection" - -#~ msgid "Blit" -#~ msgstr "Copie" diff --git a/locale/it/wivrn.po b/locale/it/wivrn.po index 24c74e2e..63bbd564 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: 2026-02-27 16:09+0100\n" -"PO-Revision-Date: 2026-02-27 16:11+0100\n" +"POT-Creation-Date: 2026-04-17 13:02+0200\n" +"PO-Revision-Date: 2026-04-17 13:03+0200\n" "Last-Translator: Albano Battistella \n" "Language-Team: Italian <>\n" "Language: Italian\n" @@ -19,189 +19,48 @@ msgstr "" msgid "No supported swapchain format" msgstr "Nessun formato swapchain supportato" -#: client/scenes/app_launcher.cpp:127 +#: client/scenes/app_launcher.cpp:119 msgid "Connected to WiVRn server" msgstr "Connesso al server WiVRn" -#: client/scenes/app_launcher.cpp:129 +#: client/scenes/app_launcher.cpp:121 #, c++-format msgid "Connected to {}" msgstr "Connesso a {}" -#: client/scenes/app_launcher.cpp:135 +#: client/scenes/app_launcher.cpp:127 msgid "Start an application on the server to start streaming." msgstr "Avvia un applicazione sul server per incominciare a trasmettere." -#: client/scenes/app_launcher.cpp:145 +#: client/scenes/app_launcher.cpp:137 msgid "Start an application on your computer or select one to start streaming." msgstr "" "Avvia un applicazione sul computer o scegli dalla lista per incominciare a " "trasmettere." -#: client/scenes/app_launcher.cpp:147 +#: client/scenes/app_launcher.cpp:139 #, 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.cpp:230 -msgid "Incompatible WiVRn server: no protocol field in TXT" -msgstr "Server WiVRn incompatibile: nessun campo protocollo in TXT" - -#: client/scenes/lobby.cpp:233 -#, c++-format -msgid "Incompatible WiVRn server protocol (client: {}, server: {})" -msgstr "Protocollo server WiVRn incompatibile (client: {}, server: {})" - -#: client/scenes/lobby.cpp:248 -#, c++-format -msgid "Cannot resolve hostname: {}" -msgstr "Impossibile risolvere il nome host: {}" - -#: client/scenes/lobby.cpp:335 client/scenes/lobby.cpp:341 -#, c++-format -msgid "Cannot connect to {} ({}): {}" -msgstr "Impossibile connettersi a {} ({}): {}" - -#: client/scenes/lobby.cpp:424 -msgid "Waiting for connection" -msgstr "In attesa di connessione" - -#: client/scenes/lobby.cpp:1316 -msgid "Passthrough" -msgstr "Vista reale" - -#: client/scenes/lobby.cpp:1328 -msgid "Default environment" -msgstr "Ambiente di default" - -#: client/scenes/lobby_gui.cpp:101 -msgctxt "openxr_post_processing" -msgid "Normal" -msgstr "Normale" - -#: client/scenes/lobby_gui.cpp:104 -msgctxt "openxr_post_processing" -msgid "Quality" -msgstr "Alta qualità" - -#: client/scenes/lobby_gui.cpp:106 -msgctxt "openxr_post_processing" -msgid "Disabled" -msgstr "Disattivato" - -#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254 -#: client/scenes/stream_gui.cpp:1026 -msgid "Disconnect" -msgstr "Sconnetti" - -#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264 -#: client/scenes/lobby_gui_customize.cpp:753 -#: client/scenes/lobby_gui_customize.cpp:844 -#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022 -msgid "Close" -msgstr "Chiudi" - -#: client/scenes/lobby_gui.cpp:140 -msgid "Connection" -msgstr "Connessione" - -#: client/scenes/lobby_gui.cpp:142 -#, c++-format -msgid "Connection to {}" -msgstr "Connessione a {}" - -#: client/scenes/lobby_gui.cpp:172 -msgid "PIN" -msgstr "PIN" - -#: client/scenes/lobby_gui.cpp:194 -msgid "Input the PIN displayed on the dashboard" -msgstr "Digitare il PIN visibile sul server" - -#: client/scenes/lobby_gui.cpp:282 -msgid "Disconnected" -msgstr "Connessione chiusa" - -#: client/scenes/lobby_gui.cpp:284 -#, c++-format -msgid "Disconnected from {}" -msgstr "Connessione con {} chiusa" - -#: client/scenes/lobby_gui.cpp:316 -msgid "Name" -msgstr "Nome" - -#: client/scenes/lobby_gui.cpp:327 -msgid "Address" -msgstr "Indirizzo" - -#: client/scenes/lobby_gui.cpp:336 -msgid "Port" -msgstr "Porta" - -#: client/scenes/lobby_gui.cpp:344 -msgid "TCP only" -msgstr "Solo TCP" - -#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655 -#: client/scenes/stream_gui.cpp:978 -msgid "Cancel" -msgstr "Annulla" - -#: client/scenes/lobby_gui.cpp:365 -msgid "Save" -msgstr "Salva" - -#: client/scenes/lobby_gui.cpp:418 -msgid "" -"Start a WiVRn server on your\n" -"local network" -msgstr "" -"Avvia un server WiVRn sulla\n" -"rete locale" - -#: client/scenes/lobby_gui.cpp:450 -msgid "Autoconnect" -msgstr "Connessione automatica" - -#: client/scenes/lobby_gui.cpp:476 -msgid "Connect" -msgstr "Connetti" - -#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186 -msgid "Incompatible server version" -msgstr "Versione del server incompatibile" - -#: client/scenes/lobby_gui.cpp:488 -msgid "Server not available" -msgstr "Server non disponibile" - -#: client/scenes/lobby_gui.cpp:581 -msgctxt "language selection, replace with the name of the language" -msgid "English" -msgstr "Italiano" - -#: client/scenes/lobby_gui.cpp:595 -msgid "Language" -msgstr "Lingua" - -#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597 -msgid "System language" -msgstr "Lingua del sistema" - -#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412 -msgid "Refresh rate" -msgstr "Frequenza di aggiornamento" - -#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625 -#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414 +#: client/scenes/gui_common.cpp:38 client/scenes/gui_common.cpp:64 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "Automatica" -#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421 +#: client/scenes/gui_common.cpp:42 +#, c++-format +msgctxt "refresh rate selection, with reprojection" +msgid "{} ({} with space warp)" +msgstr "{} ({} con riproiezione)" + +#: client/scenes/gui_common.cpp:60 +msgid "Refresh rate" +msgstr "Frequenza di aggiornamento" + +#: client/scenes/gui_common.cpp:74 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -210,39 +69,181 @@ msgstr "" "misurate dell'applicazione.\n" "Può causare un flash quando avviene il cambiamento." -#: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439 +#: client/scenes/gui_common.cpp:101 msgid "Minimum refresh rate" msgstr "Frequenza minima" -#: client/scenes/lobby_gui.cpp:675 -msgid "Foveation level" -msgstr "Intensità di foveazione" +#: client/scenes/lobby.cpp:221 +msgid "Incompatible WiVRn server: no protocol field in TXT" +msgstr "Server WiVRn incompatibile: nessun campo protocollo in TXT" -#: client/scenes/lobby_gui.cpp:698 +#: client/scenes/lobby.cpp:224 +#, c++-format +msgid "Incompatible WiVRn server protocol (client: {}, server: {})" +msgstr "Protocollo server WiVRn incompatibile (client: {}, server: {})" + +#: client/scenes/lobby.cpp:239 +#, c++-format +msgid "Cannot resolve hostname: {}" +msgstr "Impossibile risolvere il nome host: {}" + +#: client/scenes/lobby.cpp:326 client/scenes/lobby.cpp:332 +#, c++-format +msgid "Cannot connect to {} ({}): {}" +msgstr "Impossibile connettersi a {} ({}): {}" + +#: client/scenes/lobby.cpp:410 +msgid "Waiting for connection" +msgstr "In attesa di connessione" + +#: client/scenes/lobby.cpp:1298 +msgid "Passthrough" +msgstr "Vista reale" + +#: client/scenes/lobby.cpp:1310 +msgid "Default environment" +msgstr "Ambiente di default" + +#: client/scenes/lobby_gui.cpp:102 +msgctxt "openxr_post_processing" +msgid "Normal" +msgstr "Normale" + +#: client/scenes/lobby_gui.cpp:105 +msgctxt "openxr_post_processing" +msgid "Quality" +msgstr "Alta qualità" + +#: client/scenes/lobby_gui.cpp:107 +msgctxt "openxr_post_processing" +msgid "Disabled" +msgstr "Disattivato" + +#: client/scenes/lobby_gui.cpp:115 client/scenes/lobby_gui.cpp:255 +#: client/scenes/stream_gui.cpp:973 +msgid "Disconnect" +msgstr "Sconnetti" + +#: client/scenes/lobby_gui.cpp:135 client/scenes/lobby_gui.cpp:265 +#: client/scenes/lobby_gui_customize.cpp:752 +#: client/scenes/lobby_gui_customize.cpp:843 +#: client/scenes/lobby_gui_customize.cpp:899 client/scenes/stream_gui.cpp:969 +msgid "Close" +msgstr "Chiudi" + +#: client/scenes/lobby_gui.cpp:141 +msgid "Connection" +msgstr "Connessione" + +#: client/scenes/lobby_gui.cpp:143 +#, c++-format +msgid "Connection to {}" +msgstr "Connessione a {}" + +#: client/scenes/lobby_gui.cpp:173 +msgid "PIN" +msgstr "PIN" + +#: client/scenes/lobby_gui.cpp:195 +msgid "Input the PIN displayed on the dashboard" +msgstr "Digitare il PIN visibile sul server" + +#: client/scenes/lobby_gui.cpp:283 +msgid "Disconnected" +msgstr "Connessione chiusa" + +#: client/scenes/lobby_gui.cpp:285 +#, c++-format +msgid "Disconnected from {}" +msgstr "Connessione con {} chiusa" + +#: client/scenes/lobby_gui.cpp:317 +msgid "Name" +msgstr "Nome" + +#: client/scenes/lobby_gui.cpp:328 +msgid "Address" +msgstr "Indirizzo" + +#: client/scenes/lobby_gui.cpp:337 +msgid "Port" +msgstr "Porta" + +#: client/scenes/lobby_gui.cpp:345 +msgid "TCP only" +msgstr "Solo TCP" + +#: client/scenes/lobby_gui.cpp:352 client/scenes/lobby_gui_customize.cpp:654 +#: client/scenes/stream_gui.cpp:924 +msgid "Cancel" +msgstr "Annulla" + +#: client/scenes/lobby_gui.cpp:366 +msgid "Save" +msgstr "Salva" + +#: client/scenes/lobby_gui.cpp:419 +msgid "" +"Start a WiVRn server on your\n" +"local network" +msgstr "" +"Avvia un server WiVRn sulla\n" +"rete locale" + +#: client/scenes/lobby_gui.cpp:451 +msgid "Autoconnect" +msgstr "Connessione automatica" + +#: client/scenes/lobby_gui.cpp:477 +msgid "Connect" +msgstr "Connetti" + +#: client/scenes/lobby_gui.cpp:487 client/wivrn_client.cpp:186 +msgid "Incompatible server version" +msgstr "Versione del server incompatibile" + +#: client/scenes/lobby_gui.cpp:489 +msgid "Server not available" +msgstr "Server non disponibile" + +#: client/scenes/lobby_gui.cpp:582 +msgctxt "language selection, replace with the name of the language" +msgid "English" +msgstr "Italiano" + +#: client/scenes/lobby_gui.cpp:596 +msgid "Language" +msgstr "Lingua" + +#: client/scenes/lobby_gui.cpp:596 client/scenes/lobby_gui.cpp:598 +msgid "System language" +msgstr "Lingua del sistema" + +#: client/scenes/lobby_gui.cpp:627 msgid "Render resolution" msgstr "Risoluzione del gioco" -#: client/scenes/lobby_gui.cpp:702 +#: client/scenes/lobby_gui.cpp:631 #, c-format, c++-format msgid "{}%% - {}x{} per eye" msgstr "{}%% - {}x{} per occhio" -#: client/scenes/lobby_gui.cpp:713 +#: client/scenes/lobby_gui.cpp:642 #, 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:723 +#: client/scenes/lobby_gui.cpp:652 msgid "Foveated encoding" msgstr "Foveazione della codifica" -#: client/scenes/lobby_gui.cpp:727 +#: client/scenes/lobby_gui.cpp:656 #, c-format, c++-format msgid "{}%%" msgstr "{}%%" -#: client/scenes/lobby_gui.cpp:740 +#: client/scenes/lobby_gui.cpp:669 msgid "" "Higher values focus image quality where you look at,\n" "improving latency, power efficiency and quality." @@ -250,7 +251,7 @@ msgstr "" "Valori alti concentrano la qualità dove si guarda,\n" "migliorando la latenza, efficienza energetica e qualità" -#: client/scenes/lobby_gui.cpp:743 +#: client/scenes/lobby_gui.cpp:672 msgid "" "Higher values focus image quality at the center,\n" "improving latency, power efficiency and quality." @@ -258,88 +259,88 @@ msgstr "" "Valori alti concentrano la qualità al centro dell'immagine,\n" "migliorando la latenza, efficienza energetica e qualità" -#: client/scenes/lobby_gui.cpp:752 +#: client/scenes/lobby_gui.cpp:681 msgctxt "Codec" msgid "Automatic" msgstr "Automatico" -#: client/scenes/lobby_gui.cpp:756 +#: client/scenes/lobby_gui.cpp:685 msgctxt "Codec" msgid "H.264" msgstr "H.264" -#: client/scenes/lobby_gui.cpp:758 +#: client/scenes/lobby_gui.cpp:687 msgctxt "Codec" msgid "H.265" msgstr "H.265" -#: client/scenes/lobby_gui.cpp:760 +#: client/scenes/lobby_gui.cpp:689 msgctxt "Codec" msgid "AV1" msgstr "AV1" -#: client/scenes/lobby_gui.cpp:768 +#: client/scenes/lobby_gui.cpp:697 msgid "Codec" msgstr "Codec" -#: client/scenes/lobby_gui.cpp:796 +#: client/scenes/lobby_gui.cpp:725 msgid "10-bit" msgstr "10 bit" -#: client/scenes/lobby_gui.cpp:812 +#: client/scenes/lobby_gui.cpp:741 msgid "Bitrate" msgstr "Velocità di trasmissione" -#: client/scenes/lobby_gui.cpp:816 +#: client/scenes/lobby_gui.cpp:745 #, c++-format msgid "{}Mbit/s" msgstr "{}Mbit/s" -#: client/scenes/lobby_gui.cpp:827 +#: client/scenes/lobby_gui.cpp:756 msgid "High power mode" msgstr "Modalità alto consumo" -#: client/scenes/lobby_gui.cpp:830 +#: client/scenes/lobby_gui.cpp:759 msgid "Increase power usage to allow higher resolution and refresh rate" msgstr "" "Aumenta il consumo di energie per permettere una risoluzione e\n" "frequenza d'immagine più alta" -#: client/scenes/lobby_gui.cpp:836 +#: client/scenes/lobby_gui.cpp:765 msgid "Enable microphone" msgstr "Attiva il microfono" -#: client/scenes/lobby_gui.cpp:845 +#: client/scenes/lobby_gui.cpp:774 msgid "Unprocessed Microphone Audio" msgstr "Usare dati grezzi del microfono" -#: client/scenes/lobby_gui.cpp:851 +#: client/scenes/lobby_gui.cpp:780 msgid "Force disable audio filters, such as noise cancellation" msgstr "Disattiva gli effetti come la cancellazione del rumore" -#: client/scenes/lobby_gui.cpp:858 +#: client/scenes/lobby_gui.cpp:787 msgid "Enable hand tracking" msgstr "Abilita il tracciamento delle mani" -#: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875 -#: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900 -#: client/scenes/lobby_gui_customize.cpp:640 +#: client/scenes/lobby_gui.cpp:793 client/scenes/lobby_gui.cpp:804 +#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:829 +#: client/scenes/lobby_gui_customize.cpp:639 msgid "This feature is not supported by your headset" msgstr "Questa funzionalità non è supportata dal visore" -#: client/scenes/lobby_gui.cpp:869 +#: client/scenes/lobby_gui.cpp:798 msgid "Enable eye tracking" msgstr "Abilita il tracciamento oculare" -#: client/scenes/lobby_gui.cpp:880 +#: client/scenes/lobby_gui.cpp:809 msgid "Enable face tracking" msgstr "Abilita il tracciamento facciale" -#: client/scenes/lobby_gui.cpp:892 +#: client/scenes/lobby_gui.cpp:821 msgid "Enable body tracking" msgstr "Abilita il tracciamento del corpo" -#: client/scenes/lobby_gui.cpp:905 +#: client/scenes/lobby_gui.cpp:834 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -352,11 +353,11 @@ msgstr "" "controller e\n" "del visore." -#: client/scenes/lobby_gui.cpp:915 +#: client/scenes/lobby_gui.cpp:844 msgid "Enable lower body tracking" msgstr "Abilita il tracciamento del basso del corpo" -#: client/scenes/lobby_gui.cpp:921 +#: client/scenes/lobby_gui.cpp:850 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -367,11 +368,11 @@ msgstr "" "impostazioni,\n" "sezione \"Tracking dei movimenti\"." -#: client/scenes/lobby_gui.cpp:924 +#: client/scenes/lobby_gui.cpp:853 msgid "Enable hip tracking" msgstr "Abilitia il tracciamento delle anche" -#: client/scenes/lobby_gui.cpp:930 +#: client/scenes/lobby_gui.cpp:859 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -380,11 +381,11 @@ msgstr "" "Può essere utile se un altro metodo viene usato per il tracciamento\n" "delle anche." -#: client/scenes/lobby_gui.cpp:939 +#: client/scenes/lobby_gui.cpp:868 msgid "Enable in-stream window" msgstr "Attiva la finestra di WiVRn durante la trasmissione" -#: client/scenes/lobby_gui.cpp:942 +#: client/scenes/lobby_gui.cpp:871 msgid "" "Enables the configuration window to be shown while the game is streaming.\n" "If enabled, the window is activated by pressing both thumbsticks." @@ -392,23 +393,23 @@ 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:946 +#: client/scenes/lobby_gui.cpp:875 msgid "Extended configuration values" msgstr "Valori di configurazione estesi" -#: client/scenes/lobby_gui.cpp:949 +#: client/scenes/lobby_gui.cpp:878 msgid "Allows unsafe configuration values, use at your own risk." msgstr "Permette di usare limiti più alti, può non funzionare correttamente." -#: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473 +#: client/scenes/lobby_gui.cpp:892 client/scenes/stream_gui.cpp:419 msgid "OpenXR post-processing" msgstr "Post-trattamento OpenXR" -#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477 +#: client/scenes/lobby_gui.cpp:896 client/scenes/stream_gui.cpp:423 msgid "Supersampling" msgstr "Supersamping" -#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498 +#: client/scenes/lobby_gui.cpp:916 client/scenes/stream_gui.cpp:444 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -416,11 +417,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:992 client/scenes/stream_gui.cpp:503 +#: client/scenes/lobby_gui.cpp:921 client/scenes/stream_gui.cpp:449 msgid "Sharpening" msgstr "Miglioramento della nitidezza" -#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524 +#: client/scenes/lobby_gui.cpp:941 client/scenes/stream_gui.cpp:470 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -429,129 +430,129 @@ msgstr "" "Utile quando la risoluzione d'entrate è bassa in contronto a quella del " "visore" -#: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204 -#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371 +#: client/scenes/lobby_gui.cpp:1125 client/scenes/lobby_gui.cpp:1133 +#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:372 msgid "CPU time" msgstr "Tempo CPU" -#: client/scenes/lobby_gui.cpp:1200 +#: client/scenes/lobby_gui.cpp:1129 msgid "CPU time [ms]" msgstr "Tempo CPU [ms]" -#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218 -#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372 +#: client/scenes/lobby_gui.cpp:1139 client/scenes/lobby_gui.cpp:1147 +#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:373 msgid "GPU time" msgstr "Tempo GPU" -#: client/scenes/lobby_gui.cpp:1214 +#: client/scenes/lobby_gui.cpp:1143 msgid "GPU time [ms]" msgstr "Tempo GPU [ms]" -#: client/scenes/lobby_gui.cpp:1278 +#: client/scenes/lobby_gui.cpp:1207 msgid "Enable the microphone?" msgstr "Attivare il microfono?" -#: client/scenes/lobby_gui.cpp:1283 +#: client/scenes/lobby_gui.cpp:1212 msgid "Enable eye tracking?" msgstr "Attivare il tracciamento oculare?" -#: client/scenes/lobby_gui.cpp:1288 +#: client/scenes/lobby_gui.cpp:1217 msgid "Enable face tracking?" msgstr "Attivare il tracciamento facciale?" -#: client/scenes/lobby_gui.cpp:1293 +#: client/scenes/lobby_gui.cpp:1222 msgid "Enable body tracking?" msgstr "Attivare il tracciamento del corpo?" -#: client/scenes/lobby_gui.cpp:1301 +#: client/scenes/lobby_gui.cpp:1230 msgid "Welcome to WiVRn" msgstr "Benvenuto su WiVRn" -#: client/scenes/lobby_gui.cpp:1329 +#: client/scenes/lobby_gui.cpp:1258 msgid "Yes" msgstr "Sì" -#: client/scenes/lobby_gui.cpp:1336 +#: client/scenes/lobby_gui.cpp:1265 msgid "No" msgstr "No" -#: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001 +#: client/scenes/lobby_gui.cpp:1284 client/scenes/lobby_gui.cpp:1930 msgid "Licenses" msgstr "Licenze" -#: client/scenes/lobby_gui.cpp:1631 +#: client/scenes/lobby_gui.cpp:1560 msgid "Microphone is enabled" msgstr "Microfono attivo" -#: client/scenes/lobby_gui.cpp:1632 +#: client/scenes/lobby_gui.cpp:1561 msgid "Microphone is disabled" msgstr "Microfono disattivato" -#: client/scenes/lobby_gui.cpp:1641 +#: client/scenes/lobby_gui.cpp:1570 msgid "Hand tracking is enabled" msgstr "Tracciamento delle mani attivo" -#: client/scenes/lobby_gui.cpp:1642 +#: client/scenes/lobby_gui.cpp:1571 msgid "Hand tracking is disabled" msgstr "Tracciamento delle mani disattivato" -#: client/scenes/lobby_gui.cpp:1651 +#: client/scenes/lobby_gui.cpp:1580 msgid "Eye tracking is enabled" msgstr "Tracciamento oculare attivo" -#: client/scenes/lobby_gui.cpp:1652 +#: client/scenes/lobby_gui.cpp:1581 msgid "Eye tracking is disabled" msgstr "Tracciamento oculare disattivato" -#: client/scenes/lobby_gui.cpp:1662 +#: client/scenes/lobby_gui.cpp:1591 msgid "Face tracking is enabled" msgstr "Tracciamento facciale attivato" -#: client/scenes/lobby_gui.cpp:1663 +#: client/scenes/lobby_gui.cpp:1592 msgid "Face tracking is disabled" msgstr "Tracciamento facciale disattivato" -#: client/scenes/lobby_gui.cpp:1677 +#: client/scenes/lobby_gui.cpp:1606 msgid "Body tracking is enabled" msgstr "Tracciamento del corpo attivato" -#: client/scenes/lobby_gui.cpp:1678 +#: client/scenes/lobby_gui.cpp:1607 msgid "Body tracking is disabled" msgstr "Tracciamento del corpo disattivato" -#: client/scenes/lobby_gui.cpp:1694 +#: client/scenes/lobby_gui.cpp:1623 msgid "Add server" msgstr "Aggiungi server" -#: client/scenes/lobby_gui.cpp:1980 +#: client/scenes/lobby_gui.cpp:1909 msgid "Server list" msgstr "Elenco dei server" -#: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007 +#: client/scenes/lobby_gui.cpp:1912 client/scenes/stream_gui.cpp:954 msgid "Settings" msgstr "Impostazioni" -#: client/scenes/lobby_gui.cpp:1986 +#: client/scenes/lobby_gui.cpp:1915 msgid "Post-processing" msgstr "Post-trattamento" -#: client/scenes/lobby_gui.cpp:1989 +#: client/scenes/lobby_gui.cpp:1918 msgid "Customize" msgstr "Personalizzazione" -#: client/scenes/lobby_gui.cpp:1993 +#: client/scenes/lobby_gui.cpp:1922 msgid "Debug" msgstr "Debug" -#: client/scenes/lobby_gui.cpp:1998 +#: client/scenes/lobby_gui.cpp:1927 msgid "About" msgstr "Informazioni" -#: client/scenes/lobby_gui.cpp:2004 +#: client/scenes/lobby_gui.cpp:1933 msgid "Exit" msgstr "Esci" -#: client/scenes/lobby_gui.cpp:2021 +#: client/scenes/lobby_gui.cpp:1950 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -559,7 +560,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:2023 +#: client/scenes/lobby_gui.cpp:1952 msgid "Press the grip button to move the main window" msgstr "Premi il pulsante laterale per spostare la finestra principale" @@ -572,38 +573,38 @@ msgstr "Ambiente caricato localmente" msgid "Locally loaded environment ({})" msgstr "Ambiente caricato localmente ({})" -#: client/scenes/lobby_gui_customize.cpp:300 +#: client/scenes/lobby_gui_customize.cpp:299 #, c++-format msgid "Cannot load local environment: {}" msgstr "Impossibile caricare l'ambiente: {}" -#: client/scenes/lobby_gui_customize.cpp:333 +#: client/scenes/lobby_gui_customize.cpp:332 #, c++-format msgid "Cannot load environment list: {}" msgstr "Impossibile caricare la lista degli ambienti: {}" -#: client/scenes/lobby_gui_customize.cpp:463 +#: client/scenes/lobby_gui_customize.cpp:462 #, c++-format msgid "Author: {}" msgstr "Autore: {}" -#: client/scenes/lobby_gui_customize.cpp:467 +#: client/scenes/lobby_gui_customize.cpp:466 #, c++-format msgid "Size: {:.1f} MB" msgstr "Dimensioni: {:.1f} MB" -#: client/scenes/lobby_gui_customize.cpp:547 +#: client/scenes/lobby_gui_customize.cpp:546 msgid "Delete this model" msgstr "Elimina il modello" -#: client/scenes/lobby_gui_customize.cpp:583 -#: client/scenes/lobby_gui_customize.cpp:789 +#: client/scenes/lobby_gui_customize.cpp:582 +#: client/scenes/lobby_gui_customize.cpp:788 #, c++-format msgid "HTTP error {} when downloading {}" msgstr "Error http {} per scaricare {}" -#: client/scenes/lobby_gui_customize.cpp:591 -#: client/scenes/lobby_gui_customize.cpp:797 +#: client/scenes/lobby_gui_customize.cpp:590 +#: client/scenes/lobby_gui_customize.cpp:796 #, c++-format msgid "" "Curl error when downloading {}\n" @@ -612,186 +613,186 @@ msgstr "" "Error curle per scaricare {}\n" "{}: {}" -#: client/scenes/lobby_gui_customize.cpp:652 +#: client/scenes/lobby_gui_customize.cpp:651 #, c++-format msgid "Really delete {}?" msgstr "Eliminare {}?" -#: client/scenes/lobby_gui_customize.cpp:656 +#: client/scenes/lobby_gui_customize.cpp:655 msgid "Delete" msgstr "Elimina" -#: client/scenes/lobby_gui_customize.cpp:737 +#: client/scenes/lobby_gui_customize.cpp:736 #, c++-format msgid "Cannot load environment: {}" msgstr "Impossibile caricare l'ambiente: {}" -#: client/scenes/lobby_gui_customize.cpp:745 +#: client/scenes/lobby_gui_customize.cpp:744 msgid "Loading environment" msgstr "Caricamento ambiente" -#: client/scenes/lobby_gui_customize.cpp:824 +#: client/scenes/lobby_gui_customize.cpp:823 msgid "Download more environments" msgstr "Scaricare più ambienti" -#: client/scenes/lobby_gui_customize.cpp:832 +#: client/scenes/lobby_gui_customize.cpp:831 msgid "Open local glTF model" msgstr "Aprire un modello glTF" -#: client/scenes/stream_gui.cpp:175 +#: client/scenes/stream_gui.cpp:176 msgid "Defoveate" msgstr "Defoveazione" -#: client/scenes/stream_gui.cpp:177 +#: client/scenes/stream_gui.cpp:178 msgid "Network" msgstr "Rete" -#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369 +#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370 msgid "Download" msgstr "Download" -#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370 +#: client/scenes/stream_gui.cpp:179 client/scenes/stream_gui.cpp:371 msgid "Upload" msgstr "Upload" -#: client/scenes/stream_gui.cpp:247 +#: client/scenes/stream_gui.cpp:248 #, c++-format msgid "Decoder {}" msgstr "Decoder {}" -#: client/scenes/stream_gui.cpp:259 +#: client/scenes/stream_gui.cpp:260 msgid "Timings [ms]" msgstr "Durata [ms]" -#: client/scenes/stream_gui.cpp:319 +#: client/scenes/stream_gui.cpp:320 msgid "Encode" msgstr "Compressione" -#: client/scenes/stream_gui.cpp:320 +#: client/scenes/stream_gui.cpp:321 msgid "Send" msgstr "Invio" -#: client/scenes/stream_gui.cpp:321 +#: client/scenes/stream_gui.cpp:322 msgid "Receive" msgstr "Ricezione" -#: client/scenes/stream_gui.cpp:322 +#: client/scenes/stream_gui.cpp:323 msgid "Decode" msgstr "Decodifica" -#: client/scenes/stream_gui.cpp:323 +#: client/scenes/stream_gui.cpp:324 msgid "Blitted" msgstr "Copiato" -#: client/scenes/stream_gui.cpp:324 +#: client/scenes/stream_gui.cpp:325 msgid "Displayed" msgstr "Visualizzato" -#: client/scenes/stream_gui.cpp:325 +#: client/scenes/stream_gui.cpp:326 msgid "Predicted" msgstr "Previsto" -#: client/scenes/stream_gui.cpp:344 +#: client/scenes/stream_gui.cpp:345 #, c++-format msgid "Estimated motion to photons latency: {}ms" msgstr "Latenza stimata da movimento a fotoni: {}ms" -#: client/scenes/stream_gui.cpp:349 +#: client/scenes/stream_gui.cpp:350 msgid "Press the grip button to move the window" msgstr "Premi il pulsante laterale per spostare la finestra" -#: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738 +#: client/scenes/stream_gui.cpp:352 client/scenes/stream_gui.cpp:684 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:373 +#: client/scenes/stream_gui.cpp:374 msgid "Motion to photon latency" msgstr "Latenza da movimento a fotoni" -#: client/scenes/stream_gui.cpp:458 +#: client/scenes/stream_gui.cpp:404 msgid "Bitrate:" msgstr "Velocità di trasmissione" -#: client/scenes/stream_gui.cpp:468 +#: client/scenes/stream_gui.cpp:414 msgid "Click to adjust bitrate" msgstr "Clicca per cambiare la velocità di trasmissione" -#: client/scenes/stream_gui.cpp:532 +#: client/scenes/stream_gui.cpp:478 msgid "Foveation center override" msgstr "Centro di foveazione manuale" -#: client/scenes/stream_gui.cpp:535 +#: client/scenes/stream_gui.cpp:481 msgid "Enable" msgstr "Attiva" -#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614 +#: client/scenes/stream_gui.cpp:489 client/scenes/stream_gui.cpp:560 #, c++-format msgid "Height {:.1f} deg" msgstr "Altezza {:.1f} deg" -#: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615 +#: client/scenes/stream_gui.cpp:490 client/scenes/stream_gui.cpp:561 #, c++-format msgid "Distance {:.2f} m" msgstr "Distanza {:.2f} m" -#: client/scenes/stream_gui.cpp:545 +#: client/scenes/stream_gui.cpp:491 msgid "Default" msgstr "Reimposta" -#: client/scenes/stream_gui.cpp:556 +#: client/scenes/stream_gui.cpp:502 msgid "Change" msgstr "Cambia" -#: client/scenes/stream_gui.cpp:588 +#: client/scenes/stream_gui.cpp:534 msgid "Use the right thumbstick to adjust the bitrate" msgstr "Usa lo stick destro per cambiare la velocità di trasmissione" -#: client/scenes/stream_gui.cpp:589 +#: client/scenes/stream_gui.cpp:535 msgid "Press A to go back" msgstr "Premi A per tornare indietro" -#: client/scenes/stream_gui.cpp:590 +#: client/scenes/stream_gui.cpp:536 #, c++-format msgid "Bitrate: {}Mbit/s" msgstr "Velocità di trasmissione: {}Mbit/s" -#: client/scenes/stream_gui.cpp:612 +#: client/scenes/stream_gui.cpp:558 msgid "Use the thumbsticks to move the foveation center" msgstr "Usa gli stick per spostare il centro di foveazione" -#: client/scenes/stream_gui.cpp:613 +#: client/scenes/stream_gui.cpp:559 msgid "Press A to save or B to cancel" msgstr "A per salvare, B per annullare" -#: client/scenes/stream_gui.cpp:671 +#: client/scenes/stream_gui.cpp:617 msgid "Running XR applications:" msgstr "Applicazioni XR avviate:" -#: client/scenes/stream_gui.cpp:688 +#: client/scenes/stream_gui.cpp:634 msgid "Overlays" msgstr "Overlays" -#: client/scenes/stream_gui.cpp:727 +#: client/scenes/stream_gui.cpp:673 msgid "Request to quit, may be ignored by the application" msgstr "Chiede di chiudere, può essere ignorato dall'applicazione" -#: client/scenes/stream_gui.cpp:993 +#: client/scenes/stream_gui.cpp:940 msgid "Applications" msgstr "Applicazioni" -#: client/scenes/stream_gui.cpp:996 +#: client/scenes/stream_gui.cpp:943 msgid "Start" msgstr "Avvio" -#: client/scenes/stream_gui.cpp:1010 +#: client/scenes/stream_gui.cpp:957 msgid "Stats" msgstr "Statistiche" -#: client/scenes/stream_gui.cpp:1016 +#: client/scenes/stream_gui.cpp:963 msgid "Statistics overlay" msgstr "Solo statistiche" -#: client/scenes/stream_gui.cpp:1019 +#: client/scenes/stream_gui.cpp:966 msgid "Compact view" msgstr "Modalità compatta" @@ -810,88 +811,3 @@ msgstr "Impossibile verificare il PIN" #: client/wivrn_client.cpp:182 msgid "Pairing is disabled on server" msgstr "L'associazione è disattivata sul server" - -#~ msgid "Stream resolution" -#~ msgstr "Risoluzione di streaming" - -#~ msgid "Resolution scale" -#~ msgstr "Scala di risoluzione" - -#~ msgid "Reproject" -#~ msgstr "Riproiezione" - -#~ msgid "Blit" -#~ msgstr "Copia" - -#~ msgid "Enable video passthrough in lobby" -#~ msgstr "Abilita la visualizzazione reale in ingresso" - -#~ 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" - -#~ msgid "" -#~ "Connection ready\n" -#~ "Start a VR application on your computer" -#~ msgstr "" -#~ "Connessione pronta\n" -#~ "Avvia un'applicazione VR sul computer" - -#, c++-format -#~ msgid "" -#~ "Connection ready\n" -#~ "Start a VR application on {}" -#~ msgstr "" -#~ "Connessione pronta\n" -#~ "Avvia un'applicazione VR su {}" - -#~ msgid "Show performance metrics" -#~ msgstr "Mostra metriche delle prestazioni" - -#~ msgid "Overlay can be toggled by pressing both thumbsticks" -#~ msgstr "" -#~ "È possibile alternare la visualizzazione premendo entrambi i joystick" - -#~ msgid "" -#~ "Press A or X or put your palm up\n" -#~ "to move the main window" -#~ msgstr "" -#~ "Premi A, X o punta il palmo della mano verso l'alto\n" -#~ "per spostare la finestra principale" - -#~ msgid "Press A or X to move the main window" -#~ msgstr "Premi A o X per spostare la finestra principale" From bb01f396f2aabf22e6527f27364d0daa3445396b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udio=20=27Patola=27=20Sampaio?= Date: Sun, 19 Apr 2026 20:31:57 +0200 Subject: [PATCH 39/47] updated pt_BR strings --- locale/pt_BR/wivrn.po | 600 +++++++++++++++++++++--------------------- 1 file changed, 301 insertions(+), 299 deletions(-) diff --git a/locale/pt_BR/wivrn.po b/locale/pt_BR/wivrn.po index 77c33053..a64cce2b 100644 --- a/locale/pt_BR/wivrn.po +++ b/locale/pt_BR/wivrn.po @@ -1,7 +1,7 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the WiVRn package. # -# SPDX-FileCopyrightText: 2025, 2026 Claudio Sampaio (Patola) +# SPDX-FileCopyrightText: 2025-2026 Claudio Sampaio (Patola) # LuckShiba , 2025. # # SPDX-FileCopyrightText: 2025 myghi63 @@ -11,202 +11,61 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-02-27 16:03+0100\n" -"PO-Revision-Date: 2026-02-28 16:29+0100\n" +"POT-Creation-Date: 2026-04-19 09:14+0200\n" +"PO-Revision-Date: 2026-04-19 20:30+0200\n" "Last-Translator: Claudio Sampaio (Patola) \n" -"Language-Team: Portuguese <>\n" +"Language-Team: Portuguese \n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Lokalize 25.12.2\n" +"X-Generator: Lokalize 26.04.0\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: client/scene.cpp:73 msgid "No supported swapchain format" msgstr "Sem formato de cadeia de troca suportado" -#: client/scenes/app_launcher.cpp:127 +#: client/scenes/app_launcher.cpp:119 msgid "Connected to WiVRn server" msgstr "Conectado ao servidor WiVRn" -#: client/scenes/app_launcher.cpp:129 +#: client/scenes/app_launcher.cpp:121 #, c++-format msgid "Connected to {}" msgstr "Conectado a {}" -#: client/scenes/app_launcher.cpp:135 +#: client/scenes/app_launcher.cpp:127 msgid "Start an application on the server to start streaming." msgstr "Abra um aplicativo no servidor para iniciar o streaming." -#: client/scenes/app_launcher.cpp:145 +#: client/scenes/app_launcher.cpp:137 msgid "Start an application on your computer or select one to start streaming." msgstr "" "Abra um aplicativo no seu computador ou selecione um para iniciar o " "streaming." -#: client/scenes/app_launcher.cpp:147 +#: client/scenes/app_launcher.cpp:139 #, 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.cpp:230 -msgid "Incompatible WiVRn server: no protocol field in TXT" -msgstr "Servidor WiVRn incompatível: sem campo protocolo no TXT" - -#: client/scenes/lobby.cpp:233 -#, c++-format -msgid "Incompatible WiVRn server protocol (client: {}, server: {})" -msgstr "Protocolo incompatível de servidor WiVRn (cliente: {}, servidor: {})" - -#: client/scenes/lobby.cpp:248 -#, c++-format -msgid "Cannot resolve hostname: {}" -msgstr "Incapaz de resolver hostname: {}" - -#: client/scenes/lobby.cpp:335 client/scenes/lobby.cpp:341 -#, c++-format -msgid "Cannot connect to {} ({}): {}" -msgstr "Incapaz de conectar a {} ({}): {}" - -#: client/scenes/lobby.cpp:424 -msgid "Waiting for connection" -msgstr "Aguardando conexão" - -#: client/scenes/lobby.cpp:1316 -msgid "Passthrough" -msgstr "Passthrough" - -#: client/scenes/lobby.cpp:1328 -msgid "Default environment" -msgstr "Ambiente default" - -#: client/scenes/lobby_gui.cpp:101 -msgctxt "openxr_post_processing" -msgid "Normal" -msgstr "Normal" - -#: client/scenes/lobby_gui.cpp:104 -msgctxt "openxr_post_processing" -msgid "Quality" -msgstr "Qualidade" - -#: client/scenes/lobby_gui.cpp:106 -msgctxt "openxr_post_processing" -msgid "Disabled" -msgstr "Desabilitado" - -#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254 -#: client/scenes/stream_gui.cpp:1026 -msgid "Disconnect" -msgstr "Desconectar" - -#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264 -#: client/scenes/lobby_gui_customize.cpp:753 -#: client/scenes/lobby_gui_customize.cpp:844 -#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022 -msgid "Close" -msgstr "Fechar" - -#: client/scenes/lobby_gui.cpp:140 -msgid "Connection" -msgstr "Conexão" - -#: client/scenes/lobby_gui.cpp:142 -#, c++-format -msgid "Connection to {}" -msgstr "Conexão a {}" - -#: client/scenes/lobby_gui.cpp:172 -msgid "PIN" -msgstr "PIN" - -#: client/scenes/lobby_gui.cpp:194 -msgid "Input the PIN displayed on the dashboard" -msgstr "Entre o PIN mostrado no painel" - -#: client/scenes/lobby_gui.cpp:282 -msgid "Disconnected" -msgstr "Desconectado" - -#: client/scenes/lobby_gui.cpp:284 -#, c++-format -msgid "Disconnected from {}" -msgstr "Desconectado de {}" - -#: client/scenes/lobby_gui.cpp:316 -msgid "Name" -msgstr "Nome" - -#: client/scenes/lobby_gui.cpp:327 -msgid "Address" -msgstr "Endereço" - -#: client/scenes/lobby_gui.cpp:336 -msgid "Port" -msgstr "Porta" - -#: client/scenes/lobby_gui.cpp:344 -msgid "TCP only" -msgstr "TCP somente" - -#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655 -#: client/scenes/stream_gui.cpp:978 -msgid "Cancel" -msgstr "Cancelar" - -#: client/scenes/lobby_gui.cpp:365 -msgid "Save" -msgstr "Salvar" - -#: client/scenes/lobby_gui.cpp:418 -msgid "" -"Start a WiVRn server on your\n" -"local network" -msgstr "" -"Inicie um servidor WiVRn em sua\n" -"rede local" - -#: client/scenes/lobby_gui.cpp:450 -msgid "Autoconnect" -msgstr "Autoconectar" - -#: client/scenes/lobby_gui.cpp:476 -msgid "Connect" -msgstr "Conectar" - -#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186 -msgid "Incompatible server version" -msgstr "Versão de servidor incompatível" - -#: client/scenes/lobby_gui.cpp:488 -msgid "Server not available" -msgstr "Servidor não disponível" - -#: client/scenes/lobby_gui.cpp:581 -msgctxt "language selection, replace with the name of the language" -msgid "English" -msgstr "Português (Brasil)" - -#: client/scenes/lobby_gui.cpp:595 -msgid "Language" -msgstr "Linguagem" - -#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597 -msgid "System language" -msgstr "Linguagem do Sistema" - -#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412 -msgid "Refresh rate" -msgstr "Taxa de atualização" - -#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625 -#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414 +#: client/scenes/gui_common.cpp:38 client/scenes/gui_common.cpp:64 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "Automático" -#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421 +#: client/scenes/gui_common.cpp:42 +#, c++-format +msgctxt "refresh rate selection, with reprojection" +msgid "{} ({} with space warp)" +msgstr "{} ({} com warp espacial)" + +#: client/scenes/gui_common.cpp:60 +msgid "Refresh rate" +msgstr "Taxa de atualização" + +#: client/scenes/gui_common.cpp:74 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -214,38 +73,180 @@ 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:649 client/scenes/stream_gui.cpp:439 +#: client/scenes/gui_common.cpp:101 msgid "Minimum refresh rate" msgstr "Taxa de atualização mínima" -#: client/scenes/lobby_gui.cpp:675 -msgid "Foveation level" -msgstr "Nível de foveação" +#: client/scenes/lobby.cpp:221 +msgid "Incompatible WiVRn server: no protocol field in TXT" +msgstr "Servidor WiVRn incompatível: sem campo protocolo no TXT" -#: client/scenes/lobby_gui.cpp:698 +#: client/scenes/lobby.cpp:224 +#, c++-format +msgid "Incompatible WiVRn server protocol (client: {}, server: {})" +msgstr "Protocolo incompatível de servidor WiVRn (cliente: {}, servidor: {})" + +#: client/scenes/lobby.cpp:239 +#, c++-format +msgid "Cannot resolve hostname: {}" +msgstr "Incapaz de resolver hostname: {}" + +#: client/scenes/lobby.cpp:326 client/scenes/lobby.cpp:332 +#, c++-format +msgid "Cannot connect to {} ({}): {}" +msgstr "Incapaz de conectar a {} ({}): {}" + +#: client/scenes/lobby.cpp:410 +msgid "Waiting for connection" +msgstr "Aguardando conexão" + +#: client/scenes/lobby.cpp:1298 +msgid "Passthrough" +msgstr "Passthrough" + +#: client/scenes/lobby.cpp:1310 +msgid "Default environment" +msgstr "Ambiente default" + +#: client/scenes/lobby_gui.cpp:102 +msgctxt "openxr_post_processing" +msgid "Normal" +msgstr "Normal" + +#: client/scenes/lobby_gui.cpp:105 +msgctxt "openxr_post_processing" +msgid "Quality" +msgstr "Qualidade" + +#: client/scenes/lobby_gui.cpp:107 +msgctxt "openxr_post_processing" +msgid "Disabled" +msgstr "Desabilitado" + +#: client/scenes/lobby_gui.cpp:115 client/scenes/lobby_gui.cpp:255 +#: client/scenes/stream_gui.cpp:973 +msgid "Disconnect" +msgstr "Desconectar" + +#: client/scenes/lobby_gui.cpp:135 client/scenes/lobby_gui.cpp:265 +#: client/scenes/lobby_gui_customize.cpp:752 +#: client/scenes/lobby_gui_customize.cpp:843 +#: client/scenes/lobby_gui_customize.cpp:899 client/scenes/stream_gui.cpp:969 +msgid "Close" +msgstr "Fechar" + +#: client/scenes/lobby_gui.cpp:141 +msgid "Connection" +msgstr "Conexão" + +#: client/scenes/lobby_gui.cpp:143 +#, c++-format +msgid "Connection to {}" +msgstr "Conexão a {}" + +#: client/scenes/lobby_gui.cpp:173 +msgid "PIN" +msgstr "PIN" + +#: client/scenes/lobby_gui.cpp:195 +msgid "Input the PIN displayed on the dashboard" +msgstr "Entre o PIN mostrado no painel" + +#: client/scenes/lobby_gui.cpp:283 +msgid "Disconnected" +msgstr "Desconectado" + +#: client/scenes/lobby_gui.cpp:285 +#, c++-format +msgid "Disconnected from {}" +msgstr "Desconectado de {}" + +#: client/scenes/lobby_gui.cpp:317 +msgid "Name" +msgstr "Nome" + +#: client/scenes/lobby_gui.cpp:328 +msgid "Address" +msgstr "Endereço" + +#: client/scenes/lobby_gui.cpp:337 +msgid "Port" +msgstr "Porta" + +#: client/scenes/lobby_gui.cpp:345 +msgid "TCP only" +msgstr "TCP somente" + +#: client/scenes/lobby_gui.cpp:352 client/scenes/lobby_gui_customize.cpp:654 +#: client/scenes/stream_gui.cpp:924 +msgid "Cancel" +msgstr "Cancelar" + +#: client/scenes/lobby_gui.cpp:366 +msgid "Save" +msgstr "Salvar" + +#: client/scenes/lobby_gui.cpp:419 +msgid "" +"Start a WiVRn server on your\n" +"local network" +msgstr "" +"Inicie um servidor WiVRn em sua\n" +"rede local" + +#: client/scenes/lobby_gui.cpp:451 +msgid "Autoconnect" +msgstr "Autoconectar" + +#: client/scenes/lobby_gui.cpp:477 +msgid "Connect" +msgstr "Conectar" + +#: client/scenes/lobby_gui.cpp:487 client/wivrn_client.cpp:186 +msgid "Incompatible server version" +msgstr "Versão de servidor incompatível" + +#: client/scenes/lobby_gui.cpp:489 +msgid "Server not available" +msgstr "Servidor não disponível" + +#: client/scenes/lobby_gui.cpp:582 +msgctxt "language selection, replace with the name of the language" +msgid "English" +msgstr "Português (Brasil)" + +#: client/scenes/lobby_gui.cpp:596 +msgid "Language" +msgstr "Linguagem" + +#: client/scenes/lobby_gui.cpp:596 client/scenes/lobby_gui.cpp:598 +msgid "System language" +msgstr "Linguagem do Sistema" + +#: client/scenes/lobby_gui.cpp:627 msgid "Render resolution" msgstr "Resolução de renderização" -#: client/scenes/lobby_gui.cpp:702 +#: client/scenes/lobby_gui.cpp:631 #, c-format, c++-format msgid "{}%% - {}x{} per eye" msgstr "{}%% - {}x{} por olho" -#: client/scenes/lobby_gui.cpp:713 +#: client/scenes/lobby_gui.cpp:642 #, 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:723 +#: client/scenes/lobby_gui.cpp:652 msgid "Foveated encoding" msgstr "Codificação foveada" -#: client/scenes/lobby_gui.cpp:727 +#: client/scenes/lobby_gui.cpp:656 #, c-format, c++-format msgid "{}%%" msgstr "{}%%" -#: client/scenes/lobby_gui.cpp:740 +#: client/scenes/lobby_gui.cpp:669 msgid "" "Higher values focus image quality where you look at,\n" "improving latency, power efficiency and quality." @@ -253,7 +254,7 @@ msgstr "" "Valores mais altos focalizam a qualidade de imagem a onde você olha,\n" "melhorando latência, eficiência energética e qualidade." -#: client/scenes/lobby_gui.cpp:743 +#: client/scenes/lobby_gui.cpp:672 msgid "" "Higher values focus image quality at the center,\n" "improving latency, power efficiency and quality." @@ -261,88 +262,86 @@ msgstr "" "Valores mais altos focalizam qualidade de image, no centro,\n" "melhorando latência, eficiência energética e qualidade." -#: client/scenes/lobby_gui.cpp:752 +#: client/scenes/lobby_gui.cpp:681 msgctxt "Codec" msgid "Automatic" msgstr "Automático" -#: client/scenes/lobby_gui.cpp:756 +#: client/scenes/lobby_gui.cpp:685 msgctxt "Codec" msgid "H.264" msgstr "H.264" -#: client/scenes/lobby_gui.cpp:758 +#: client/scenes/lobby_gui.cpp:687 msgctxt "Codec" msgid "H.265" msgstr "H.265" -#: client/scenes/lobby_gui.cpp:760 +#: client/scenes/lobby_gui.cpp:689 msgctxt "Codec" msgid "AV1" msgstr "AV1" -#: client/scenes/lobby_gui.cpp:768 +#: client/scenes/lobby_gui.cpp:697 msgid "Codec" msgstr "Codec" -#: client/scenes/lobby_gui.cpp:796 +#: client/scenes/lobby_gui.cpp:725 msgid "10-bit" msgstr "10-bit" -#: client/scenes/lobby_gui.cpp:812 +#: client/scenes/lobby_gui.cpp:741 msgid "Bitrate" msgstr "Bitrate" -#: client/scenes/lobby_gui.cpp:816 +#: client/scenes/lobby_gui.cpp:745 #, c++-format msgid "{}Mbit/s" msgstr "{}Mbit/s" -#: client/scenes/lobby_gui.cpp:827 +#: client/scenes/lobby_gui.cpp:756 msgid "High power mode" msgstr "Modo de alta potência" -#: client/scenes/lobby_gui.cpp:830 +#: client/scenes/lobby_gui.cpp:759 msgid "Increase power usage to allow higher resolution and refresh rate" -msgstr "" -"Aumenta a potência para permitir resolução e taxa de atualização mais altas" +msgstr "Aumenta a potência para permitir resolução e taxa de atualização mais altas" -#: client/scenes/lobby_gui.cpp:836 +#: client/scenes/lobby_gui.cpp:765 msgid "Enable microphone" msgstr "Ativar microfone" -#: client/scenes/lobby_gui.cpp:845 +#: client/scenes/lobby_gui.cpp:774 msgid "Unprocessed Microphone Audio" msgstr "Áudio Não-processado de Microfone" -#: client/scenes/lobby_gui.cpp:851 +#: client/scenes/lobby_gui.cpp:780 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" +msgstr "Força a desativação de filtros de áudio tais como cancelamento de ruído" -#: client/scenes/lobby_gui.cpp:858 +#: client/scenes/lobby_gui.cpp:787 msgid "Enable hand tracking" msgstr "Ativar rastreamento de mãos" -#: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875 -#: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900 -#: client/scenes/lobby_gui_customize.cpp:640 +#: client/scenes/lobby_gui.cpp:793 client/scenes/lobby_gui.cpp:804 +#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:829 +#: client/scenes/lobby_gui_customize.cpp:639 msgid "This feature is not supported by your headset" msgstr "Este recurso não é suportado pelo seu headset" -#: client/scenes/lobby_gui.cpp:869 +#: client/scenes/lobby_gui.cpp:798 msgid "Enable eye tracking" msgstr "Ativar rastreamento ocular" -#: client/scenes/lobby_gui.cpp:880 +#: client/scenes/lobby_gui.cpp:809 msgid "Enable face tracking" msgstr "Ativar rastreamento facial" -#: client/scenes/lobby_gui.cpp:892 +#: client/scenes/lobby_gui.cpp:821 msgid "Enable body tracking" msgstr "Ativar rastreamento corporal" -#: client/scenes/lobby_gui.cpp:905 +#: client/scenes/lobby_gui.cpp:834 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -354,11 +353,11 @@ msgstr "" "estimados\n" "com base nas posições do controle e do headset." -#: client/scenes/lobby_gui.cpp:915 +#: client/scenes/lobby_gui.cpp:844 msgid "Enable lower body tracking" msgstr "Ativar rastreamento corporal inferior" -#: client/scenes/lobby_gui.cpp:921 +#: client/scenes/lobby_gui.cpp:850 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -369,11 +368,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:924 +#: client/scenes/lobby_gui.cpp:853 msgid "Enable hip tracking" msgstr "Ativar rastreamento de quadril" -#: client/scenes/lobby_gui.cpp:930 +#: client/scenes/lobby_gui.cpp:859 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -381,11 +380,11 @@ 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:939 +#: client/scenes/lobby_gui.cpp:868 msgid "Enable in-stream window" msgstr "Habilitar janela na stream" -#: client/scenes/lobby_gui.cpp:942 +#: client/scenes/lobby_gui.cpp:871 msgid "" "Enables the configuration window to be shown while the game is streaming.\n" "If enabled, the window is activated by pressing both thumbsticks." @@ -394,23 +393,23 @@ msgstr "" "streamado.\n" "Se habilitado, a janela é ativada clicando os dois joysticks simultaneamente." -#: client/scenes/lobby_gui.cpp:946 +#: client/scenes/lobby_gui.cpp:875 msgid "Extended configuration values" msgstr "Valores de configuração estendidos" -#: client/scenes/lobby_gui.cpp:949 +#: client/scenes/lobby_gui.cpp:878 msgid "Allows unsafe configuration values, use at your own risk." msgstr "Permite valores de configuração inseguros, use por sua conta e risco." -#: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473 +#: client/scenes/lobby_gui.cpp:892 client/scenes/stream_gui.cpp:419 msgid "OpenXR post-processing" msgstr "Pós-processamento OpenXR" -#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477 +#: client/scenes/lobby_gui.cpp:896 client/scenes/stream_gui.cpp:423 msgid "Supersampling" msgstr "Supersampling" -#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498 +#: client/scenes/lobby_gui.cpp:916 client/scenes/stream_gui.cpp:444 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -418,11 +417,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:992 client/scenes/stream_gui.cpp:503 +#: client/scenes/lobby_gui.cpp:921 client/scenes/stream_gui.cpp:449 msgid "Sharpening" msgstr "Aumento de nitidez" -#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524 +#: client/scenes/lobby_gui.cpp:941 client/scenes/stream_gui.cpp:470 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -430,129 +429,129 @@ 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:1196 client/scenes/lobby_gui.cpp:1204 -#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371 +#: client/scenes/lobby_gui.cpp:1125 client/scenes/lobby_gui.cpp:1133 +#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:372 msgid "CPU time" msgstr "Tempo de CPU" -#: client/scenes/lobby_gui.cpp:1200 +#: client/scenes/lobby_gui.cpp:1129 msgid "CPU time [ms]" msgstr "Tempo de CPU [ms]" -#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218 -#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372 +#: client/scenes/lobby_gui.cpp:1139 client/scenes/lobby_gui.cpp:1147 +#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:373 msgid "GPU time" msgstr "Tempo de GPU" -#: client/scenes/lobby_gui.cpp:1214 +#: client/scenes/lobby_gui.cpp:1143 msgid "GPU time [ms]" msgstr "Tempo de GPU [ms]" -#: client/scenes/lobby_gui.cpp:1278 +#: client/scenes/lobby_gui.cpp:1207 msgid "Enable the microphone?" msgstr "Habilitar o microfone?" -#: client/scenes/lobby_gui.cpp:1283 +#: client/scenes/lobby_gui.cpp:1212 msgid "Enable eye tracking?" msgstr "Habilitar o rastreamento ocular?" -#: client/scenes/lobby_gui.cpp:1288 +#: client/scenes/lobby_gui.cpp:1217 msgid "Enable face tracking?" msgstr "Habilitar o rastreamento facial?" -#: client/scenes/lobby_gui.cpp:1293 +#: client/scenes/lobby_gui.cpp:1222 msgid "Enable body tracking?" msgstr "Habilitar o rastreamento corporal?" -#: client/scenes/lobby_gui.cpp:1301 +#: client/scenes/lobby_gui.cpp:1230 msgid "Welcome to WiVRn" msgstr "Bem vindo(a) ao WiVRn" -#: client/scenes/lobby_gui.cpp:1329 +#: client/scenes/lobby_gui.cpp:1258 msgid "Yes" msgstr "Sim" -#: client/scenes/lobby_gui.cpp:1336 +#: client/scenes/lobby_gui.cpp:1265 msgid "No" msgstr "Não" -#: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001 +#: client/scenes/lobby_gui.cpp:1284 client/scenes/lobby_gui.cpp:1930 msgid "Licenses" msgstr "Licenças" -#: client/scenes/lobby_gui.cpp:1631 +#: client/scenes/lobby_gui.cpp:1560 msgid "Microphone is enabled" msgstr "O microfone está ativado" -#: client/scenes/lobby_gui.cpp:1632 +#: client/scenes/lobby_gui.cpp:1561 msgid "Microphone is disabled" msgstr "O microfone está desativado" -#: client/scenes/lobby_gui.cpp:1641 +#: client/scenes/lobby_gui.cpp:1570 msgid "Hand tracking is enabled" msgstr "O rastreamento de mãos está ativado" -#: client/scenes/lobby_gui.cpp:1642 +#: client/scenes/lobby_gui.cpp:1571 msgid "Hand tracking is disabled" msgstr "O rastreamento de mãos está desativado" -#: client/scenes/lobby_gui.cpp:1651 +#: client/scenes/lobby_gui.cpp:1580 msgid "Eye tracking is enabled" msgstr "O rastreamento ocular está ativado" -#: client/scenes/lobby_gui.cpp:1652 +#: client/scenes/lobby_gui.cpp:1581 msgid "Eye tracking is disabled" msgstr "O rastreamento ocular está desativado" -#: client/scenes/lobby_gui.cpp:1662 +#: client/scenes/lobby_gui.cpp:1591 msgid "Face tracking is enabled" msgstr "O rastreamento facial está ativado" -#: client/scenes/lobby_gui.cpp:1663 +#: client/scenes/lobby_gui.cpp:1592 msgid "Face tracking is disabled" msgstr "O rastreamento facial está desativado" -#: client/scenes/lobby_gui.cpp:1677 +#: client/scenes/lobby_gui.cpp:1606 msgid "Body tracking is enabled" msgstr "O rastreamento corporal está ativado" -#: client/scenes/lobby_gui.cpp:1678 +#: client/scenes/lobby_gui.cpp:1607 msgid "Body tracking is disabled" msgstr "O rastreamento corporal está desativado" -#: client/scenes/lobby_gui.cpp:1694 +#: client/scenes/lobby_gui.cpp:1623 msgid "Add server" msgstr "Adicionar servidor" -#: client/scenes/lobby_gui.cpp:1980 +#: client/scenes/lobby_gui.cpp:1909 msgid "Server list" msgstr "Lista de servidores" -#: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007 +#: client/scenes/lobby_gui.cpp:1912 client/scenes/stream_gui.cpp:954 msgid "Settings" msgstr "Ajustes" -#: client/scenes/lobby_gui.cpp:1986 +#: client/scenes/lobby_gui.cpp:1915 msgid "Post-processing" msgstr "Pós-processamento" -#: client/scenes/lobby_gui.cpp:1989 +#: client/scenes/lobby_gui.cpp:1918 msgid "Customize" msgstr "Personalizar" -#: client/scenes/lobby_gui.cpp:1993 +#: client/scenes/lobby_gui.cpp:1922 msgid "Debug" msgstr "Depurar" -#: client/scenes/lobby_gui.cpp:1998 +#: client/scenes/lobby_gui.cpp:1927 msgid "About" msgstr "Sobre" -#: client/scenes/lobby_gui.cpp:2004 +#: client/scenes/lobby_gui.cpp:1933 msgid "Exit" msgstr "Sair" -#: client/scenes/lobby_gui.cpp:2021 +#: client/scenes/lobby_gui.cpp:1950 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -560,7 +559,7 @@ msgstr "" "Pressione o botão de aderência ou coloque a palma\n" "da mão para cima para mover a janela principal" -#: client/scenes/lobby_gui.cpp:2023 +#: client/scenes/lobby_gui.cpp:1952 msgid "Press the grip button to move the main window" msgstr "Pressione o botão de aderência para mover a janela principal" @@ -573,38 +572,38 @@ msgstr "Ambiente localmente carregado" msgid "Locally loaded environment ({})" msgstr "Ambiente localmente carregado ({})" -#: client/scenes/lobby_gui_customize.cpp:300 +#: client/scenes/lobby_gui_customize.cpp:299 #, c++-format msgid "Cannot load local environment: {}" msgstr "Incapaz de carregar ambiente local: {}" -#: client/scenes/lobby_gui_customize.cpp:333 +#: client/scenes/lobby_gui_customize.cpp:332 #, c++-format msgid "Cannot load environment list: {}" msgstr "Não foi possível carregar lista de ambientes: {}" -#: client/scenes/lobby_gui_customize.cpp:463 +#: client/scenes/lobby_gui_customize.cpp:462 #, c++-format msgid "Author: {}" msgstr "Autor: {}" -#: client/scenes/lobby_gui_customize.cpp:467 +#: client/scenes/lobby_gui_customize.cpp:466 #, c++-format msgid "Size: {:.1f} MB" msgstr "Tamanho: {:.1f} MB" -#: client/scenes/lobby_gui_customize.cpp:547 +#: client/scenes/lobby_gui_customize.cpp:546 msgid "Delete this model" msgstr "Remover este modelo" -#: client/scenes/lobby_gui_customize.cpp:583 -#: client/scenes/lobby_gui_customize.cpp:789 +#: client/scenes/lobby_gui_customize.cpp:582 +#: client/scenes/lobby_gui_customize.cpp:788 #, c++-format msgid "HTTP error {} when downloading {}" msgstr "Erro de HTTP {} ao baixar {}" -#: client/scenes/lobby_gui_customize.cpp:591 -#: client/scenes/lobby_gui_customize.cpp:797 +#: client/scenes/lobby_gui_customize.cpp:590 +#: client/scenes/lobby_gui_customize.cpp:796 #, c++-format msgid "" "Curl error when downloading {}\n" @@ -613,186 +612,186 @@ msgstr "" "Erro do curl ao baixar {}\n" "{}: {}" -#: client/scenes/lobby_gui_customize.cpp:652 +#: client/scenes/lobby_gui_customize.cpp:651 #, c++-format msgid "Really delete {}?" msgstr "Realmente remover {}?" -#: client/scenes/lobby_gui_customize.cpp:656 +#: client/scenes/lobby_gui_customize.cpp:655 msgid "Delete" msgstr "Remover" -#: client/scenes/lobby_gui_customize.cpp:737 +#: client/scenes/lobby_gui_customize.cpp:736 #, c++-format msgid "Cannot load environment: {}" msgstr "Não foi possível baixar ambiente: {}" -#: client/scenes/lobby_gui_customize.cpp:745 +#: client/scenes/lobby_gui_customize.cpp:744 msgid "Loading environment" msgstr "Baixando ambiente" -#: client/scenes/lobby_gui_customize.cpp:824 +#: client/scenes/lobby_gui_customize.cpp:823 msgid "Download more environments" msgstr "Baixar mais ambientes" -#: client/scenes/lobby_gui_customize.cpp:832 +#: client/scenes/lobby_gui_customize.cpp:831 msgid "Open local glTF model" msgstr "Abrir modelo local glTF" -#: client/scenes/stream_gui.cpp:175 +#: client/scenes/stream_gui.cpp:176 msgid "Defoveate" msgstr "Defoveação" -#: client/scenes/stream_gui.cpp:177 +#: client/scenes/stream_gui.cpp:178 msgid "Network" msgstr "Rede" -#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369 +#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370 msgid "Download" msgstr "Download" -#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370 +#: client/scenes/stream_gui.cpp:179 client/scenes/stream_gui.cpp:371 msgid "Upload" msgstr "Upload" -#: client/scenes/stream_gui.cpp:247 +#: client/scenes/stream_gui.cpp:248 #, c++-format msgid "Decoder {}" msgstr "Decodificador {}" -#: client/scenes/stream_gui.cpp:259 +#: client/scenes/stream_gui.cpp:260 msgid "Timings [ms]" msgstr "Tempos [ms]" -#: client/scenes/stream_gui.cpp:319 +#: client/scenes/stream_gui.cpp:320 msgid "Encode" msgstr "Codificação" -#: client/scenes/stream_gui.cpp:320 +#: client/scenes/stream_gui.cpp:321 msgid "Send" msgstr "Envio" -#: client/scenes/stream_gui.cpp:321 +#: client/scenes/stream_gui.cpp:322 msgid "Receive" msgstr "Recepção" -#: client/scenes/stream_gui.cpp:322 +#: client/scenes/stream_gui.cpp:323 msgid "Decode" msgstr "Decodificação" -#: client/scenes/stream_gui.cpp:323 +#: client/scenes/stream_gui.cpp:324 msgid "Blitted" msgstr "Blitagem" -#: client/scenes/stream_gui.cpp:324 +#: client/scenes/stream_gui.cpp:325 msgid "Displayed" msgstr "Exibição" -#: client/scenes/stream_gui.cpp:325 +#: client/scenes/stream_gui.cpp:326 msgid "Predicted" msgstr "Previsão" -#: client/scenes/stream_gui.cpp:344 +#: client/scenes/stream_gui.cpp:345 #, c++-format msgid "Estimated motion to photons latency: {}ms" msgstr "Movimento estimado para a latência de fótons: {}ms" -#: client/scenes/stream_gui.cpp:349 +#: client/scenes/stream_gui.cpp:350 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:351 client/scenes/stream_gui.cpp:738 +#: client/scenes/stream_gui.cpp:352 client/scenes/stream_gui.cpp:684 msgid "Press both thumbsticks to display the WiVRn window" msgstr "Pressione ambos os thumbsticks para mostrar a janela do WiVRn" -#: client/scenes/stream_gui.cpp:373 +#: client/scenes/stream_gui.cpp:374 msgid "Motion to photon latency" msgstr "Latência (de movimento para fótons)" -#: client/scenes/stream_gui.cpp:458 +#: client/scenes/stream_gui.cpp:404 msgid "Bitrate:" msgstr "Bitrate:" -#: client/scenes/stream_gui.cpp:468 +#: client/scenes/stream_gui.cpp:414 msgid "Click to adjust bitrate" msgstr "Clique para ajustar a bitrate" -#: client/scenes/stream_gui.cpp:532 +#: client/scenes/stream_gui.cpp:478 msgid "Foveation center override" msgstr "Ajuste do centro de foveação" -#: client/scenes/stream_gui.cpp:535 +#: client/scenes/stream_gui.cpp:481 msgid "Enable" msgstr "Habilitar" -#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614 +#: client/scenes/stream_gui.cpp:489 client/scenes/stream_gui.cpp:560 #, c++-format msgid "Height {:.1f} deg" msgstr "Altura {:.1f} graus" -#: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615 +#: client/scenes/stream_gui.cpp:490 client/scenes/stream_gui.cpp:561 #, c++-format msgid "Distance {:.2f} m" msgstr "Distância {:.2f} m" -#: client/scenes/stream_gui.cpp:545 +#: client/scenes/stream_gui.cpp:491 msgid "Default" msgstr "Padrão" -#: client/scenes/stream_gui.cpp:556 +#: client/scenes/stream_gui.cpp:502 msgid "Change" msgstr "Modificar" -#: client/scenes/stream_gui.cpp:588 +#: client/scenes/stream_gui.cpp:534 msgid "Use the right thumbstick to adjust the bitrate" msgstr "Use o analógico direito para ajustar a bitrate" -#: client/scenes/stream_gui.cpp:589 +#: client/scenes/stream_gui.cpp:535 msgid "Press A to go back" msgstr "Pressione A para voltar" -#: client/scenes/stream_gui.cpp:590 +#: client/scenes/stream_gui.cpp:536 #, c++-format msgid "Bitrate: {}Mbit/s" msgstr "Bitrate: {}Mbit/s" -#: client/scenes/stream_gui.cpp:612 +#: client/scenes/stream_gui.cpp:558 msgid "Use the thumbsticks to move the foveation center" msgstr "Use os thumbsticks para mover o centro da foveação" -#: client/scenes/stream_gui.cpp:613 +#: client/scenes/stream_gui.cpp:559 msgid "Press A to save or B to cancel" msgstr "Pressione A para salvar ou B para cancelar" -#: client/scenes/stream_gui.cpp:671 +#: client/scenes/stream_gui.cpp:617 msgid "Running XR applications:" msgstr "Aplicativos XR rodando:" -#: client/scenes/stream_gui.cpp:688 +#: client/scenes/stream_gui.cpp:634 msgid "Overlays" msgstr "Overlays" -#: client/scenes/stream_gui.cpp:727 +#: client/scenes/stream_gui.cpp:673 msgid "Request to quit, may be ignored by the application" msgstr "Requisição para sair, pode ser ignorada pelo aplicativo" -#: client/scenes/stream_gui.cpp:993 +#: client/scenes/stream_gui.cpp:940 msgid "Applications" msgstr "Aplicativos" -#: client/scenes/stream_gui.cpp:996 +#: client/scenes/stream_gui.cpp:943 msgid "Start" msgstr "Iniciar" -#: client/scenes/stream_gui.cpp:1010 +#: client/scenes/stream_gui.cpp:957 msgid "Stats" msgstr "Estatísticas" -#: client/scenes/stream_gui.cpp:1016 +#: client/scenes/stream_gui.cpp:963 msgid "Statistics overlay" msgstr "Overlay de estatísticas" -#: client/scenes/stream_gui.cpp:1019 +#: client/scenes/stream_gui.cpp:966 msgid "Compact view" msgstr "Visualização compacta" @@ -812,6 +811,9 @@ msgstr "Incapaz de verificar PIN" msgid "Pairing is disabled on server" msgstr "Pareamento está desabilitado no servidor" +#~ msgid "Foveation level" +#~ msgstr "Nível de foveação" + #~ msgid "Stream resolution" #~ msgstr "Resolução da stream" From fe40d578d73070bd559178907c3335bdc7320fda Mon Sep 17 00:00:00 2001 From: mitsuami-megane <173323057+mitsuami-megane@users.noreply.github.com> Date: Mon, 20 Apr 2026 13:28:35 +0900 Subject: [PATCH 40/47] update ja locale --- locale/ja/wivrn-dashboard.po | 12 +- locale/ja/wivrn.po | 331 ++++++++++++++++++----------------- 2 files changed, 177 insertions(+), 166 deletions(-) diff --git a/locale/ja/wivrn-dashboard.po b/locale/ja/wivrn-dashboard.po index e87b8f9f..71b217f6 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: 2026-03-03 13:37+0900\n" +"POT-Creation-Date: 2026-04-20 13:21+0900\n" "PO-Revision-Date: 2025-04-10 07:14+0900\n" "Last-Translator: Mitsuami Megane \n" "Language-Team: Japanese <>\n" @@ -603,16 +603,22 @@ msgstr "カスタム" msgid "Disabled" msgstr "無し" -#: dashboard/qml/SettingsPage.qml:191 +#: dashboard/qml/SettingsPage.qml:199 #, kde-format msgid "OpenVR compatibility library:" msgstr "OpenVR実装ライブラリー" -#: dashboard/qml/SettingsPage.qml:217 +#: dashboard/qml/SettingsPage.qml:229 #, kde-format msgid "Library path, excluding bin/linux64/vrclient.so" msgstr "ライブラリーの場所(bin/linux64/vrclient.so 無し)" +#: dashboard/qml/SettingsPage.qml:234 +#, kde-format +msgctxt "browse to choose the OpenVR compatility to use" +msgid "Browse" +msgstr "検索" + #: dashboard/qml/SteamLaunchOptions.qml:8 #, kde-format msgid "" diff --git a/locale/ja/wivrn.po b/locale/ja/wivrn.po index fdad9fed..e7a37cc9 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: 2026-03-03 13:37+0900\n" +"POT-Creation-Date: 2026-04-20 13:21+0900\n" "PO-Revision-Date: 2024-06-20 10:33+0900\n" "Last-Translator: Mitsuami Megane \n" "Language: Japanese\n" @@ -36,6 +36,33 @@ msgstr "パソコンでVRアプリを起動するか、ここからアプリを msgid "Start an application on {} or select one to start streaming." msgstr "{}でVRアプリを起動するか、ここからアプリを選択しましょう。" +#: client/scenes/gui_common.cpp:38 client/scenes/gui_common.cpp:64 +msgctxt "automatic refresh rate" +msgid "Automatic" +msgstr "自動" + +#: client/scenes/gui_common.cpp:42 +#, c++-format +msgctxt "refresh rate selection, with reprojection" +msgid "{} ({} with space warp)" +msgstr "{} ({}、スペースワープ有効)" + +#: client/scenes/gui_common.cpp:60 +msgid "Refresh rate" +msgstr "リフレッシュレート" + +#: client/scenes/gui_common.cpp:74 +msgid "" +"Select refresh rate based on measured application performance.\n" +"May cause flicker when a change happens." +msgstr "" +"アプリケーションのパフォーマンスを基づいて自動的に設定します。\n" +"変更時にチラツキが発生する可能性があります。" + +#: client/scenes/gui_common.cpp:101 +msgid "Minimum refresh rate" +msgstr "最低リフレッシュレート" + #: client/scenes/lobby.cpp:221 msgid "Incompatible WiVRn server: no protocol field in TXT" msgstr "互換性のないサーバー(プロトコルのフィールドは欠落)" @@ -67,85 +94,85 @@ msgstr "パススルー" msgid "Default environment" msgstr "デフォルトのホーム環境" -#: client/scenes/lobby_gui.cpp:101 +#: client/scenes/lobby_gui.cpp:102 msgctxt "openxr_post_processing" msgid "Normal" msgstr "ノーマル" -#: client/scenes/lobby_gui.cpp:104 +#: client/scenes/lobby_gui.cpp:105 msgctxt "openxr_post_processing" msgid "Quality" msgstr "クオリティ" -#: client/scenes/lobby_gui.cpp:106 +#: client/scenes/lobby_gui.cpp:107 msgctxt "openxr_post_processing" msgid "Disabled" msgstr "無効" -#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254 -#: client/scenes/stream_gui.cpp:1026 +#: client/scenes/lobby_gui.cpp:115 client/scenes/lobby_gui.cpp:255 +#: client/scenes/stream_gui.cpp:973 msgid "Disconnect" msgstr "切断する" -#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264 +#: client/scenes/lobby_gui.cpp:135 client/scenes/lobby_gui.cpp:265 #: client/scenes/lobby_gui_customize.cpp:752 #: client/scenes/lobby_gui_customize.cpp:843 -#: client/scenes/lobby_gui_customize.cpp:899 client/scenes/stream_gui.cpp:1022 +#: client/scenes/lobby_gui_customize.cpp:899 client/scenes/stream_gui.cpp:969 msgid "Close" msgstr "閉じる" -#: client/scenes/lobby_gui.cpp:140 +#: client/scenes/lobby_gui.cpp:141 msgid "Connection" msgstr "接続" -#: client/scenes/lobby_gui.cpp:142 +#: client/scenes/lobby_gui.cpp:143 #, c++-format msgid "Connection to {}" msgstr "{}に接続中" -#: client/scenes/lobby_gui.cpp:172 +#: client/scenes/lobby_gui.cpp:173 msgid "PIN" msgstr "暗証番号" -#: client/scenes/lobby_gui.cpp:194 +#: client/scenes/lobby_gui.cpp:195 msgid "Input the PIN displayed on the dashboard" msgstr "パソコンで表示された暗証番号を入力してください" -#: client/scenes/lobby_gui.cpp:282 +#: client/scenes/lobby_gui.cpp:283 msgid "Disconnected" msgstr "切断されました" -#: client/scenes/lobby_gui.cpp:284 +#: client/scenes/lobby_gui.cpp:285 #, c++-format msgid "Disconnected from {}" msgstr "{}から切断されました" -#: client/scenes/lobby_gui.cpp:316 +#: client/scenes/lobby_gui.cpp:317 msgid "Name" msgstr "表示名" -#: client/scenes/lobby_gui.cpp:327 +#: client/scenes/lobby_gui.cpp:328 msgid "Address" msgstr "アドレス" -#: client/scenes/lobby_gui.cpp:336 +#: client/scenes/lobby_gui.cpp:337 msgid "Port" msgstr "ポート番号" -#: client/scenes/lobby_gui.cpp:344 +#: client/scenes/lobby_gui.cpp:345 msgid "TCP only" msgstr "TCPのみを使用" -#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:654 -#: client/scenes/stream_gui.cpp:978 +#: client/scenes/lobby_gui.cpp:352 client/scenes/lobby_gui_customize.cpp:654 +#: client/scenes/stream_gui.cpp:924 msgid "Cancel" msgstr "キャンセル" -#: client/scenes/lobby_gui.cpp:365 +#: client/scenes/lobby_gui.cpp:366 msgid "Save" msgstr "保存する" -#: client/scenes/lobby_gui.cpp:418 +#: client/scenes/lobby_gui.cpp:419 msgid "" "Start a WiVRn server on your\n" "local network" @@ -153,82 +180,60 @@ msgstr "" "ローカルネットワークでWiVRnサーバーを\n" "起動してみて下さい" -#: client/scenes/lobby_gui.cpp:450 +#: client/scenes/lobby_gui.cpp:451 msgid "Autoconnect" msgstr "自動接続" -#: client/scenes/lobby_gui.cpp:476 +#: client/scenes/lobby_gui.cpp:477 msgid "Connect" msgstr "接続する" -#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186 +#: client/scenes/lobby_gui.cpp:487 client/wivrn_client.cpp:186 msgid "Incompatible server version" msgstr "互換性のないサーバーです" -#: client/scenes/lobby_gui.cpp:488 +#: client/scenes/lobby_gui.cpp:489 msgid "Server not available" msgstr "サーバーは利用不可です" -#: client/scenes/lobby_gui.cpp:581 +#: client/scenes/lobby_gui.cpp:582 msgctxt "language selection, replace with the name of the language" msgid "English" msgstr "日本語" -#: client/scenes/lobby_gui.cpp:595 +#: client/scenes/lobby_gui.cpp:596 msgid "Language" msgstr "言語" -#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597 +#: client/scenes/lobby_gui.cpp:596 client/scenes/lobby_gui.cpp:598 msgid "System language" msgstr "デバイス言語" -#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412 -msgid "Refresh rate" -msgstr "リフレッシュレート" - -#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625 -#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414 -msgctxt "automatic refresh rate" -msgid "Automatic" -msgstr "自動" - -#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421 -msgid "" -"Select refresh rate based on measured application performance.\n" -"May cause flicker when a change happens." -msgstr "" -"アプリケーションのパフォーマンスを基づいて自動的に設定します。\n" -"変更時にチラツキが発生する可能性があります。" - -#: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439 -msgid "Minimum refresh rate" -msgstr "最低リフレッシュレート" - -#: client/scenes/lobby_gui.cpp:673 +#: client/scenes/lobby_gui.cpp:627 msgid "Render resolution" msgstr "レンダー解像度" -#: client/scenes/lobby_gui.cpp:677 +#: client/scenes/lobby_gui.cpp:631 #, c-format, c++-format msgid "{}%% - {}x{} per eye" msgstr "{}%% - 目あたり{}x{}" -#: client/scenes/lobby_gui.cpp:688 +#: client/scenes/lobby_gui.cpp:642 #, c++-format msgid "Resolution larger than {}x{} may not be supported by the headset" msgstr "" "{}x{}以上の解像度は、お使いのヘッドセットではサポートされない場合があります。" -#: client/scenes/lobby_gui.cpp:698 +#: client/scenes/lobby_gui.cpp:652 msgid "Foveated encoding" msgstr "エンコード・フォビエーション" -#: client/scenes/lobby_gui.cpp:702 +#: client/scenes/lobby_gui.cpp:656 #, c-format, c++-format msgid "{}%%" msgstr "{}%%" -#: client/scenes/lobby_gui.cpp:715 +#: client/scenes/lobby_gui.cpp:669 msgid "" "Higher values focus image quality where you look at,\n" "improving latency, power efficiency and quality." @@ -236,7 +241,7 @@ msgstr "" "高い方は、視線方向の画質を最適化し、\n" "応答速度、電力効率、画質を向上させます。" -#: client/scenes/lobby_gui.cpp:718 +#: client/scenes/lobby_gui.cpp:672 msgid "" "Higher values focus image quality at the center,\n" "improving latency, power efficiency and quality." @@ -244,86 +249,86 @@ msgstr "" "高い方は、画面の中央の画質を最適化し、\n" "応答速度、電力効率、画質を向上させます。" -#: client/scenes/lobby_gui.cpp:727 +#: client/scenes/lobby_gui.cpp:681 msgctxt "Codec" msgid "Automatic" msgstr "自動" -#: client/scenes/lobby_gui.cpp:731 +#: client/scenes/lobby_gui.cpp:685 msgctxt "Codec" msgid "H.264" msgstr "H.264" -#: client/scenes/lobby_gui.cpp:733 +#: client/scenes/lobby_gui.cpp:687 msgctxt "Codec" msgid "H.265" msgstr "H.265" -#: client/scenes/lobby_gui.cpp:735 +#: client/scenes/lobby_gui.cpp:689 msgctxt "Codec" msgid "AV1" msgstr "AV1" -#: client/scenes/lobby_gui.cpp:743 +#: client/scenes/lobby_gui.cpp:697 msgid "Codec" msgstr "コーデック" -#: client/scenes/lobby_gui.cpp:771 +#: client/scenes/lobby_gui.cpp:725 msgid "10-bit" msgstr "10ビット" -#: client/scenes/lobby_gui.cpp:787 +#: client/scenes/lobby_gui.cpp:741 msgid "Bitrate" msgstr "ビットレート" -#: client/scenes/lobby_gui.cpp:791 +#: client/scenes/lobby_gui.cpp:745 #, c++-format msgid "{}Mbit/s" msgstr "{}Mbps" -#: client/scenes/lobby_gui.cpp:802 +#: client/scenes/lobby_gui.cpp:756 msgid "High power mode" msgstr "高電力モード" -#: client/scenes/lobby_gui.cpp:805 +#: client/scenes/lobby_gui.cpp:759 msgid "Increase power usage to allow higher resolution and refresh rate" msgstr "HMDの性能問題を緩和するため、電力を増加させます。" -#: client/scenes/lobby_gui.cpp:811 +#: client/scenes/lobby_gui.cpp:765 msgid "Enable microphone" msgstr "マイクを有効する" -#: client/scenes/lobby_gui.cpp:820 +#: client/scenes/lobby_gui.cpp:774 msgid "Unprocessed Microphone Audio" msgstr "未処理のマイク音声" -#: client/scenes/lobby_gui.cpp:826 +#: client/scenes/lobby_gui.cpp:780 msgid "Force disable audio filters, such as noise cancellation" msgstr "ノイズ除去などのフィルターを無効化する" -#: client/scenes/lobby_gui.cpp:833 +#: client/scenes/lobby_gui.cpp:787 msgid "Enable hand tracking" msgstr "ハンドトラッキングを有効する" -#: client/scenes/lobby_gui.cpp:839 client/scenes/lobby_gui.cpp:850 -#: client/scenes/lobby_gui.cpp:860 client/scenes/lobby_gui.cpp:875 +#: client/scenes/lobby_gui.cpp:793 client/scenes/lobby_gui.cpp:804 +#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:829 #: client/scenes/lobby_gui_customize.cpp:639 msgid "This feature is not supported by your headset" msgstr "デバイスはこの機能をサポートしていません" -#: client/scenes/lobby_gui.cpp:844 +#: client/scenes/lobby_gui.cpp:798 msgid "Enable eye tracking" msgstr "アイトラッキングを有効する" -#: client/scenes/lobby_gui.cpp:855 +#: client/scenes/lobby_gui.cpp:809 msgid "Enable face tracking" msgstr "顔トラッキングを有効する" -#: client/scenes/lobby_gui.cpp:867 +#: client/scenes/lobby_gui.cpp:821 msgid "Enable body tracking" msgstr "ボディラッキングを有効する" -#: client/scenes/lobby_gui.cpp:880 +#: client/scenes/lobby_gui.cpp:834 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -334,11 +339,11 @@ msgstr "" "そうでなければ、トラッキングデータはHMDとコントローラーの情報から推測されるこ" "とになる。" -#: client/scenes/lobby_gui.cpp:890 +#: client/scenes/lobby_gui.cpp:844 msgid "Enable lower body tracking" msgstr "下半身トラッキングを有効する" -#: client/scenes/lobby_gui.cpp:896 +#: client/scenes/lobby_gui.cpp:850 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -348,11 +353,11 @@ msgstr "" "Quest設定・動きのトラッキング・ジェスチャーコントロールとボディトラッキングを" "有効する必要がある。" -#: client/scenes/lobby_gui.cpp:899 +#: client/scenes/lobby_gui.cpp:853 msgid "Enable hip tracking" msgstr "腰のトラッキングを有効する" -#: client/scenes/lobby_gui.cpp:905 +#: client/scenes/lobby_gui.cpp:859 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -360,11 +365,11 @@ msgstr "" "下半身トラッキングが有効な場合に使用可能。\n" "腰トラッカーを持ってる方は無効にしましょう。" -#: client/scenes/lobby_gui.cpp:914 +#: client/scenes/lobby_gui.cpp:868 msgid "Enable in-stream window" msgstr "ストリーミング中の設定パネル" -#: client/scenes/lobby_gui.cpp:917 +#: client/scenes/lobby_gui.cpp:871 msgid "" "Enables the configuration window to be shown while the game is streaming.\n" "If enabled, the window is activated by pressing both thumbsticks." @@ -372,23 +377,23 @@ msgstr "" "ストリーミング中にも設定パネルを表示できるようにします。\n" "両方のサムスティックを同時に押して切り替えることができます。" -#: client/scenes/lobby_gui.cpp:921 +#: client/scenes/lobby_gui.cpp:875 msgid "Extended configuration values" msgstr "設定に対する制限の緩和" -#: client/scenes/lobby_gui.cpp:924 +#: client/scenes/lobby_gui.cpp:878 msgid "Allows unsafe configuration values, use at your own risk." msgstr "不安定な状態が発生しないよう、十分にご注意ください。" -#: client/scenes/lobby_gui.cpp:938 client/scenes/stream_gui.cpp:473 +#: client/scenes/lobby_gui.cpp:892 client/scenes/stream_gui.cpp:419 msgid "OpenXR post-processing" msgstr "OpenXRポストエフェクト" -#: client/scenes/lobby_gui.cpp:942 client/scenes/stream_gui.cpp:477 +#: client/scenes/lobby_gui.cpp:896 client/scenes/stream_gui.cpp:423 msgid "Supersampling" msgstr "スーパーサンプリング" -#: client/scenes/lobby_gui.cpp:962 client/scenes/stream_gui.cpp:498 +#: client/scenes/lobby_gui.cpp:916 client/scenes/stream_gui.cpp:444 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -396,11 +401,11 @@ msgstr "" "コントラストが高い部分のギザギザを低減する。\n" "ストリームの解像度は、HMDの解像度より高い場合は有用です。" -#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:503 +#: client/scenes/lobby_gui.cpp:921 client/scenes/stream_gui.cpp:449 msgid "Sharpening" msgstr "シャープ" -#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:524 +#: client/scenes/lobby_gui.cpp:941 client/scenes/stream_gui.cpp:470 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -408,129 +413,129 @@ msgstr "" "ぼかしを低減し、コントラストが高い部分の鮮明度を向上する。\n" "ストリームの解像度は、HMDの解像度より低い場合に有用です。" -#: client/scenes/lobby_gui.cpp:1171 client/scenes/lobby_gui.cpp:1179 -#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371 +#: client/scenes/lobby_gui.cpp:1125 client/scenes/lobby_gui.cpp:1133 +#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:372 msgid "CPU time" msgstr "CPU使用時間" -#: client/scenes/lobby_gui.cpp:1175 +#: client/scenes/lobby_gui.cpp:1129 msgid "CPU time [ms]" msgstr "CPU使用時間、ミリ秒" -#: client/scenes/lobby_gui.cpp:1185 client/scenes/lobby_gui.cpp:1193 -#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372 +#: client/scenes/lobby_gui.cpp:1139 client/scenes/lobby_gui.cpp:1147 +#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:373 msgid "GPU time" msgstr "GPU使用時間" -#: client/scenes/lobby_gui.cpp:1189 +#: client/scenes/lobby_gui.cpp:1143 msgid "GPU time [ms]" msgstr "GPU使用時間、ミリ秒" -#: client/scenes/lobby_gui.cpp:1253 +#: client/scenes/lobby_gui.cpp:1207 msgid "Enable the microphone?" msgstr "マイクを有効にしますか?" -#: client/scenes/lobby_gui.cpp:1258 +#: client/scenes/lobby_gui.cpp:1212 msgid "Enable eye tracking?" msgstr "アイトラッキングを有効にしますか?" -#: client/scenes/lobby_gui.cpp:1263 +#: client/scenes/lobby_gui.cpp:1217 msgid "Enable face tracking?" msgstr "フェースラッキングを有効にしますか?" -#: client/scenes/lobby_gui.cpp:1268 +#: client/scenes/lobby_gui.cpp:1222 msgid "Enable body tracking?" msgstr "ボディトラッキングを有効にしますか?" -#: client/scenes/lobby_gui.cpp:1276 +#: client/scenes/lobby_gui.cpp:1230 msgid "Welcome to WiVRn" msgstr "WiVRnへようこそ!" -#: client/scenes/lobby_gui.cpp:1304 +#: client/scenes/lobby_gui.cpp:1258 msgid "Yes" msgstr "はい" -#: client/scenes/lobby_gui.cpp:1311 +#: client/scenes/lobby_gui.cpp:1265 msgid "No" msgstr "いいえ" -#: client/scenes/lobby_gui.cpp:1330 client/scenes/lobby_gui.cpp:1976 +#: client/scenes/lobby_gui.cpp:1284 client/scenes/lobby_gui.cpp:1930 msgid "Licenses" msgstr "ライセンス" -#: client/scenes/lobby_gui.cpp:1606 +#: client/scenes/lobby_gui.cpp:1560 msgid "Microphone is enabled" msgstr "マイクは有効です" -#: client/scenes/lobby_gui.cpp:1607 +#: client/scenes/lobby_gui.cpp:1561 msgid "Microphone is disabled" msgstr "マイクは無効です" -#: client/scenes/lobby_gui.cpp:1616 +#: client/scenes/lobby_gui.cpp:1570 msgid "Hand tracking is enabled" msgstr "ハンドトラッキングは有効です" -#: client/scenes/lobby_gui.cpp:1617 +#: client/scenes/lobby_gui.cpp:1571 msgid "Hand tracking is disabled" msgstr "ハンドラッキングは無効です" -#: client/scenes/lobby_gui.cpp:1626 +#: client/scenes/lobby_gui.cpp:1580 msgid "Eye tracking is enabled" msgstr "アイトラッキングは有効です" -#: client/scenes/lobby_gui.cpp:1627 +#: client/scenes/lobby_gui.cpp:1581 msgid "Eye tracking is disabled" msgstr "アイトラッキングは無効です" -#: client/scenes/lobby_gui.cpp:1637 +#: client/scenes/lobby_gui.cpp:1591 msgid "Face tracking is enabled" msgstr "フェーストラッキングは有効です" -#: client/scenes/lobby_gui.cpp:1638 +#: client/scenes/lobby_gui.cpp:1592 msgid "Face tracking is disabled" msgstr "フェーストラッキングは無効です" -#: client/scenes/lobby_gui.cpp:1652 +#: client/scenes/lobby_gui.cpp:1606 msgid "Body tracking is enabled" msgstr "ボディトラッキングは有効です" -#: client/scenes/lobby_gui.cpp:1653 +#: client/scenes/lobby_gui.cpp:1607 msgid "Body tracking is disabled" msgstr "ボディトラッキングは無効です" -#: client/scenes/lobby_gui.cpp:1669 +#: client/scenes/lobby_gui.cpp:1623 msgid "Add server" msgstr "サーバーを追加する" -#: client/scenes/lobby_gui.cpp:1955 +#: client/scenes/lobby_gui.cpp:1909 msgid "Server list" msgstr "サーバー" -#: client/scenes/lobby_gui.cpp:1958 client/scenes/stream_gui.cpp:1007 +#: client/scenes/lobby_gui.cpp:1912 client/scenes/stream_gui.cpp:954 msgid "Settings" msgstr "設定" -#: client/scenes/lobby_gui.cpp:1961 +#: client/scenes/lobby_gui.cpp:1915 msgid "Post-processing" msgstr "ポストエフェクト" -#: client/scenes/lobby_gui.cpp:1964 +#: client/scenes/lobby_gui.cpp:1918 msgid "Customize" msgstr "カスタマイズ" -#: client/scenes/lobby_gui.cpp:1968 +#: client/scenes/lobby_gui.cpp:1922 msgid "Debug" msgstr "デバッグ" -#: client/scenes/lobby_gui.cpp:1973 +#: client/scenes/lobby_gui.cpp:1927 msgid "About" msgstr "WiVRnについて" -#: client/scenes/lobby_gui.cpp:1979 +#: client/scenes/lobby_gui.cpp:1933 msgid "Exit" msgstr "完了" -#: client/scenes/lobby_gui.cpp:1996 +#: client/scenes/lobby_gui.cpp:1950 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -538,7 +543,7 @@ msgstr "" "メイン・パネルを動かすには、グリップを握るか、\n" "手のひらを上向きにしましょう。" -#: client/scenes/lobby_gui.cpp:1998 +#: client/scenes/lobby_gui.cpp:1952 msgid "Press the grip button to move the main window" msgstr "グリップを握ってパネルを動かしましょう。" @@ -617,160 +622,160 @@ msgstr "ホーム環境をダウンロード" msgid "Open local glTF model" msgstr "glTFファイルを開く" -#: client/scenes/stream_gui.cpp:175 +#: client/scenes/stream_gui.cpp:176 msgid "Defoveate" msgstr "フォビエーション解除" -#: client/scenes/stream_gui.cpp:177 +#: client/scenes/stream_gui.cpp:178 msgid "Network" msgstr "ネットワーク" -#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369 +#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370 msgid "Download" msgstr "ダウンロード" -#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370 +#: client/scenes/stream_gui.cpp:179 client/scenes/stream_gui.cpp:371 msgid "Upload" msgstr "アップロード" -#: client/scenes/stream_gui.cpp:247 +#: client/scenes/stream_gui.cpp:248 #, c++-format msgid "Decoder {}" msgstr "デコーダー {}" -#: client/scenes/stream_gui.cpp:259 +#: client/scenes/stream_gui.cpp:260 msgid "Timings [ms]" msgstr "タイミング、ミリ秒" -#: client/scenes/stream_gui.cpp:319 +#: client/scenes/stream_gui.cpp:320 msgid "Encode" msgstr "動画エンコード" -#: client/scenes/stream_gui.cpp:320 +#: client/scenes/stream_gui.cpp:321 msgid "Send" msgstr "送信" -#: client/scenes/stream_gui.cpp:321 +#: client/scenes/stream_gui.cpp:322 msgid "Receive" msgstr "受信" -#: client/scenes/stream_gui.cpp:322 +#: client/scenes/stream_gui.cpp:323 msgid "Decode" msgstr "デコード" -#: client/scenes/stream_gui.cpp:323 +#: client/scenes/stream_gui.cpp:324 msgid "Blitted" msgstr "描画" -#: client/scenes/stream_gui.cpp:324 +#: client/scenes/stream_gui.cpp:325 msgid "Displayed" msgstr "表示" -#: client/scenes/stream_gui.cpp:325 +#: client/scenes/stream_gui.cpp:326 msgid "Predicted" msgstr "予測時間" -#: client/scenes/stream_gui.cpp:344 +#: client/scenes/stream_gui.cpp:345 #, c++-format msgid "Estimated motion to photons latency: {}ms" msgstr "「Motion-to-photon」推定遅延 {}ミリ秒" -#: client/scenes/stream_gui.cpp:349 +#: client/scenes/stream_gui.cpp:350 msgid "Press the grip button to move the window" msgstr "グリップを握ってパネルを動かしましょう。" -#: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738 +#: client/scenes/stream_gui.cpp:352 client/scenes/stream_gui.cpp:684 msgid "Press both thumbsticks to display the WiVRn window" msgstr "両方のサムスティックを同時に押すことで設定表示" -#: client/scenes/stream_gui.cpp:373 +#: client/scenes/stream_gui.cpp:374 msgid "Motion to photon latency" msgstr "「Motion-to-photon」遅延" -#: client/scenes/stream_gui.cpp:458 +#: client/scenes/stream_gui.cpp:404 msgid "Bitrate:" msgstr "ビットレート:" -#: client/scenes/stream_gui.cpp:468 +#: client/scenes/stream_gui.cpp:414 msgid "Click to adjust bitrate" msgstr "クリックしてビットレートを調整" -#: client/scenes/stream_gui.cpp:532 +#: client/scenes/stream_gui.cpp:478 msgid "Foveation center override" msgstr "光学中心の調整" -#: client/scenes/stream_gui.cpp:535 +#: client/scenes/stream_gui.cpp:481 msgid "Enable" msgstr "有効" -#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614 +#: client/scenes/stream_gui.cpp:489 client/scenes/stream_gui.cpp:560 #, c++-format msgid "Height {:.1f} deg" msgstr "仰角 {:.1f}°" -#: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615 +#: client/scenes/stream_gui.cpp:490 client/scenes/stream_gui.cpp:561 #, c++-format msgid "Distance {:.2f} m" msgstr "距離 {:.2f}m" -#: client/scenes/stream_gui.cpp:545 +#: client/scenes/stream_gui.cpp:491 msgid "Default" msgstr "デフォルト" -#: client/scenes/stream_gui.cpp:556 +#: client/scenes/stream_gui.cpp:502 msgid "Change" msgstr "編集" -#: client/scenes/stream_gui.cpp:588 +#: client/scenes/stream_gui.cpp:534 msgid "Use the right thumbstick to adjust the bitrate" msgstr "右スティックでビットレートを調整しましょう" -#: client/scenes/stream_gui.cpp:589 +#: client/scenes/stream_gui.cpp:535 msgid "Press A to go back" msgstr "「A」を押して戻る" -#: client/scenes/stream_gui.cpp:590 +#: client/scenes/stream_gui.cpp:536 #, c++-format msgid "Bitrate: {}Mbit/s" msgstr "ビットレート:{}Mbps" -#: client/scenes/stream_gui.cpp:612 +#: client/scenes/stream_gui.cpp:558 msgid "Use the thumbsticks to move the foveation center" msgstr "ジョイスティックを使って中心点を調整しましょう。" -#: client/scenes/stream_gui.cpp:613 +#: client/scenes/stream_gui.cpp:559 msgid "Press A to save or B to cancel" msgstr "AかBを押してキャンセル。" -#: client/scenes/stream_gui.cpp:671 +#: client/scenes/stream_gui.cpp:617 msgid "Running XR applications:" msgstr "XRアプリの実行" -#: client/scenes/stream_gui.cpp:688 +#: client/scenes/stream_gui.cpp:634 msgid "Overlays" msgstr "オーバーレイ" -#: client/scenes/stream_gui.cpp:727 +#: client/scenes/stream_gui.cpp:673 msgid "Request to quit, may be ignored by the application" msgstr "終了シグナルを送信する" -#: client/scenes/stream_gui.cpp:993 +#: client/scenes/stream_gui.cpp:940 msgid "Applications" msgstr "アプリ" -#: client/scenes/stream_gui.cpp:996 +#: client/scenes/stream_gui.cpp:943 msgid "Start" msgstr "実行する" -#: client/scenes/stream_gui.cpp:1010 +#: client/scenes/stream_gui.cpp:957 msgid "Stats" msgstr "統計情報" -#: client/scenes/stream_gui.cpp:1016 +#: client/scenes/stream_gui.cpp:963 msgid "Statistics overlay" msgstr "統計オーバーレイ" -#: client/scenes/stream_gui.cpp:1019 +#: client/scenes/stream_gui.cpp:966 msgid "Compact view" msgstr "コンパクト・モード" From 502343d4af0b93bb6552b18777bdc96b82464e84 Mon Sep 17 00:00:00 2001 From: BERADQ Date: Mon, 20 Apr 2026 13:46:41 +0800 Subject: [PATCH 41/47] Update Simplified Chinese localization, close #599 --- locale/zh_CN/wivrn-dashboard.po | 16 +- locale/zh_CN/wivrn.po | 590 ++++++++++++++++---------------- 2 files changed, 308 insertions(+), 298 deletions(-) diff --git a/locale/zh_CN/wivrn-dashboard.po b/locale/zh_CN/wivrn-dashboard.po index 418dfd2a..91d54ab7 100644 --- a/locale/zh_CN/wivrn-dashboard.po +++ b/locale/zh_CN/wivrn-dashboard.po @@ -8,15 +8,15 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn-dashboard\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-02-18 16:24+0800\n" -"PO-Revision-Date: 2026-02-25 21:21+0800\n" +"POT-Creation-Date: 2026-04-11 14:03+0800\n" +"PO-Revision-Date: 2026-04-20 13:44+0800\n" "Last-Translator: BERADQ \n" "Language-Team: Chinese (China)\n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Gtranslator 49.0\n" +"X-Generator: Gtranslator 50.0\n" "Plural-Forms: nplurals=1; plural=0;\n" #: dashboard/apk_installer.cpp:137 @@ -603,16 +603,22 @@ msgstr "自定义" msgid "Disabled" msgstr "已停用" -#: dashboard/qml/SettingsPage.qml:191 +#: dashboard/qml/SettingsPage.qml:199 #, kde-format msgid "OpenVR compatibility library:" msgstr "OpenVR 兼容层:" -#: dashboard/qml/SettingsPage.qml:217 +#: dashboard/qml/SettingsPage.qml:229 #, kde-format msgid "Library path, excluding bin/linux64/vrclient.so" msgstr "兼容层路径,不包含 bin/linux64/vrclient.so" +#: dashboard/qml/SettingsPage.qml:234 +#, kde-format +msgctxt "browse to choose the OpenVR compatility to use" +msgid "Browse" +msgstr "浏览" + #: dashboard/qml/SteamLaunchOptions.qml:8 #, kde-format msgid "" diff --git a/locale/zh_CN/wivrn.po b/locale/zh_CN/wivrn.po index ea446d63..2e319674 100644 --- a/locale/zh_CN/wivrn.po +++ b/locale/zh_CN/wivrn.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-02-27 23:03+0800\n" -"PO-Revision-Date: 2026-02-28 21:35+0800\n" +"POT-Creation-Date: 2026-04-19 15:14+0800\n" +"PO-Revision-Date: 2026-04-20 13:45+0800\n" "Last-Translator: BERADQ \n" "Language-Team: Chinese (China)\n" "Language: zh_CN\n" @@ -17,191 +17,50 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" -"X-Generator: Gtranslator 49.0\n" +"X-Generator: Gtranslator 50.0\n" #: client/scene.cpp:73 msgid "No supported swapchain format" msgstr "不支持的交换链格式" -#: client/scenes/app_launcher.cpp:127 +#: client/scenes/app_launcher.cpp:119 msgid "Connected to WiVRn server" msgstr "已连接到 WiVRn 服务器" -#: client/scenes/app_launcher.cpp:129 +#: client/scenes/app_launcher.cpp:121 #, c++-format msgid "Connected to {}" msgstr "已连接到 {}" -#: client/scenes/app_launcher.cpp:135 +#: client/scenes/app_launcher.cpp:127 msgid "Start an application on the server to start streaming." msgstr "在服务器端启动应用程序来开始串流。" -#: client/scenes/app_launcher.cpp:145 +#: client/scenes/app_launcher.cpp:137 msgid "Start an application on your computer or select one to start streaming." msgstr "在您的计算机上启动应用程序,或是选择一个来开始串流。" -#: client/scenes/app_launcher.cpp:147 +#: client/scenes/app_launcher.cpp:139 #, c++-format msgid "Start an application on {} or select one to start streaming." msgstr "在 {} 上启动应用程序,或是选择一个来开始串流。" -#: client/scenes/lobby.cpp:230 -msgid "Incompatible WiVRn server: no protocol field in TXT" -msgstr "不兼容的 WiVRn 服务器: TXT 中没有协议字段" - -#: client/scenes/lobby.cpp:233 -#, c++-format -msgid "Incompatible WiVRn server protocol (client: {}, server: {})" -msgstr "不兼容的 WiVRn 服务器协议(客户端: {},服务器: {})" - -#: client/scenes/lobby.cpp:248 -#, c++-format -msgid "Cannot resolve hostname: {}" -msgstr "无法解析主机名: {}" - -#: client/scenes/lobby.cpp:335 client/scenes/lobby.cpp:341 -#, c++-format -msgid "Cannot connect to {} ({}): {}" -msgstr "无法连接至 {} ({}): {}" - -#: client/scenes/lobby.cpp:424 -msgid "Waiting for connection" -msgstr "等待连接" - -#: client/scenes/lobby.cpp:1316 -msgid "Passthrough" -msgstr "透视" - -#: client/scenes/lobby.cpp:1328 -msgid "Default environment" -msgstr "默认环境" - -#: client/scenes/lobby_gui.cpp:101 -msgctxt "openxr_post_processing" -msgid "Normal" -msgstr "常规" - -#: client/scenes/lobby_gui.cpp:104 -msgctxt "openxr_post_processing" -msgid "Quality" -msgstr "高画质" - -#: client/scenes/lobby_gui.cpp:106 -msgctxt "openxr_post_processing" -msgid "Disabled" -msgstr "停用" - -#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254 -#: client/scenes/stream_gui.cpp:1026 -msgid "Disconnect" -msgstr "终止连接" - -#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264 -#: client/scenes/lobby_gui_customize.cpp:753 -#: client/scenes/lobby_gui_customize.cpp:844 -#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022 -msgid "Close" -msgstr "关闭" - -#: client/scenes/lobby_gui.cpp:140 -msgid "Connection" -msgstr "连接" - -#: client/scenes/lobby_gui.cpp:142 -#, c++-format -msgid "Connection to {}" -msgstr "连接至 {}" - -#: client/scenes/lobby_gui.cpp:172 -msgid "PIN" -msgstr "身份识别码" - -#: client/scenes/lobby_gui.cpp:194 -msgid "Input the PIN displayed on the dashboard" -msgstr "请输入显示在控制面板上的身份识别码" - -#: client/scenes/lobby_gui.cpp:282 -msgid "Disconnected" -msgstr "连接已断开" - -#: client/scenes/lobby_gui.cpp:284 -#, c++-format -msgid "Disconnected from {}" -msgstr "{} 连接已断开" - -#: client/scenes/lobby_gui.cpp:316 -msgid "Name" -msgstr "名" - -#: client/scenes/lobby_gui.cpp:327 -msgid "Address" -msgstr "服务器地址" - -#: client/scenes/lobby_gui.cpp:336 -msgid "Port" -msgstr "端口" - -#: client/scenes/lobby_gui.cpp:344 -msgid "TCP only" -msgstr "仅限 TCP" - -#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655 -#: client/scenes/stream_gui.cpp:978 -msgid "Cancel" -msgstr "取消" - -#: client/scenes/lobby_gui.cpp:365 -msgid "Save" -msgstr "保存" - -#: client/scenes/lobby_gui.cpp:418 -msgid "" -"Start a WiVRn server on your\n" -"local network" -msgstr "" -"在您的局域网中启动\n" -"WiVRn 服务器" - -#: client/scenes/lobby_gui.cpp:450 -msgid "Autoconnect" -msgstr "自动连接" - -#: client/scenes/lobby_gui.cpp:476 -msgid "Connect" -msgstr "连接" - -#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186 -msgid "Incompatible server version" -msgstr "服务器版本不兼容" - -#: client/scenes/lobby_gui.cpp:488 -msgid "Server not available" -msgstr "服务器不可用" - -#: client/scenes/lobby_gui.cpp:581 -msgctxt "language selection, replace with the name of the language" -msgid "English" -msgstr "中文" - -#: client/scenes/lobby_gui.cpp:595 -msgid "Language" -msgstr "语言" - -#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597 -msgid "System language" -msgstr "系统语言" - -#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412 -msgid "Refresh rate" -msgstr "刷新率" - -#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625 -#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414 +#: client/scenes/gui_common.cpp:38 client/scenes/gui_common.cpp:64 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "自动" -#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421 +#: client/scenes/gui_common.cpp:42 +#, c++-format +msgctxt "refresh rate selection, with reprojection" +msgid "{} ({} with space warp)" +msgstr "{} (空间扭曲到 {})" + +#: client/scenes/gui_common.cpp:60 +msgid "Refresh rate" +msgstr "刷新率" + +#: client/scenes/gui_common.cpp:74 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -209,38 +68,180 @@ msgstr "" "根据测量的应用程序性能选择刷新率。\n" "更改时可能会造成闪烁。" -#: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439 +#: client/scenes/gui_common.cpp:101 msgid "Minimum refresh rate" msgstr "最低刷新率" -#: client/scenes/lobby_gui.cpp:675 -msgid "Foveation level" -msgstr "注视点渲染等级" +#: client/scenes/lobby.cpp:221 +msgid "Incompatible WiVRn server: no protocol field in TXT" +msgstr "不兼容的 WiVRn 服务器: TXT 中没有协议字段" -#: client/scenes/lobby_gui.cpp:698 +#: client/scenes/lobby.cpp:224 +#, c++-format +msgid "Incompatible WiVRn server protocol (client: {}, server: {})" +msgstr "不兼容的 WiVRn 服务器协议(客户端: {},服务器: {})" + +#: client/scenes/lobby.cpp:239 +#, c++-format +msgid "Cannot resolve hostname: {}" +msgstr "无法解析主机名: {}" + +#: client/scenes/lobby.cpp:326 client/scenes/lobby.cpp:332 +#, c++-format +msgid "Cannot connect to {} ({}): {}" +msgstr "无法连接至 {} ({}): {}" + +#: client/scenes/lobby.cpp:410 +msgid "Waiting for connection" +msgstr "等待连接" + +#: client/scenes/lobby.cpp:1298 +msgid "Passthrough" +msgstr "透视" + +#: client/scenes/lobby.cpp:1310 +msgid "Default environment" +msgstr "默认环境" + +#: client/scenes/lobby_gui.cpp:102 +msgctxt "openxr_post_processing" +msgid "Normal" +msgstr "常规" + +#: client/scenes/lobby_gui.cpp:105 +msgctxt "openxr_post_processing" +msgid "Quality" +msgstr "高画质" + +#: client/scenes/lobby_gui.cpp:107 +msgctxt "openxr_post_processing" +msgid "Disabled" +msgstr "停用" + +#: client/scenes/lobby_gui.cpp:115 client/scenes/lobby_gui.cpp:255 +#: client/scenes/stream_gui.cpp:973 +msgid "Disconnect" +msgstr "终止连接" + +#: client/scenes/lobby_gui.cpp:135 client/scenes/lobby_gui.cpp:265 +#: client/scenes/lobby_gui_customize.cpp:752 +#: client/scenes/lobby_gui_customize.cpp:843 +#: client/scenes/lobby_gui_customize.cpp:899 client/scenes/stream_gui.cpp:969 +msgid "Close" +msgstr "关闭" + +#: client/scenes/lobby_gui.cpp:141 +msgid "Connection" +msgstr "连接" + +#: client/scenes/lobby_gui.cpp:143 +#, c++-format +msgid "Connection to {}" +msgstr "连接至 {}" + +#: client/scenes/lobby_gui.cpp:173 +msgid "PIN" +msgstr "身份识别码" + +#: client/scenes/lobby_gui.cpp:195 +msgid "Input the PIN displayed on the dashboard" +msgstr "请输入显示在控制面板上的身份识别码" + +#: client/scenes/lobby_gui.cpp:283 +msgid "Disconnected" +msgstr "连接已断开" + +#: client/scenes/lobby_gui.cpp:285 +#, c++-format +msgid "Disconnected from {}" +msgstr "{} 连接已断开" + +#: client/scenes/lobby_gui.cpp:317 +msgid "Name" +msgstr "名" + +#: client/scenes/lobby_gui.cpp:328 +msgid "Address" +msgstr "服务器地址" + +#: client/scenes/lobby_gui.cpp:337 +msgid "Port" +msgstr "端口" + +#: client/scenes/lobby_gui.cpp:345 +msgid "TCP only" +msgstr "仅限 TCP" + +#: client/scenes/lobby_gui.cpp:352 client/scenes/lobby_gui_customize.cpp:654 +#: client/scenes/stream_gui.cpp:924 +msgid "Cancel" +msgstr "取消" + +#: client/scenes/lobby_gui.cpp:366 +msgid "Save" +msgstr "保存" + +#: client/scenes/lobby_gui.cpp:419 +msgid "" +"Start a WiVRn server on your\n" +"local network" +msgstr "" +"在您的局域网中启动\n" +"WiVRn 服务器" + +#: client/scenes/lobby_gui.cpp:451 +msgid "Autoconnect" +msgstr "自动连接" + +#: client/scenes/lobby_gui.cpp:477 +msgid "Connect" +msgstr "连接" + +#: client/scenes/lobby_gui.cpp:487 client/wivrn_client.cpp:186 +msgid "Incompatible server version" +msgstr "服务器版本不兼容" + +#: client/scenes/lobby_gui.cpp:489 +msgid "Server not available" +msgstr "服务器不可用" + +#: client/scenes/lobby_gui.cpp:582 +msgctxt "language selection, replace with the name of the language" +msgid "English" +msgstr "中文" + +#: client/scenes/lobby_gui.cpp:596 +msgid "Language" +msgstr "语言" + +#: client/scenes/lobby_gui.cpp:596 client/scenes/lobby_gui.cpp:598 +msgid "System language" +msgstr "系统语言" + +#: client/scenes/lobby_gui.cpp:627 msgid "Render resolution" msgstr "渲染分辨率" -#: client/scenes/lobby_gui.cpp:702 +#: client/scenes/lobby_gui.cpp:631 #, c-format, c++-format msgid "{}%% - {}x{} per eye" msgstr "{}%% - 单眼 {}x{}" -#: client/scenes/lobby_gui.cpp:713 +#: client/scenes/lobby_gui.cpp:642 #, c++-format msgid "Resolution larger than {}x{} may not be supported by the headset" msgstr "分辨率高于 {}x{} 可能不被头显支持" -#: client/scenes/lobby_gui.cpp:723 +#: client/scenes/lobby_gui.cpp:652 msgid "Foveated encoding" msgstr "注视点编码" -#: client/scenes/lobby_gui.cpp:727 +#: client/scenes/lobby_gui.cpp:656 #, c-format, c++-format msgid "{}%%" msgstr "{}%%" -#: client/scenes/lobby_gui.cpp:740 +#: client/scenes/lobby_gui.cpp:669 msgid "" "Higher values focus image quality where you look at,\n" "improving latency, power efficiency and quality." @@ -248,7 +249,7 @@ msgstr "" "更高的数值会降低注视点之外的画面质量,\n" "从而改善延迟、提升能效并优化整体画质。" -#: client/scenes/lobby_gui.cpp:743 +#: client/scenes/lobby_gui.cpp:672 msgid "" "Higher values focus image quality at the center,\n" "improving latency, power efficiency and quality." @@ -256,86 +257,86 @@ msgstr "" "更高的数值会降低画面中心点之外的画面质量,\n" "从而改善延迟、提高能效并优化整体画质。" -#: client/scenes/lobby_gui.cpp:752 +#: client/scenes/lobby_gui.cpp:681 msgctxt "Codec" msgid "Automatic" msgstr "自动" -#: client/scenes/lobby_gui.cpp:756 +#: client/scenes/lobby_gui.cpp:685 msgctxt "Codec" msgid "H.264" msgstr "H.264" -#: client/scenes/lobby_gui.cpp:758 +#: client/scenes/lobby_gui.cpp:687 msgctxt "Codec" msgid "H.265" msgstr "H.265" -#: client/scenes/lobby_gui.cpp:760 +#: client/scenes/lobby_gui.cpp:689 msgctxt "Codec" msgid "AV1" msgstr "AV1" -#: client/scenes/lobby_gui.cpp:768 +#: client/scenes/lobby_gui.cpp:697 msgid "Codec" msgstr "编解码器" -#: client/scenes/lobby_gui.cpp:796 +#: client/scenes/lobby_gui.cpp:725 msgid "10-bit" msgstr "10-bit" -#: client/scenes/lobby_gui.cpp:812 +#: client/scenes/lobby_gui.cpp:741 msgid "Bitrate" msgstr "码率" -#: client/scenes/lobby_gui.cpp:816 +#: client/scenes/lobby_gui.cpp:745 #, c++-format msgid "{}Mbit/s" msgstr "{}Mbit/s" -#: client/scenes/lobby_gui.cpp:827 +#: client/scenes/lobby_gui.cpp:756 msgid "High power mode" msgstr "高耗电模式" -#: client/scenes/lobby_gui.cpp:830 +#: client/scenes/lobby_gui.cpp:759 msgid "Increase power usage to allow higher resolution and refresh rate" msgstr "增加功耗以支持更高的分辨率和刷新率" -#: client/scenes/lobby_gui.cpp:836 +#: client/scenes/lobby_gui.cpp:765 msgid "Enable microphone" msgstr "启用麦克风" -#: client/scenes/lobby_gui.cpp:845 +#: client/scenes/lobby_gui.cpp:774 msgid "Unprocessed Microphone Audio" msgstr "未处理的麦克风音频" -#: client/scenes/lobby_gui.cpp:851 +#: client/scenes/lobby_gui.cpp:780 msgid "Force disable audio filters, such as noise cancellation" msgstr "强制停用音频滤波器,如降噪" -#: client/scenes/lobby_gui.cpp:858 +#: client/scenes/lobby_gui.cpp:787 msgid "Enable hand tracking" msgstr "启用手部追踪" -#: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875 -#: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900 -#: client/scenes/lobby_gui_customize.cpp:640 +#: client/scenes/lobby_gui.cpp:793 client/scenes/lobby_gui.cpp:804 +#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:829 +#: client/scenes/lobby_gui_customize.cpp:639 msgid "This feature is not supported by your headset" msgstr "您的头显不支持此功能" -#: client/scenes/lobby_gui.cpp:869 +#: client/scenes/lobby_gui.cpp:798 msgid "Enable eye tracking" msgstr "启用眼动追踪" -#: client/scenes/lobby_gui.cpp:880 +#: client/scenes/lobby_gui.cpp:809 msgid "Enable face tracking" msgstr "启用面部追踪" -#: client/scenes/lobby_gui.cpp:892 +#: client/scenes/lobby_gui.cpp:821 msgid "Enable body tracking" msgstr "启用身体追踪" -#: client/scenes/lobby_gui.cpp:905 +#: client/scenes/lobby_gui.cpp:834 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -344,11 +345,11 @@ msgstr "" "需要在 Quest 运动追踪设置中启用「手部和身体追踪」,\n" "否则身体数据将根据手柄和头显的位置进行猜测" -#: client/scenes/lobby_gui.cpp:915 +#: client/scenes/lobby_gui.cpp:844 msgid "Enable lower body tracking" msgstr "启用下半身追踪" -#: client/scenes/lobby_gui.cpp:921 +#: client/scenes/lobby_gui.cpp:850 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -357,11 +358,11 @@ msgstr "" "使用 Generative Legs 猜测下半身关节位置\n" "需要在 Quest 运动追踪设置中启用「手部和身体追踪」" -#: client/scenes/lobby_gui.cpp:924 +#: client/scenes/lobby_gui.cpp:853 msgid "Enable hip tracking" msgstr "启用臀部(腰部)追踪" -#: client/scenes/lobby_gui.cpp:930 +#: client/scenes/lobby_gui.cpp:859 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -369,11 +370,11 @@ msgstr "" "仅在启用下半身追踪时生效\n" "在使用其他臀部追踪时可能需要此功能" -#: client/scenes/lobby_gui.cpp:939 +#: client/scenes/lobby_gui.cpp:868 msgid "Enable in-stream window" msgstr "启用串流中窗口" -#: client/scenes/lobby_gui.cpp:942 +#: client/scenes/lobby_gui.cpp:871 msgid "" "Enables the configuration window to be shown while the game is streaming.\n" "If enabled, the window is activated by pressing both thumbsticks." @@ -381,23 +382,23 @@ msgstr "" "在游戏串流期间启用配置窗口显示\n" "若启用此功能,同时按下两只摇杆,将会显示该窗口。" -#: client/scenes/lobby_gui.cpp:946 +#: client/scenes/lobby_gui.cpp:875 msgid "Extended configuration values" msgstr "扩大配置值范围" -#: client/scenes/lobby_gui.cpp:949 +#: client/scenes/lobby_gui.cpp:878 msgid "Allows unsafe configuration values, use at your own risk." msgstr "允许使用不安全的配置值,风险自负。" -#: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473 +#: client/scenes/lobby_gui.cpp:892 client/scenes/stream_gui.cpp:419 msgid "OpenXR post-processing" msgstr "OpenXR 后处理" -#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477 +#: client/scenes/lobby_gui.cpp:896 client/scenes/stream_gui.cpp:423 msgid "Supersampling" msgstr "超采样" -#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498 +#: client/scenes/lobby_gui.cpp:916 client/scenes/stream_gui.cpp:444 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -405,11 +406,11 @@ msgstr "" "减少高对比度边缘的闪烁。\n" "当串流分辨率高于头显原生分辨率时很有用" -#: client/scenes/lobby_gui.cpp:992 client/scenes/stream_gui.cpp:503 +#: client/scenes/lobby_gui.cpp:921 client/scenes/stream_gui.cpp:449 msgid "Sharpening" msgstr "锐化" -#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524 +#: client/scenes/lobby_gui.cpp:941 client/scenes/stream_gui.cpp:470 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -417,129 +418,129 @@ msgstr "" "改善高对比边缘的清晰度并抵消模糊。\n" "当串流分辨率低于头显原生分辨率时很有用" -#: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204 -#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371 +#: client/scenes/lobby_gui.cpp:1125 client/scenes/lobby_gui.cpp:1133 +#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:372 msgid "CPU time" msgstr "CPU 时间" -#: client/scenes/lobby_gui.cpp:1200 +#: client/scenes/lobby_gui.cpp:1129 msgid "CPU time [ms]" msgstr "CPU 时间 [ms]" -#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218 -#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372 +#: client/scenes/lobby_gui.cpp:1139 client/scenes/lobby_gui.cpp:1147 +#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:373 msgid "GPU time" msgstr "GPU 时间" -#: client/scenes/lobby_gui.cpp:1214 +#: client/scenes/lobby_gui.cpp:1143 msgid "GPU time [ms]" msgstr "GPU 时间 [ms]" -#: client/scenes/lobby_gui.cpp:1278 +#: client/scenes/lobby_gui.cpp:1207 msgid "Enable the microphone?" msgstr "是否启用麦克风?" -#: client/scenes/lobby_gui.cpp:1283 +#: client/scenes/lobby_gui.cpp:1212 msgid "Enable eye tracking?" msgstr "是否启用眼动追踪?" -#: client/scenes/lobby_gui.cpp:1288 +#: client/scenes/lobby_gui.cpp:1217 msgid "Enable face tracking?" msgstr "是否启用面部追踪?" -#: client/scenes/lobby_gui.cpp:1293 +#: client/scenes/lobby_gui.cpp:1222 msgid "Enable body tracking?" msgstr "是否启用身体追踪?" -#: client/scenes/lobby_gui.cpp:1301 +#: client/scenes/lobby_gui.cpp:1230 msgid "Welcome to WiVRn" msgstr "欢迎使用 WiVRn" -#: client/scenes/lobby_gui.cpp:1329 +#: client/scenes/lobby_gui.cpp:1258 msgid "Yes" msgstr "是" -#: client/scenes/lobby_gui.cpp:1336 +#: client/scenes/lobby_gui.cpp:1265 msgid "No" msgstr "否" -#: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001 +#: client/scenes/lobby_gui.cpp:1284 client/scenes/lobby_gui.cpp:1930 msgid "Licenses" msgstr "许可证" -#: client/scenes/lobby_gui.cpp:1631 +#: client/scenes/lobby_gui.cpp:1560 msgid "Microphone is enabled" msgstr "麦克风已启用" -#: client/scenes/lobby_gui.cpp:1632 +#: client/scenes/lobby_gui.cpp:1561 msgid "Microphone is disabled" msgstr "麦克风已停用" -#: client/scenes/lobby_gui.cpp:1641 +#: client/scenes/lobby_gui.cpp:1570 msgid "Hand tracking is enabled" msgstr "手部追踪已启用" -#: client/scenes/lobby_gui.cpp:1642 +#: client/scenes/lobby_gui.cpp:1571 msgid "Hand tracking is disabled" msgstr "手部追踪已停用" -#: client/scenes/lobby_gui.cpp:1651 +#: client/scenes/lobby_gui.cpp:1580 msgid "Eye tracking is enabled" msgstr "眼动追踪已启用" -#: client/scenes/lobby_gui.cpp:1652 +#: client/scenes/lobby_gui.cpp:1581 msgid "Eye tracking is disabled" msgstr "眼动追踪已停用" -#: client/scenes/lobby_gui.cpp:1662 +#: client/scenes/lobby_gui.cpp:1591 msgid "Face tracking is enabled" msgstr "面部追踪已启用" -#: client/scenes/lobby_gui.cpp:1663 +#: client/scenes/lobby_gui.cpp:1592 msgid "Face tracking is disabled" msgstr "面部追踪已停用" -#: client/scenes/lobby_gui.cpp:1677 +#: client/scenes/lobby_gui.cpp:1606 msgid "Body tracking is enabled" msgstr "身体追踪已启用" -#: client/scenes/lobby_gui.cpp:1678 +#: client/scenes/lobby_gui.cpp:1607 msgid "Body tracking is disabled" msgstr "身体追踪已停用" -#: client/scenes/lobby_gui.cpp:1694 +#: client/scenes/lobby_gui.cpp:1623 msgid "Add server" msgstr "新增服务器" -#: client/scenes/lobby_gui.cpp:1980 +#: client/scenes/lobby_gui.cpp:1909 msgid "Server list" msgstr "服务器列表" -#: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007 +#: client/scenes/lobby_gui.cpp:1912 client/scenes/stream_gui.cpp:954 msgid "Settings" msgstr "设置" -#: client/scenes/lobby_gui.cpp:1986 +#: client/scenes/lobby_gui.cpp:1915 msgid "Post-processing" msgstr "后处理" -#: client/scenes/lobby_gui.cpp:1989 +#: client/scenes/lobby_gui.cpp:1918 msgid "Customize" msgstr "自定义" -#: client/scenes/lobby_gui.cpp:1993 +#: client/scenes/lobby_gui.cpp:1922 msgid "Debug" msgstr "Debug" -#: client/scenes/lobby_gui.cpp:1998 +#: client/scenes/lobby_gui.cpp:1927 msgid "About" msgstr "关于" -#: client/scenes/lobby_gui.cpp:2004 +#: client/scenes/lobby_gui.cpp:1933 msgid "Exit" msgstr "退出" -#: client/scenes/lobby_gui.cpp:2021 +#: client/scenes/lobby_gui.cpp:1950 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -547,7 +548,7 @@ msgstr "" "按下抓握键,或手掌向上\n" "以移动主窗口" -#: client/scenes/lobby_gui.cpp:2023 +#: client/scenes/lobby_gui.cpp:1952 msgid "Press the grip button to move the main window" msgstr "按下抓握键以移动主窗口" @@ -560,38 +561,38 @@ msgstr "从本地加载了环境" msgid "Locally loaded environment ({})" msgstr "从本地加载了环境 ({})" -#: client/scenes/lobby_gui_customize.cpp:300 +#: client/scenes/lobby_gui_customize.cpp:299 #, c++-format msgid "Cannot load local environment: {}" msgstr "无法加载本地环境:{}" -#: client/scenes/lobby_gui_customize.cpp:333 +#: client/scenes/lobby_gui_customize.cpp:332 #, c++-format msgid "Cannot load environment list: {}" msgstr "无法加载环境列表:{}" -#: client/scenes/lobby_gui_customize.cpp:463 +#: client/scenes/lobby_gui_customize.cpp:462 #, c++-format msgid "Author: {}" msgstr "作者: {}" -#: client/scenes/lobby_gui_customize.cpp:467 +#: client/scenes/lobby_gui_customize.cpp:466 #, c++-format msgid "Size: {:.1f} MB" msgstr "大小: {:.1f} MB" -#: client/scenes/lobby_gui_customize.cpp:547 +#: client/scenes/lobby_gui_customize.cpp:546 msgid "Delete this model" msgstr "删除此模型" -#: client/scenes/lobby_gui_customize.cpp:583 -#: client/scenes/lobby_gui_customize.cpp:789 +#: client/scenes/lobby_gui_customize.cpp:582 +#: client/scenes/lobby_gui_customize.cpp:788 #, c++-format msgid "HTTP error {} when downloading {}" msgstr "发生了 HTTP 错误 {} 于下载 {} 时" -#: client/scenes/lobby_gui_customize.cpp:591 -#: client/scenes/lobby_gui_customize.cpp:797 +#: client/scenes/lobby_gui_customize.cpp:590 +#: client/scenes/lobby_gui_customize.cpp:796 #, c++-format msgid "" "Curl error when downloading {}\n" @@ -600,186 +601,186 @@ msgstr "" "通过 Curl 下载时发生了错误 {}\n" "{}:{}" -#: client/scenes/lobby_gui_customize.cpp:652 +#: client/scenes/lobby_gui_customize.cpp:651 #, c++-format msgid "Really delete {}?" msgstr "真的要删除 {} 吗?" -#: client/scenes/lobby_gui_customize.cpp:656 +#: client/scenes/lobby_gui_customize.cpp:655 msgid "Delete" msgstr "删除" -#: client/scenes/lobby_gui_customize.cpp:737 +#: client/scenes/lobby_gui_customize.cpp:736 #, c++-format msgid "Cannot load environment: {}" msgstr "无法加载环境: {}" -#: client/scenes/lobby_gui_customize.cpp:745 +#: client/scenes/lobby_gui_customize.cpp:744 msgid "Loading environment" msgstr "环境加载中" -#: client/scenes/lobby_gui_customize.cpp:824 +#: client/scenes/lobby_gui_customize.cpp:823 msgid "Download more environments" msgstr "下载更多环境" -#: client/scenes/lobby_gui_customize.cpp:832 +#: client/scenes/lobby_gui_customize.cpp:831 msgid "Open local glTF model" msgstr "打开本地 glTF 模型" -#: client/scenes/stream_gui.cpp:175 +#: client/scenes/stream_gui.cpp:176 msgid "Defoveate" msgstr "去凹形畸变" -#: client/scenes/stream_gui.cpp:177 +#: client/scenes/stream_gui.cpp:178 msgid "Network" msgstr "网络" -#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369 +#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370 msgid "Download" msgstr "下载" -#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370 +#: client/scenes/stream_gui.cpp:179 client/scenes/stream_gui.cpp:371 msgid "Upload" msgstr "上传" -#: client/scenes/stream_gui.cpp:247 +#: client/scenes/stream_gui.cpp:248 #, c++-format msgid "Decoder {}" msgstr "解码器 {}" -#: client/scenes/stream_gui.cpp:259 +#: client/scenes/stream_gui.cpp:260 msgid "Timings [ms]" msgstr "时间信息 [ms]" -#: client/scenes/stream_gui.cpp:319 +#: client/scenes/stream_gui.cpp:320 msgid "Encode" msgstr "编码" -#: client/scenes/stream_gui.cpp:320 +#: client/scenes/stream_gui.cpp:321 msgid "Send" msgstr "发送" -#: client/scenes/stream_gui.cpp:321 +#: client/scenes/stream_gui.cpp:322 msgid "Receive" msgstr "接收" -#: client/scenes/stream_gui.cpp:322 +#: client/scenes/stream_gui.cpp:323 msgid "Decode" msgstr "解码" -#: client/scenes/stream_gui.cpp:323 +#: client/scenes/stream_gui.cpp:324 msgid "Blitted" msgstr "已传输位块" -#: client/scenes/stream_gui.cpp:324 +#: client/scenes/stream_gui.cpp:325 msgid "Displayed" msgstr "已显示" -#: client/scenes/stream_gui.cpp:325 +#: client/scenes/stream_gui.cpp:326 msgid "Predicted" msgstr "已预测" -#: client/scenes/stream_gui.cpp:344 +#: client/scenes/stream_gui.cpp:345 #, c++-format msgid "Estimated motion to photons latency: {}ms" msgstr "估计从运动到显示延迟: {}ms" -#: client/scenes/stream_gui.cpp:349 +#: client/scenes/stream_gui.cpp:350 msgid "Press the grip button to move the window" msgstr "按下抓握键来移动窗口" -#: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738 +#: client/scenes/stream_gui.cpp:352 client/scenes/stream_gui.cpp:684 msgid "Press both thumbsticks to display the WiVRn window" msgstr "同时按下两侧摇杆以显示 WiVRn 窗口" -#: client/scenes/stream_gui.cpp:373 +#: client/scenes/stream_gui.cpp:374 msgid "Motion to photon latency" msgstr "从动作到显示的延迟" -#: client/scenes/stream_gui.cpp:458 +#: client/scenes/stream_gui.cpp:404 msgid "Bitrate:" msgstr "码率:" -#: client/scenes/stream_gui.cpp:468 +#: client/scenes/stream_gui.cpp:414 msgid "Click to adjust bitrate" msgstr "点击以调整码率" -#: client/scenes/stream_gui.cpp:532 +#: client/scenes/stream_gui.cpp:478 msgid "Foveation center override" msgstr "注视点渲染位置覆盖" -#: client/scenes/stream_gui.cpp:535 +#: client/scenes/stream_gui.cpp:481 msgid "Enable" msgstr "启用" -#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614 +#: client/scenes/stream_gui.cpp:489 client/scenes/stream_gui.cpp:560 #, c++-format msgid "Height {:.1f} deg" msgstr "俯仰 {:.1f}°" -#: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615 +#: client/scenes/stream_gui.cpp:490 client/scenes/stream_gui.cpp:561 #, c++-format msgid "Distance {:.2f} m" msgstr "距离 {:.2f}m" -#: client/scenes/stream_gui.cpp:545 +#: client/scenes/stream_gui.cpp:491 msgid "Default" msgstr "默认" -#: client/scenes/stream_gui.cpp:556 +#: client/scenes/stream_gui.cpp:502 msgid "Change" msgstr "变更" -#: client/scenes/stream_gui.cpp:588 +#: client/scenes/stream_gui.cpp:534 msgid "Use the right thumbstick to adjust the bitrate" msgstr "使用右摇杆来调节码率" -#: client/scenes/stream_gui.cpp:589 +#: client/scenes/stream_gui.cpp:535 msgid "Press A to go back" msgstr "按下 A 以返回" -#: client/scenes/stream_gui.cpp:590 +#: client/scenes/stream_gui.cpp:536 #, c++-format msgid "Bitrate: {}Mbit/s" msgstr "码率:{}Mbit/s" -#: client/scenes/stream_gui.cpp:612 +#: client/scenes/stream_gui.cpp:558 msgid "Use the thumbsticks to move the foveation center" msgstr "使用摇杆移动注视点中心" -#: client/scenes/stream_gui.cpp:613 +#: client/scenes/stream_gui.cpp:559 msgid "Press A to save or B to cancel" msgstr "按下 A 保存或 B 取消" -#: client/scenes/stream_gui.cpp:671 +#: client/scenes/stream_gui.cpp:617 msgid "Running XR applications:" msgstr "运行 XR 应用程序中:" -#: client/scenes/stream_gui.cpp:688 +#: client/scenes/stream_gui.cpp:634 msgid "Overlays" msgstr "叠加层" -#: client/scenes/stream_gui.cpp:727 +#: client/scenes/stream_gui.cpp:673 msgid "Request to quit, may be ignored by the application" msgstr "退出请求可能会被应用程序忽略" -#: client/scenes/stream_gui.cpp:993 +#: client/scenes/stream_gui.cpp:940 msgid "Applications" msgstr "应用程序" -#: client/scenes/stream_gui.cpp:996 +#: client/scenes/stream_gui.cpp:943 msgid "Start" msgstr "启动" -#: client/scenes/stream_gui.cpp:1010 +#: client/scenes/stream_gui.cpp:957 msgid "Stats" msgstr "统计" -#: client/scenes/stream_gui.cpp:1016 +#: client/scenes/stream_gui.cpp:963 msgid "Statistics overlay" msgstr "统计数据叠加" -#: client/scenes/stream_gui.cpp:1019 +#: client/scenes/stream_gui.cpp:966 msgid "Compact view" msgstr "概览" @@ -799,6 +800,9 @@ msgstr "无法验证身份识别码" msgid "Pairing is disabled on server" msgstr "服务器上已停用配对" +#~ msgid "Foveation level" +#~ msgstr "注视点渲染等级" + #~ msgid "Stream resolution" #~ msgstr "串流分辨率" From a4b3099113bea3aec4d5a16f76ecf40d9afdd862 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro?= <68470515+BlackCherryCat@users.noreply.github.com> Date: Mon, 20 Apr 2026 19:02:49 +0200 Subject: [PATCH 42/47] Update es locale (#883) --- locale/es/wivrn-dashboard.po | 43 +-- locale/es/wivrn.po | 588 ++++++++++++++++++----------------- 2 files changed, 321 insertions(+), 310 deletions(-) diff --git a/locale/es/wivrn-dashboard.po b/locale/es/wivrn-dashboard.po index b552b0e8..d906be3c 100644 --- a/locale/es/wivrn-dashboard.po +++ b/locale/es/wivrn-dashboard.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: WiVRn-dashboard\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2026-02-26 15:00+0100\n" +"POT-Creation-Date: 2026-04-11 08:03+0200\n" "PO-Revision-Date: 2025-11-19 20:20+0100\n" "Last-Translator: Álvaro De Quinta \n" "Language-Team: Spanish <>\n" @@ -15,7 +15,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Qt Linguist 6.10.2\n" +"X-Generator: Qt Linguist 6.11.0\n" "X-Language: es_ES\n" "X-Source-Language: en_US\n" @@ -135,13 +135,13 @@ msgstr "" #: dashboard/qml/ApkInstallPage.qml:51 dashboard/qml/WizardPage.qml:204 #, kde-format msgid "" -"Follow the instructions in the documentation to build your own " -"client." +"Follow the instructions in the documentation " +"to build your own client." msgstr "" -"Sigue las instrucciones en la documentación para compilar tu " -"propio cliente." +"Sigue las instrucciones en la documentación " +"para compilar tu propio cliente." #: dashboard/qml/ConnectUsbDialog.qml:11 #, kde-format @@ -620,16 +620,22 @@ msgstr "Personalizado" msgid "Disabled" msgstr "Deshabilitado" -#: dashboard/qml/SettingsPage.qml:191 +#: dashboard/qml/SettingsPage.qml:199 #, kde-format msgid "OpenVR compatibility library:" msgstr "Librería de compatibilidad para OpenVR:" -#: dashboard/qml/SettingsPage.qml:217 +#: dashboard/qml/SettingsPage.qml:229 #, kde-format msgid "Library path, excluding bin/linux64/vrclient.so" msgstr "Ruta de librería, excluyendo bin/linux64/vrclient.so" +#: dashboard/qml/SettingsPage.qml:234 +#, kde-format +msgctxt "browse to choose the OpenVR compatility to use" +msgid "Browse" +msgstr "Explorar" + #: dashboard/qml/SteamLaunchOptions.qml:8 #, kde-format msgid "" @@ -708,9 +714,9 @@ msgstr "Tengo un error de \"Servidor WiVRn incompatible\" en mi visor" #: dashboard/qml/TroubleshootPage.qml:37 #, kde-format msgid "" -"

The version of the headset app and the server on your computer must match." -"

  • The headset app version is in the \"About\" page
  • The " -"server version is %1
" +"

The version of the headset app and the server on your computer must " +"match.

  • The headset app version is in the \"About\" " +"page
  • The server version is %1
" msgstr "" "

La versión de la aplicación del visor y la del servidor en tu computadora " "deben coincidir.

  • La versión de la aplicación del visor está en la " @@ -762,12 +768,13 @@ msgstr "Algunos juegos fallan al abrirse o tienen problemas de input" #: dashboard/qml/TroubleshootPage.qml:62 #, kde-format msgid "" -"For game specific issues, check on vronlinux DB if there are known bugs or workarounds." +"For game specific issues, check on vronlinux DB if there are known bugs " +"or workarounds." msgstr "" -"Para problemas específicos de un juego, mirar en vronlinux DB por si hubiese algún problema conocido " -"o por soluciones." +"Para problemas específicos de un juego, mirar en vronlinux DB por si hubiese algún " +"problema conocido o por soluciones." #: dashboard/qml/TroubleshootPage.qml:79 #, kde-format diff --git a/locale/es/wivrn.po b/locale/es/wivrn.po index 92938366..8110cfbe 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: 2026-02-27 16:03+0100\n" +"POT-Creation-Date: 2026-04-19 09:14+0200\n" "PO-Revision-Date: 2025-11-19 20:23+0100\n" "Last-Translator: Álvaro De Quinta \n" "Language-Team: Spanish <>\n" @@ -14,7 +14,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Qt Linguist 6.10.2\n" +"X-Generator: Qt Linguist 6.11.0\n" "X-Language: es_ES\n" "X-Source-Language: en_US\n" @@ -22,188 +22,47 @@ msgstr "" msgid "No supported swapchain format" msgstr "Formato de swapchain no compatible" -#: client/scenes/app_launcher.cpp:127 +#: client/scenes/app_launcher.cpp:119 msgid "Connected to WiVRn server" msgstr "Conectado al servidor WiVRn" -#: client/scenes/app_launcher.cpp:129 +#: client/scenes/app_launcher.cpp:121 #, c++-format msgid "Connected to {}" msgstr "Connectado a {}" -#: client/scenes/app_launcher.cpp:135 +#: client/scenes/app_launcher.cpp:127 msgid "Start an application on the server to start streaming." msgstr "Inicia una aplicación en el servidor para empezar la retransmisión." -#: client/scenes/app_launcher.cpp:145 +#: client/scenes/app_launcher.cpp:137 msgid "Start an application on your computer or select one to start streaming." msgstr "" "Inicia una aplicación en tu ordenador o selecciona una para empezar la " "retransmisión." -#: client/scenes/app_launcher.cpp:147 +#: client/scenes/app_launcher.cpp:139 #, 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.cpp:230 -msgid "Incompatible WiVRn server: no protocol field in TXT" -msgstr "Servidor WiVRn incompatible: no hay campo de protocolo en TXT" - -#: client/scenes/lobby.cpp:233 -#, c++-format -msgid "Incompatible WiVRn server protocol (client: {}, server: {})" -msgstr "Protocolo del servidor WiVRn incompatible (cliente: {}, servidor: {})" - -#: client/scenes/lobby.cpp:248 -#, c++-format -msgid "Cannot resolve hostname: {}" -msgstr "No se puede resolver el nombre de host: {}" - -#: client/scenes/lobby.cpp:335 client/scenes/lobby.cpp:341 -#, c++-format -msgid "Cannot connect to {} ({}): {}" -msgstr "No se puede conectar a {} ({}): {}" - -#: client/scenes/lobby.cpp:424 -msgid "Waiting for connection" -msgstr "Esperando conexión" - -#: client/scenes/lobby.cpp:1316 -msgid "Passthrough" -msgstr "Exterior" - -#: client/scenes/lobby.cpp:1328 -msgid "Default environment" -msgstr "Entorno por defecto" - -#: client/scenes/lobby_gui.cpp:101 -msgctxt "openxr_post_processing" -msgid "Normal" -msgstr "Normal" - -#: client/scenes/lobby_gui.cpp:104 -msgctxt "openxr_post_processing" -msgid "Quality" -msgstr "Calidad" - -#: client/scenes/lobby_gui.cpp:106 -msgctxt "openxr_post_processing" -msgid "Disabled" -msgstr "Deshabilitado" - -#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254 -#: client/scenes/stream_gui.cpp:1026 -msgid "Disconnect" -msgstr "Desconectar" - -#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264 -#: client/scenes/lobby_gui_customize.cpp:753 -#: client/scenes/lobby_gui_customize.cpp:844 -#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022 -msgid "Close" -msgstr "Cerrar" - -#: client/scenes/lobby_gui.cpp:140 -msgid "Connection" -msgstr "Conexión" - -#: client/scenes/lobby_gui.cpp:142 -#, c++-format -msgid "Connection to {}" -msgstr "Conexión a {}" - -#: client/scenes/lobby_gui.cpp:172 -msgid "PIN" -msgstr "PIN" - -#: client/scenes/lobby_gui.cpp:194 -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:282 -msgid "Disconnected" -msgstr "Desconectado" - -#: client/scenes/lobby_gui.cpp:284 -#, c++-format -msgid "Disconnected from {}" -msgstr "Desconectado de {}" - -#: client/scenes/lobby_gui.cpp:316 -msgid "Name" -msgstr "Nombre" - -#: client/scenes/lobby_gui.cpp:327 -msgid "Address" -msgstr "Dirección" - -#: client/scenes/lobby_gui.cpp:336 -msgid "Port" -msgstr "Puerto" - -#: client/scenes/lobby_gui.cpp:344 -msgid "TCP only" -msgstr "Solo TCP" - -#: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655 -#: client/scenes/stream_gui.cpp:978 -msgid "Cancel" -msgstr "Cancelar" - -#: client/scenes/lobby_gui.cpp:365 -msgid "Save" -msgstr "Guardar" - -#: client/scenes/lobby_gui.cpp:418 -msgid "" -"Start a WiVRn server on your\n" -"local network" -msgstr "" -"Inicia un servidor WiVRn en tu\n" -"red local" - -#: client/scenes/lobby_gui.cpp:450 -msgid "Autoconnect" -msgstr "Conexión automática" - -#: client/scenes/lobby_gui.cpp:476 -msgid "Connect" -msgstr "Conectar" - -#: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186 -msgid "Incompatible server version" -msgstr "Versión del servidor incompatible" - -#: client/scenes/lobby_gui.cpp:488 -msgid "Server not available" -msgstr "Servidor no disponible" - -#: client/scenes/lobby_gui.cpp:581 -msgctxt "language selection, replace with the name of the language" -msgid "English" -msgstr "Español" - -#: client/scenes/lobby_gui.cpp:595 -msgid "Language" -msgstr "Idioma" - -#: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597 -msgid "System language" -msgstr "Idioma del sistema" - -#: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412 -msgid "Refresh rate" -msgstr "Frecuencia de actualización" - -#: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625 -#: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414 +#: client/scenes/gui_common.cpp:38 client/scenes/gui_common.cpp:64 msgctxt "automatic refresh rate" msgid "Automatic" msgstr "Automática" -#: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421 +#: client/scenes/gui_common.cpp:42 +#, c++-format +msgctxt "refresh rate selection, with reprojection" +msgid "{} ({} with space warp)" +msgstr "{} ({} con reproyección)" + +#: client/scenes/gui_common.cpp:60 +msgid "Refresh rate" +msgstr "Frecuencia de actualización" + +#: client/scenes/gui_common.cpp:74 msgid "" "Select refresh rate based on measured application performance.\n" "May cause flicker when a change happens." @@ -212,38 +71,180 @@ msgstr "" "aplicación.\n" "Puede causar parpadeos cuando ocurre un cambio." -#: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439 +#: client/scenes/gui_common.cpp:101 msgid "Minimum refresh rate" msgstr "Tasa mínima de refresco" -#: client/scenes/lobby_gui.cpp:675 -msgid "Foveation level" -msgstr "Nivel de fóvea" +#: client/scenes/lobby.cpp:221 +msgid "Incompatible WiVRn server: no protocol field in TXT" +msgstr "Servidor WiVRn incompatible: no hay campo de protocolo en TXT" -#: client/scenes/lobby_gui.cpp:698 +#: client/scenes/lobby.cpp:224 +#, c++-format +msgid "Incompatible WiVRn server protocol (client: {}, server: {})" +msgstr "Protocolo del servidor WiVRn incompatible (cliente: {}, servidor: {})" + +#: client/scenes/lobby.cpp:239 +#, c++-format +msgid "Cannot resolve hostname: {}" +msgstr "No se puede resolver el nombre de host: {}" + +#: client/scenes/lobby.cpp:326 client/scenes/lobby.cpp:332 +#, c++-format +msgid "Cannot connect to {} ({}): {}" +msgstr "No se puede conectar a {} ({}): {}" + +#: client/scenes/lobby.cpp:410 +msgid "Waiting for connection" +msgstr "Esperando conexión" + +#: client/scenes/lobby.cpp:1298 +msgid "Passthrough" +msgstr "Exterior" + +#: client/scenes/lobby.cpp:1310 +msgid "Default environment" +msgstr "Entorno por defecto" + +#: client/scenes/lobby_gui.cpp:102 +msgctxt "openxr_post_processing" +msgid "Normal" +msgstr "Normal" + +#: client/scenes/lobby_gui.cpp:105 +msgctxt "openxr_post_processing" +msgid "Quality" +msgstr "Calidad" + +#: client/scenes/lobby_gui.cpp:107 +msgctxt "openxr_post_processing" +msgid "Disabled" +msgstr "Deshabilitado" + +#: client/scenes/lobby_gui.cpp:115 client/scenes/lobby_gui.cpp:255 +#: client/scenes/stream_gui.cpp:973 +msgid "Disconnect" +msgstr "Desconectar" + +#: client/scenes/lobby_gui.cpp:135 client/scenes/lobby_gui.cpp:265 +#: client/scenes/lobby_gui_customize.cpp:752 +#: client/scenes/lobby_gui_customize.cpp:843 +#: client/scenes/lobby_gui_customize.cpp:899 client/scenes/stream_gui.cpp:969 +msgid "Close" +msgstr "Cerrar" + +#: client/scenes/lobby_gui.cpp:141 +msgid "Connection" +msgstr "Conexión" + +#: client/scenes/lobby_gui.cpp:143 +#, c++-format +msgid "Connection to {}" +msgstr "Conexión a {}" + +#: client/scenes/lobby_gui.cpp:173 +msgid "PIN" +msgstr "PIN" + +#: client/scenes/lobby_gui.cpp:195 +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:283 +msgid "Disconnected" +msgstr "Desconectado" + +#: client/scenes/lobby_gui.cpp:285 +#, c++-format +msgid "Disconnected from {}" +msgstr "Desconectado de {}" + +#: client/scenes/lobby_gui.cpp:317 +msgid "Name" +msgstr "Nombre" + +#: client/scenes/lobby_gui.cpp:328 +msgid "Address" +msgstr "Dirección" + +#: client/scenes/lobby_gui.cpp:337 +msgid "Port" +msgstr "Puerto" + +#: client/scenes/lobby_gui.cpp:345 +msgid "TCP only" +msgstr "Solo TCP" + +#: client/scenes/lobby_gui.cpp:352 client/scenes/lobby_gui_customize.cpp:654 +#: client/scenes/stream_gui.cpp:924 +msgid "Cancel" +msgstr "Cancelar" + +#: client/scenes/lobby_gui.cpp:366 +msgid "Save" +msgstr "Guardar" + +#: client/scenes/lobby_gui.cpp:419 +msgid "" +"Start a WiVRn server on your\n" +"local network" +msgstr "" +"Inicia un servidor WiVRn en tu\n" +"red local" + +#: client/scenes/lobby_gui.cpp:451 +msgid "Autoconnect" +msgstr "Conexión automática" + +#: client/scenes/lobby_gui.cpp:477 +msgid "Connect" +msgstr "Conectar" + +#: client/scenes/lobby_gui.cpp:487 client/wivrn_client.cpp:186 +msgid "Incompatible server version" +msgstr "Versión del servidor incompatible" + +#: client/scenes/lobby_gui.cpp:489 +msgid "Server not available" +msgstr "Servidor no disponible" + +#: client/scenes/lobby_gui.cpp:582 +msgctxt "language selection, replace with the name of the language" +msgid "English" +msgstr "Español" + +#: client/scenes/lobby_gui.cpp:596 +msgid "Language" +msgstr "Idioma" + +#: client/scenes/lobby_gui.cpp:596 client/scenes/lobby_gui.cpp:598 +msgid "System language" +msgstr "Idioma del sistema" + +#: client/scenes/lobby_gui.cpp:627 msgid "Render resolution" msgstr "Resolución de renderizado" -#: client/scenes/lobby_gui.cpp:702 +#: client/scenes/lobby_gui.cpp:631 #, c-format, c++-format msgid "{}%% - {}x{} per eye" msgstr "{}%% - {}x{} por ojo" -#: client/scenes/lobby_gui.cpp:713 +#: client/scenes/lobby_gui.cpp:642 #, 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:723 +#: client/scenes/lobby_gui.cpp:652 msgid "Foveated encoding" msgstr "Codificación foveada" -#: client/scenes/lobby_gui.cpp:727 +#: client/scenes/lobby_gui.cpp:656 #, c-format, c++-format msgid "{}%%" msgstr "{}%%" -#: client/scenes/lobby_gui.cpp:740 +#: client/scenes/lobby_gui.cpp:669 msgid "" "Higher values focus image quality where you look at,\n" "improving latency, power efficiency and quality." @@ -251,7 +252,7 @@ msgstr "" "Un mayor valor hará que la calidad de la imagen se centre a donde tú mires\n" "mejorando la latencia, eficiencia energética y calidad." -#: client/scenes/lobby_gui.cpp:743 +#: client/scenes/lobby_gui.cpp:672 msgid "" "Higher values focus image quality at the center,\n" "improving latency, power efficiency and quality." @@ -259,90 +260,90 @@ msgstr "" "Un mayor valor hará que la calidad de la imagen se centre en el centro\n" "mejorando la latencia, eficiencia energética y calidad." -#: client/scenes/lobby_gui.cpp:752 +#: client/scenes/lobby_gui.cpp:681 msgctxt "Codec" msgid "Automatic" msgstr "Automático" -#: client/scenes/lobby_gui.cpp:756 +#: client/scenes/lobby_gui.cpp:685 msgctxt "Codec" msgid "H.264" msgstr "H.264" -#: client/scenes/lobby_gui.cpp:758 +#: client/scenes/lobby_gui.cpp:687 msgctxt "Codec" msgid "H.265" msgstr "H.265" -#: client/scenes/lobby_gui.cpp:760 +#: client/scenes/lobby_gui.cpp:689 msgctxt "Codec" msgid "AV1" msgstr "AV1" -#: client/scenes/lobby_gui.cpp:768 +#: client/scenes/lobby_gui.cpp:697 msgid "Codec" msgstr "Codec" -#: client/scenes/lobby_gui.cpp:796 +#: client/scenes/lobby_gui.cpp:725 msgid "10-bit" msgstr "10-bit" -#: client/scenes/lobby_gui.cpp:812 +#: client/scenes/lobby_gui.cpp:741 msgid "Bitrate" msgstr "Bitrate" -#: client/scenes/lobby_gui.cpp:816 +#: client/scenes/lobby_gui.cpp:745 #, c++-format msgid "{}Mbit/s" msgstr "{}Mbit/s" -#: client/scenes/lobby_gui.cpp:827 +#: client/scenes/lobby_gui.cpp:756 msgid "High power mode" msgstr "Modo de alto rendimiento" -#: client/scenes/lobby_gui.cpp:830 +#: client/scenes/lobby_gui.cpp:759 msgid "Increase power usage to allow higher resolution and refresh rate" msgstr "" "Incrementa el uso de energía para permitir una mayor resolución y frecuencia " "de refresco" -#: client/scenes/lobby_gui.cpp:836 +#: client/scenes/lobby_gui.cpp:765 msgid "Enable microphone" msgstr "Activar micrófono" -#: client/scenes/lobby_gui.cpp:845 +#: client/scenes/lobby_gui.cpp:774 msgid "Unprocessed Microphone Audio" msgstr "Entrada de audio sin procesar" -#: client/scenes/lobby_gui.cpp:851 +#: client/scenes/lobby_gui.cpp:780 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:858 +#: client/scenes/lobby_gui.cpp:787 msgid "Enable hand tracking" msgstr "Activar seguimiento de manos" -#: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875 -#: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900 -#: client/scenes/lobby_gui_customize.cpp:640 +#: client/scenes/lobby_gui.cpp:793 client/scenes/lobby_gui.cpp:804 +#: client/scenes/lobby_gui.cpp:814 client/scenes/lobby_gui.cpp:829 +#: client/scenes/lobby_gui_customize.cpp:639 msgid "This feature is not supported by your headset" msgstr "Esta función no es compatible con tu visor" -#: client/scenes/lobby_gui.cpp:869 +#: client/scenes/lobby_gui.cpp:798 msgid "Enable eye tracking" msgstr "Activar seguimiento ocular" -#: client/scenes/lobby_gui.cpp:880 +#: client/scenes/lobby_gui.cpp:809 msgid "Enable face tracking" msgstr "Activar seguimiento facial" -#: client/scenes/lobby_gui.cpp:892 +#: client/scenes/lobby_gui.cpp:821 msgid "Enable body tracking" msgstr "Habilitar seguimiento corporal" -#: client/scenes/lobby_gui.cpp:905 +#: client/scenes/lobby_gui.cpp:834 msgid "" "Requires 'Hand and body tracking' to be enabled in the Quest movement " "tracking settings,\n" @@ -353,11 +354,11 @@ msgstr "" "si no el seguimiento corporal será medido por la posición de los controles y " "el visor" -#: client/scenes/lobby_gui.cpp:915 +#: client/scenes/lobby_gui.cpp:844 msgid "Enable lower body tracking" msgstr "Habilitar seguimiento de cintura para abajo" -#: client/scenes/lobby_gui.cpp:921 +#: client/scenes/lobby_gui.cpp:850 msgid "" "Estimate lower body joint positions using Generative Legs\n" "Requires 'Hand and body tracking' to be enabled in the Quest movement " @@ -368,11 +369,11 @@ msgstr "" "Requiere habilitar 'Seguimiento de manos y del cuerpo' en los ajustes de " "movimiento de Quest" -#: client/scenes/lobby_gui.cpp:924 +#: client/scenes/lobby_gui.cpp:853 msgid "Enable hip tracking" msgstr "Habilitar seguimiento de cintura" -#: client/scenes/lobby_gui.cpp:930 +#: client/scenes/lobby_gui.cpp:859 msgid "" "Only takes affect with lower body tracking enabled\n" "May be desired when using another source of hip tracking" @@ -380,11 +381,11 @@ msgstr "" "Solo es funcional si tiene habilitado el seguimiento de cintura para abajo.\n" "Puede ser necesario si está usando otro metodo para seguir la cintura" -#: client/scenes/lobby_gui.cpp:939 +#: client/scenes/lobby_gui.cpp:868 msgid "Enable in-stream window" msgstr "Habilitar ventana mientras se juega" -#: client/scenes/lobby_gui.cpp:942 +#: client/scenes/lobby_gui.cpp:871 msgid "" "Enables the configuration window to be shown while the game is streaming.\n" "If enabled, the window is activated by pressing both thumbsticks." @@ -392,25 +393,25 @@ msgstr "" "Permite que la ventana de configuración se muestre mientras se juega.\n" "Si se habilita, la ventana se activará al presionar ambos joysticks." -#: client/scenes/lobby_gui.cpp:946 +#: client/scenes/lobby_gui.cpp:875 msgid "Extended configuration values" msgstr "Extender valores de configuración" -#: client/scenes/lobby_gui.cpp:949 +#: client/scenes/lobby_gui.cpp:878 msgid "Allows unsafe configuration values, use at your own risk." msgstr "" "Permitir valores de configuración inseguros, usar bajo propia " "responsabilidad." -#: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473 +#: client/scenes/lobby_gui.cpp:892 client/scenes/stream_gui.cpp:419 msgid "OpenXR post-processing" msgstr "Post-procesamiento de OpenXR" -#: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477 +#: client/scenes/lobby_gui.cpp:896 client/scenes/stream_gui.cpp:423 msgid "Supersampling" msgstr "Sobremuestreo" -#: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498 +#: client/scenes/lobby_gui.cpp:916 client/scenes/stream_gui.cpp:444 msgid "" "Reduce flicker for high contrast edges.\n" "Useful when the input resolution is high compared to the headset display" @@ -419,11 +420,11 @@ msgstr "" "Útil cuando la resolución de entrada es alta comparada con la pantalla del " "visor" -#: client/scenes/lobby_gui.cpp:992 client/scenes/stream_gui.cpp:503 +#: client/scenes/lobby_gui.cpp:921 client/scenes/stream_gui.cpp:449 msgid "Sharpening" msgstr "Nitidez" -#: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524 +#: client/scenes/lobby_gui.cpp:941 client/scenes/stream_gui.cpp:470 msgid "" "Improve clarity of high contrast edges and counteract blur.\n" "Useful when the input resolution is low compared to the headset display" @@ -432,129 +433,129 @@ msgstr "" "Útil cuando la resolución de entrada es baja comparada con la pantalla del " "visor" -#: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204 -#: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371 +#: client/scenes/lobby_gui.cpp:1125 client/scenes/lobby_gui.cpp:1133 +#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:372 msgid "CPU time" msgstr "Tiempo de CPU" -#: client/scenes/lobby_gui.cpp:1200 +#: client/scenes/lobby_gui.cpp:1129 msgid "CPU time [ms]" msgstr "Tiempo de CPU [ms]" -#: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218 -#: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372 +#: client/scenes/lobby_gui.cpp:1139 client/scenes/lobby_gui.cpp:1147 +#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:373 msgid "GPU time" msgstr "Tiempo de GPU" -#: client/scenes/lobby_gui.cpp:1214 +#: client/scenes/lobby_gui.cpp:1143 msgid "GPU time [ms]" msgstr "Tiempo de GPU [ms]" -#: client/scenes/lobby_gui.cpp:1278 +#: client/scenes/lobby_gui.cpp:1207 msgid "Enable the microphone?" msgstr "¿Habilitar micrófono?" -#: client/scenes/lobby_gui.cpp:1283 +#: client/scenes/lobby_gui.cpp:1212 msgid "Enable eye tracking?" msgstr "¿Habilitar seguimiento ocular?" -#: client/scenes/lobby_gui.cpp:1288 +#: client/scenes/lobby_gui.cpp:1217 msgid "Enable face tracking?" msgstr "¿Habilitar seguimiento facial?" -#: client/scenes/lobby_gui.cpp:1293 +#: client/scenes/lobby_gui.cpp:1222 msgid "Enable body tracking?" msgstr "¿Habilitar seguimiento corporal?" -#: client/scenes/lobby_gui.cpp:1301 +#: client/scenes/lobby_gui.cpp:1230 msgid "Welcome to WiVRn" msgstr "Bienvenido a WiVRn" -#: client/scenes/lobby_gui.cpp:1329 +#: client/scenes/lobby_gui.cpp:1258 msgid "Yes" msgstr "Sí" -#: client/scenes/lobby_gui.cpp:1336 +#: client/scenes/lobby_gui.cpp:1265 msgid "No" msgstr "No" -#: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001 +#: client/scenes/lobby_gui.cpp:1284 client/scenes/lobby_gui.cpp:1930 msgid "Licenses" msgstr "Licencias" -#: client/scenes/lobby_gui.cpp:1631 +#: client/scenes/lobby_gui.cpp:1560 msgid "Microphone is enabled" msgstr "Micrófono activado" -#: client/scenes/lobby_gui.cpp:1632 +#: client/scenes/lobby_gui.cpp:1561 msgid "Microphone is disabled" msgstr "Micrófono desactivado" -#: client/scenes/lobby_gui.cpp:1641 +#: client/scenes/lobby_gui.cpp:1570 msgid "Hand tracking is enabled" msgstr "Seguimiento de manos activado" -#: client/scenes/lobby_gui.cpp:1642 +#: client/scenes/lobby_gui.cpp:1571 msgid "Hand tracking is disabled" msgstr "Seguimiento de manos desactivado" -#: client/scenes/lobby_gui.cpp:1651 +#: client/scenes/lobby_gui.cpp:1580 msgid "Eye tracking is enabled" msgstr "Seguimiento ocular activado" -#: client/scenes/lobby_gui.cpp:1652 +#: client/scenes/lobby_gui.cpp:1581 msgid "Eye tracking is disabled" msgstr "Seguimiento ocular desactivado" -#: client/scenes/lobby_gui.cpp:1662 +#: client/scenes/lobby_gui.cpp:1591 msgid "Face tracking is enabled" msgstr "Seguimiento facial activado" -#: client/scenes/lobby_gui.cpp:1663 +#: client/scenes/lobby_gui.cpp:1592 msgid "Face tracking is disabled" msgstr "Seguimiento facial desactivado" -#: client/scenes/lobby_gui.cpp:1677 +#: client/scenes/lobby_gui.cpp:1606 msgid "Body tracking is enabled" msgstr "Seguimiento corporal está habilitado" -#: client/scenes/lobby_gui.cpp:1678 +#: client/scenes/lobby_gui.cpp:1607 msgid "Body tracking is disabled" msgstr "Seguimiento corporal está deshabilitado" -#: client/scenes/lobby_gui.cpp:1694 +#: client/scenes/lobby_gui.cpp:1623 msgid "Add server" msgstr "Agregar servidor" -#: client/scenes/lobby_gui.cpp:1980 +#: client/scenes/lobby_gui.cpp:1909 msgid "Server list" msgstr "Lista de servidores" -#: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007 +#: client/scenes/lobby_gui.cpp:1912 client/scenes/stream_gui.cpp:954 msgid "Settings" msgstr "Configuración" -#: client/scenes/lobby_gui.cpp:1986 +#: client/scenes/lobby_gui.cpp:1915 msgid "Post-processing" msgstr "Post-procesamiento" -#: client/scenes/lobby_gui.cpp:1989 +#: client/scenes/lobby_gui.cpp:1918 msgid "Customize" msgstr "Personalización" -#: client/scenes/lobby_gui.cpp:1993 +#: client/scenes/lobby_gui.cpp:1922 msgid "Debug" msgstr "Depuración" -#: client/scenes/lobby_gui.cpp:1998 +#: client/scenes/lobby_gui.cpp:1927 msgid "About" msgstr "Acerca de" -#: client/scenes/lobby_gui.cpp:2004 +#: client/scenes/lobby_gui.cpp:1933 msgid "Exit" msgstr "Salir" -#: client/scenes/lobby_gui.cpp:2021 +#: client/scenes/lobby_gui.cpp:1950 msgid "" "Press the grip button or put your palm up\n" "to move the main window" @@ -562,7 +563,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:2023 +#: client/scenes/lobby_gui.cpp:1952 msgid "Press the grip button to move the main window" msgstr "Pulsa el botón de agarre para mover la ventana principal" @@ -575,38 +576,38 @@ msgstr "Entorno local cargado" msgid "Locally loaded environment ({})" msgstr "Entorno local ({}) cargado" -#: client/scenes/lobby_gui_customize.cpp:300 +#: client/scenes/lobby_gui_customize.cpp:299 #, c++-format msgid "Cannot load local environment: {}" msgstr "No se ha podido cargar el entorno local: {}" -#: client/scenes/lobby_gui_customize.cpp:333 +#: client/scenes/lobby_gui_customize.cpp:332 #, c++-format msgid "Cannot load environment list: {}" msgstr "No se ha podido cargar la lista del entorno: {}" -#: client/scenes/lobby_gui_customize.cpp:463 +#: client/scenes/lobby_gui_customize.cpp:462 #, c++-format msgid "Author: {}" msgstr "Autor: {}" -#: client/scenes/lobby_gui_customize.cpp:467 +#: client/scenes/lobby_gui_customize.cpp:466 #, c++-format msgid "Size: {:.1f} MB" msgstr "Tamaño: {:.1f} MB" -#: client/scenes/lobby_gui_customize.cpp:547 +#: client/scenes/lobby_gui_customize.cpp:546 msgid "Delete this model" msgstr "Borrar este modelo" -#: client/scenes/lobby_gui_customize.cpp:583 -#: client/scenes/lobby_gui_customize.cpp:789 +#: client/scenes/lobby_gui_customize.cpp:582 +#: client/scenes/lobby_gui_customize.cpp:788 #, c++-format msgid "HTTP error {} when downloading {}" msgstr "Error HTTP {} mientras se descargaba {}" -#: client/scenes/lobby_gui_customize.cpp:591 -#: client/scenes/lobby_gui_customize.cpp:797 +#: client/scenes/lobby_gui_customize.cpp:590 +#: client/scenes/lobby_gui_customize.cpp:796 #, c++-format msgid "" "Curl error when downloading {}\n" @@ -615,186 +616,186 @@ msgstr "" "Error de Curl mientras se descargaba {}\n" "{}: {}" -#: client/scenes/lobby_gui_customize.cpp:652 +#: client/scenes/lobby_gui_customize.cpp:651 #, c++-format msgid "Really delete {}?" msgstr "Seguro que quiere borrar {}?" -#: client/scenes/lobby_gui_customize.cpp:656 +#: client/scenes/lobby_gui_customize.cpp:655 msgid "Delete" msgstr "Borrar" -#: client/scenes/lobby_gui_customize.cpp:737 +#: client/scenes/lobby_gui_customize.cpp:736 #, c++-format msgid "Cannot load environment: {}" msgstr "No se puede cargar el entorno: {}" -#: client/scenes/lobby_gui_customize.cpp:745 +#: client/scenes/lobby_gui_customize.cpp:744 msgid "Loading environment" msgstr "Cargando entorno" -#: client/scenes/lobby_gui_customize.cpp:824 +#: client/scenes/lobby_gui_customize.cpp:823 msgid "Download more environments" msgstr "Descargar más entornos" -#: client/scenes/lobby_gui_customize.cpp:832 +#: client/scenes/lobby_gui_customize.cpp:831 msgid "Open local glTF model" msgstr "Abrir modelo glTF local" -#: client/scenes/stream_gui.cpp:175 +#: client/scenes/stream_gui.cpp:176 msgid "Defoveate" msgstr "Desfovear" -#: client/scenes/stream_gui.cpp:177 +#: client/scenes/stream_gui.cpp:178 msgid "Network" msgstr "Red" -#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369 +#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370 msgid "Download" msgstr "Descargar" -#: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370 +#: client/scenes/stream_gui.cpp:179 client/scenes/stream_gui.cpp:371 msgid "Upload" msgstr "Subir" -#: client/scenes/stream_gui.cpp:247 +#: client/scenes/stream_gui.cpp:248 #, c++-format msgid "Decoder {}" msgstr "Decodificador {}" -#: client/scenes/stream_gui.cpp:259 +#: client/scenes/stream_gui.cpp:260 msgid "Timings [ms]" msgstr "Tiempos [ms]" -#: client/scenes/stream_gui.cpp:319 +#: client/scenes/stream_gui.cpp:320 msgid "Encode" msgstr "Codificar" -#: client/scenes/stream_gui.cpp:320 +#: client/scenes/stream_gui.cpp:321 msgid "Send" msgstr "Enviar" -#: client/scenes/stream_gui.cpp:321 +#: client/scenes/stream_gui.cpp:322 msgid "Receive" msgstr "Recibir" -#: client/scenes/stream_gui.cpp:322 +#: client/scenes/stream_gui.cpp:323 msgid "Decode" msgstr "Decodificar" -#: client/scenes/stream_gui.cpp:323 +#: client/scenes/stream_gui.cpp:324 msgid "Blitted" msgstr "Copiado" -#: client/scenes/stream_gui.cpp:324 +#: client/scenes/stream_gui.cpp:325 msgid "Displayed" msgstr "Mostrado" -#: client/scenes/stream_gui.cpp:325 +#: client/scenes/stream_gui.cpp:326 msgid "Predicted" msgstr "Previsto" -#: client/scenes/stream_gui.cpp:344 +#: client/scenes/stream_gui.cpp:345 #, c++-format msgid "Estimated motion to photons latency: {}ms" msgstr "Latencia estimada de movimiento a fotones: {}ms" -#: client/scenes/stream_gui.cpp:349 +#: client/scenes/stream_gui.cpp:350 msgid "Press the grip button to move the window" msgstr "Pulsa el botón de agarre para mover la ventana" -#: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738 +#: client/scenes/stream_gui.cpp:352 client/scenes/stream_gui.cpp:684 msgid "Press both thumbsticks to display the WiVRn window" msgstr "Pulsa ambos joysticks para mostrar la ventana de WiVRn" -#: client/scenes/stream_gui.cpp:373 +#: client/scenes/stream_gui.cpp:374 msgid "Motion to photon latency" msgstr "Latencia entre el movimiento y la imagen mostrada" -#: client/scenes/stream_gui.cpp:458 +#: client/scenes/stream_gui.cpp:404 msgid "Bitrate:" msgstr "Bitrate:" -#: client/scenes/stream_gui.cpp:468 +#: client/scenes/stream_gui.cpp:414 msgid "Click to adjust bitrate" msgstr "Haga click para ajustar el bitrate" -#: client/scenes/stream_gui.cpp:532 +#: client/scenes/stream_gui.cpp:478 msgid "Foveation center override" msgstr "Reajustar el centro de la fóvea" -#: client/scenes/stream_gui.cpp:535 +#: client/scenes/stream_gui.cpp:481 msgid "Enable" msgstr "Habilitar" -#: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614 +#: client/scenes/stream_gui.cpp:489 client/scenes/stream_gui.cpp:560 #, c++-format msgid "Height {:.1f} deg" msgstr "Altura {:.1f} °" -#: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615 +#: client/scenes/stream_gui.cpp:490 client/scenes/stream_gui.cpp:561 #, c++-format msgid "Distance {:.2f} m" msgstr "Distancia {:.2f} m" -#: client/scenes/stream_gui.cpp:545 +#: client/scenes/stream_gui.cpp:491 msgid "Default" msgstr "Por defecto" -#: client/scenes/stream_gui.cpp:556 +#: client/scenes/stream_gui.cpp:502 msgid "Change" msgstr "Cambiar" -#: client/scenes/stream_gui.cpp:588 +#: client/scenes/stream_gui.cpp:534 msgid "Use the right thumbstick to adjust the bitrate" msgstr "Use el stick derecho para ajustar el bitrate" -#: client/scenes/stream_gui.cpp:589 +#: client/scenes/stream_gui.cpp:535 msgid "Press A to go back" msgstr "Pulse A para volver" -#: client/scenes/stream_gui.cpp:590 +#: client/scenes/stream_gui.cpp:536 #, c++-format msgid "Bitrate: {}Mbit/s" msgstr "Bitrate: {}Mbit/s" -#: client/scenes/stream_gui.cpp:612 +#: client/scenes/stream_gui.cpp:558 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:613 +#: client/scenes/stream_gui.cpp:559 msgid "Press A to save or B to cancel" msgstr "Pulsa A para guardar o B para cancelar" -#: client/scenes/stream_gui.cpp:671 +#: client/scenes/stream_gui.cpp:617 msgid "Running XR applications:" msgstr "Aplicaciones XR ejecutandose:" -#: client/scenes/stream_gui.cpp:688 +#: client/scenes/stream_gui.cpp:634 msgid "Overlays" msgstr "Superposiciones" -#: client/scenes/stream_gui.cpp:727 +#: client/scenes/stream_gui.cpp:673 msgid "Request to quit, may be ignored by the application" msgstr "Pedir salir, puede ser ignorado por la aplicación" -#: client/scenes/stream_gui.cpp:993 +#: client/scenes/stream_gui.cpp:940 msgid "Applications" msgstr "Aplicaciones" -#: client/scenes/stream_gui.cpp:996 +#: client/scenes/stream_gui.cpp:943 msgid "Start" msgstr "Iniciar" -#: client/scenes/stream_gui.cpp:1010 +#: client/scenes/stream_gui.cpp:957 msgid "Stats" msgstr "Estadísticas" -#: client/scenes/stream_gui.cpp:1016 +#: client/scenes/stream_gui.cpp:963 msgid "Statistics overlay" msgstr "Superponer stats" -#: client/scenes/stream_gui.cpp:1019 +#: client/scenes/stream_gui.cpp:966 msgid "Compact view" msgstr "Vista compacta" @@ -814,6 +815,9 @@ msgstr "No se puede verificar el PIN" msgid "Pairing is disabled on server" msgstr "El emparejamiento está deshabilitado en el servidor" +#~ msgid "Foveation level" +#~ msgstr "Nivel de fóvea" + #~ msgid "Stream resolution" #~ msgstr "Resolución de la retransmisión" From d910750387984ea08f6e85ad432a8c5bdaedc0d6 Mon Sep 17 00:00:00 2001 From: ZokuTe Date: Wed, 22 Apr 2026 01:03:40 +0800 Subject: [PATCH 43/47] Polish Simplified Chinese translations --- locale/zh_CN/wivrn-dashboard.po | 106 ++++++++++++++++---------------- locale/zh_CN/wivrn.po | 42 ++++++------- 2 files changed, 74 insertions(+), 74 deletions(-) diff --git a/locale/zh_CN/wivrn-dashboard.po b/locale/zh_CN/wivrn-dashboard.po index 91d54ab7..289a8c44 100644 --- a/locale/zh_CN/wivrn-dashboard.po +++ b/locale/zh_CN/wivrn-dashboard.po @@ -22,17 +22,17 @@ msgstr "" #: dashboard/apk_installer.cpp:137 #, kde-format msgid "Cannot save APK file: %1" -msgstr "无法保存 APK 文件: %1" +msgstr "无法保存 APK 文件:%1" #: dashboard/apk_installer.cpp:171 #, kde-format msgid "Downloading APK: %1 MB / %2 MB" -msgstr "正在下载 APK: %1 MB / %2 MB" +msgstr "正在下载 APK:%1 MB / %2 MB" #: dashboard/apk_installer.cpp:173 #, kde-format msgid "Downloading APK: %1 MB" -msgstr "正在下载 APK: %1 MB" +msgstr "正在下载 APK:%1 MB" #: dashboard/apk_installer.cpp:182 #, kde-format @@ -42,7 +42,7 @@ msgstr "下载已取消" #: dashboard/apk_installer.cpp:198 #, kde-format msgid "Cannot download APK: %1" -msgstr "无法下载 APK: %1" +msgstr "无法下载 APK:%1" #: dashboard/apk_installer.cpp:221 #, kde-format @@ -52,17 +52,17 @@ msgstr "正在安装 APK" #: dashboard/apk_installer.cpp:225 #, kde-format msgid "adb failed to start: %1" -msgstr "adb 启动失败: %1" +msgstr "adb 启动失败:%1" #: dashboard/apk_installer.cpp:235 #, kde-format msgid "adb exited abnormally: %1" -msgstr "adb 异常终止: %1" +msgstr "adb 异常终止:%1" #: dashboard/apk_installer.cpp:243 #, kde-format msgid "The 'adb install' command failed: exit code %1" -msgstr "'adb install' 执行失败: 终止代码 %1" +msgstr "'adb install' 执行失败:终止代码 %1" #: dashboard/apk_installer.cpp:248 #, kde-format @@ -112,7 +112,7 @@ msgstr "在您的头显上安装 WiVRn 应用程序" #: dashboard/qml/WizardPage.qml:192 #, kde-format msgid "Checking latest release..." -msgstr "正在检查最新版本..." +msgstr "正在检查最新版本…" #: dashboard/qml/ApkInstallPage.qml:43 dashboard/qml/WizardPage.qml:198 #, kde-format @@ -139,7 +139,7 @@ msgid "" "client." msgstr "" "请按照 文档中的说明构建您自己的客户端。" +"building.md#client-headset\">文档中的说明来构建您自己的客户端。" #: dashboard/qml/ConnectUsbDialog.qml:11 #, kde-format @@ -170,25 +170,25 @@ msgstr "头显" #, kde-format msgid "Last connection: %1 second ago" msgid_plural "Last connection: %1 seconds ago" -msgstr[0] "上次连接时间:%1 秒前" +msgstr[0] "上次连接:%1 秒前" #: dashboard/qml/HeadsetsPage.qml:31 #, kde-format msgid "Last connection: %1 minute ago" msgid_plural "Last connection: %1 minutes ago" -msgstr[0] "上次连接时间:%1 分鐘前" +msgstr[0] "上次连接:%1 分钟前" #: dashboard/qml/HeadsetsPage.qml:33 #, kde-format msgid "Last connection: %1 hour ago" msgid_plural "Last connection: %1 hours ago" -msgstr[0] "上次连接时间:%1 小時前" +msgstr[0] "上次连接:%1 小时前" #: dashboard/qml/HeadsetsPage.qml:35 #, kde-format msgid "Last connection: %1 day ago" msgid_plural "Last connection: %1 days ago" -msgstr[0] "上次连接时间:%1 天前" +msgstr[0] "上次连接:%1 天前" #: dashboard/qml/HeadsetsPage.qml:40 #, kde-format @@ -306,12 +306,12 @@ msgstr "更多信息" #: dashboard/qml/Main.qml:193 #, kde-format msgid "Vulkan drivers cannot be found, you may need to run \"flatpak update\"" -msgstr "找不到 Vulkan 设备,您或许需要执行 \"flatpak update\"" +msgstr "无法找到 Vulkan 驱动,您或许需要执行「flatpak update」" #: dashboard/qml/Main.qml:193 #, kde-format msgid "Vulkan drivers cannot be found" -msgstr "无法找到 Vulkan 设备" +msgstr "无法找到 Vulkan 驱动" #: dashboard/qml/Main.qml:201 #, kde-format @@ -329,7 +329,7 @@ msgid "" "Install xrizer or OpenComposite." msgstr "" "系统未检测到 OpenVR 兼容层,Steam 平台上的 VR 游戏无法正常加载。\n" -"请安装 xrizer 或 OpenComposite" +"请安装 xrizer 或 OpenComposite。" #: dashboard/qml/Main.qml:217 #, kde-format @@ -412,7 +412,7 @@ msgstr "USB" #, kde-format msgctxt "usb connect button" msgid "Connect (wired)" -msgstr "链接 (有线)" +msgstr "连接 (有线)" #: dashboard/qml/Main.qml:383 dashboard/qml/WizardPage.qml:339 #, kde-format @@ -485,7 +485,7 @@ msgstr "重置" #: dashboard/qml/SettingsPage.qml:40 #, kde-format msgid "Encoder:" -msgstr "编码:" +msgstr "编码器:" #: dashboard/qml/SettingsPage.qml:46 #, kde-format @@ -496,17 +496,17 @@ msgstr "自动" #: dashboard/qml/SettingsPage.qml:50 #, kde-format msgid "nvenc (NVIDIA GPUs)" -msgstr "nvenc (NVIDIA GPUs)" +msgstr "nvenc (NVIDIA 显卡)" #: dashboard/qml/SettingsPage.qml:54 #, kde-format msgid "vaapi (AMD and Intel GPUs)" -msgstr "vaapi (AMD 和 Intel GPUs)" +msgstr "vaapi (AMD 和 Intel 显卡)" #: dashboard/qml/SettingsPage.qml:58 #, kde-format msgid "Vulkan (Any modern GPU)" -msgstr "Vulkan (任何现代 GPU)" +msgstr "Vulkan (任何现代显卡)" #: dashboard/qml/SettingsPage.qml:62 #, kde-format @@ -579,7 +579,7 @@ msgstr "自定义 adb 路径" #: dashboard/qml/SettingsPage.qml:145 #, kde-format msgid "Adb location:" -msgstr "adb 路径:" +msgstr "ADB 路径:" #: dashboard/qml/SettingsPage.qml:154 #, kde-format @@ -626,7 +626,7 @@ msgid "" "General and paste this in \"Launch options\":" msgstr "" "对于 Steam 游戏,在 Steam 中右键点击游戏,前往「属性」>「通用」,然后将此文本" -"粘贴到「启动选项」中:" +"粘贴到「启动选项」中:" #: dashboard/qml/SteamLaunchOptions.qml:20 #, kde-format @@ -642,12 +642,12 @@ msgstr "复制" #: dashboard/qml/SteamLaunchOptions.qml:30 #, kde-format msgid "Copied Steam launch command" -msgstr "已复制 Steam 自动指令" +msgstr "已复制 Steam 启动命令" #: dashboard/qml/TroubleshootPage.qml:20 #, kde-format msgid "I cannot find the WiVRn app on my headset" -msgstr "我在我的头显上找不到 WiVRn 应用程序。" +msgstr "在头显上找不到 WiVRn 应用程序。" #: dashboard/qml/TroubleshootPage.qml:21 dashboard/qml/WizardPage.qml:353 #, kde-format @@ -655,34 +655,34 @@ msgid "" "If you installed WiVRn over USB on a Meta headset, the app is in the " "\"unknown sources\" section." msgstr "" -"如果您通过 USB 在 Meta 头显上安裝了 WiVRn,该应用程序将在「未知来源」中。" +"如果您通过 USB 在 Meta 头显上安装了 WiVRn,该应用程序将在「未知来源」中。" #: dashboard/qml/TroubleshootPage.qml:24 #, kde-format msgid "I cannot see my computer in the WiVRn app" -msgstr "我在 WiVRn 应用程序中看不到我的计算机。" +msgstr "在 WiVRn 应用程序中看不到计算机。" #: dashboard/qml/TroubleshootPage.qml:25 #, kde-format msgid "If you have a firewall, make sure that port 5353/UDP is open." -msgstr "如果你有防火墙,请确保端口 5353/UDP 是开放的。" +msgstr "如果您有防火墙,请确保端口 5353/UDP 是开放的。" #: dashboard/qml/TroubleshootPage.qml:28 #, kde-format msgid "Connecting remains stuck on \"Connection to ...\"" -msgstr "连接过程一直停留在 \"正在连接到 …\"" +msgstr "连接过程一直停留在「正在连接到 …」" #: dashboard/qml/TroubleshootPage.qml:29 dashboard/qml/TroubleshootPage.qml:33 #, kde-format msgid "" "If you have a firewall, make sure that port 9757 is open both for TCP and " "UDP." -msgstr "如果你有防火墙,请确保端口 9757 在 TCP 和 UDP 下都是开放的。" +msgstr "如果您有防火墙,请确保端口 9757 在 TCP 和 UDP 下都是开放的。" #: dashboard/qml/TroubleshootPage.qml:32 #, kde-format msgid "Connection fails with \"no route to host\"" -msgstr "连接失败,错误信息为 \"no route to host\"" +msgstr "连接失败,错误信息为「no route to host」" #: dashboard/qml/TroubleshootPage.qml:36 #, kde-format @@ -697,7 +697,7 @@ msgid "" "server version is %1
" msgstr "" "

头显应用程序与计算机上服务器的版本必须一致。

  • 头显应用程序版本位" -"于\"关于\"页面
  • 服务器版本是%1
" +"于「关于」页面
  • 服务器版本是%1
  • " #: dashboard/qml/TroubleshootPage.qml:40 #, kde-format @@ -710,7 +710,7 @@ msgid "" "If you have reinstalled the server or the client or if you want to connect " "another headset, you must enable pairing before connecting." msgstr "" -"如果您已重新安装服务器或客户端,或如果您想连接另一个头显,您必须在连接前启用" +"如果您已重新安装服务器或客户端,或想连接另一个头显,必须在连接前启用" "配对。" #: dashboard/qml/TroubleshootPage.qml:41 @@ -721,7 +721,7 @@ msgstr "目前已启用配对,身份识别码为 %1。" #: dashboard/qml/TroubleshootPage.qml:41 #, kde-format msgid "Pairing is currently disabled." -msgstr "目前已停用配对" +msgstr "目前已停用配对。" #: dashboard/qml/TroubleshootPage.qml:57 #, kde-format @@ -733,7 +733,7 @@ msgstr "我的头显没有声音" msgid "" "When the headset is connected, select \"WiVRn\" as the default audio output " "device for applications to use it." -msgstr "连接头显后,选择 \"WiVRn\" 作为应用程序的预设音频输出设备。" +msgstr "连接头显后,选择「WiVRn」作为应用程序的预设音频输出设备。" #: dashboard/qml/TroubleshootPage.qml:61 #, kde-format @@ -797,7 +797,7 @@ msgstr "如何启用开发者模式" #: dashboard/qml/WizardPage.qml:119 #, kde-format msgid "Follow the manufacturer's instructions below:" -msgstr "请按照以下设备提供商的说明操作:" +msgstr "请按照以下设备提供商的说明操作:" #: dashboard/qml/WizardPage.qml:142 #, kde-format @@ -821,7 +821,7 @@ msgid "" "href=\"https://www.meta.com/experiences/7959676140827574/\">Meta store." msgstr "" "对于 Quest 2、3、3S 和 Pro,您可以从 Meta 商店获取应用程序." +"experiences/7959676140827574/\">Meta 商店获取应用程序。" #: dashboard/qml/WizardPage.qml:164 #, kde-format @@ -855,8 +855,8 @@ msgid "" "

    " msgstr "" -"

    未检测到头显。请确认:\n" -"