From 1e2823c0196971caa9b32956a2bd0469b3c9da76 Mon Sep 17 00:00:00 2001 From: Sapphire Date: Sat, 20 Dec 2025 18:22:28 -0600 Subject: [PATCH 1/3] Remove simple_controller binding for hand interaction --- server/driver/wivrn_controller.cpp | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/server/driver/wivrn_controller.cpp b/server/driver/wivrn_controller.cpp index 27f4040f..747801b5 100644 --- a/server/driver/wivrn_controller.cpp +++ b/server/driver/wivrn_controller.cpp @@ -570,22 +570,6 @@ make_binding_profiles() constexpr auto controller_per_hand_binding_profiles = std::to_array({make_binding_profiles<0>(), make_binding_profiles<1>()}); -xrt_binding_input_pair hand_interaction_simple_input_binding[] = { - {XRT_INPUT_SIMPLE_SELECT_CLICK, XRT_INPUT_HAND_PINCH_VALUE}, - {XRT_INPUT_SIMPLE_GRIP_POSE, XRT_INPUT_HAND_GRIP_POSE}, - {XRT_INPUT_SIMPLE_AIM_POSE, XRT_INPUT_HAND_AIM_POSE}, -}; - -xrt_binding_profile hand_interaction_binding_profiles[] = { - { - .name = XRT_DEVICE_SIMPLE_CONTROLLER, - .inputs = hand_interaction_simple_input_binding, - .input_count = std::size(hand_interaction_simple_input_binding), - .outputs = nullptr, - .output_count = 0, - }, -}; - struct xrt_space_relation_csv_header {}; @@ -617,8 +601,8 @@ wivrn_controller::wivrn_controller(xrt_device_name name, .device_type = hand_id == 0 ? XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER : XRT_DEVICE_TYPE_RIGHT_HAND_CONTROLLER, .hmd = nullptr, .tracking_origin = hmd->tracking_origin, - .binding_profile_count = name != XRT_DEVICE_EXT_HAND_INTERACTION ? controller_per_hand_binding_profiles[hand_id].size() : std::size(hand_interaction_binding_profiles), - .binding_profiles = name != XRT_DEVICE_EXT_HAND_INTERACTION ? (struct xrt_binding_profile *)controller_per_hand_binding_profiles[hand_id].data() : hand_interaction_binding_profiles, + .binding_profile_count = name != XRT_DEVICE_EXT_HAND_INTERACTION ? controller_per_hand_binding_profiles[hand_id].size() : 0, + .binding_profiles = name != XRT_DEVICE_EXT_HAND_INTERACTION ? (struct xrt_binding_profile *)controller_per_hand_binding_profiles[hand_id].data() : nullptr, .input_count = WIVRN_CONTROLLER_INPUT_COUNT, .supported = { .orientation_tracking = true, From 291ab85bd6d7bad3544a6ee196b6b3f7180b48f7 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sun, 21 Dec 2025 15:21:41 +0100 Subject: [PATCH 2/3] remove some leftover bitrates in docs --- docs/configuration.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index ff80c1ea..ac47e0e7 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -56,19 +56,17 @@ Default setting will have all encoders of a given type execute sequentially, and 1. Simple configuration ```json { - "bitrate": 50000000, "encoder": { "encoder": "vaapi", "codec": "h265" } } ``` -Use vaapi hardware encoding, h265 video codec (HEVC) and 50Mb/s bitrate. +Use vaapi hardware encoding, h265 video codec (HEVC). 2. Hardware + software encoder ```json { - "bitrate": 50000000, "encoders": [ { "encoder": "vaapi", From da9392c79137ba4d6b0e14e42391ab5b016085df Mon Sep 17 00:00:00 2001 From: Sapphire Date: Thu, 18 Dec 2025 21:22:49 -0600 Subject: [PATCH 3/3] Enable local dimming --- client/application.cpp | 1 + client/xr/session.cpp | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/client/application.cpp b/client/application.cpp index 8494c303..42c6a261 100644 --- a/client/application.cpp +++ b/client/application.cpp @@ -1255,6 +1255,7 @@ void application::initialize() XR_META_BODY_TRACKING_FIDELITY_EXTENSION_NAME, XR_META_BODY_TRACKING_FULL_BODY_EXTENSION_NAME, + XR_META_LOCAL_DIMMING_EXTENSION_NAME, }; for (const auto & i: interaction_profiles) diff --git a/client/xr/session.cpp b/client/xr/session.cpp index 9c58afef..81112304 100644 --- a/client/xr/session.cpp +++ b/client/xr/session.cpp @@ -144,8 +144,14 @@ void xr::session::begin_frame() void xr::session::end_frame(XrTime display_time, const std::vector & layers, XrEnvironmentBlendMode blend_mode) { - XrFrameEndInfo end_info{ + const XrLocalDimmingFrameEndInfoMETA local_dimming_info{ + .type = XR_TYPE_LOCAL_DIMMING_FRAME_END_INFO_META, + .localDimmingMode = XR_LOCAL_DIMMING_MODE_ON_META, + }; + + const XrFrameEndInfo end_info{ .type = XR_TYPE_FRAME_END_INFO, + .next = inst->has_extension(XR_META_LOCAL_DIMMING_EXTENSION_NAME) ? &local_dimming_info : nullptr, .displayTime = display_time, .environmentBlendMode = blend_mode, .layerCount = (uint32_t)layers.size(),