Articles & News / Engineering

Hardware–software co-design: bringing end-to-end RTC latency under 100 ms

2025-01-22·Engineering
In remote control, vehicle telemetry and industrial inspection, the gap between “it happened” and “you see it” decides the experience — and sometimes safety. Here is how we use hardware–software co-design to keep capture-to-display latency in the low hundreds of milliseconds.
RTC < 100ms

1. Where the latency actually goes

“Low latency” claims often hide hundreds of milliseconds. Break the chain apart and every stage contributes its share:

StageTypicalUsual culprit
Capture / exposure16–33 msOne frame at 30 fps
ISP & conversion5–15 msMultiple frame copies in software
Encoding10–30 msSoftware 1080p encoding
Network + jitter buffer50–300 msBuffering traded for smoothness
Decoding5–15 msSoftware decode + compositing
Render / composite16–33 msVSync and GPU round-trips

Software codecs on a generic stack land at 300–800 ms. Getting under 100 ms means shaving every stage.

2. Five stages, each with hardware acceleration

Capture → encode: zero-copy pass-through

Raw frames go from the sensor to ISP and the hardware encoder via DMA-BUF, without a CPU detour. Two or three full-frame copies disappear — less latency, less power.

Transport: UDP + FEC + selective retransmission

TCP head-of-line blocking freezes the whole picture on loss. We run over UDP, absorb most loss with forward error correction, and only retransmit key frames — application-level and droppable.

Jitter buffer: from a fixed 120 ms to adaptive 20–40 ms

A fixed buffer is either laggy or stuttery. We adapt the window to the arrival statistics: 20–40 ms on stable networks, widening automatically when jitter rises.

Decode → display: hardware decode and direct render

Decoded frames go straight to the display/compositor without a GPU → CPU → GPU round-trip, and are shown as they arrive rather than waiting for a fixed refresh tick.

Clock: end-to-end timestamp alignment

Capture timestamps and a shared time base on both ends make latency measurable — and what cannot be measured cannot be optimized.

各环节延迟(ms,1080p30 典型值) 采集16–33 ISP+编码8–15 解码5–10 渲染≤16 传输由 RTT 决定,弱网时是最大变量
延迟预算拆解:真正可优化的是传输与缓冲

3. Three trade-offs that matter

  • Encoder settings: latency-first rate control; we do not chase maximum compression.
  • Memory path: zero-copy end to end; frames never land between ISP, encoder and transport.
  • Weak networks: FEC before retransmission; we give up a little bitrate rather than let the buffer grow.

4. Reference measurements

NetworkP50P95
Wired gigabit≈ 80 ms≈ 95 ms
5G (good signal)≈ 95 ms≈ 130 ms
Weak (20% loss)≈ 120 ms≈ 200 ms

Method: a millisecond timer in frame, both ends screen-recorded, frame-by-frame comparison, 100 samples per case.

Lab and field reference numbers. Real projects vary with resolution, frame rate, network and SoC — an assessment per project is the only reliable figure.

5. Where it fits

  • Remote driving / tele-operated machinery
  • Industrial inspection and remote assistance
  • Drone and robot video links — stability on weak networks beats peak quality
  • Medical teaching and remote operation — the strictest latency and sync requirements

6. Closing

The value of co-design is not one clever trick; it is removing every unnecessary copy, queue and wait. Add them up, and 100 ms stops being a lab accident and becomes normal engineering.

Have a low-latency use case?

Tell us resolution, frame rate, network conditions and environment — we can assess the link for you.

Talk to us →
Product News
 Contact
Business QR Code
Copyright 2013-2025 © Foshan Goockr Technology Co., Ltd.
Legal Counsel: Guangdong Guangfa Law Firm