Jakob Bornecrantz
6415480f1c
st/oxr: Tidy includes [NFC]
2023-04-18 14:21:10 +01:00
Jakob Bornecrantz
b49cd74114
st/oxr: Rename and document common swapchain creation function [NFC]
2023-04-18 14:21:10 +01:00
Jakob Bornecrantz
9055b9d2ec
st/oxr: Remove unneeded prefixes on functions [NFC]
2023-04-18 14:21:10 +01:00
Jakob Bornecrantz
52f790289d
st/oxr: Swapchain destroy was the same for all APIs
2023-04-18 14:21:10 +01:00
Jakob Bornecrantz
a56caf762e
st/oxr: Refactor swapchain functions a bit
2023-04-18 14:21:10 +01:00
Jakob Bornecrantz
505e4e8c2f
c/client: Refactor image barrier submission into a helper function
2023-04-18 14:21:10 +01:00
Jakob Bornecrantz
0d21b73b05
c/client: Implement transition image stubs
2023-04-18 14:21:10 +01:00
Jakob Bornecrantz
b7362f27e6
xrt: Add image transition inteface
2023-04-18 14:21:10 +01:00
Ryan Pavlik
52d76414c0
contributing: Mention how to run spotless.
2023-04-17 10:58:38 -05:00
utzcoz
498965c1d4
ci: Add spotlessCheck for Android building
...
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-04-17 10:58:38 -05:00
utzcoz
06b2ae737b
gradle: Enable spotless for Gradle, Markdown and gitignore files
...
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-04-17 10:58:38 -05:00
Ryan Pavlik
9840730169
ipc/android: Run spotlessApply to format Java and Kotlin code
2023-04-17 10:58:38 -05:00
Ryan Pavlik
fc3af6f711
a/android: Run spotlessApply to format Java and Kotlin code
2023-04-17 10:58:38 -05:00
utzcoz
b5b0c30936
t/android: Run spotlessApply to format Java and Kotlin code
...
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-04-17 10:58:38 -05:00
utzcoz
8e93bbde4b
gradle: Integrate spotless to format Java and Kotlin code
...
See https://github.com/diffplug/spotless .
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-04-17 10:58:38 -05:00
Jakob Bornecrantz
e3d345d428
ci: Refactor paths, and only build containers for CI path changes
2023-04-15 18:58:21 +01:00
utzcoz
c8c5d6444e
gradle: Remove redundant dependency of lifecycle-viewmodel
...
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-04-15 16:20:50 +00:00
Jakob Bornecrantz
b63d3bd6d6
ci: Don't build outside of Monado
2023-04-15 16:51:02 +01:00
Jakob Bornecrantz
9cbc815fbc
ci: No manual run of containers
2023-04-15 02:00:14 +01:00
Mario Kleiner
ff9ad4016f
c/multi: Refine some logging messages a bit.
...
Add some timestamps and extra logging to the frame scheduling code.
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
2023-04-15 00:43:20 +00:00
Mario Kleiner
ae2e7405dd
c/multi: Move log_frame_time_diff() to avoid false late frame reports.
...
In its original call location, this diagnostic/warning function gets
called for each composition cycle even for client frames which have
not yet been delivered for display, because the frames target display
time "XrFrameEndInfo frameEndInfo.displayTime" (as provided by the
OpenXR client) has not been reached yet. Iow. if a OpenXR client
specifies a target frameEndInfo.displayTime in the future, to request
frame presentation in the future, this will cause a flood of false
"Frame late ..." messages by the compositor, despite nothing being
wrong with the timing, until the frame is actually delivered.
E.g., if frameEndInfo.displayTime is 1 second in the future, we'll
get this for each client xrEndFrame() invocation:
WARN [log_frame_time_diff] Frame late by 11.11ms!
WARN [log_frame_time_diff] Frame late by 22.22ms!
... another 87 like these ...
WARN [log_frame_time_diff] Frame late by 988.43ms!
I think what we want is to only check client frames that are actually
delivered the first time by multi_compositor_deliver_any_frames() for
initial display in the current compositor work cycle, and then report
if this first frame display onset was not on or close to the OpenXR
client requested frameEndInfo.displayTime, but too early or too late,
in violation of the clients wishes.
Moving the call check and call of log_frame_time_diff() achieves this
and gives meaningful debug output.
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
2023-04-15 00:43:20 +00:00
Mario Kleiner
1c96ee619d
u/metrics: Add option to fflush after writing each metrics record.
...
This allows to use the metrics logging in "streaming mode" where
records are written out with low delay, e.g., into a Unix fifo
file / pipe for live consumption by some tracing or recording
application.
XRT_METRICS_EARLY_FLUSH=true enables this "streaming mode".
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
2023-04-15 00:32:22 +00:00
Jakob Bornecrantz
d7f229959a
ci: Try to fix CI
2023-04-15 01:28:50 +01:00
Ryan Pavlik
1bc692116f
ci: Adjust rules for deciding whether to build.
...
Inspired by the Mesa equivalent.
2023-04-14 16:50:18 -05:00
Mario Kleiner
9e647f9a46
d/vive: Parse/Recognize HTC Vive Pro Eye HMD headphone audio buttons.
...
Does not do anything yet within Monado, but documents how to parse
button state of left headphone volume up/down buttons and right
headphone microphone mute button.
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
2023-04-14 10:48:39 +00:00
Mario Kleiner
0116a76db5
d/vive: Add Vive Wand controller name string for the HTC Vive Pro Eye.
...
Behave like other Wands, just a different name string.
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
2023-04-14 10:48:39 +00:00
Jakob Bornecrantz
6fc7603e55
doc: Document !1748
2023-04-14 02:34:49 +01:00
Jakob Bornecrantz
86262e8b4e
a/vk: Remove global command pool
2023-04-14 02:34:49 +01:00
Jakob Bornecrantz
e9475b1313
c/main: Use cmd helpers for main submission
2023-04-14 02:34:49 +01:00
Jakob Bornecrantz
231a743896
c/main: Use cmd pool helpers in peek code
2023-04-14 02:34:49 +01:00
Jakob Bornecrantz
185bc2bc3c
c/main: Use cmd pool helpers in mirror window code
2023-04-14 02:34:49 +01:00
Jakob Bornecrantz
5ef2b647f1
c/main: Use cmd pool helpers in layer render
2023-04-14 02:34:49 +01:00
Jakob Bornecrantz
1ddfcaa5ab
c/client: Use cmd pool helpers
2023-04-14 02:34:49 +01:00
Jakob Bornecrantz
d1906d1cf8
c/util: Use cmd pool helpers in swapchain code
2023-04-14 02:34:49 +01:00
Jakob Bornecrantz
197461b4cd
c/render: Refactor close loops [NFC]
2023-04-14 02:34:49 +01:00
Jakob Bornecrantz
6598760522
c/render: Put distortion image functions in own file
2023-04-14 02:34:49 +01:00
Jakob Bornecrantz
f536ec2009
c/render: Use cmd pool helpers in init code
2023-04-14 02:34:49 +01:00
Jakob Bornecrantz
e5fed9c3be
c/render: Improve error handling
2023-04-14 02:34:49 +01:00
Jakob Bornecrantz
68b8a2f371
a/vk: Add command pool helpers
2023-04-14 02:34:49 +01:00
Moshi Turner
4d3c1cf7c5
t/common: Parse upside-down DepthAI device in North Star builder
2023-04-13 11:50:38 +00:00
Moshi Turner
bdc33510a1
h/mercury: Dump camera calibration if debugging
2023-04-13 11:50:38 +00:00
utzcoz
667a0404c2
a/util: Remove unused headers for u_var.cpp
2023-04-13 06:41:06 +00:00
Moshi Turner
ec59e97bda
st/gui: Use IMU in EuRoC recorder scene
2023-04-12 16:43:20 -05:00
Moshi Turner
c05c5d5c2e
st/gui: Add EuRoC recorder for DepthAI cameras
2023-04-12 12:19:13 +00:00
Moshi Turner
53e738a093
d/dai: Add manual exposure controls
2023-04-12 12:11:06 +00:00
Jakob Bornecrantz
ee0dad22d5
c/main: Tidy readback code [NFC]
2023-04-12 12:49:24 +01:00
Moshi Turner
f2bea2c7c6
d/ns; a/util: Remove old name from Moshi's distortion correction method
...
I don't hate my old name that much, but this is my last chance to change it before there's some "moshi-style" North Stars floating around.
2023-04-11 23:45:23 -05:00
Moshi Turner
19e0af55d2
c/main: Bounce readback images off temporary image
...
Most NVidia graphics cards don't support blitting straight from device memory to host memory, but all GPUs support doing it this way.
2023-04-11 22:27:36 -05:00
Moshi Turner
51ff80e802
st/gui: Lazily create debug sinks so that they can be created at any time
...
Useful for deferred-creation compositors, and for repositories submoduling Monado.
2023-04-11 19:50:41 -05:00
utzcoz
39d701a30c
t/common: Fix small typo for target_builder_simulated.c's comment [NFC]
2023-04-11 12:00:01 +00:00