Capture, codecs, and performance

Verify hardware paths, troubleshoot color range, and size a deployment.

On this page

Establish a measurable baseline

Record the host's OS, driver, desktop backend, monitor layout/scaling, selected capture, motion encoder, and viewer decoder. Reproduce the actual application workload at its intended resolution. Change one factor at a time.

At high resolutions, capture buffers, uploads, codec surfaces, application rendering, and the viewer all consume memory and processing time. A hardware encoder can reduce codec CPU use without eliminating every CPU image operation.

Capture providers

DesktopUsual pathsOperational notes
Windows consoleDesktop duplication / D3D11; eligible AMF; GDI fallbackUse the installed service for login/lock/UAC transitions.
Linux X11Xlib; eligible GPU captureRequires an enabled OS display. Xvfb is a software display.
Linux Wayland consolePortal/PipeWire; eligible NvFBC or AMFGPU capture eligibility is narrower than GPU encoding support.
GNOME Wayland virtualPrivate Mutter / PipeWireNo physical portal dialog; uses the private compositor.
macOS consoleScreenCaptureKit; Core Graphics fallback where availableRequires GUI agent context and privacy permission.

Try a standard Linux capture baseline

To exclude optional GPU capture while retaining eligible GPU encoding, merge into the shared configuration:

[display]
capture-modules = xlib, pipewire

Apply to the affected processes during maintenance. A service restart ends virtual desktops. Restore the default amf, nvfbc, xlib, pipewire after the investigation. Confirm the actual selected capture in the agent log.

Encoding and decoding

TMD negotiates capabilities per frame layer. A motion layer may use NVENC, AMF, VideoToolbox, or an available FFmpeg path, while small dynamic or quality updates use JPEG/QOI. Seeing CPU activity does not prove that motion encoding failed to use the GPU.

Hardware support depends on the GPU, driver/runtime, codec, input image/texture path, and viewer capabilities. Linux NVENC accepts ordinary CPU capture images through a reusable GPU upload texture; missing NvFBC support does not require software video encoding.

Software H.264 encoding and decoding are not provided by the TMD native FFmpeg paths. The distributed modified FFmpeg decoder retains hardware routes and rejects software output. Other codecs can provide software operation. macOS uses VideoToolbox rather than FFmpeg; the browser uses WebCodecs rather than the native FFmpeg plugin.

Color range and first-frame issues

Color space and range are negotiated. Full range is preferred where available, but it is not mandatory for all hardware encoders. The Firefox browser path requests supported limited-range modes to avoid its full-range conversion behavior.

If motion freezes while quality updates continue, collect the selected motion codec, configuration/SPS diagnostics, and decoder status. Confirm the full current browser bundle and matching server plugins are deployed. Increasing a timeout or forcing a software H.264 decoder is not the expected remedy.

Practical tuning sequence

  1. Confirm the desktop itself paints normally and the final static screen update arrives promptly.
  2. Test a lower resolution and fewer monitors to separate resource pressure from codec failure.
  3. Check selected capture, encoder, and decoder logs on both ends.
  4. Measure CPU, GPU encoding, memory, and network throughput while reproducing the workload.
  5. Compare native and browser viewers to isolate viewer rendering/decoding limits.
  6. Reintroduce optional GPU capture or larger resolutions after the baseline is stable.

Do not use a headline hardware specification or nvidia-smi/vulkaninfo alone as proof that TMD selected a particular codec. See NVIDIA and AMD graphics.