Commit Graph
100 Commits
Author SHA1 Message Date
Patrick Nicolas 37a9312af8 Update OpenComposite in flatpak 2024-10-10 16:56:43 +02:00
Patrick Nicolas 0579289855 Fix latency going up then down at regular intervals
Headsets lie about the frame duration, the actual time between display
may be a little more (or less). This causes phase information to
gradually increase, and eventually wrap around. The lowpass filter in
the pacer was unable to deal with wraparound and would instead average
in linear space.
2024-10-10 16:32:59 +02:00
Patrick Nicolas 906a0a0268 Fix performance plots location 2024-10-10 13:29:44 +02:00
Patrick Nicolas fbfa713c56 Add 1ms margin for present 2024-10-10 12:55:15 +02:00
Patrick Nicolas 66aa729fbc Smarter encoder group selection 2024-10-09 19:27:58 +02:00
Patrick Nicolas b54108bb4c Update monado 2024-10-08 23:16:50 +02:00
Patrick Nicolas 5f59dfb589 More reliable mechanism to pass monado socket
Using systemd's socket activation path fails in case file descriptor is
not 3. Use a global variable instead.
2024-10-08 23:03:03 +02:00
Patrick Nicolas 849eeb7a80 Rework wivrn_session to be a xrt_system_devices
This will allow changing roles dynamically, and fixes some object
lifetime issues.
2024-10-08 20:10:39 +02:00
Patrick Nicolas fb66a99f14 Move audio underrun log to debug 2024-10-08 19:48:23 +02:00
Patrick Nicolas 218db975d1 Fix pipewire destruction 2024-10-08 19:48:23 +02:00
Patrick Nicolas 4c995c786c Rename variable for recentering 2024-10-08 19:48:23 +02:00
Patrick Nicolas aa91c978d5 Add suffix to package name
".github" for CI builds
".local" by default
2024-10-08 17:59:05 +02:00
Patrick Nicolas 60108e287e Expose palm extension 2024-10-08 17:24:34 +02:00
Patrick Nicolas 80688b817e Fix palm data being discarded 2024-10-06 19:00:10 +02:00
Patrick Nicolas 554c0f7ad6 Fix --no-fork parameter 2024-10-05 15:33:39 +02:00
Patrick Nicolas 6608b1d833 Add support for palm_ext 2024-10-05 13:55:20 +02:00
Patrick Nicolas 974c90a36c Store all spaces in an array 2024-10-05 13:55:20 +02:00
Patrick Nicolas 3c09db939f Add --no-fork option for easier debugging 2024-10-05 09:51:59 +02:00
Patrick Nicolas 93cf2e8857 Add support for renderdoc 2024-10-04 23:28:44 +02:00
Patrick Nicolas 7cd0097f46 Move some includes on client 2024-10-04 00:15:14 +02:00
Patrick Nicolas 647be80d55 Remove unused variables 2024-10-03 23:39:32 +02:00
Patrick Nicolas 20f0137380 Cleanup some includes 2024-10-03 23:39:32 +02:00
Patrick Nicolas 28284a9694 wivrn namespace: move all server classes 2024-10-03 23:39:32 +02:00
Patrick Nicolas efbcef2861 wivrn namespace: client/decoder/shard_accumulator 2024-10-03 23:39:32 +02:00
Patrick Nicolas 7b4086d482 wivrn namespace: client/decoder/ffmpeg 2024-10-03 23:39:32 +02:00
Patrick Nicolas 78845c66d2 wivrn namespace: client/audio 2024-10-03 23:39:32 +02:00
Patrick Nicolas fdb79b1939 Drop xrt::drivers namespace 2024-10-03 23:39:32 +02:00
Patrick Nicolas 6946d5144a Add function to get serialized size 2024-10-03 21:52:36 +02:00
Patrick Nicolas 151fa5ba15 Filter out software decoders in supported list 2024-10-03 13:23:51 +02:00
Patrick Nicolas c370d19469 Pack multiple tracking items per datagram 2024-10-02 23:58:13 +02:00
Patrick Nicolas 5f359dc6d7 Fix ifdef WIVRN_USE_SYSTEMD 2024-10-02 23:54:33 +02:00
Patrick Nicolas 20d7b0edd5 Bulk send feedback packets 2024-10-02 18:39:40 +02:00
Patrick Nicolas 00a4562625 Pack UDP send in tracking thread 2024-10-02 18:39:40 +02:00
Patrick Nicolas 0d21fb6980 Fix system OpenXR for client 2024-10-02 16:52:41 +02:00
Patrick Nicolas 910d5af574 Drop obsolete monado patches 2024-10-02 14:50:10 +02:00
Patrick Nicolas f7ad02e2d6 Fix APK-Release CI again 2024-10-02 09:02:59 +02:00
Patrick Nicolas 80b0565e23 Fix APK-Release CI 2024-10-02 08:36:36 +02:00
Patrick Nicolas 68ddabdcdd Disable expired sdk lint warning 2024-10-01 21:42:13 +02:00
Patrick Nicolas f00982b0c0 Fix warning 2024-10-01 21:42:13 +02:00
Patrick Nicolas 0919f2f6b2 Update glm 2024-10-01 21:42:13 +02:00
Patrick Nicolas 612c3531bb Update gradle 2024-10-01 21:42:13 +02:00
Patrick Nicolas ef0298ecd7 Add SYSTEM property for external dependencies 2024-10-01 21:42:13 +02:00
Patrick Nicolas 7ea1d32b90 Upgrade cmake version 2024-10-01 21:42:13 +02:00
Patrick Nicolas 09cc459caf Update NDK version 2024-10-01 21:42:13 +02:00
Patrick Nicolas fe1adc5d99 Use more reliable mirror for freetype 2024-10-01 21:10:32 +02:00
Patrick Nicolas 3ba97aa42a Fix steamvr_lightouse config 2024-09-30 21:56:27 +02:00
Patrick Nicolas 56da7af334 Throw different error if encoder is not compiled 2024-09-27 22:34:11 +02:00
Patrick Nicolas 8605edc1ad Prefer FPS from config over current one 2024-09-27 17:37:41 +02:00
Patrick Nicolas 824e8d464d Serialize structures in chunks when possible
When a structure has consecutive trivially serializable packed fields,
group them together in a single write call. This effectively splits
structures with a mix of trivial and non trivial fields into chunks.
Also splits when there is padding.
2024-09-24 15:57:49 +02:00
Patrick Nicolas e3c7338c35 Remove some copies in serialization 2024-09-24 15:57:49 +02:00
Patrick Nicolas b6a6689323 Make "encoder" and "codec" optional in configuration 2024-09-22 16:35:24 +02:00
Patrick Nicolas 5724be3b89 Try and fix push to release branch 2024-09-22 13:56:10 +02:00
Patrick Nicolas e99b400e26 Dynamic face tracking icon 2024-09-21 20:51:08 +02:00
Patrick Nicolas 6a0e703538 Update fr locale 2024-09-21 20:51:08 +02:00
Patrick Nicolas af295ac91b Add status icons for eye and face tracking 2024-09-21 20:51:08 +02:00
Patrick Nicolas e80c6cdd67 Add checkboxes for eye and face tracking 2024-09-21 20:51:08 +02:00
Patrick Nicolas 76626b8133 Factorize permission code 2024-09-21 20:51:08 +02:00
Patrick Nicolas 1623769816 Handle denied microphone permission 2024-09-21 20:51:08 +02:00
Patrick Nicolas 7682546697 Move android permission code to own file 2024-09-21 20:51:08 +02:00
Patrick Nicolas b27ac33b83 Move jnipp to android directory 2024-09-21 20:51:08 +02:00
Patrick Nicolas aed59e613b Add FontAwesome license 2024-09-21 17:14:10 +02:00
Patrick Nicolas 58101542f1 Fix jni for request mic permission 2024-09-21 09:15:59 +02:00
Patrick Nicolas 3c64dcc58c Maybe fix push on release branch 2024-09-20 22:30:55 +02:00
Patrick Nicolas 728149dc30 Disable commit signing when applying patches 2024-09-19 23:47:32 +02:00
Patrick Nicolas 8a579f7140 Update action-gh-release for server deps 2024-09-19 13:31:08 +02:00
Patrick Nicolas c5d3899b87 write last pixel in YCbCr conversion 2024-09-18 22:26:01 +02:00
Patrick Nicolas 9a39f24541 Fix frame selection for multiple encoders 2024-09-18 17:50:28 +02:00
Patrick Nicolas c4a88a38f9 Update "release" branch on tag 2024-09-17 21:01:31 +02:00
Patrick Nicolas a4edc0e162 Fix distortion computation log levels 2024-09-13 11:51:59 +02:00
Patrick Nicolas a40e718d81 Set focused/unfocused when session state changes 2024-09-12 17:00:07 +02:00
Patrick Nicolas b7f27e9300 Rework wifi/multicast locks 2024-09-12 17:00:07 +02:00
Patrick Nicolas 5822dddab4 Use GlobalRefs for jnipp 2024-09-12 17:00:07 +02:00
Patrick Nicolas a10ebacba2 Add sample drop for microphone 2024-09-12 16:05:02 +02:00
Patrick Nicolas 448e9140c6 Fix use-after-move 2024-09-12 15:55:47 +02:00
Patrick Nicolas 1bd98881ff Fix build with vaapi disabled 2024-09-12 15:51:41 +02:00
Patrick Nicolas 7e8c479cc5 Release swapchain earlier
Encoders now have a buffer for next image so that they can encode one
and the compositor write to an other one.
2024-09-11 23:41:10 +02:00
Patrick Nicolas 517b572c75 Integrate YCbCr conversion in monado
Hacks monado's distortion shader to write into Y and CbCr planes,
eliminating the intermediate RGBA image

