Merge branch 'vis2k:master' into master

This commit is contained in:
MrGadget 2022-01-17 05:29:46 -05:00 committed by GitHub
commit f4449ceb8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -1252,8 +1252,9 @@ internal void ClearAllComponentsDirtyBits()
// Clear only dirty component's dirty bits. ignores components which
// may be dirty but not ready to be synced yet (because of syncInterval)
//
// IMPORTANT to clear SyncLists's changes to avoid ever
// growing changes while not having observers etc.
// NOTE: this used to be very important to avoid ever
// growing SyncList changes if they had no observers,
// but we've added SyncObject.isRecording since.
internal void ClearDirtyComponentsDirtyBits()
{
foreach (NetworkBehaviour comp in NetworkBehaviours)

View File

@ -1605,8 +1605,9 @@ static void BroadcastToConnection(NetworkConnectionToClient connection)
// (we serialized only the IsDirty() components, or all of
// them if initialState. clearing the dirty ones is enough.)
//
// IMPORTANT to clear SyncLists's changes to avoid ever
// growing changes while not having observers etc.
// NOTE: this used to be very important to avoid ever
// growing SyncList changes if they had no observers,
// but we've added SyncObject.isRecording since.
//
// NOTE: this is what we did before push->pull
// broadcasting. let's keep doing this for