Field ClientServerTickRate
The ClientServerTickRate singleton is used to configure the client and server simulation time step,
server packet send rate and other related settings.
The singleton entity is automatically created for the clients in the NetworkStreamReceiveSystem
first update if not present.
On the server, by countrary, the entity is never automatically created and it is up to the user to create the singletong instance if
they need to.
It is not mandatory to set all the fields to a proper value when creating the singleton. It is sufficient to change only the relevant setting, and call the ResolveDefaults() method to
configure the fields that does not have a value set.
- the maximum number of tick per frame
- the maximum number of tick per frame
- tick batching (MaxSimulationStepBatchSize and others.
Namespace: Unity.NetCode
Assembly: solution.dll
Syntax
public ClientServerTickRate ClientServerTickRate
Returns
| Type | Description |
|---|---|
| ClientServerTickRate |