Change default bitrate to at least 50 mbits

Fix the issue with haptics using subactions after creation (Openxr specs non-conformance)
This commit is contained in:
PLYSHKA
2023-05-29 22:50:25 +05:00
parent 48f7d3da47
commit e7795540b2
2 changed files with 3 additions and 6 deletions
+2 -5
View File
@@ -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);
}
+1 -1
View File
@@ -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)
{