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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user