Enum SingleWorldHostInterpolationMode
By default, single host world mode enables interpolation smoothing (via the HostTransformInterpolationSystem). However, if you're confident that the SimulationTickRate will align with the build target's vSync render rate, (for example; when targeting specific consoles and mobile devices), you can disable interpolation entirely via this setting, removing the CPU and memory overhead of caching transform state and performing interpolation.
Namespace: Unity.NetCode
Assembly: Unity.NetCode.dll
Syntax
public enum SingleWorldHostInterpolationMode
Fields
| Name | Description |
|---|---|
| Disabled | Designed for mobile and console, where you expect the SimulationTickRate to perfectly align with UnityEngine.Application.targetFrameRate (or vSync) render rate. |
| Interpolate | Introduces half a SimulationTickRate tick worth of 'input to render' latency, on average, but does so to smooth out transforms on netcode "off frames" (see IsOffFrame). Designed for PC games (which typically have variable render refresh rates), or cases where your SimulationTickRate is not equal to your UnityEngine.Application.targetFrameRate (or vSync) render rate. |