Commit Graph
451 Commits
Author SHA1 Message Date
Sefa Eyeoglu 126f3cf6c6 CMake: Add absolute runtime path option for XR manifest
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2024-04-08 16:57:48 +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
Guillaume Meunier 01f74270c8 Add clang-format check in CI 2024-03-30 17:10:27 +01:00
Patrick Nicolas 146dd841ab Use expected size for xrLocateViews 2024-03-30 17:00:34 +01:00
Guillaume Meunier 9cceaac648 clang-format 2024-03-30 17:00:34 +01:00
Guillaume Meunier bb660cfb3f Use XR_KHR_loader_init_android if it is present 2024-03-30 13:47:04 +01:00
Guillaume Meunier 0ddf7def52 Fix type in build.gradle 2024-03-30 13:45:54 +01:00
Guillaume Meunier 2c0b08e089 Select the closest hand to the GUI as active when tracking hands 2024-03-30 13:44:51 +01:00
Guillaume Meunier 4fa63b3cf5 Support hands in GUI 2024-03-30 13:44:51 +01:00
Guillaume Meunier 6a553b218a Hide the hand model if the controller is tracked 2024-03-30 13:44:51 +01:00
Guillaume Meunier f11ddb14ce Make apply_visual_response static 2024-03-30 13:44:51 +01:00
Guillaume Meunier 99a5685c34 When the runtime does not track the hands:
- Hide them in the lobby
- Don't send tracking data in the stream
2024-03-30 13:44:51 +01:00
Guillaume Meunier f49dd88b77 Handle visibility flag correctly in the scene renderer 2024-03-30 13:44:51 +01:00
Guillaume Meunier 889f1ad5e6 Show hand models, refactor the scene renderer 2024-03-30 13:44:49 +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
Jonathan Steffan 8db2866fe1 Enable PIE support by default 2024-03-17 10:06:29 +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
Guillaume Meunier 7dcb19f4db Log OpenXR system properties before initializing Vulkan 2024-03-16 20:05:57 +01:00