RenderHeads / UnityPlugin-AVProDeckLink

AVPro DeckLink is a Unity plugin for broadcast CG using Blackmagic capture hardware
https://renderheads.com/products/avpro-decklink/
9 stars 1 forks source link

5x latency increase with VR Headset attached (receiver) #78

Open aivenhoe opened 2 months ago

aivenhoe commented 2 months ago

Description of the bug

A sender pc runs an application that sends a texture through a capture card (Decklink 8K Pro). The receiver PC has a capture card too, (Decklink 8K Pro) and receives the texture stream (using the licensed (!) AVPro DeckLink plugin) that is rendered on a geometry in the scene.

On the receiver PC, when using a regular unity camera, the latency between the texture sender and the receiving pc is around 9-10 frames (running at 30fps, see sceenshot below).

20240502_unityCam

Whereas when using a Varjo Headset attached, the latency appears as around 40 to 50 frames (also running at 30fps, see Screenshot below).

20240502_VarjoCam

I assume the the latency between the texture sender and the texture receiver does not really change, but I rather think that the Varjo plugin hooks into the renderpipeline causing a delay in the texture creation of the AVPro Decklink plugin.

My Setup:

Steps to Reproduce

aivenhoe commented 2 months ago

I did a quick test with the very old klinker plugin from keijiro and the varjo headset connected. There the latency was around 13 frames with the same video mode and unity version, see screenshot below.

20240502_unityCam_withKlinker

the color in HDRP is off obviously, but is correct in the build-in render pipeline. any ideas? the latency with this plugin is better, but as stated from the author, it is not recommended to use this for production.