Commit Graph
100 Commits
Author SHA1 Message Date
Patrick Nicolas 2bfe49764a Lock TCP socket a little less 2024-04-14 15:17:39 +02:00
Patrick Nicolas eafc048121 Set expedite TOS for client stream as well 2024-04-14 15:17:11 +02:00
Patrick Nicolas e9293d8b6e Handle reodered tracking packets better 2024-04-14 15:02:14 +02:00
Patrick Nicolas 09c2bf19e5 Maintain distance to controller when recentering 2024-04-13 11:24:50 +02:00
Patrick Nicolas 2dda6ecb4f Point the palm up gesture to recenter 2024-04-13 09:17:00 +02:00
Patrick Nicolas c0a2db4a92 Tweak GUI parameters for easier hand interaction 2024-04-12 16:31:04 +02:00
Patrick Nicolas e1a6d4c40a Don't send haptics when focusing with hand 2024-04-12 16:13:31 +02:00
Patrick Nicolas 9722ce9831 Recenter GUI with A or X 2024-04-12 16:13:31 +02:00
Patrick Nicolas 5b6961e700 Tweak HTC manifest settings
Let it load the application if controllers are not connected
2024-04-12 15:10:46 +02:00
Patrick Nicolas 573e23e4a8 Statically link OpenXR loader on Android 2024-04-12 14:54:10 +02:00
Patrick Nicolas 8ebd6ae7f3 Only setup passthrough if requested 2024-04-12 14:53:22 +02:00
Patrick Nicolas 5d91bf0763 Add support for alpha environment blend passthrough 2024-04-12 14:53:22 +02:00
Patrick Nicolas f8207631bb Don't enable split encoders by default 2024-04-08 23:07:41 +02:00
Patrick Nicolas 0e29b80755 Don't log "Frame late" messages 2024-04-08 22:54:44 +02:00
Patrick Nicolas 13e54ddaae Fix split encoder default configuration 2024-04-07 15:30:08 +02:00
Patrick Nicolas 4476676c9b Print encoder details on start 2024-04-07 15:14:57 +02:00
Patrick Nicolas 7f3c1e0e53 Limit default encoded size to 4096 pixels wide 2024-04-07 14:26:58 +02:00
Patrick Nicolas 5054975696 Fix audio discard threshold 2024-04-07 14:26:58 +02:00
Patrick Nicolas c9301332dd Avoid hand tracking packet fragmentation 2024-04-07 10:25:30 +02:00
Patrick Nicolas 7768527fad Tune audio buffer sizes: keep at least 100ms data 2024-04-07 09:23:08 +02:00
Patrick Nicolas 1c9329679f Throttle tracking thread to reduce CPU usage 2024-04-05 17:15:39 +02:00
Patrick Nicolas 47a83b42b5 Setup JNI for threads that may use it
OpenXR runtime may use JNI, so attach threads that will do OpenXR calls.
2024-04-05 16:33:12 +02:00
Patrick Nicolas fd6b9f539a Fast-path 0-amplitude haptics 2024-04-05 15:21:12 +02:00
Patrick Nicolas 40043d1e45 Prevent excessive latency on microphone (pipewire only) 2024-04-05 12:06:05 +02:00
Patrick Nicolas f4b999f9fc Prevent excessive audio output latency 2024-04-05 12:05:46 +02:00
Patrick Nicolas 63f4028d83 Select image to display based on predicted display time 2024-04-04 17:42:14 +02:00
Patrick Nicolas 3bfb1adbce Fix stream parameter in process_timings script 2024-04-04 17:20:42 +02:00
Patrick Nicolas 9532761ece Fix crash on close when microphone is enabled 2024-04-04 15:22:40 +02:00
Patrick Nicolas 7658f427e6 Request tracking extrapolation on client
Add the timestamp where data was requested, use this to compute how far
in the future the application is requesting samples.
With this information, client requests 2 tracking samples: one at the
current time and one in the future.
Server now keeps track of actual samples + one predicted sample, and is
most of the time in the interpolation use case.
2024-04-04 13:41:36 +02:00
Patrick Nicolas b9c4e04a14 Patch monado to allow graceful exit on Ctrl-C 2024-04-02 17:59:59 +02:00
Patrick Nicolas 7aa85dfa64 Reuse buffers to send network data 2024-04-02 10:45:42 +02:00
Patrick Nicolas fff0ba9077 Only set timing info on last video shard 2024-04-01 23:09:12 +02:00
Patrick Nicolas b5202567bd Dynamically load cuda/nvenc 2024-03-30 23:07:52 +01:00
Patrick Nicolas 146dd841ab Use expected size for xrLocateViews 2024-03-30 17:00:34 +01:00
Patrick Nicolas cf054dda64 Fix GPU time display in lobby 2024-03-30 13:37:08 +01:00
Patrick Nicolas 1aa49bb44f Force channel count = 1 for microphone 2024-03-26 21:49:38 +01:00
Patrick Nicolas cd16b45270 Create swapchains in stream render method
Swapchains were created in the network thread, and when interleaved with
lobby render method and using passthrough, this would cause crashes on
HTC headsets.
2024-03-24 21:07:43 +01:00
Patrick Nicolas 56eb783305 Fix race condition with Vulkan validation layers 2024-03-24 20:53:41 +01:00
Patrick Nicolas 2cc267f8d4 Improve stream stalled detection 2024-03-24 17:24:03 +01:00
Patrick Nicolas 94e6014861 Release passthrough resources when lobby is not focused 2024-03-24 17:24:03 +01:00
Patrick Nicolas bf555f0fdb Force process exit on Android 2024-03-24 14:59:58 +01:00
Patrick Nicolas 8e3979cc8c Use XrTime for all time data 2024-03-24 14:01:44 +01:00
Patrick Nicolas f951034de4 Allow pipewire build with version < 0.3.49 2024-03-23 20:24:23 +01:00
Patrick Nicolas 3beb573566 Build pipewire backend in CI 2024-03-23 20:24:23 +01:00
Patrick Nicolas d51803cf80 Initial pipewire support 2024-03-23 20:24:23 +01:00
Patrick Nicolas 03fb23e512 Drop useless log line 2024-03-23 20:24:23 +01:00
Patrick Nicolas de3bf50975 Prepare for pipewire audio backend 2024-03-23 20:24:23 +01:00
Patrick Nicolas faa4560d46 Use callback API for microphone as well 2024-03-23 20:24:23 +01:00
Patrick Nicolas c15f2b9149 Fix microphone (had callback set) 2024-03-16 21:57:39 +01:00
Patrick Nicolas 4d50e35200 Add padding in settings 2024-03-16 20:07:36 +01:00
Patrick Nicolas a581e7f856 Add readme entry for audio 2024-03-16 18:04:52 +01:00
Patrick Nicolas 9646675188 Don't log on missing audio 2024-03-16 17:14:39 +01:00
Patrick Nicolas 00f50fb86f Use callback-based method for Android audio out 2024-03-16 13:36:07 +01:00
Patrick Nicolas 3076c50fbf Move audio out to UDP 2024-03-16 13:35:32 +01:00
Patrick Nicolas 7278a522b8 Force a safe minimum audio buffer size 2024-03-15 20:00:07 +01:00
Patrick Nicolas 2afd2ff86a Staturate haptics amplitude to 1.0 2024-03-15 18:55:39 +01:00
Patrick Nicolas f2dc24c316 Enable microphone support 2024-03-15 15:17:35 +01:00
Patrick Nicolas c006e6c31b Remove useless framebuffer clear in reprojection 2024-03-14 21:15:53 +01:00
Patrick Nicolas 295d502032 Fix pose extrapolation
past extrapolation was wrong
velocity was wrong invalid from client
2024-03-14 20:01:20 +01:00
Patrick Nicolas 5dc5117441 Don't accumulate delay if tracking is slow on client 2024-03-14 19:58:31 +01:00
Patrick Nicolas d479ae9786 Set clear color to opaque black in reprojection.
Fixes black output in HTC headsets
2024-03-14 18:25:53 +01:00
Patrick Nicolas b1a648ad10 Don't fail patching monado on reconfigure 2024-03-14 09:25:44 +01:00
Patrick Nicolas 46d6d2181b minor improvements in timings script 2024-03-08 18:09:36 +01:00
Patrick Nicolas 1be10f8065 Merge GPU plots, network plots 2024-03-08 17:33:22 +01:00
Patrick Nicolas 883e1808db Only extrapolate views 2024-03-08 15:03:59 +01:00
Patrick Nicolas 97ec53868f Enforce even dimensions for user provided settings 2024-03-07 18:24:46 +01:00
Patrick Nicolas 3871c6041d Enable pose extrapolation 2024-03-07 18:10:37 +01:00
Patrick Nicolas 71c1f01025 Patch monado to disable frame dropping 2024-03-07 18:10:14 +01:00
Patrick Nicolas f5d73d33f4 Report real predicted display time 2024-03-07 17:20:46 +01:00
Patrick Nicolas 16b993a81c Use even height for default encoder settings 2024-03-07 15:59:49 +01:00
Patrick Nicolas 7b7caaed4f fix for drm modifiers 2024-03-05 17:00:35 +01:00
Patrick Nicolas 959d82ede3 update monado 2024-03-05 17:00:35 +01:00
Patrick Nicolas 8a7693713e don't ask for frames to be in the past 2024-03-05 10:37:06 +01:00
Patrick Nicolas a2b8955c12 Store 3 decoded frames for more robust stitching 2024-03-05 10:37:06 +01:00
Patrick Nicolas b633d08c72 Add Wireshark dissector for WiVRn packets 2024-03-05 10:05:03 +01:00
Patrick Nicolas d8048c392a Use vulkan types for encoder range and color model 2024-03-05 10:05:02 +01:00
Patrick Nicolas 842fae3b27 Encode TCP size on 16 bits 2024-03-05 09:25:15 +01:00
Patrick Nicolas 82ca58cbea Drop std::pair support in serialization 2024-03-05 09:23:27 +01:00
Patrick Nicolas 5adbeef2cd Drop unused data from feedback packets 2024-03-05 09:23:27 +01:00
Patrick Nicolas a7f9ac2d74 release swapchain image when done submitting commands 2024-03-04 16:09:40 +01:00
Patrick Nicolas 999a1e0cf0 Toggle ATW flag before reprojection is done 2024-03-03 12:05:03 +01:00
Patrick Nicolas ee2802b97e Default to split encoders for vaapi 2024-03-03 09:37:04 +01:00
Patrick Nicolas d175284358 Configure bitrate globally 2024-03-03 09:37:04 +01:00
Patrick Nicolas 2fdd1c9974 Tweak pacer for lower latency 2024-03-03 08:34:58 +01:00
Patrick Nicolas aa7ba38603 More aggressive timesync initialization 2024-03-03 08:28:08 +01:00
Patrick Nicolas 5cbaa76ad6 Blit images with one render pass per eye 2024-03-02 16:51:05 +01:00
Patrick Nicolas 5a7f8085e1 Fix trailing commas in config examples 2024-02-27 15:21:59 +01:00
Patrick Nicolas 91f6dc08f0 Handle big UDP packets 2024-02-25 16:09:32 +01:00
Patrick Nicolas 85b8bf0ef3 Claim support for all Meta headsets 2024-02-22 18:28:49 +01:00
Patrick Nicolas 4843f22ad5 Correctly transition to color attachment layout 2024-02-22 16:37:39 +01:00
Patrick Nicolas 47c9e32a65 Use general image layout for images from decoder 2024-02-22 12:41:35 +01:00
Patrick Nicolas 386856c54e Allow manual vaapi device in settings 2024-02-19 22:13:21 +01:00
Patrick Nicolas ef821996a0 Remove LFS in CI scripts 2024-02-19 19:43:47 +01:00
Patrick Nicolas d7e1900bc0 Avoid possible invalid time conversion 2024-02-19 18:43:21 +01:00
Patrick Nicolas fc58ab1ffe Add prerequisites in readme: firewall and avahi 2024-02-19 11:36:11 +01:00
Patrick Nicolas 75c68a177c Change default scale to 0.8 2024-02-19 10:49:07 +01:00
Patrick Nicolas 7cf7cb7f81 Add refresh rate selection in settings 2024-02-19 10:40:39 +01:00
Patrick Nicolas 9dcee4ee26 Update compatible status if changed 2024-02-19 10:40:39 +01:00
Patrick Nicolas 2a7014ded9 Oversample for reprojection 2024-02-19 09:58:42 +01:00
Patrick Nicolas 6e90a7e594 fix build with Vulkan SDK 1.3.268 2024-02-18 16:15:55 +01:00