Moonlight-XboxOG latest
Moonlight Xbox OG is a port of the Moonlight Game Streaming client to the original Xbox console.
stats_overlay.cpp File Reference

Implements streaming statistics text formatting. More...

#include "src/streaming/stats_overlay.h"
#include <sstream>
#include <utility>
#include <vector>
Include dependency graph for stats_overlay.cpp:

Functions

std::vector< std::string > streaming::build_stats_overlay_lines (const StreamStatisticsSnapshot &snapshot)
 Build text rows for streaming statistics displays.
 

Detailed Description

Implements streaming statistics text formatting.

Function Documentation

◆ build_stats_overlay_lines()

std::vector< std::string > streaming::build_stats_overlay_lines ( const StreamStatisticsSnapshot & snapshot)

Build text rows for streaming statistics displays.

Negative metric values are treated as unavailable and omitted from the corresponding row.

Parameters
snapshotTelemetry values to display.
Returns
Text rows ready for rendering.