Enum SingleWorldHostInterpolationMode
Single host world mode can do interpolation smoothing via the HostTransformInterpolationSystem. It's disabled per prefab by default. 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 keep it disabled entirely via this setting, removing the CPU and memory overhead of caching transform state and performing interpolation. Else if you see stuttering issues, you can enable this.
Namespace: Unity.Netcode
Assembly: Unity.NetCode.dll
Syntax
[MovedFrom(true, "Unity.NetCode", null, null)]
public enum SingleWorldHostInterpolationMode
Fields
| Name | Description |
|---|---|
| Disabled | Designed for mobile and console, where you expect the SimulationTickRate to perfectly align with 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 targetFrameRate (or vSync) render rate. |