Note: change monado's version to enforce patch application
2024-09-11 23:41:10 +02:00
Patrick Nicolas 9344c6c012 Tune mip levels selection 2024-09-11 23:41:10 +02:00
Patrick Nicolas 50747d8fd4 Use proper mipmaps for distortion shader 2024-09-11 23:41:10 +02:00
Patrick Nicolas 27608ca019 Recenter lobby GUI when back from sleep and recenter button 2024-09-09 18:59:07 +02:00
Patrick Nicolas 760691568f Move mediacodec initialisation in constructor 2024-09-08 18:55:35 +02:00
Patrick Nicolas e70d5a4626 Use correct dimensions for video 2024-09-08 18:49:08 +02:00
Patrick Nicolas 4694425373 Fix tracking standby getting stuck 2024-09-08 17:10:20 +02:00
Patrick Nicolas a035578732 Wait for encoders instead of skipping 2024-09-08 16:41:20 +02:00
Patrick Nicolas 206af3e77b Fix uninitialised data in client tracking thread 2024-09-08 15:34:47 +02:00
Patrick Nicolas 62db6d0a2a Wait for previous frame before recording next command buffer 2024-09-08 09:59:25 +02:00
Patrick Nicolas d68bbb4e72 Fix logic error in encoder wait_idle 2024-09-07 18:17:27 +02:00
Patrick Nicolas 5c8310e88f Tweak default values, fix docs
default client scale: 1.0 -> 1.4
default server scale: 0.8 -> 0.5 (0.35 if eye tracked)

