Skip to content

Using Photon Fusion

Photon Fusion is a networking library for Unity with support for client-side prediction, data compression, and lag compensation. Its Dedicated Server mode runs an authoritative server with no player host — Gameye orchestrates these servers globally via Docker containers.

This integration is documented on Photon’s own site.

You build a Fusion Dedicated Server binary, wrap it in a Docker image, and push it to Docker Hub. Gameye pulls that image and schedules it across its infrastructure. At session start, you pass Photon-specific arguments (-s for session name, -r for Photon region) so the server connects to the correct Photon relay.

Follow the Fusion Dedicated Server sample to produce a Unity dedicated server build for Linux.

Wrap the Linux build in a Docker container using the Fusion Dedicated Server Docker Image guide. Push the image to Docker Hub.

Configure your application in the Admin Panel with the Docker Hub image, port bindings, and target regions. Contact support@gameye.com to get your API token if you don’t have one.

Start a Photon Fusion session by calling POST /session with your Fusion-specific arguments:

Terminal window
curl -X POST https://api.gameye.io/session \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"location": "eu-west",
"image": "your-fusion-server",
"args": ["-s", "my-match-session", "-r", "eu"],
"labels": {
"matchId": "abc123"
},
"restart": false
}'

Gameye regions map to Photon regions as follows:

Gameye regionPhoton region
eu-west, eu-southEurope (eu)
na-east, na-centralUSA East (us)
na-westUSA West (usw)
sa-eastSouth America (sa)
asia-eastAsia (asia)
asia-northeast, oce-eastJapan (jp)

Select the Gameye region that matches your target Photon region to minimise relay latency.