Photon Fusion Casual MMO Sample Is Now Public: 200+ Players in One Shared Mode Session

Fusion Casual MMO, our largest Photon Fusion 2 sample, is now available to everyone. It took about a year to build, and it shows how far a Shared Mode game can go: a world built for more than 200 players in one session, four areas full of orcs, and portals that link to further sessions. Until today only Photon Circle members could download the project. Now anyone can download it, open it in Unity and start building on it.

The latest version, built on Fusion 2.1.4, also puts Object Send Priority to work. Distant players and enemies update up to six times less often than nearby ones, which cuts the sample’s network traffic roughly in half.

The question behind the sample

Shared Mode is the quickest way to get a Fusion game online. There’s no dedicated server to run, and each player has authority over their own objects. Once teams get going, two questions come up again and again: how far does Shared Mode scale, and what happens when the game needs more control than that?

We wanted to answer both with a real, playable game you can take apart, so we built one.

You play a knight with a sword, a dash and an ultimate ability, in a world full of orcs. There are no quests. Three Golden Chests are hidden somewhere, though. Good luck.

What’s in the project

  • A world built for 200+ players per session, split into four areas: Town, Woods, Wasteland and Dungeon. Enemies fight players in all of them, so the networking runs under real load.
  • Enemy AI calculation is split among nearby players, so no single client carries the whole simulation.
  • Local portals move players around within a session. Remote portals take them to other scenes and sessions and keep their stats, which lets more players join through connected sessions.
  • Area of Interest, so each player only receives updates for objects near them.
  • Simple progression: players earn experience by defeating enemies and level up to raise their stats, with chests, coins and health pickups along the way.
  • Bot clients and batch mode, so you can load test without gathering 200 people.
  • An optional server plugin that adds server authority for key game logic (more on that below).

New: Object Send Priority keeps traffic down

Fusion sends object updates on send ticks, and the send rate decides how many send ticks happen per second. Object Send Priority, added in Fusion 2.1, lets you decide how many of those ticks an object skips. Priority 1 means the object is sent on every send tick, priority 2 on every second one, priority 6 on every sixth one. In Shared Mode, each client controls the priority of the objects it receives, so a player can ask for fewer updates about things that are far away.

SendPriorityByDistance component on the Player prefab

The updated sample uses this for players and enemies. A component on their prefabs checks how far each object is from the local player and picks a priority tier: full rate up close, up to six times less often at a distance. On top of Area of Interest, this cuts the sample’s traffic roughly in half in a test with 50 players constantly moving and fighting enemies in a fairly small area.

There’s a trade-off. If updates arrive too far apart, interpolation can run out of data and distant objects can move jerkily. The sample adjusts Fusion’s configuration to keep motion smooth. The architecture page walks through the setup, the distance tiers and the traffic charts with 50 and 100 players.

Traffic per player with 50 players
Traffic per player with 100 players

Adding server authority later: the optional plugin

In Shared Mode, clients own their objects. That keeps things simple and avoids running a server, but it also means the server doesn’t check what clients do. The sample includes an optional server plugin that moves key checks to the server without rewriting the game:

  • Damage validation
  • Leveling and XP owned by the plugin, not the client
  • Server-side control of object spawning
  • RPC interception
  • Speed-hack detection

The plugin is built on the Fusion custom server API. It has access to NetworkObject data, spawns, updates and RPCs, and it uses C# stubs that match your NetworkBehaviours and prefabs 1-to-1. The game can run without it, but validation like this is an important step into making a game cheat-proof.

Our advice from building it: get the game fun in Shared Mode first, then add authority where the game actually needs it.

The plugin is available on request to Circle subscribers who intend to move to an Enterprise plan (with dedicated server clusters).

Get in touch with us if you want to run it with your game or directly join our Discord.

Get started

Requirements: Photon Fusion 2.1.4, Unity 6.3. Development on Photon Cloud is free.

Build your own

Fusion Casual MMO is meant as a starting point, not just a demo. Swap the orcs for your own enemies, change the areas, or keep the networking and build a different kind of game on top of it. If you build something with it, show us on the Photon Discord. We’d love to see where you take it.