Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Shyamalp16/CloudGaming/llms.txt
Use this file to discover all available pages before exploring further.
Configuration Structure
CloudGaming uses aconfig.json file that must be present in the host application’s working directory. The configuration is divided into two main sections:
- client - Browser client configuration for signaling and matchmaking
- host - Host application configuration for capture, encoding, audio, input, and networking
config.json Location
The configuration file must be located in the same directory as the host executable:Configuration Sections
Video Encoding
Frame rate, bitrate, NVENC presets, HDR tone mapping
Audio Capture
Process loopback, Opus encoding, WASAPI settings
Input Injection
Mouse/keyboard policies, DataChannels, thread priority
Screen Capture
WGC capture, copy pools, frame queuing, MMCSS
Network
Signaling servers, matchmaker, ICE/TURN setup
Basic Structure
Client Configuration
The client section configures browser client connection endpoints.WebSocket URL for the signaling server. Must use
wss:// protocol for secure connections.Default: wss://signaling-server-production-acd4.up.railway.appHTTP(S) URL for the matchmaker service that assigns clients to available hosts.Default:
https://matchmaker-production-5b36.up.railway.appHost Configuration
Target Process
Name of the executable to capture (e.g.,
SandFall-Win64-Shipping.exe).This process will be the target for screen capture and input injection.WebSocket URL for host-to-signaling-server connection.Default:
wss://signaling-server-production-acd4.up.railway.appWindow Configuration
Automatically resize the target window’s client area to match target dimensions.
Target window width in pixels.
Target window height in pixels.
Debug Options
Enable raw audio capture recording to WAV file for debugging.
Output filename for WAV recording when enabled.
Best Practices
Performance Tuning
- Low Latency Priority: Set
video.bfto0, usevideo.rcascbr, enableaudio.latency.strictLatencyMode - High Quality Priority: Increase
video.bitrateMax, use slowervideo.preset(p5-p7), increaseaudio.bitrate - Network Constrained: Lower
video.bitrateStart, enable adaptive bitrate controllers
Production Deployment
- Use production-grade signaling servers with Redis clustering
- Configure TURN servers for NAT traversal
- Set appropriate
hostSecretfor matchmaker authentication - Enable MMCSS for capture and input threads
- Test with your target applications and network conditions
Configuration Validation
The host application will validate the configuration on startup and log errors for:- Missing required fields
- Invalid value ranges
- Incompatible setting combinations
- Missing dependencies (e.g., NVENC on non-NVIDIA GPUs)