mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
inlining
This commit is contained in:
parent
2310c248c1
commit
5efcd8f113
@ -123,6 +123,7 @@ public void SetSyncVarDirtyBit(ulong dirtyBit)
|
|||||||
|
|
||||||
// true if syncInterval elapsed and any SyncVar or SyncObject is dirty
|
// true if syncInterval elapsed and any SyncVar or SyncObject is dirty
|
||||||
// OR both bitmasks. != 0 if either was dirty.
|
// OR both bitmasks. != 0 if either was dirty.
|
||||||
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public bool IsDirty() =>
|
public bool IsDirty() =>
|
||||||
NetworkTime.localTime - lastSyncTime >= syncInterval &&
|
NetworkTime.localTime - lastSyncTime >= syncInterval &&
|
||||||
(syncVarDirtyBits | syncObjectDirtyBits) != 0UL;
|
(syncVarDirtyBits | syncObjectDirtyBits) != 0UL;
|
||||||
|
Loading…
Reference in New Issue
Block a user