Commit Graph
303 Commits
Author SHA1 Message Date
Patrick Nicolas dfcaa74e41 Log if automatic refresh rate is enabled 2025-03-19 18:39:01 +01:00
Patrick Nicolas 119e0a4336 Control automatic refresh rate adjustment
If an OpenXR application requests a specific frame rate, use that one.
In order to revert to automatic adjustment, an application shall request
a 0 refresh rate (no preference).
2025-03-19 17:43:37 +01:00
Patrick Nicolas d3517ae88a Reset refresh rate adjuster on reconnect 2025-03-19 17:43:37 +01:00
Patrick Nicolas 6fa3b72f8b Prevent frequent framerate changes 2025-03-19 17:43:37 +01:00
Patrick Nicolas 63913b09a1 Enable automatic refresh rate adjustment 2025-03-19 17:43:37 +01:00
Patrick Nicolas 92d910f5c8 Separate last app display time and compositor display time 2025-03-19 17:43:37 +01:00
Patrick Nicolas df920b49e4 Use immediate wake instead of throttling 2025-03-19 17:43:37 +01:00
Patrick Nicolas 11e4076026 WIP app pacer 2025-03-19 17:43:37 +01:00
Patrick Nicolas dcc808981f Print log when refresh rate changes 2025-03-19 17:43:36 +01:00
Patrick Nicolas a75f42ff46 Update framerate for encoders 2025-03-19 17:43:36 +01:00
Patrick Nicolas d61932cc1c Fix frame interval not updated on refresh rate change 2025-03-19 17:43:36 +01:00
galister aa491ab39f fix forced extensions not working for face 2025-03-06 21:04:32 +01:00
Patrick Nicolas 206fc162f1 cleanup hmd constructor 2025-03-02 20:34:32 +01:00
Patrick Nicolas 25e7ee3354 remove wivrn_hmd_destroy 2025-03-02 20:34:32 +01:00
Patrick Nicolas c7ee7246c4 auto get_visibility_mask 2025-03-02 20:34:32 +01:00
Patrick Nicolas e86ebfdadd auto wivrn_hmd_get_battery_status 2025-03-02 20:34:32 +01:00
Patrick Nicolas 098642bcc5 auto wivrn_hmd_get_view_poses 2025-03-02 20:34:32 +01:00
Patrick Nicolas 1ecd14b615 auto wivrn_hmd_get_tracked_pose 2025-03-02 20:34:32 +01:00
Patrick Nicolas 1f29bf8253 remove wivrn_hmd_update_inputs 2025-03-02 20:34:32 +01:00
Patrick Nicolas c4601a6f0b remove wivrn_controller_destroy 2025-03-02 20:34:32 +01:00
Patrick Nicolas 8a757cb612 auto cast for set_output 2025-03-02 20:34:32 +01:00
Patrick Nicolas c0a74ebb48 auto cast for get_hand_tracking 2025-03-02 20:34:32 +01:00
Patrick Nicolas 7b5923495b auto cast for update_inputs 2025-03-02 20:34:32 +01:00
Patrick Nicolas 7a788c42af auto cast for get_tracked_pose 2025-03-02 20:34:32 +01:00
peelz fe8859d30b fix: destroy devices on session shutdown 2025-03-02 17:01:13 +01:00
Patrick Nicolas 3e6b53e163 Hold the pacer lock a little less 2025-02-27 11:24:45 +01:00
Patrick Nicolas dbcab721af Only update bindings if we are active controllers 2025-02-26 17:32:46 +01:00
Patrick Nicolas f102c62ae7 Always expose palm pose
Same as grip if the headset doesn't support it
2025-02-23 20:55:11 +01:00
TheRainTrain 467d3aad88 Use correct enum name in get_name 2025-02-23 14:05:12 +01:00
TheRainTrain f108c26dd5 Add Pico 4s/4 Ultra/A9210 interaction profile (non-breaking change) 2025-02-23 14:05:12 +01:00
Patrick Nicolas 058b345a82 Revert "Set wivrn hmd as last xdev"
This reverts commit b337800146.
2025-02-21 21:54:14 +01:00
Patrick Nicolas be7c0862bb Some wivrn_controller refactoring 2025-02-21 18:42:26 +01:00
Patrick Nicolas 3f6ca12cb0 rename WiVRn controllers 2025-02-21 18:42:26 +01:00
Patrick Nicolas 9fdb972fb2 Log interaction profile change 2025-02-21 18:42:26 +01:00
Patrick Nicolas 86a12d27dc Add definitions for more interaction profiles 2025-02-21 18:42:26 +01:00
Patrick Nicolas ad9020193d Rework wivrn_session to be a xrt_system_devices
This will allow changing roles dynamically, and fixes some object
lifetime issues.
2025-02-21 18:42:26 +01:00
Patrick Nicolas b337800146 Set wivrn hmd as last xdev
This fixes an issue when other devices are detected as HMD, for instance
with the lighthouse driver.
2025-02-21 11:57:02 +01:00
Patrick Nicolas 4238c9ad50 Fix pacer being updated every frame 2025-02-17 18:28:14 +01:00
Guillaume Meunier 23785eb02e Update flatpak runtime 2025-02-17 13:46:41 +01:00
Patrick Nicolas b87345a180 Release lock before calling exit() 2025-02-15 10:08:18 +01:00
Patrick Nicolas 0dbc4a5ef4 Compute extrapolation time with actual samples 2025-02-14 21:15:51 +01:00
Patrick Nicolas ffabc94aee Discard outdated tracking data 2025-02-14 21:03:30 +01:00
Patrick Nicolas d46d5b7bc5 Fix pacer broken by 5b6de6 2025-02-12 10:12:19 +01:00
Patrick Nicolas 5b6de61395 Fix pacer crash when no sample is available 2025-02-08 15:42:06 +01:00
galister 261bb2c600 pass through HTC_facial_tracking 2025-02-08 10:24:15 +01:00
Patrick Nicolas a79bb781ae Use a property for bitrate 2025-02-07 19:00:34 +01:00
galister e9f4b52b50 wip: set bitrate at runtime 2025-02-07 19:00:34 +01:00
Patrick Nicolas 5fd77f3b39 lock-free clock_offset 2025-02-06 20:41:08 +01:00
Patrick Nicolas 39d5e6b87b allocation-less history 2025-02-06 20:05:21 +01:00
Patrick Nicolas d1c2c24473 simplify pose_list::convert_pose 2025-02-06 19:17:24 +01:00