How does coherence work?
Was this helpful?
Was this helpful?
coherence works by sharing game world data via a in the cloud and passing it to the connected Clients.
The Clients and can define (LiveQueries), , varying simulation and replication and other optimization techniques to control how much bandwidth and CPU power is used in different situations.
The game world can be run using multiple Simulators that split up simulation functions or areas of the world accordingly.
The platform handles scaling, synchronization, persistence and load balancing automatically.
Code generation ("Baking")
The game world can be run using multiple Simulators that split up simulation functions or areas of the world accordingly.
The platform handles scaling, synchronization, persistence and load balancing automatically.
Fast authority transfer and remote commands allow different , including Client authority, Server authority, distributed authority and combinations like Client prediction with .
A lean and performant server that keeps the state of the world and replicates it efficiently between various Simulators and Game Clients. The usually runs in the , but developers can start it locally from the command line or the Unity Editor.
A build of the game. To connect to coherence, it will use the .
A is a version of the Game Client without the graphics ("headless client") optimized and configured to perform server-side simulation of the game world. When we say something is simulated on the server, we mean it is simulated on one or several Simulators.
A text file defining the structure of the world from the network's point of view. The is shared between the Replication Servers, Simulators and Game Clients. The world is generally divided in components and archetypes.
This is the process of specific to the game engine that takes care of network synchronization and other network-specific code. This is also known as Baking and is done using a CLI tool called Protocol Code Generator that takes the schema file and generates code for various engines (e.g. C# for Unity).
The process of making sure the state of the world is eventually the same on the Replication Servers, Simulators and Game Clients, depending on their .
coherence works by sharing game world data via a in the and passing it to the connected Clients.
The Clients and can define (LiveQueries), levels of detail, varying simulation and replication frequencies and other to control how much bandwidth and CPU power is used in different situations.
Fast authority transfer and remote commands allow different authority models, including Client authority, Server authority, distributed authority and combinations like Client prediction with .
support (without a Replication Server) is available starting from coherence version 1.0.