Skip to content

Integrating Moonbeam with Other Tools

This section covers several example integrations.

Gamescope Integration

When you run Gamescope alongside Moonbeam, you can enjoy the following benefits:

Moonbeam: Client-side Benefits

  • Save bandwidth: Stream at a lower resolution and Gamescope will upscale them with improved visuals.
  • Increase FPS: The reduced bandwith from a lower resolution may allow for a bump in FPS.

Sunshine: Host-side Benefits

  • Save bandwidth: You could reduce the resolution of the game running on the host. Useful for hosts who may have data caps or transfer limitis.
  • Older hardware: Lower resolutions allow some games to run smoother on older hardware.
  • Increase FPS: The reduced bandwith from a lower resolution may allow for a bump in FPS.

Use Gamescope with Moonbeam:

This command upscales with FSR (FidelityFX Super Resolution) upscaling enabled.

Terminal window
nix run nixpkgs#gamescope -- \
-f \
-w 1280 \
-h 720 \
-F fsr -- \
moonbeam stream <HOST> <APP> --max-resolution 720p --priority fps
Gamescope
  • -f: Enables fullscreen mode
  • -w 1280 -h 720: Sets gamescope internal resolution to 720p (1280x720)
  • -F fsr: Enables FSR (FidelityFX Super Resolution) upscaling
Moonbeam
  • --max-resolution 720p: limits the stream resolution to 720p
  • --priority fps: Prioritizes frame rate over image quality

Gamemode Integration

Gamemode is a daemon that can optimize your system for gaming.

Use Gamemode with Moonbeam:

Terminal window
nix run nixpkgs#gamemoderun -- moonbeam stream <HOST> <APP>

This command applies Gamemode optimizations while running your Moonbeam stream.

Integration with Desktop Environments

You can create desktop shortcuts or menu entries for quick access to your favorite games and applications through Moonbeam.

This method works for both Moonbeam and standard Moonlight.

Create a .desktop file in ~/.local/share/applications/:

[Desktop Entry]
Name=Stream Game
Exec=moonbeam stream <HOST> "My Favorite Game"
Type=Application
Categories=Game;

This creates a menu entry that launches your specified game through Moonbeam when clicked.