From e7795540b264de03c91c4ad462c324bffb8062e4 Mon Sep 17 00:00:00 2001 From: PLYSHKA Date: Mon, 29 May 2023 22:50:04 +0500 Subject: [PATCH] Change default bitrate to at least 50 mbits Fix the issue with haptics using subactions after creation (Openxr specs non-conformance) --- client/scenes/stream_actions.cpp | 7 ++----- server/driver/encoder_settings.cpp | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/client/scenes/stream_actions.cpp b/client/scenes/stream_actions.cpp index d0dd742b..a7eada28 100644 --- a/client/scenes/stream_actions.cpp +++ b/client/scenes/stream_actions.cpp @@ -70,23 +70,20 @@ void scenes::stream::read_actions() void scenes::stream::operator()(to_headset::haptics && haptics) { XrAction action; - XrPath subpath; if (haptics.id == device_id::LEFT_CONTROLLER_HAPTIC) { action = haptics_actions[0].first; - subpath = haptics_actions[0].second; } else if (haptics.id == device_id::RIGHT_CONTROLLER_HAPTIC) { action = haptics_actions[1].first; - subpath = haptics_actions[1].second; } else return; if (haptics.amplitude > 0) - application::haptic_start(action, subpath, haptics.duration.count(), haptics.frequency, haptics.amplitude); + application::haptic_start(action, XR_NULL_PATH, haptics.duration.count(), haptics.frequency, haptics.amplitude); else - application::haptic_stop(action, subpath); + application::haptic_stop(action, XR_NULL_PATH); } diff --git a/server/driver/encoder_settings.cpp b/server/driver/encoder_settings.cpp index d310b569..f995085c 100644 --- a/server/driver/encoder_settings.cpp +++ b/server/driver/encoder_settings.cpp @@ -34,7 +34,7 @@ using namespace xrt::drivers::wivrn; // TODO: size independent bitrate -static const uint64_t default_bitrate = 10'000'000; +static const uint64_t default_bitrate = 50'000'000; static bool is_nvidia(vk_bundle * vk) {