|
Hermes 0.7.0
Linux game streaming host
|
Environment that caps an application's frame rate at the stream's. More...
#include <string>#include <string_view>#include <utility>#include <vector>Go to the source code of this file.
Functions | |
| std::string | proc::frame_limit::mangohud_config (std::string_view existing, int fps) |
| std::vector< std::pair< std::string, std::string > > | proc::frame_limit::environment (int fps, std::string_view existing_mangohud_config) |
Environment that caps an application's frame rate at the stream's.
Definition in file frame_limit_env.h.
|
inline |
Variables that cap an application at the stream's frame rate, with no extra software required: DXVK (D3D8-11 under Proton) and VKD3D-Proton (D3D12) read DXVK_FRAME_RATE and VKD3D_FRAME_RATE in the builds that keep their limiter. MangoHud, where the user already enables it, reads fps_limit from MANGOHUD_CONFIG; this never sets MANGOHUD, so it neither turns MangoHud on nor shows its overlay.
| fps | The stream's frame rate; 0 or less means no limit. |
| existing_mangohud_config | The MANGOHUD_CONFIG already set, or empty. |
Definition at line 60 of file frame_limit_env.h.
|
inline |
MANGOHUD_CONFIG with the stream's frame rate as fps_limit.
MangoHud reads only MANGOHUD_CONFIG when it is set, unless its first option is read_cfg. With no MANGOHUD_CONFIG, start with read_cfg so the user's MangoHud.conf still applies. With one, keep it as it is, read_cfg or not, and replace only its fps_limit.
| existing | The MANGOHUD_CONFIG already in the environment, or empty. |
| fps | The stream's frame rate. |
Definition at line 25 of file frame_limit_env.h.