added docs for av1 as default when supported
fixed docs about multiple encoders, it's not enabled by default
2024-09-06 21:02:22 +02:00
Patrick Nicolas b2197e54e3 Write data to decode on GPU earlier 2024-09-06 20:49:39 +02:00
Patrick Nicolas 531b2a0e29 Add --no-instructions to disable message on start 2024-09-06 20:14:14 +02:00
Patrick Nicolas 0fa694338d Don't show hands if position is not tracked+valid 2024-09-05 12:50:55 +02:00
Patrick Nicolas a70acbe6d2 Fix crash with eye gaze in tracking thread 2024-09-04 18:38:51 +02:00
Patrick Nicolas aaacdacb3d Add pacer safeguards when comparing times 2024-09-03 23:34:23 +02:00
Patrick Nicolas e6496c869c Disable view extrapolation 2024-09-03 23:34:23 +02:00
Patrick Nicolas 7455af1e41 Compute extrapolation time from last produced 2024-09-03 23:34:23 +02:00
Patrick Nicolas 96bbfa1a23 Put not requested tracking on standby 2024-09-03 23:34:23 +02:00
Patrick Nicolas 843a83761a Tweaks for slow tracking 2024-09-03 23:34:23 +02:00
Patrick Nicolas 7eea3c2e7b Sync predictions with display time 2024-09-03 23:34:23 +02:00
Patrick Nicolas b0290c037a Pacer rewrite 2024-09-03 23:34:23 +02:00
Patrick Nicolas fe927dc732 Show predicted display time in plots 2024-09-03 23:34:23 +02:00