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
| Desktop | Usual paths | Operational notes |
|---|---|---|
| Windows console | Desktop duplication / D3D11; eligible AMF; GDI fallback | Use the installed service for login/lock/UAC transitions. |
| Linux X11 | Xlib; eligible GPU capture | Requires an enabled OS display. Xvfb is a software display. |
| Linux Wayland console | Portal/PipeWire; eligible NvFBC or AMF | GPU capture eligibility is narrower than GPU encoding support. |
| GNOME Wayland virtual | Private Mutter / PipeWire | No physical portal dialog; uses the private compositor. |
| macOS console | ScreenCaptureKit; Core Graphics fallback where available | Requires 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
- Confirm the desktop itself paints normally and the final static screen update arrives promptly.
- Test a lower resolution and fewer monitors to separate resource pressure from codec failure.
- Check selected capture, encoder, and decoder logs on both ends.
- Measure CPU, GPU encoding, memory, and network throughput while reproducing the workload.
- Compare native and browser viewers to isolate viewer rendering/decoding limits.
- 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.