Targets by use case
There is no universal “good performance.” Pick the profile that matches your project:
Glass-to-glass latency = camera move on the worker → photons on the viewer’s display. Below 100 ms feels native; 100–200 ms is fine for non-twitch content; above 300 ms feels like you’re operating a remote machine.
Region selection
The single biggest lever. Streampixel runs in three regions:- US-East-1
- Europe
- Asia Pacific
Codec choice
Set the preferred codec from the dashboard (Codec settings) or per-session in the SDK. Default to AV1 primary with a fallback that fits your audience.
Resolution and bitrate
Pair these as a unit — high resolution at low bitrate looks worse than lower resolution at the same bitrate.
For ready-made bitrate / QP presets by application type (ArchViz / Digital Twin, Chatbot, Games), see Recommended settings by use case.
Two rules of thumb:
- Bits per pixel per second. A 1080p60 stream at 6 Mbps gives ~50 milli-bits per pixel per frame. Below ~30 mbpp/f you start seeing compression artifacts in motion. Use this when sizing custom resolutions.
- Decode budget. A device that can play your stream at 1080p smoothly may stutter at 1440p even if the network has the bandwidth. Decoder throughput is the hidden ceiling.
Adaptive vs fixed bitrate
Adaptive (default) lets the encoder ramp bitrate up and down based on observed network capacity. Best for variable networks (mobile, home Wi-Fi). Fixed holds a constant bitrate. Best for controlled environments (events on dedicated networks, kiosks on Ethernet) where you want predictable visual quality. Tradeoffs:
Most production deployments should use adaptive. Switch to fixed when you have metrics showing the adaptive controller is making bad decisions (e.g., oscillating in a stable network).
Reducing perceived latency
If your stream feels laggy even though throughput is fine, the bottleneck is somewhere other than bandwidth. Try, in order:1
Check actual RTT in the stats panel
On the share link, press T + 5 together on the running stream to open the stats panel. Read RTT directly from there — that’s the real WebRTC round-trip, not a ping to the API. On a page built with the Web SDK, read
latencyMs from the stats event, or open the stream information popup in the control bar of @streampixel/ui. Anything above ~100 ms means the viewer is far from the worker; pick a closer region.2
Match codec to client capability
On devices with AV1 hardware decode (modern Chrome / Edge desktops, recent Intel / AMD / Apple chips), AV1 is fastest and highest quality. On older devices or Safari / iOS, fall back to H264 — software-decoded VP9 / AV1 will add 10–30 ms on weaker hardware.
3
Lower minQP
Lowering the minimum quantization parameter lets the encoder spend more bits on each frame, reducing the chance of B-frame queueing. Configure from the dashboard’s adaptive settings.
4
Raise maxBitrate
If you’ve capped maxBitrate aggressively for bandwidth reasons but the network can handle more, raising the cap reduces compression artifacts and the perception of lag.
5
Open UDP 10000–60000 outbound (optional)
On viewer networks where these ports are open, the SDK can establish a direct peer-to-peer connection to the rendering node instead of going through TURN — one fewer hop, lower latency. See Network requirements.
6
Don't force the relay unless you need it
Forcing the TURN relay (the project’s “force TURN” setting, or
advanced: { iceTransportPolicy: 'relay' } in the Web SDK) adds a hop. Left off, the stream takes a direct path where the network allows one and the relay only where it has to.Network: TURN-only mode for restrictive networks
Corporate networks often block UDP and direct WebRTC entirely. The Web SDK then falls back to the TURN relay by itself, over TCP or TLS when UDP is blocked, and fires therelayFallback event. To send every session through the relay from the start, set:
4100: about 8 seconds after the application’s offer when the network refuses the connection, and after 30 seconds when it drops the packets without an answer. See Network requirements.
Diagnosing performance: stream stats
Subscribe to the SDK’s stats events to see what’s actually happening:StreamStats. Jitter is not among them: Epic’s full statistics are still reachable with stream.addEventListener('statsReceived', fn).
What to look for:
Render these in a dev overlay during testing. The control bar of
@streampixel/ui has a stream info popup with live stats, and the example app draws its own panel.
UE-side optimizations
Streampixel can’t make a slow Unreal project fast. If your scene drops below 60 fps on the worker, no amount of network tuning will produce a 60 fps stream. Quick wins that often help:- Lock the target framerate.
t.MaxFPS 60keeps the encoder in sync with consistent frame intervals. Variable frame times confuse the encoder. - Disable expensive shadows where not needed. Movable lights with dynamic shadows are the most common framerate killer in real-time scenes.
- Lower texture mip levels. Streamed pixels won’t show your highest-mip detail anyway.
r.Streaming.MipBias 1saves VRAM with negligible visual impact at typical streaming resolutions. - Forward renderer for VR / mobile-targeted streams. Cheaper, more deterministic frame times than the deferred renderer.
- Disable AA passes that don’t survive video encoding. Heavy TAA gets blurred away by H264 anyway; FXAA or no AA can look identical and render faster.
Debugging high latency
When users report “the stream feels laggy,” walk this checklist:1
Confirm region
Which region is the project in? Where is the user? If they don’t match, fix that first.
2
Check stats
On the share link, ask the user to press T + 5 on the stream to open the stats panel and share RTT, Packet Loss, FPS, and bitrate. On your own Web SDK page, show the values of the
stats event, or the stream information popup of @streampixel/ui. Stats > intuition.3
Check codec
If they’re on Safari or iOS, AV1 / VP9 won’t decode — make sure your fallback codec is H264. On older Android devices, software-decoded VP9 / AV1 will also drag latency down.
4
Check network type
Cellular vs. Wi-Fi vs. Ethernet. Cellular adds 30–80 ms vs. wired. Wi-Fi 5 GHz is much better than 2.4 GHz for streaming.
5
Check the relay
On a corporate network the stream may be running through the TURN relay over TCP or TLS, which is slower than UDP. In a Web SDK page the
relayTransport field of the stats event then reads tcp or tls. Ask the network’s admin to allow UDP: see Network requirements.6
Check UE framerate
If the worker is rendering at 30 fps because the scene is heavy, no amount of network tuning fixes that. Profile UE.
Pre-launch perf checklist
Before opening to a real audience:- Region matches audience geography.
- Codec set explicitly — AV1 primary with an appropriate fallback (H264 for broad reach, VP9 for desktop ArchViz).
- Resolution + bitrate pair appropriate for target devices. Start from the recommended use-case presets.
- Adaptive bitrate enabled (unless you have a specific reason for fixed).
- Tested on a network that blocks UDP: the stream should fall back to the relay.
- UE project hits target FPS on the worker hardware.
- Stream stats panel available in dev/staging for spot-checks.
- Tested on the slowest device class your users will bring (e.g., a mid-range Android on LTE).
Next steps
Regions
Where your project runs determines your latency floor.
Codec settings
Choose H264, VP8, VP9, or AV1 per project.
Mobile streaming
Bitrate and codec recipes specific to mobile browsers.
Multiplayer streaming
Per-viewer bitrate budgets for SFU sessions.