diff --git a/Assets/Mirror/Core/NetworkBehaviour.cs b/Assets/Mirror/Core/NetworkBehaviour.cs index 49bfa8d67..9efc8ab1d 100644 --- a/Assets/Mirror/Core/NetworkBehaviour.cs +++ b/Assets/Mirror/Core/NetworkBehaviour.cs @@ -123,6 +123,7 @@ public void SetSyncVarDirtyBit(ulong dirtyBit) // true if syncInterval elapsed and any SyncVar or SyncObject is dirty // OR both bitmasks. != 0 if either was dirty. + [MethodImpl(MethodImplOptions.AggressiveInlining)] public bool IsDirty() => NetworkTime.localTime - lastSyncTime >= syncInterval && (syncVarDirtyBits | syncObjectDirtyBits) != 0UL;