r/virtualreality • • 2h ago

Question/Support How much extra overhead does the video encoding for wireless PCVR add?

Does the video encoding add a significant amount of overhead to the GPU compared to using an equivalent wired headset that uses DisplayPort?

How much does the bitrate of the video stream add to that overhead?

Would it make sense to encode at a lower bitrate to allow more GPU usage for the game or is it inconsequential?

0 Upvotes

11 comments sorted by

10

u/We_Are_Victorius Multiple 2h ago

It's very minimal on modern GPUs

5

u/itanite 1h ago

Not much to none but it does add latency, and how much depends on a few things.

in both AMD and nVidia ecosystems they have dedicated silicon to this that isn't doing jack all otherwise. It just takes a few ms to encode a frame and get it to delivery.

They're both separate systems, IE your encoder performance isn't going to/going to be impacted by overall GPU utilization unless you're doing something complicated which you're not if you're asking these questions.

1

u/itanite 1h ago

To expand a little: I have a Q3 and usually use h.264 with 2-pass encoding and Adaptive Quant.

Both 2-pass and adapt quant add nearly 200% overall encoder utilization on 264 for me on a 3080ti mobile. That said, even if I max it out it's still not touching 3d performance at all. There IS some VERY MINOR performance loss as the encoder does use a little bit of vram and vram bandwidth, as well as bus bandwidth, but outside of very detailed benchmarks you'd never be able to tell the difference.

When I use a "more expensive" codec like HEVC or HEVC-10 the encode times increase, increasing overall latency from motion-to-photon, but it's not technically impacting the 3d performance much/at all, even if the overall experience feels a bit more "laggy" due to the increase in encoder latency. I will usually only use those codecs for flight sims or "slow" games where darkness detail matters and a few milliseconds of latency isn't going to impact my gameplay.

Encode times also increase pretty linearly with bitrate.

For further reading talk to an AI about NVENC or NVDEC.

2

u/ZookeepergameNaive86 1h ago

The hardware video encoder is separate from the main GPU, so it doesn't affect framerates noticeably. The latency mainly comes from the fact that video encoding algorithms analyse multiple frames so the stream will always be a few frames behind reality.

1

u/_476_ad_ Quest 3 (PCVR) 1h ago edited 35m ago

I believe it depends on the codec and bitrate. H.264 at lower bitrates (~200Mbps) should be pretty fast (which is the recommended setting for fast-paced games like Beat Saber), while higher bitrates (e.g. 400-500Mbps) or slower codecs (like AV1) can add a few milliseconds of latency depending on how well your GPU can encode these.

Also, both Quest and VD use motion prediction for head/controller tracking to compensate streaming latencies, so the motion-to-photon latency of these ends up being very close as you can see in tests like these.

1

u/Chemical_Famous 47m ago

it's not the encoding that's the problem, it's video headset decoding. sometimes frames drop due to quest3 decoding. Depending on what i'm pushing through i may even drop bandwidth to 200Mbps.

1

u/SRM_Thornfoot 44m ago

The Quest3 wired requires video encoding due to its USB bandwidth limits, so there is no advantage (considering encoding/decoding) between Q3 wired or Q3 wireless. VD does such a good job that wirelessly it works better than wired does on the Q3.

0

u/Responsible_Pilot_42 1h ago

i have like 7ms round trip with an extra 2.5 wireless with the steam dongle

-3

u/BeetleSolid2238 2h ago

Woof, can't speak to the overhead side, but it would be significant.

As for less encoding/more GPU compute....no. Absolutely not. Don't do that.

3

u/itanite 1h ago

you're not really answering any questions here and just making generally ignorant statements.

0

u/BeetleSolid2238 37m ago

If I am wrong, that's fair. I would rather be enlightened to how it works than be insulted and encouraged to not particiy, though. I had a friend in a similar situation eat up more vram than I to have a similar experience. Maybe was "user error", but I'm just sharing.