Commit Graph
934 Commits
Author SHA1 Message Date
Patrick Nicolas 0e0de41153 reformat for clang-format < 23 2026-10-06 19:25:41 +02:00
Patrick Nicolas 2fc4708bc6 Rework vaapi/nvenc/x264 IDR handling
Fix race conditions with should_skip
detect if nothings goes out from decoder and issue an IDR
remove idr_received, go directly to running state
2026-10-05 22:27:15 +02:00
Jonathan Steffan 59e4fb075e fix(htc): stop interaction-profile flapping and fix squeeze-touch binding
Blacklist XR_EXT_hand_interaction for HTC so the runtime can't switch
/user/hand/* to ext/hand_interaction_ext mid-session, which drops
controller button input whenever that profile is briefly active.

Point the Focus3 squeeze/touch binding at XRT_INPUT_FRAME_SQUEEZE_TOUCH,
the name the device actually exposes for that slot, instead of a name
that's never set active.
2026-10-05 09:36:37 +02:00
Patrick Nicolas fc48b6155e Assume user is present on session resume 2026-10-03 14:57:22 +02:00
Patrick Nicolas e8c92a7202 Prevent fragmentation when adding timing info 2026-10-02 18:53:16 +02:00
galister e5923e155a linux client: only show 10-bit if supported 2026-09-29 19:22:33 +02:00
Patrick Nicolas 117027c390 Remove FoV from headset info packet 2026-09-29 19:22:33 +02:00
dime-online 754ba4f6e1 driver: fix inverted interpolation factor in history::get_at
interpolate(before, after, t) expects t = 0 at the before sample and
t = 1 at the after sample (see hand_joints_list.cpp: radius = a.radius
* (1 - t) + b.radius * t, and monado's m_space_relation_interpolate
which lerps from the predecessor with the elapsed fraction).

The factor was computed as (after - now) / (after - before), which is
1 - t: querying at the before timestamp returned the after sample,
querying at the after timestamp returned the before sample, and
queries in between returned the pose mirrored about the segment
midpoint.

Compute t from the before sample so hand and body skeleton queries
between two tracking samples interpolate along the motion instead of
against it.
2026-09-27 19:17:06 +02:00
galister 596e661d7e add frame controller profile 2026-09-27 17:14:33 +09:00
Sapphire 40f2079268 Fix stop_application not working after Monado update 2026-09-26 04:59:02 -05:00
Sapphire c78bca4ddc Use interpolate/extrapolate functions from pose_list in generic tracker pose list 2026-09-26 04:49:24 -05:00
Patrick Nicolas dcc7579273 Avoid pacer immediate return when achievable
In case of discarded frames (no end frame or no layers) we don't get
called on mark_gpu_done, so times don't get updated. If the game
continues to call waitFrame, we advance the predicted display time, but
may enter the immediate return, accumulating delay.
2026-09-19 17:23:52 +02:00
galister 6b48898774 update monado 2026-09-16 23:23:12 +09:00
galister 07657d7281 update monado 2026-09-16 23:23:12 +09:00
galister b27f8dd831 update monado 2026-09-16 23:23:12 +09:00
Patrick Nicolas 8eff464261 Use vulkan encode by default even on NVIDIA 2026-09-14 21:19:49 +02:00
Anton Kesy e0f5a84d8d Fix typos (#1109) 2026-09-13 20:32:28 +02:00
Jonathan Steffan 3c927dd80b Raise the vulkan h265 encoder's minimum coding block to 16x16
The SPS allowed coding blocks down to 8x8. On NVIDIA that costs 4x the
encode time: 13.4 ms per 1920x1472 frame against 4.4 ms for the same
GPU's NVENC path, so the encoder sustained 36.5 fps against a 90 Hz
target. At 16x16 it is 3.2 ms and holds 90 Hz.
2026-09-08 08:01:54 +02:00
schlegp d81be2ae03 Fix angular velocity sign in pose_list
The angular velocity was worked out with the wrong formula. It used
dq * q, but it should be dq * q^-1 (the inverse of q, which is just
its conjugate here because q is normalized).

Using q instead of its inverse pointed the angular velocity the wrong
way. Games read this value when you let go of a controller, so thrown
objects came out spinning wrong.
2026-09-01 21:38:03 +02:00
Patrick Nicolas 9e9fc859f5 Detect network errors from any socket call 2026-08-31 19:34:05 +02:00
Patrick Nicolas 1085f79072 Disable XR_KHR_composition_layer_depth
We don't use the depth layer anyway, it's useless to expose the
extension.
2026-08-30 18:45:53 +02:00
Sapphire 28a8fbd743 Add patches and dashboard setting for maximum steamvr_lh pose prediction 2026-08-29 15:24:53 -05:00
Patrick Nicolas 9bad971d8a Fix invalidated pointer usage 2026-08-29 16:26:15 +02:00
Patrick Nicolas 8738131fb1 Native USB networking for Quest
Requires Horizon OS >= 2.6
2026-08-29 12:33:59 +02:00
Sapphire c7881fbc9e Fix deadlock when exiting due to all clients exiting 2026-08-26 23:39:50 -05:00
Patrick Nicolas ea7e345d2c Remove CAP_SYS_NICE leftovers in unit file 2026-08-25 19:11:04 +02:00
Sapphire c564436377 Gracefully stop applications on server quit
This doesn't work with Ctrl+C as the entire process group is signaled,
but it works with wivrnctl stop-server.
2026-08-24 14:13:07 -05:00
Patrick Nicolas e604848409 Remove WIVRN_DUMP_TIMINGS 2026-08-17 21:30:57 +02:00
Patrick Nicolas da950e0857 Disable quad views 2026-08-17 18:48:54 +02:00
galister ef0f6373b1 add slider for LH_STICK_DEADZONE 2026-08-07 21:01:58 +02:00
Patrick Nicolas d44e7aba9c Assign device ids (fix for c99db1) 2026-08-07 19:19:15 +02:00
Patrick Nicolas 85a635069f Remove WIVRN_USE_SYSTEMD config option 2026-08-06 19:33:22 +02:00
Sapphire 4749c15aa4 Update Monado 2026-08-01 20:37:14 +02:00
Sapphire a6da4e6dc9 Update Monado 2026-08-01 20:37:14 +02:00
Sapphire 2027dd04d0 Zero out output relation when generic tracker is disabled 2026-07-31 13:52:33 -05:00
Patrick Nicolas 8c8bd6bd1a Rename runtime to "WiVRn" in installed manifest 2026-07-30 19:12:06 +02:00
Patrick Nicolas 333e080d1c Provide Vulkan version to Monado 2026-07-30 19:12:06 +02:00
Patrick Nicolas 4fb50ed556 Update Monado 2026-07-29 23:40:21 +02:00
Patrick Nicolas 49276fd5d8 Update Monado 2026-07-29 21:33:19 +02:00
Jonathan Steffan 86e58449c2 feat(vulkan): use distro Vulkan packages instead of setup-vulkan-sdk
With the pinned SDK gone, CI builds against distro headers, so raise the
server requirement to 1.4.304 to match what is actually tested and
supported: Ubuntu 26.04 has 1.4.341, the Ubuntu package build (plucky)
has 1.4.304, as does Debian 13. This subsumes the separate 1.3.283 check
for Vulkan video encode, and makes VK_HEADER_VERSION >= 304 always true
for the server. The client conditionals stay, it is built for Android
against the 1.3.268 headers fetched in common/CMakeLists.txt.
2026-07-26 10:16:46 +02:00
Patrick Nicolas 4d1de2eab9 Don't collect copy times for iGPU (vulkan encoder) 2026-07-14 20:15:53 +02:00
Patrick Nicolas eed9e052fc Correctly report if tracing is enabled 2026-07-14 20:15:53 +02:00
umceko e57577d675 Fix main queue synchronization with monado
copy_mutex duplicated the pthread_mutex_t of vk.queue.mutex into
main_queue->mutex by value, which creates an independent mutex: monado
submissions on IPC client threads (comp_swapchain image transitions,
vkDeviceWaitIdle in image_cleanup) did not exclude wivrn's layer_commit
and encoder submissions on the same VkQueue. This intermittently
corrupts driver state when a client creates or destroys swapchains
while streaming, observed as SIGSEGV inside vkQueueSubmit2 and as
uncaught vk::SystemError from layer_commit on NVIDIA.

Initialize monado's queue mutexes and redirect vk.queue.mutex to the
main queue os_mutex so every submitter takes the same lock.
2026-07-14 09:25:35 +02:00
Sapphire 22f3dfda88 Set position & orientation tracked bits when valid on Meta body trackers 2026-07-11 18:04:23 -05:00
Patrick Nicolas 1d1c040299 remove public audio description() method 2026-07-11 14:46:53 +02:00
SapphireandGuillaume Meunier 1cc61fd07a Make virtual tracker xdevs toggleable
Co-authored-by: Guillaume Meunier <[email protected]>
2026-07-10 14:52:50 -05:00
Sapphire 727445520e Create xdevs from body skeleton 2026-07-10 13:22:14 -05:00
Sapphire e611fdcc51 Add velocity for htc_body 2026-07-10 13:22:14 -05:00
Sapphire 534b4c23e3 Use shared pose_flags enum in packets 2026-07-10 13:22:13 -05:00
Sapphire 2e28b0a4ad Forward body skeletons from headset 2026-07-10 13:22:05 -05:00