Jonathan Steffan
b9c8a54d92
Add WiVRn-native Perfetto via Perfetto SDK
...
Optional server profiling built on the Perfetto SDK. Adds CPU spans
(compositor, encoder, network), GPU encode/copy slices from Vulkan timestamp
queries (Vulkan/NVENC/VAAPI), and headset feedback markers from dump_time.
WIVRN_TRACING enables tracing and selects the backend (system, inprocess, or
both); WIVRN_USE_PERFETTO gates it at build time and compiles it out otherwise.
WIVRN_TRACE_MONADO additionally drives Monado's percetto tracing from the same
switch so WiVRn and Monado land on one timeline.
Tooling: server-tracing[-monado] presets and a CI build, two Perfetto configs
(WiVRn-only and full-system), a wivrn_capture.py capture wrapper, a pftrace
summary script, and docs/profiling.md.
2026-07-01 21:04:08 +02:00
Patrick Nicolas
9313ccbc1d
Use multiple vulkan encode queues if possible
2026-05-19 06:59:03 +02:00
Patrick Nicolas
74c360ebe1
Fix nvenc max encode size check
2026-04-27 14:59:41 +02:00
Patrick Nicolas
775022d065
Remove useless semaphore wait (same queue)
2026-04-25 18:55:12 +02:00
Patrick Nicolas
b3479eb418
Remove vkResetCommandBuffer
2026-04-11 16:55:02 +02:00
Patrick Nicolas
6ab58430e2
Mark command pools as transient
2026-04-11 16:55:02 +02:00
Patrick Nicolas
ce83e8fb03
Major synchronization rework
...
unify submit/post_submit encoder entrypoints
encoders must now wait for their command completion
use transfer queues for CPU -> GPU copy
2026-04-11 16:55:02 +02:00
Patrick Nicolas
fe414c4450
Remove image layout transitions
2026-04-11 16:55:02 +02:00
Patrick Nicolas
22a819b8c8
Implement main compositor
...
Replace the patches to Monado's main compositor with a local
implementation, reusing code when relevant.
The layer squasher is very close to comp_render_cs, while distortion is
completely replaced by foveation.
2026-03-31 09:06:27 +02:00
BERADQ
0f21191e9b
Check NVENC intra-refresh capability before enabling the feature
2026-02-26 15:00:05 +01:00
BERADQ
6254386370
Set intra refresh period and count to fixed values.
2026-02-26 15:00:05 +01:00
BERADQ
e32d3bbf36
Enable intra refresh for H264/HEVC/AV1 with period=fps and count=fps/2
2026-02-26 15:00:05 +01:00
Patrick Nicolas
2919f7d820
Fix vulkan error on queue transfer
...
Queue transfer acquire was performed by each encoder, it needs to be
done only once, for the first one.
2026-01-30 16:29:53 +01:00
Patrick Nicolas
5c50b9a1ad
WIP: fixed encoder layout
2025-12-10 14:00:47 +01:00
BERADQ
d1308bfbb8
Update IDR handler to explicitly handle dropped IDR frames and ignore dropped non-reference frames.
2025-12-04 15:59:18 +01:00
BERADQ
a37498eedf
Optimize NVENC encoding configuration
2025-12-04 15:53:34 +01:00
Patrick Nicolas
833e405060
More reliable reconnect (especially vulkan video)
2025-11-02 15:38:10 +01:00
aomiki
3c91e4eca8
nvenc: support for changing framerate at runtime
2025-10-29 19:19:22 +01:00
aomiki
1635bdabce
use idr param & deal with narrowing conversion warns
2025-10-29 19:19:22 +01:00
aomiki
4908f50a00
reset internal rate control states
2025-10-29 19:19:22 +01:00
aomiki
442e09dcfc
meaningful names for all other nvenc params
2025-10-29 19:19:22 +01:00
aomiki
855539fab0
formatting
2025-10-29 19:19:22 +01:00
aomiki
ba39b4da0b
remove bitrate variable
2025-10-29 19:19:22 +01:00
aomiki
13ff9231f0
nvenc: ability to set bitrate at runtime
2025-10-29 19:19:22 +01:00
Alexander Afanasenko
50e1ecab37
10-bit encoding on NVENC ( #532 )
2025-10-23 09:42:33 +02:00
Patrick Nicolas
6932f9461d
Add support for raw video
2025-09-26 16:33:01 +02:00
Kierek
e5ba1f7394
Share CUDA context between all nvenc encoder instances
2025-07-27 23:32:41 +02:00
galister
ec42db83bc
change encode_10bit → bit-depth
2025-07-11 23:09:37 +02:00
galister
d64d5909ee
vaapi: 10-bit hevc/av1 encoding
2025-07-11 23:09:37 +02:00
Patrick Nicolas
f6eb528ea7
Name most vulkan objects
2025-06-12 15:46:37 +02:00
Patrick Nicolas
a33fae434e
Destroy cuda context in encoder destructor
2025-05-22 17:55:35 +02:00
Guillaume Meunier
345db32bb1
Always use stderr instead of stdout for server logs
2025-03-25 21:15:01 +01:00
Kierek
20ae78f2d9
Enable ULTRA_LOW_LATENCY and NV_ENC_TWO_PASS_QUARTER_RESOLUTION for nvenc
2025-03-01 20:56:34 +01:00
Kierek
8495a9433c
Enable AV1 encoding for nvenc
2025-02-20 10:55:23 +01:00
Kierek
163d72dcce
Update NVIDIA Video Codec SDK headers to 12.2
2025-02-20 10:55:23 +01:00
galister
e9f4b52b50
wip: set bitrate at runtime
2025-02-07 19:00:34 +01:00
Patrick Nicolas
6943fa82d2
Use device memory for vulkan encode
2024-11-10 16:46:28 +01:00
Patrick Nicolas
4df0e391c6
Move video command buffer ownership to encoder
2024-11-10 16:46:28 +01:00
Patrick Nicolas
6fdac88fd8
Assume positions are already aligned for nvenc
2024-11-10 15:24:07 +01:00
Patrick Nicolas
410b112fcf
Support passthrough for stream
2024-11-06 19:50:44 +01:00
Patrick Nicolas
df5e0869c3
Set range/color model for all encoders
2024-10-29 10:44:49 +01:00
Patrick Nicolas
20f0137380
Cleanup some includes
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
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
7a42691269
AV1 support
2024-08-31 22:07:56 +02:00
Patrick Nicolas
d267bd0ebb
Add async send for nvenc
2024-08-26 12:30:54 +02:00
Patrick Nicolas
982a2557ef
Use a single thread for all encoder async send
2024-08-22 22:56:51 +02:00
Patrick Nicolas
e385471bee
Use correct flag for forced IDR
2024-06-13 08:11:54 +02:00
Patrick Nicolas
d90863c9b4
Nvenc: enforce width/height to be divisible by 32
2024-06-12 12:46:31 +02:00